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
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
682 ORIGINAL_NM_FOR_TARGET
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 ORIGINAL_AS_FOR_TARGET
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
768 ENABLE_BUILD_WITH_CXX
771 valgrind_path_defines
843 program_transform_name
854 ac_subst_files
='option_includes
857 enable_option_checking
862 enable_generated_files_in_srcdir
872 enable_gather_detailed_mem_stats
873 enable_build_with_cxx
883 with_upc_pts_vaddr_order
885 enable_upc_link_script
897 enable_initfini_array
898 enable_sjlj_exceptions
899 with_system_libunwind
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
923 ac_precious_vars
='build_alias
944 # Initialize some variables set by options.
946 ac_init_version
=false
947 ac_unrecognized_opts
=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
958 program_transform_name
=s
,x
,x
,
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir
='${exec_prefix}/bin'
973 sbindir
='${exec_prefix}/sbin'
974 libexecdir
='${exec_prefix}/libexec'
975 datarootdir
='${prefix}/share'
976 datadir
='${datarootdir}'
977 sysconfdir
='${prefix}/etc'
978 sharedstatedir
='${prefix}/com'
979 localstatedir
='${prefix}/var'
980 includedir
='${prefix}/include'
981 oldincludedir
='/usr/include'
982 docdir
='${datarootdir}/doc/${PACKAGE}'
983 infodir
='${datarootdir}/info'
988 libdir
='${exec_prefix}/lib'
989 localedir
='${datarootdir}/locale'
990 mandir
='${datarootdir}/man'
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\
$ac_option
1004 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1010 case $ac_dashdash$ac_option in
1014 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1016 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1017 bindir
=$ac_optarg ;;
1019 -build |
--build |
--buil |
--bui |
--bu)
1020 ac_prev
=build_alias
;;
1021 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1022 build_alias
=$ac_optarg ;;
1024 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1025 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1026 ac_prev
=cache_file
;;
1027 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1028 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1029 cache_file
=$ac_optarg ;;
1031 --config-cache |
-C)
1032 cache_file
=config.cache
;;
1034 -datadir |
--datadir |
--datadi |
--datad)
1036 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1037 datadir
=$ac_optarg ;;
1039 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1040 |
--dataroo |
--dataro |
--datar)
1041 ac_prev
=datarootdir
;;
1042 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1043 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1044 datarootdir
=$ac_optarg ;;
1046 -disable-* |
--disable-*)
1047 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1050 as_fn_error
"invalid feature name: $ac_useropt"
1051 ac_useropt_orig
=$ac_useropt
1052 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_
$ac_useropt"
1057 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep
=', ';;
1060 eval enable_
$ac_useropt=no
;;
1062 -docdir |
--docdir |
--docdi |
--doc |
--do)
1064 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1065 docdir
=$ac_optarg ;;
1067 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1069 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1070 dvidir
=$ac_optarg ;;
1072 -enable-* |
--enable-*)
1073 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1076 as_fn_error
"invalid feature name: $ac_useropt"
1077 ac_useropt_orig
=$ac_useropt
1078 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_
$ac_useropt"
1083 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep
=', ';;
1086 eval enable_
$ac_useropt=\
$ac_optarg ;;
1088 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1089 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1090 |
--exec |
--exe |
--ex)
1091 ac_prev
=exec_prefix
;;
1092 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1093 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1094 |
--exec=* |
--exe=* |
--ex=*)
1095 exec_prefix
=$ac_optarg ;;
1097 -gas |
--gas |
--ga |
--g)
1098 # Obsolete; use --with-gas.
1101 -help |
--help |
--hel |
--he |
-h)
1102 ac_init_help
=long
;;
1103 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1104 ac_init_help
=recursive
;;
1105 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1106 ac_init_help
=short
;;
1108 -host |
--host |
--hos |
--ho)
1109 ac_prev
=host_alias
;;
1110 -host=* |
--host=* |
--hos=* |
--ho=*)
1111 host_alias
=$ac_optarg ;;
1113 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1115 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1117 htmldir
=$ac_optarg ;;
1119 -includedir |
--includedir |
--includedi |
--included |
--include \
1120 |
--includ |
--inclu |
--incl |
--inc)
1121 ac_prev
=includedir
;;
1122 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1123 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1124 includedir
=$ac_optarg ;;
1126 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1128 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1129 infodir
=$ac_optarg ;;
1131 -libdir |
--libdir |
--libdi |
--libd)
1133 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1134 libdir
=$ac_optarg ;;
1136 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1137 |
--libexe |
--libex |
--libe)
1138 ac_prev
=libexecdir
;;
1139 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1140 |
--libexe=* |
--libex=* |
--libe=*)
1141 libexecdir
=$ac_optarg ;;
1143 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1144 ac_prev
=localedir
;;
1145 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1146 localedir
=$ac_optarg ;;
1148 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1149 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1150 ac_prev
=localstatedir
;;
1151 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1152 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1153 localstatedir
=$ac_optarg ;;
1155 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1157 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1158 mandir
=$ac_optarg ;;
1160 -nfp |
--nfp |
--nf)
1161 # Obsolete; use --without-fp.
1164 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1165 |
--no-cr |
--no-c |
-n)
1168 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1169 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1172 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1173 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1174 |
--oldin |
--oldi |
--old |
--ol |
--o)
1175 ac_prev
=oldincludedir
;;
1176 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1177 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1178 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1179 oldincludedir
=$ac_optarg ;;
1181 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1183 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1184 prefix
=$ac_optarg ;;
1186 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1187 |
--program-pre |
--program-pr |
--program-p)
1188 ac_prev
=program_prefix
;;
1189 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1190 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1191 program_prefix
=$ac_optarg ;;
1193 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1194 |
--program-suf |
--program-su |
--program-s)
1195 ac_prev
=program_suffix
;;
1196 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1197 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1198 program_suffix
=$ac_optarg ;;
1200 -program-transform-name |
--program-transform-name \
1201 |
--program-transform-nam |
--program-transform-na \
1202 |
--program-transform-n |
--program-transform- \
1203 |
--program-transform |
--program-transfor \
1204 |
--program-transfo |
--program-transf \
1205 |
--program-trans |
--program-tran \
1206 |
--progr-tra |
--program-tr |
--program-t)
1207 ac_prev
=program_transform_name
;;
1208 -program-transform-name=* |
--program-transform-name=* \
1209 |
--program-transform-nam=* |
--program-transform-na=* \
1210 |
--program-transform-n=* |
--program-transform-=* \
1211 |
--program-transform=* |
--program-transfor=* \
1212 |
--program-transfo=* |
--program-transf=* \
1213 |
--program-trans=* |
--program-tran=* \
1214 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1215 program_transform_name
=$ac_optarg ;;
1217 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1219 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1220 pdfdir
=$ac_optarg ;;
1222 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1224 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1227 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1228 |
-silent |
--silent |
--silen |
--sile |
--sil)
1231 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1233 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1235 sbindir
=$ac_optarg ;;
1237 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1238 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1239 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1241 ac_prev
=sharedstatedir
;;
1242 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1243 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1244 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1246 sharedstatedir
=$ac_optarg ;;
1248 -site |
--site |
--sit)
1250 -site=* |
--site=* |
--sit=*)
1253 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1255 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1256 srcdir
=$ac_optarg ;;
1258 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1259 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1260 ac_prev
=sysconfdir
;;
1261 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1262 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1263 sysconfdir
=$ac_optarg ;;
1265 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1266 ac_prev
=target_alias
;;
1267 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1268 target_alias
=$ac_optarg ;;
1270 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1273 -version |
--version |
--versio |
--versi |
--vers |
-V)
1274 ac_init_version
=: ;;
1277 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1280 as_fn_error
"invalid package name: $ac_useropt"
1281 ac_useropt_orig
=$ac_useropt
1282 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1287 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep
=', ';;
1290 eval with_
$ac_useropt=\
$ac_optarg ;;
1292 -without-* |
--without-*)
1293 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1296 as_fn_error
"invalid package name: $ac_useropt"
1297 ac_useropt_orig
=$ac_useropt
1298 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1303 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep
=', ';;
1306 eval with_
$ac_useropt=no
;;
1309 # Obsolete; use --with-x.
1312 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1313 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1314 ac_prev
=x_includes
;;
1315 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1316 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1317 x_includes
=$ac_optarg ;;
1319 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1320 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1321 ac_prev
=x_libraries
;;
1322 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1323 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1324 x_libraries
=$ac_optarg ;;
1326 -*) as_fn_error
"unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information."
1331 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1335 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1337 eval $ac_envvar=\
$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 if test -n "$ac_prev"; then
1352 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error
"missing argument to $ac_option"
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1359 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 # Check all directory arguments for consistency.
1365 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1370 eval ac_val
=\$
$ac_var
1371 # Remove trailing slashes.
1374 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\
$ac_val;;
1377 # Be sure to have absolute directory names.
1379 [\\/$
]* | ?
:[\\/]* ) continue;;
1380 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1382 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1390 target
=$target_alias
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x
; then
1394 if test "x$build_alias" = x
; then
1395 cross_compiling
=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1404 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1406 test "$silent" = yes && exec 6>/dev
/null
1409 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di
=`ls -di .` &&
1411 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error
"working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error
"pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted
=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir
=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1449 ac_srcdir_defaulted
=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1453 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1467 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 for ac_var
in $ac_precious_vars; do
1470 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1472 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1483 \`configure' configures this package to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1546 --build=BUILD configure
for building on BUILD
[guessed
]
1547 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1548 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1552 if test -n "$ac_init_help"; then
1557 --disable-option-checking ignore unrecognized
--enable/--with options
1558 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1559 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1560 --enable-generated-files-in-srcdir
1561 put copies of generated files
in source dir
1562 intended
for creating
source tarballs
for users
1563 without texinfo bison or flex.
1564 --disable-largefile omit support
for large files
1565 --enable-werror-always enable -Werror despite compiler version
1566 --enable-checking=LIST
1567 enable expensive run-time checks. With LIST
,
1568 enable only specific categories of checks.
1569 Categories are
: yes,no
,all
,none
,release.
1570 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1571 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1572 --enable-coverage=LEVEL
1573 enable compiler
's code coverage collection.
1574 Use to measure compiler performance and locate
1575 unused parts of the compiler. With LEVEL, specify
1576 optimization. Values are opt, noopt,
1578 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1579 --enable-build-with-cxx build with C++ compiler instead of C compiler
1580 --enable-multilib enable library support for multiple ABIs
1581 --enable-__cxa_atexit enable __cxa_atexit for C++
1582 --enable-decimal-float={no,yes,bid,dpd}
1583 enable decimal float extension to C. Selecting 'bid
'
1584 or 'dpd
' choses which decimal floating point format
1586 --enable-fixed-point enable fixed-point arithmetic extension to C
1587 --enable-threads enable thread usage for target GCC
1588 --enable-threads=LIB use LIB thread package for target GCC
1589 --enable-tls enable or disable generation of tls code
1590 overriding the assembler check for tls support
1591 --enable-objc-gc enable the use of Boehm's garbage collector with
1592 the GNU Objective-C runtime
1593 --enable-upc-link-script Enable UPC
's use of a custom linker script.
1594 This will define the UPC shared section as a no load section on
1595 targets where this feature is supported. Requires GNU LD.
1596 --disable-shared don't provide a shared libgcc
1597 --enable-languages=LIST specify
which front-ends to build
1598 --disable-rpath do not hardcode runtime library paths
1599 --enable-initfini-array use .init_array
/.fini_array sections
1600 --enable-sjlj-exceptions
1601 arrange to use setjmp
/longjmp exception handling
1602 --enable-secureplt enable -msecure-plt by default
for PowerPC
1603 --enable-leading-mingw64-underscores
1604 Enable leading underscores on
64 bit mingw targets
1605 --enable-cld enable -mcld by default
for 32bit x86
1606 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit x86
1607 --disable-win32-registry
1608 disable lookup of installation paths
in the
1609 Registry on Windows hosts
1610 --enable-win32-registry enable registry lookup
(default
)
1611 --enable-win32-registry=KEY
1612 use KEY instead of GCC version as the last portion
1614 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1615 --enable-static[=PKGS
] build static libraries
[default
=yes]
1616 --enable-fast-install[=PKGS
]
1617 optimize
for fast installation
[default
=yes]
1618 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1619 --enable-gnu-indirect-function
1620 enable the use of the @gnu_indirect_function to
1622 --enable-comdat enable COMDAT group support
1623 --enable-gnu-unique-object
1624 enable the use of the @gnu_unique_object ELF
1625 extension on glibc systems
1626 --enable-linker-build-id
1627 compiler will always pass
--build-id to linker
1628 --enable-maintainer-mode
1629 enable make rules and dependencies not useful
1630 (and sometimes confusing
) to the casual installer
1631 --enable-version-specific-runtime-libs
1632 specify that runtime libraries should be
1633 installed
in a compiler-specific directory
1634 --enable-plugin enable plugin support
1635 --disable-libquadmath-support
1636 disable libquadmath support
for Fortran
1639 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1640 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1641 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1642 --with-local-prefix=DIR specifies directory to put
local include
1643 --with-gxx-include-dir=DIR
1644 specifies directory to put g
++ header files
1645 --with-cpp-install-dir=DIR
1646 install the user visible C preprocessor
in DIR
1647 (relative to PREFIX
) as well as PREFIX
/bin
1648 --with-gnu-ld arrange to work with GNU ld.
1649 --with-ld arrange to use the specified ld
(full pathname
)
1650 --with-demangler-in-ld try to use demangler
in GNU ld.
1651 --with-gnu-as arrange to work with GNU as
1652 --with-as arrange to use the specified as
(full pathname
)
1653 --with-stabs arrange to use stabs instead of
host debug format
1654 --with-upc-pts={struct
,word-pair
,packed
} choose the representation
1655 of a UPC pointer-to-shared
1656 --with-upc-pts-vaddr-order={last
,first
} choose position of the address field
1657 in UPC shared pointer representation
1658 --with-upc-packed-bits=phase
,thread
,vaddr choose bit distribution
1659 in packed UPC pointer-to-shared representation
1660 --with-dwarf2 force the default debug format to be DWARF
2
1661 --with-build-sysroot=sysroot
1662 use sysroot as the system root during the build
1663 --with-sysroot=DIR Search
for usr
/lib
, usr
/include
, et al
, within DIR.
1664 --with-specs=SPECS add SPECS to driver command-line processing
1665 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1666 --with-bugurl=URL Direct users to URL to report a bug
1667 --with-multilib-list Select multilibs
(SH only
)
1668 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1669 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1670 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1671 --with-system-libunwind use installed libunwind
1672 --with-pic try to use only PIC/non-PIC objects [default=use
1674 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1675 --with-plugin-ld=[ARG] specify the plugin linker
1676 --with-long-double-128 Use 128-bit long double by default.
1677 --with-gc={page,zone} choose the garbage collection mechanism to use
1679 --with-system-zlib use installed libz
1680 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1682 Some influential environment variables:
1683 CC C compiler command
1684 CFLAGS C compiler flags
1685 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1686 nonstandard directory <lib dir>
1687 LIBS libraries to pass to the linker, e.g. -l<library>
1688 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1689 you have headers in a nonstandard directory <include dir>
1690 CXX C++ compiler command
1691 CXXFLAGS C++ compiler flags
1693 CXXCPP C++ preprocessor
1694 GMPLIBS How to link GMP
1695 GMPINC How to find GMP include files
1696 PPLLIBS How to link PPL
1697 PPLINC How to find PPL include files
1698 CLOOGLIBS How to link CLOOG
1699 CLOOGINC How to find CLOOG include files
1701 Use these variables to override the choices made by `configure' or to
help
1702 it to
find libraries and programs with nonstandard names
/locations.
1704 Report bugs to the package provider.
1709 if test "$ac_init_help" = "recursive"; then
1710 # If there are subdirs, report their specific --help.
1711 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1712 test -d "$ac_dir" ||
1713 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1718 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1720 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1721 # A ".." for each directory in $ac_dir_suffix.
1722 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1723 case $ac_top_builddir_sub in
1724 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1725 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1728 ac_abs_top_builddir
=$ac_pwd
1729 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1730 # for backward compatibility:
1731 ac_top_builddir
=$ac_top_build_prefix
1734 .
) # We are building in place.
1736 ac_top_srcdir
=$ac_top_builddir_sub
1737 ac_abs_top_srcdir
=$ac_pwd ;;
1738 [\\/]* | ?
:[\\/]* ) # Absolute name.
1739 ac_srcdir
=$srcdir$ac_dir_suffix;
1740 ac_top_srcdir
=$srcdir
1741 ac_abs_top_srcdir
=$srcdir ;;
1743 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1744 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1745 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1747 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1749 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1750 # Check for guested configure.
1751 if test -f "$ac_srcdir/configure.gnu"; then
1753 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1754 elif test -f "$ac_srcdir/configure"; then
1756 $SHELL "$ac_srcdir/configure" --help=recursive
1758 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1760 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1764 test -n "$ac_init_help" && exit $ac_status
1765 if $ac_init_version; then
1768 generated by GNU Autoconf
2.64
1770 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1771 This configure
script is free software
; the Free Software Foundation
1772 gives unlimited permission to copy
, distribute and modify it.
1777 ## ------------------------ ##
1778 ## Autoconf initialization. ##
1779 ## ------------------------ ##
1781 # ac_fn_c_try_compile LINENO
1782 # --------------------------
1783 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_compile
()
1786 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1787 rm -f conftest.
$ac_objext
1788 if { { ac_try
="$ac_compile"
1790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_compile") 2>conftest.err
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest.$ac_objext; then :
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 } # ac_fn_c_try_compile
1819 # ac_fn_cxx_try_compile LINENO
1820 # ----------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_cxx_try_compile ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext
1826 if { { ac_try="$ac_compile"
1828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1829 *) ac_try_echo
=$ac_try;;
1831 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1835 if test -s conftest.err
; then
1836 grep -v '^ *+' conftest.err
>conftest.er1
1837 cat conftest.er1
>&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_cxx_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.
$ac_objext; then :
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.
$ac_ext >&5
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1855 } # ac_fn_cxx_try_compile
1857 # ac_fn_c_try_cpp LINENO
1858 # ----------------------
1859 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1862 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1863 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } >/dev/null && {
1879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1880 test ! -s conftest.err
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1895 # -------------------------------------------------------
1896 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1897 # the include files in INCLUDES and setting the cache variable VAR
1899 ac_fn_c_check_header_mongrel ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1906 $as_echo_n "(cached) " >&6
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1912 # Is the header compilable?
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1914 $as_echo_n "checking $2 usability... " >&6; }
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 ac_header_compiler=yes
1923 ac_header_compiler=no
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1927 $as_echo "$ac_header_compiler" >&6; }
1929 # Is the header present?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1931 $as_echo_n "checking $2 presence... " >&6; }
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1936 if ac_fn_c_try_cpp "$LINENO"; then :
1937 ac_header_preproc=yes
1939 ac_header_preproc=no
1941 rm -f conftest.err conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1943 $as_echo "$ac_header_preproc" >&6; }
1945 # So? What about this header?
1946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1949 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1955 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1957 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1959 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1961 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1969 $as_echo_n "(cached) " >&6
1971 eval "$3=\$ac_header_compiler"
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 } # ac_fn_c_check_header_mongrel
1981 # ac_fn_c_try_run LINENO
1982 # ----------------------
1983 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1984 # that executables *can* be run.
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 if { { ac_try="$ac_link"
1990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1991 *) ac_try_echo
=$ac_try;;
1993 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>&5
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1999 { { case "(($ac_try" in
2000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_try") 2>&5
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; }; }; then :
2011 $as_echo "$as_me: program exited with status $ac_status" >&5
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2015 ac_retval=$ac_status
2017 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2024 # -------------------------------------------------------
2025 # Tests whether HEADER exists and can be compiled using the include files in
2026 # INCLUDES, setting the cache variable VAR accordingly.
2027 ac_fn_c_check_header_compile ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2033 $as_echo_n "(cached) " >&6
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2040 if ac_fn_c_try_compile "$LINENO"; then :
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052 } # ac_fn_c_check_header_compile
2054 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2055 # --------------------------------------------
2056 # Tries to find the compile-time value of EXPR in a program that includes
2057 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2059 ac_fn_c_compute_int ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if test "$cross_compiling" = yes; then
2063 # Depending upon the size, compute the lo and hi bounds.
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2070 static int test_array [1 - 2 * !(($2) >= 0)];
2077 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_hi=$ac_mid; break
2096 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2097 if test $ac_lo -le $ac_mid; then
2101 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array [1 - 2 * !(($2) < 0)];
2119 if ac_fn_c_try_compile "$LINENO"; then :
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2128 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_lo=$ac_mid; break
2138 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2139 if test $ac_mid -le $ac_hi; then
2143 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 # Binary search between lo and hi bounds.
2154 while test "x$ac_lo" != "x$ac_hi"; do
2155 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169 if ac_fn_c_try_compile "$LINENO"; then :
2172 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2184 static long int longval () { return $2; }
2185 static unsigned long int ulongval () { return $2; }
2192 FILE *f = fopen ("conftest.val", "w");
2197 long int i = longval ();
2200 fprintf (f, "%ld", i);
2204 unsigned long int i = ulongval ();
2207 fprintf (f, "%lu", i);
2209 /* Do not output a trailing newline, as this causes \r\n confusion
2210 on some platforms. */
2211 return ferror (f) || fclose (f) != 0;
2217 if ac_fn_c_try_run "$LINENO"; then :
2218 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2223 conftest.$ac_objext conftest.beam conftest.$ac_ext
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2230 } # ac_fn_c_compute_int
2232 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2233 # -------------------------------------------
2234 # Tests whether TYPE exists after having included INCLUDES, setting cache
2235 # variable VAR accordingly.
2236 ac_fn_c_check_type ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2240 $as_echo_n "checking for $2... " >&6; }
2241 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2242 $as_echo_n "(cached) " >&6
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2270 if ac_fn_c_try_compile "$LINENO"; then :
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281 $as_echo "$ac_res" >&6; }
2282 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2284 } # ac_fn_c_check_type
2286 # ac_fn_c_find_intX_t LINENO BITS VAR
2287 # -----------------------------------
2288 # Finds a signed integer type with width BITS, setting cache variable VAR
2290 ac_fn_c_find_intX_t ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2294 $as_echo_n "checking for int$2_t... " >&6; }
2295 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2296 $as_echo_n "(cached) " >&6
2299 for ac_type in int$2_t 'int' 'long int' \
2300 'long long int' 'short int' 'signed char'; do
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2303 $ac_includes_default
2307 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2317 $ac_includes_default
2321 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2322 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2329 if ac_fn_c_try_compile "$LINENO"; then :
2336 eval "$3=\$ac_type" ;;
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 if test "x$as_val" = x""no; then :
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355 } # ac_fn_c_find_intX_t
2357 # ac_fn_c_try_link LINENO
2358 # -----------------------
2359 # Try to link conftest.$ac_ext, and return whether this succeeded.
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 rm -f conftest.$ac_objext conftest$ac_exeext
2364 if { { ac_try="$ac_link"
2366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2367 *) ac_try_echo
=$ac_try;;
2369 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2370 $as_echo "$ac_try_echo"; } >&5
2371 (eval "$ac_link") 2>conftest.err
2373 if test -s conftest.err
; then
2374 grep -v '^ *+' conftest.err
>conftest.er1
2375 cat conftest.er1
>&5
2376 mv -f conftest.er1 conftest.err
2378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2379 test $ac_status = 0; } && {
2380 test -z "$ac_c_werror_flag" ||
2381 test ! -s conftest.err
2382 } && test -s conftest
$ac_exeext && {
2383 test "$cross_compiling" = yes ||
2384 $as_test_x conftest
$ac_exeext
2388 $as_echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.
$ac_ext >&5
2393 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2394 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2395 # interfere with the next link command; also delete a directory that is
2396 # left behind by Apple's compiler. We do this before executing the actions.
2397 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2401 } # ac_fn_c_try_link
2403 # ac_fn_c_find_uintX_t LINENO BITS VAR
2404 # ------------------------------------
2405 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2407 ac_fn_c_find_uintX_t
()
2409 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2411 $as_echo_n "checking for uint$2_t... " >&6; }
2412 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2413 $as_echo_n "(cached) " >&6
2416 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2417 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2420 $ac_includes_default
2424 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2431 if ac_fn_c_try_compile
"$LINENO"; then :
2436 eval "$3=\$ac_type" ;;
2439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2441 if test "x$as_val" = x
""no
; then :
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2450 $as_echo "$ac_res" >&6; }
2451 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2453 } # ac_fn_c_find_uintX_t
2455 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2456 # ----------------------------------------------
2457 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2458 ac_fn_c_check_header_preproc
()
2460 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462 $as_echo_n "checking for $2... " >&6; }
2463 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2464 $as_echo_n "(cached) " >&6
2466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2470 if ac_fn_c_try_cpp
"$LINENO"; then :
2475 rm -f conftest.err conftest.
$ac_ext
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479 $as_echo "$ac_res" >&6; }
2480 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2482 } # ac_fn_c_check_header_preproc
2484 # ac_fn_cxx_try_cpp LINENO
2485 # ------------------------
2486 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2487 ac_fn_cxx_try_cpp
()
2489 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2490 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2496 $as_echo "$ac_try_echo"; } >&5
2497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2499 if test -s conftest.err; then
2500 grep -v '^ *+' conftest.err >conftest.er1
2501 cat conftest.er1 >&5
2502 mv -f conftest.er1 conftest.err
2504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505 test $ac_status = 0; } >/dev/null && {
2506 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2507 test ! -s conftest.err
2511 $as_echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2519 } # ac_fn_cxx_try_cpp
2521 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2522 # ------------------------------------------------
2523 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2524 ac_fn_cxx_check_header_preproc ()
2526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2528 $as_echo_n "checking for $2... " >&6; }
2529 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2530 $as_echo_n "(cached) " >&6
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2536 if ac_fn_cxx_try_cpp "$LINENO"; then :
2541 rm -f conftest.err conftest.$ac_ext
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2545 $as_echo "$ac_res" >&6; }
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2548 } # ac_fn_cxx_check_header_preproc
2550 # ac_fn_c_check_func LINENO FUNC VAR
2551 # ----------------------------------
2552 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2553 ac_fn_c_check_func ()
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2557 $as_echo_n "checking for $2... " >&6; }
2558 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2559 $as_echo_n "(cached) " >&6
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2563 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2565 #define $2 innocuous_$2
2567 /* System header to define __stub macros and hopefully few prototypes,
2568 which can conflict with char $2 (); below.
2569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2570 <limits.h> exists even on freestanding compilers. */
2573 # include <limits.h>
2575 # include <assert.h>
2580 /* Override any GCC internal prototype to avoid an error.
2581 Use char because int might match the return type of a GCC
2582 builtin and then its argument prototype would still apply. */
2587 /* The GNU C library defines this for functions which it implements
2588 to always fail with ENOSYS. Some functions are actually named
2589 something starting with __ and the normal name is an alias. */
2590 #if defined __stub_$2 || defined __stub___$2
2602 if ac_fn_c_try_link "$LINENO"; then :
2607 rm -f core conftest.err conftest.$ac_objext \
2608 conftest$ac_exeext conftest.$ac_ext
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612 $as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615 } # ac_fn_c_check_func
2617 # ac_fn_cxx_try_link LINENO
2618 # -------------------------
2619 # Try to link conftest.$ac_ext, and return whether this succeeded.
2620 ac_fn_cxx_try_link ()
2622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2623 rm -f conftest.$ac_objext conftest$ac_exeext
2624 if { { ac_try="$ac_link"
2626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2627 *) ac_try_echo
=$ac_try;;
2629 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630 $as_echo "$ac_try_echo"; } >&5
2631 (eval "$ac_link") 2>conftest.err
2633 if test -s conftest.err
; then
2634 grep -v '^ *+' conftest.err
>conftest.er1
2635 cat conftest.er1
>&5
2636 mv -f conftest.er1 conftest.err
2638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2639 test $ac_status = 0; } && {
2640 test -z "$ac_cxx_werror_flag" ||
2641 test ! -s conftest.err
2642 } && test -s conftest
$ac_exeext && {
2643 test "$cross_compiling" = yes ||
2644 $as_test_x conftest
$ac_exeext
2648 $as_echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.
$ac_ext >&5
2653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2655 # interfere with the next link command; also delete a directory that is
2656 # left behind by Apple's compiler. We do this before executing the actions.
2657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2658 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2661 } # ac_fn_cxx_try_link
2662 cat >config.log
<<_ACEOF
2663 This file contains any messages produced by compilers while
2664 running configure, to aid debugging if configure makes a mistake.
2666 It was created by $as_me, which was
2667 generated by GNU Autoconf 2.64. Invocation command line was
2679 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2680 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2681 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2682 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2683 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2685 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2686 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2688 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2689 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2690 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2691 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2692 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2693 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2694 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2702 test -z "$as_dir" && as_dir
=.
2703 $as_echo "PATH: $as_dir"
2719 # Keep a trace of the command line.
2720 # Strip out --no-create and --no-recursion so they do not pile up.
2721 # Strip out --silent because we don't want to record it for future runs.
2722 # Also quote any args containing shell meta-characters.
2723 # Make two passes to allow for proper duplicate-argument suppression.
2727 ac_must_keep_next
=false
2733 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2734 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2735 |
-silent |
--silent |
--silen |
--sile |
--sil)
2738 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2741 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2743 as_fn_append ac_configure_args1
" '$ac_arg'"
2744 if test $ac_must_keep_next = true
; then
2745 ac_must_keep_next
=false
# Got value, back to normal.
2748 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2749 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2750 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2751 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2752 case "$ac_configure_args0 " in
2753 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2756 -* ) ac_must_keep_next
=true
;;
2759 as_fn_append ac_configure_args
" '$ac_arg'"
2764 { ac_configure_args0
=; unset ac_configure_args0
;}
2765 { ac_configure_args1
=; unset ac_configure_args1
;}
2767 # When interrupted or exit'd, cleanup temporary files, and complete
2768 # config.log. We remove comments because anyway the quotes in there
2769 # would cause problems or look ugly.
2770 # WARNING: Use '\'' to represent an apostrophe within the trap.
2771 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2772 trap 'exit_status=$?
2773 # Save into config.log some information that might help in debugging.
2778 ## ---------------- ##
2779 ## Cache variables. ##
2780 ## ---------------- ##
2783 # The following way of writing the cache mishandles newlines in values,
2785 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2786 eval ac_val=\$$ac_var
2790 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2791 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2794 _ | IFS | as_nl) ;; #(
2795 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2796 *) { eval $ac_var=; unset $ac_var;} ;;
2801 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2802 *${as_nl}ac_space=\ *)
2804 "s/'\''/'\''\\\\'\'''\''/g;
2805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2816 ## ----------------- ##
2817 ## Output variables. ##
2818 ## ----------------- ##
2821 for ac_var in $ac_subst_vars
2823 eval ac_val=\$$ac_var
2825 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2827 $as_echo "$ac_var='\''$ac_val'\''"
2831 if test -n "$ac_subst_files"; then
2833 ## ------------------- ##
2834 ## File substitutions. ##
2835 ## ------------------- ##
2838 for ac_var
in $ac_subst_files
2840 eval ac_val
=\$
$ac_var
2842 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2844 $as_echo "$ac_var='\''$ac_val'\''"
2849 if test -s confdefs.h; then
2859 test "$ac_signal" != 0 &&
2860 $as_echo "$as_me: caught signal $ac_signal"
2861 $as_echo "$as_me: exit $exit_status"
2863 rm -f core *.core core.conftest.* &&
2864 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2867 for ac_signal
in 1 2 13 15; do
2868 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2873 rm -f -r conftest
* confdefs.h
2875 $as_echo "/* confdefs.h */" > confdefs.h
2877 # Predefined preprocessor variables.
2879 cat >>confdefs.h
<<_ACEOF
2880 #define PACKAGE_NAME "$PACKAGE_NAME"
2883 cat >>confdefs.h
<<_ACEOF
2884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2887 cat >>confdefs.h
<<_ACEOF
2888 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2891 cat >>confdefs.h
<<_ACEOF
2892 #define PACKAGE_STRING "$PACKAGE_STRING"
2895 cat >>confdefs.h
<<_ACEOF
2896 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2899 cat >>confdefs.h
<<_ACEOF
2900 #define PACKAGE_URL "$PACKAGE_URL"
2904 # Let the site file select an alternate cache file if it wants to.
2905 # Prefer an explicitly selected file to automatically selected ones.
2908 if test -n "$CONFIG_SITE"; then
2909 ac_site_file1
=$CONFIG_SITE
2910 elif test "x$prefix" != xNONE
; then
2911 ac_site_file1
=$prefix/share
/config.site
2912 ac_site_file2
=$prefix/etc
/config.site
2914 ac_site_file1
=$ac_default_prefix/share
/config.site
2915 ac_site_file2
=$ac_default_prefix/etc
/config.site
2917 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2919 test "x$ac_site_file" = xNONE
&& continue
2920 if test -r "$ac_site_file"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2922 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2923 sed 's/^/| /' "$ac_site_file" >&5
2928 if test -r "$cache_file"; then
2929 # Some versions of bash will fail to source /dev/null (special
2930 # files actually), so we avoid doing that.
2931 if test -f "$cache_file"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2933 $as_echo "$as_me: loading cache $cache_file" >&6;}
2935 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2936 *) .
"./$cache_file";;
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2941 $as_echo "$as_me: creating cache $cache_file" >&6;}
2945 # Check that the precious variables saved in the cache have kept the same
2947 ac_cache_corrupted
=false
2948 for ac_var
in $ac_precious_vars; do
2949 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2950 eval ac_new_set
=\
$ac_env_${ac_var}_set
2951 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2952 eval ac_new_val
=\
$ac_env_${ac_var}_value
2953 case $ac_old_set,$ac_new_set in
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2956 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2957 ac_cache_corrupted
=: ;;
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2960 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2961 ac_cache_corrupted
=: ;;
2964 if test "x$ac_old_val" != "x$ac_new_val"; then
2965 # differences in whitespace do not lead to failure.
2966 ac_old_val_w
=`echo x $ac_old_val`
2967 ac_new_val_w
=`echo x $ac_new_val`
2968 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2970 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2971 ac_cache_corrupted
=:
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2974 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2975 eval $ac_var=\
$ac_old_val
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2978 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2980 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2983 # Pass precious variables to config.status.
2984 if test "$ac_new_set" = set; then
2986 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2987 *) ac_arg
=$ac_var=$ac_new_val ;;
2989 case " $ac_configure_args " in
2990 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2991 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2995 if $ac_cache_corrupted; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2999 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3000 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3002 ## -------------------- ##
3003 ## Main body of script. ##
3004 ## -------------------- ##
3007 ac_cpp
='$CPP $CPPFLAGS'
3008 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3017 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3020 gcc_version
=`cat $srcdir/BASE-VER`
3022 # Determine the host, build, and target systems
3024 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3025 for ac_t
in install-sh
install.sh shtool
; do
3026 if test -f "$ac_dir/$ac_t"; then
3028 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3033 if test -z "$ac_aux_dir"; then
3034 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3037 # These three variables are undocumented and unsupported,
3038 # and are intended to be withdrawn in a future Autoconf release.
3039 # They can cause serious problems if a builder's source tree is in a directory
3040 # whose full name contains unusual characters.
3041 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3042 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3043 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3046 # Make sure we can run config.sub.
3047 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3048 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3051 $as_echo_n "checking build system type... " >&6; }
3052 if test "${ac_cv_build+set}" = set; then :
3053 $as_echo_n "(cached) " >&6
3055 ac_build_alias
=$build_alias
3056 test "x$ac_build_alias" = x
&&
3057 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3058 test "x$ac_build_alias" = x
&&
3059 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3060 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3061 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3065 $as_echo "$ac_cv_build" >&6; }
3066 case $ac_cv_build in
3068 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3071 ac_save_IFS
=$IFS; IFS
='-'
3077 # Remember, the first character of IFS is used to create $*,
3078 # except with old shells:
3081 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3085 $as_echo_n "checking host system type... " >&6; }
3086 if test "${ac_cv_host+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3089 if test "x$host_alias" = x
; then
3090 ac_cv_host
=$ac_cv_build
3092 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3093 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3098 $as_echo "$ac_cv_host" >&6; }
3101 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3104 ac_save_IFS
=$IFS; IFS
='-'
3110 # Remember, the first character of IFS is used to create $*,
3111 # except with old shells:
3114 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3118 $as_echo_n "checking target system type... " >&6; }
3119 if test "${ac_cv_target+set}" = set; then :
3120 $as_echo_n "(cached) " >&6
3122 if test "x$target_alias" = x
; then
3123 ac_cv_target
=$ac_cv_host
3125 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3126 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3131 $as_echo "$ac_cv_target" >&6; }
3132 case $ac_cv_target in
3134 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3136 target
=$ac_cv_target
3137 ac_save_IFS
=$IFS; IFS
='-'
3143 # Remember, the first character of IFS is used to create $*,
3144 # except with old shells:
3147 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3150 # The aliases save the names the user supplied, while $host etc.
3151 # will get canonicalized.
3152 test -n "$target_alias" &&
3153 test "$program_prefix$program_suffix$program_transform_name" = \
3155 program_prefix
=${target_alias}-
3157 # Determine the noncanonical target name, for directory use.
3158 case ${build_alias} in
3159 "") build_noncanonical
=${build} ;;
3160 *) build_noncanonical
=${build_alias} ;;
3163 case ${host_alias} in
3164 "") host_noncanonical
=${build_noncanonical} ;;
3165 *) host_noncanonical
=${host_alias} ;;
3168 case ${target_alias} in
3169 "") target_noncanonical
=${host_noncanonical} ;;
3170 *) target_noncanonical
=${target_alias} ;;
3176 # Determine the target- and build-specific subdirectories
3178 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3179 # have matching libraries, they should use host libraries: Makefile.tpl
3180 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3181 # However, they still use the build modules, because the corresponding
3182 # host modules (e.g. bison) are only built for the host when bootstrap
3184 # - build_subdir is where we find build modules, and never changes.
3185 # - build_libsubdir is where we find build libraries, and can be overridden.
3187 # Prefix 'build-' so this never conflicts with target_subdir.
3188 build_subdir
="build-${build_noncanonical}"
3190 # Check whether --with-build-libsubdir was given.
3191 if test "${with_build_libsubdir+set}" = set; then :
3192 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3194 build_libsubdir
="$build_subdir"
3197 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3198 if ( test $srcdir = .
&& test -d gcc
) \
3199 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3200 host_subdir
="host-${host_noncanonical}"
3205 target_subdir
=${target_noncanonical}
3208 # Set program_transform_name
3209 test "$program_prefix" != NONE
&&
3210 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3211 # Use a double $ so make ignores it.
3212 test "$program_suffix" != NONE
&&
3213 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3214 # Double any \ or $.
3215 # By default was `s,x,x', remove it if useless.
3216 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3217 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3220 # Check for bogus environment variables.
3221 # Test if LIBRARY_PATH contains the notation for the current directory
3222 # since this would lead to problems installing/building glibc.
3223 # LIBRARY_PATH contains the current directory if one of the following
3225 # - one of the terminals (":" and ";") is the first or last sign
3226 # - two terminals occur directly after each other
3227 # - the path contains an element with a dot in it
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3229 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3230 case ${LIBRARY_PATH} in
3231 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3232 library_path_setting
="contains current directory"
3235 library_path_setting
="ok"
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3239 $as_echo "$library_path_setting" >&6; }
3240 if test "$library_path_setting" != "ok"; then
3242 *** LIBRARY_PATH shouldn't contain the current directory when
3243 *** building gcc. Please change the environment variable
3244 *** and run configure again." "$LINENO" 5
3247 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3248 # since this would lead to problems installing/building glibc.
3249 # GCC_EXEC_PREFIX contains the current directory if one of the following
3251 # - one of the terminals (":" and ";") is the first or last sign
3252 # - two terminals occur directly after each other
3253 # - the path contains an element with a dot in it
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3255 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3256 case ${GCC_EXEC_PREFIX} in
3257 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3258 gcc_exec_prefix_setting
="contains current directory"
3261 gcc_exec_prefix_setting
="ok"
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3265 $as_echo "$gcc_exec_prefix_setting" >&6; }
3266 if test "$gcc_exec_prefix_setting" != "ok"; then
3268 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3269 *** building gcc. Please change the environment variable
3270 *** and run configure again." "$LINENO" 5
3277 # Specify the local prefix
3280 # Check whether --with-local-prefix was given.
3281 if test "${with_local_prefix+set}" = set; then :
3282 withval
=$with_local_prefix; case "${withval}" in
3283 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3285 *) local_prefix
=$with_local_prefix ;;
3290 # Default local prefix if it is empty
3291 if test x
$local_prefix = x
; then
3292 local_prefix
=/usr
/local
3295 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3296 # passed in by the toplevel make and thus we'd get different behavior
3297 # depending on where we built the sources.
3298 gcc_gxx_include_dir
=
3299 # Specify the g++ header file directory
3301 # Check whether --with-gxx-include-dir was given.
3302 if test "${with_gxx_include_dir+set}" = set; then :
3303 withval
=$with_gxx_include_dir; case "${withval}" in
3304 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3306 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3311 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3312 if test x
${gcc_gxx_include_dir} = x
; then
3313 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3314 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3316 libstdcxx_incdir
='include/c++/$(version)'
3317 if test x
$host != x
$target; then
3318 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3320 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3325 # Check whether --with-cpp_install_dir was given.
3326 if test "${with_cpp_install_dir+set}" = set; then :
3327 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3328 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3329 elif test x
$withval != xno
; then
3330 cpp_install_dir
=$withval
3335 # We would like to our source tree to be readonly. However when releases or
3336 # pre-releases are generated, the flex/bison generated files as well as the
3337 # various formats of manuals need to be included along with the rest of the
3338 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3342 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3343 # Check whether --enable-generated-files-in-srcdir was given.
3344 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3345 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3347 generated_files_in_srcdir
=no
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3352 $as_echo "$generated_files_in_srcdir" >&6; }
3354 if test "$generated_files_in_srcdir" = "yes"; then
3361 # -------------------
3362 # Find default linker
3363 # -------------------
3367 # Check whether --with-gnu-ld was given.
3368 if test "${with_gnu_ld+set}" = set; then :
3369 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3375 # With pre-defined ld
3377 # Check whether --with-ld was given.
3378 if test "${with_ld+set}" = set; then :
3379 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3382 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3383 if test ! -x "$DEFAULT_LINKER"; then
3384 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3385 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3389 cat >>confdefs.h
<<_ACEOF
3390 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3395 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3397 cat >>confdefs.h
<<_ACEOF
3398 #define HAVE_GNU_LD $gnu_ld
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3403 $as_echo_n "checking whether a default linker was specified... " >&6; }
3404 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3405 if test x
"$gnu_ld_flag" = x
"no"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3407 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3410 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3417 # With demangler in GNU ld
3419 # Check whether --with-demangler-in-ld was given.
3420 if test "${with_demangler_in_ld+set}" = set; then :
3421 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3427 # ----------------------
3428 # Find default assembler
3429 # ----------------------
3433 # Check whether --with-gnu-as was given.
3434 if test "${with_gnu_as+set}" = set; then :
3435 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3442 # Check whether --with-as was given.
3443 if test "${with_as+set}" = set; then :
3444 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3447 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3448 if test ! -x "$DEFAULT_ASSEMBLER"; then
3449 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3450 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3454 cat >>confdefs.h
<<_ACEOF
3455 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3460 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3462 cat >>confdefs.h
<<_ACEOF
3463 #define HAVE_GNU_AS $gnu_as
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3468 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3469 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3470 if test x
"$gas_flag" = x
"no"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3472 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3475 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3486 # If a non-executable a.out is present (e.g. created by GNU as above even if
3487 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3488 # file, even when creating an executable, so an execution test fails.
3489 # Remove possible default executable files to avoid this.
3491 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3492 # Autoconf includes it.
3493 rm -f a.out a.exe b.out
3495 # Find the native compiler
3497 ac_cpp
='$CPP $CPPFLAGS'
3498 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3501 if test -n "$ac_tool_prefix"; then
3502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3503 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if test "${ac_cv_prog_CC+set}" = set; then :
3507 $as_echo_n "(cached) " >&6
3509 if test -n "$CC"; then
3510 ac_cv_prog_CC
="$CC" # Let the user override the test.
3512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir
=.
3517 for ac_exec_ext
in '' $ac_executable_extensions; do
3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 if test -n "$CC"; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532 $as_echo "$CC" >&6; }
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3540 if test -z "$ac_cv_prog_CC"; then
3542 # Extract the first word of "gcc", so it can be a program name with args.
3543 set dummy gcc
; ac_word
=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3549 if test -n "$ac_ct_CC"; then
3550 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir
=.
3557 for ac_exec_ext
in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559 ac_cv_prog_ac_ct_CC
="gcc"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3570 if test -n "$ac_ct_CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3572 $as_echo "$ac_ct_CC" >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3578 if test "x$ac_ct_CC" = x
; then
3581 case $cross_compiling:$ac_tool_warned in
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3585 ac_tool_warned
=yes ;;
3593 if test -z "$CC"; then
3594 if test -n "$ac_tool_prefix"; then
3595 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3596 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if test "${ac_cv_prog_CC+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3602 if test -n "$CC"; then
3603 ac_cv_prog_CC
="$CC" # Let the user override the test.
3605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3609 test -z "$as_dir" && as_dir
=.
3610 for ac_exec_ext
in '' $ac_executable_extensions; do
3611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3612 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 if test -n "$CC"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3625 $as_echo "$CC" >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3634 if test -z "$CC"; then
3635 # Extract the first word of "cc", so it can be a program name with args.
3636 set dummy cc
; ac_word
=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if test "${ac_cv_prog_CC+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
3642 if test -n "$CC"; then
3643 ac_cv_prog_CC
="$CC" # Let the user override the test.
3646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3650 test -z "$as_dir" && as_dir
=.
3651 for ac_exec_ext
in '' $ac_executable_extensions; do
3652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3653 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3654 ac_prog_rejected
=yes
3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 if test $ac_prog_rejected = yes; then
3666 # We found a bogon in the path, so make sure we never use it.
3667 set dummy
$ac_cv_prog_CC
3669 if test $# != 0; then
3670 # We chose a different compiler from the bogus one.
3671 # However, it has the same basename, so the bogon will be chosen
3672 # first if we set CC to just the basename; use the full file name.
3674 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3680 if test -n "$CC"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 $as_echo "$CC" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3690 if test -z "$CC"; then
3691 if test -n "$ac_tool_prefix"; then
3692 for ac_prog
in cl.exe
3694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3695 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_CC+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC
="$CC" # Let the user override the test.
3704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir
=.
3709 for ac_exec_ext
in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 if test -n "$CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 $as_echo "$CC" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3731 test -n "$CC" && break
3734 if test -z "$CC"; then
3736 for ac_prog
in cl.exe
3738 # Extract the first word of "$ac_prog", so it can be a program name with args.
3739 set dummy
$ac_prog; ac_word
=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3745 if test -n "$ac_ct_CC"; then
3746 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3752 test -z "$as_dir" && as_dir
=.
3753 for ac_exec_ext
in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_ac_ct_CC
="$ac_prog"
3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3766 if test -n "$ac_ct_CC"; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3768 $as_echo "$ac_ct_CC" >&6; }
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3775 test -n "$ac_ct_CC" && break
3778 if test "x$ac_ct_CC" = x
; then
3781 case $cross_compiling:$ac_tool_warned in
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785 ac_tool_warned
=yes ;;
3794 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error
"no acceptable C compiler found in \$PATH
3797 See \`config.log' for more details." "$LINENO" 5; }
3799 # Provide some information about the compiler.
3800 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3803 for ac_option
in --version -v -V -qversion; do
3804 { { ac_try
="$ac_compiler $ac_option >&5"
3806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3813 if test -s conftest.err; then
3815 ... rest of stderr output deleted ...
3816 10q' conftest.err >conftest.er1
3817 cat conftest.er1 >&5
3818 rm -f conftest.er1 conftest.err
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3835 ac_clean_files_save=$ac_clean_files
3836 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3837 # Try to create an executable without -o first, disregard a.out.
3838 # It will help us diagnose broken compilers, and finding out an intuition
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3841 $as_echo_n "checking for C compiler default output file name... " >&6; }
3842 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3844 # The possible output files:
3845 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3848 for ac_file in $ac_files
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3852 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3857 if { { ac_try="$ac_link_default"
3859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3860 *) ac_try_echo
=$ac_try;;
3862 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863 $as_echo "$ac_try_echo"; } >&5
3864 (eval "$ac_link_default") 2>&5
3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }; then :
3868 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3869 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3870 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3871 # so that the user can short-circuit this test for compilers unknown to
3873 for ac_file
in $ac_files ''
3875 test -f "$ac_file" ||
continue
3877 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3880 # We found the default executable, but exeext='' is most
3884 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3886 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3888 # We set ac_cv_exeext here because the later test for it is not
3889 # safe: cross compilers may not add the suffix if given an `-o'
3890 # argument, so we may need to know it at that point already.
3891 # Even if this section looks crufty: it has the advantage of
3898 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3904 $as_echo "$ac_file" >&6; }
3905 if test -z "$ac_file"; then :
3906 $as_echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.
$ac_ext >&5
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 { as_fn_set_status
77
3912 as_fn_error
"C compiler cannot create executables
3913 See \`config.log' for more details." "$LINENO" 5; }; }
3915 ac_exeext
=$ac_cv_exeext
3917 # Check that the compiler produces executables we can run. If not, either
3918 # the compiler is broken, or we cross compile.
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3920 $as_echo_n "checking whether the C compiler works... " >&6; }
3921 # If not cross compiling, check that we can run a simple program.
3922 if test "$cross_compiling" != yes; then
3923 if { ac_try
='./$ac_file'
3924 { { case "(($ac_try" in
3925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 $as_echo "$ac_try_echo"; } >&5
3930 (eval "$ac_try") 2>&5
3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933 test $ac_status = 0; }; }; then
3936 if test "$cross_compiling" = maybe; then
3939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error "cannot run C compiled programs.
3942 If you meant to cross compile
, use \
`--host'.
3943 See \`config.log
' for more details." "$LINENO" 5; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3948 $as_echo "yes" >&6; }
3950 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3951 ac_clean_files=$ac_clean_files_save
3952 # Check that the compiler produces executables we can run. If not, either
3953 # the compiler is broken, or we cross compile.
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3955 $as_echo_n "checking whether we are cross compiling... " >&6; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3957 $as_echo "$cross_compiling" >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3960 $as_echo_n "checking for suffix of executables... " >&6; }
3961 if { { ac_try="$ac_link"
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_link") 2>&5
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; then :
3972 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3973 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3974 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3976 for ac_file
in conftest.exe conftest conftest.
*; do
3977 test -f "$ac_file" ||
continue
3979 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3980 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3989 See \`config.log' for more details." "$LINENO" 5; }
3991 rm -f conftest
$ac_cv_exeext
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3993 $as_echo "$ac_cv_exeext" >&6; }
3995 rm -f conftest.
$ac_ext
3996 EXEEXT
=$ac_cv_exeext
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3999 $as_echo_n "checking for suffix of object files... " >&6; }
4000 if test "${ac_cv_objext+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4014 rm -f conftest.o conftest.obj
4015 if { { ac_try
="$ac_compile"
4017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021 $as_echo "$ac_try_echo"; } >&5
4022 (eval "$ac_compile") 2>&5
4024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025 test $ac_status = 0; }; then :
4026 for ac_file in conftest.o conftest.obj conftest.*; do
4027 test -f "$ac_file" || continue;
4029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4035 $as_echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4040 as_fn_error "cannot compute suffix of object files
: cannot compile
4041 See \
`config.log' for more details." "$LINENO" 5; }
4043 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4046 $as_echo "$ac_cv_objext" >&6; }
4047 OBJEXT=$ac_cv_objext
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4050 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4051 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4068 if ac_fn_c_try_compile "$LINENO"; then :
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4078 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4079 if test $ac_compiler_gnu = yes; then
4084 ac_test_CFLAGS=${CFLAGS+set}
4085 ac_save_CFLAGS=$CFLAGS
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4087 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4088 if test "${ac_cv_prog_cc_g+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4091 ac_save_c_werror_flag=$ac_c_werror_flag
4092 ac_c_werror_flag=yes
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4106 if ac_fn_c_try_compile "$LINENO"; then :
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4121 if ac_fn_c_try_compile "$LINENO"; then :
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4137 if ac_fn_c_try_compile "$LINENO"; then :
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_c_werror_flag=$ac_save_c_werror_flag
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4148 $as_echo "$ac_cv_prog_cc_g" >&6; }
4149 if test "$ac_test_CFLAGS" = set; then
4150 CFLAGS=$ac_save_CFLAGS
4151 elif test $ac_cv_prog_cc_g = yes; then
4152 if test "$GCC" = yes; then
4158 if test "$GCC" = yes; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4165 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4166 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4169 ac_cv_prog_cc_c89=no
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4175 #include <sys/types.h>
4176 #include <sys/stat.h>
4177 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4178 struct buf { int x; };
4179 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4180 static char *e (p, i)
4186 static char *f (char * (*g) (char **, int), char **p, ...)
4191 s = g (p, va_arg (v,int));
4196 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4197 function prototypes and stuff, but not '\xHH' hex character constants.
4198 These don't provoke an error unfortunately, instead are silently treated
4199 as 'x'. The following induces an error, until -std is added to get
4200 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4201 array size at least. It's necessary to write '\x00'==0 to get something
4202 that's true only with -std. */
4203 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4205 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4206 inside strings and character constants. */
4208 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4210 int test (int i, double x);
4211 struct s1 {int (*f) (int a);};
4212 struct s2 {int (*f) (double a);};
4213 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4219 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4224 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4225 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4227 CC="$ac_save_CC $ac_arg"
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229 ac_cv_prog_cc_c89=$ac_arg
4231 rm -f core conftest.err conftest.$ac_objext
4232 test "x$ac_cv_prog_cc_c89" != "xno" && break
4234 rm -f conftest.$ac_ext
4239 case "x$ac_cv_prog_cc_c89" in
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4242 $as_echo "none needed" >&6; } ;;
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4245 $as_echo "unsupported" >&6; } ;;
4247 CC="$CC $ac_cv_prog_cc_c89"
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4249 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4251 if test "x$ac_cv_prog_cc_c89" != xno; then :
4256 ac_cpp='$CPP $CPPFLAGS'
4257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 if test "x$CC" != xcc; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4263 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4266 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4268 set dummy $CC; ac_cc=`$as_echo "$2" |
4269 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4270 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4271 $as_echo_n "(cached) " >&6
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4284 # Make sure it works both with $CC and with simple cc.
4285 # We do the test twice because some compilers refuse to overwrite an
4286 # existing .o file with -o, though they will create one.
4287 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4289 if { { case "(($ac_try" in
4290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4291 *) ac_try_echo
=$ac_try;;
4293 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_try") 2>&5
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; } &&
4299 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_try") 2>&5
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; };
4310 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4311 if test "x$CC" != xcc; then
4312 # Test first that cc exists at all.
4313 if { ac_try='cc -c conftest.$ac_ext >&5'
4314 { { case "(($ac_try" in
4315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4316 *) ac_try_echo
=$ac_try;;
4318 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4319 $as_echo "$ac_try_echo"; } >&5
4320 (eval "$ac_try") 2>&5
4322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4323 test $ac_status = 0; }; }; then
4324 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4326 if { { case "(($ac_try" in
4327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_try") 2>&5
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; } &&
4336 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4338 *) ac_try_echo
=$ac_try;;
4340 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4341 $as_echo "$ac_try_echo"; } >&5
4342 (eval "$ac_try") 2>&5
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; };
4350 # cc exists but doesn't like -o.
4351 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4356 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4358 rm -f core conftest
*
4361 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363 $as_echo "yes" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4368 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4372 # expand $ac_aux_dir to an absolute path
4373 am_aux_dir
=`cd $ac_aux_dir && pwd`
4375 # FIXME: we rely on the cache variable name because
4376 # there is no other way.
4378 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4379 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4380 if test "$am_t" != yes; then
4381 # Losing compiler, so override with the script.
4382 # FIXME: It is wrong to rewrite CC.
4383 # But if we don't then we get into trouble of one sort or another.
4384 # A longer-term fix would be to have automake use am__CC in this case,
4385 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4386 CC
="$am_aux_dir/compile $CC"
4391 ac_cpp
='$CXXCPP $CPPFLAGS'
4392 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4395 if test -z "$CXX"; then
4396 if test -n "$CCC"; then
4399 if test -n "$ac_tool_prefix"; then
4400 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4403 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_CXX+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$CXX"; then
4410 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir
=.
4417 for ac_exec_ext
in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 if test -n "$CXX"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4432 $as_echo "$CXX" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4439 test -n "$CXX" && break
4442 if test -z "$CXX"; then
4444 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4446 # Extract the first word of "$ac_prog", so it can be a program name with args.
4447 set dummy
$ac_prog; ac_word
=$2
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449 $as_echo_n "checking for $ac_word... " >&6; }
4450 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4453 if test -n "$ac_ct_CXX"; then
4454 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir
=.
4461 for ac_exec_ext
in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4474 if test -n "$ac_ct_CXX"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4476 $as_echo "$ac_ct_CXX" >&6; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4483 test -n "$ac_ct_CXX" && break
4486 if test "x$ac_ct_CXX" = x
; then
4489 case $cross_compiling:$ac_tool_warned in
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4493 ac_tool_warned
=yes ;;
4501 # Provide some information about the compiler.
4502 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4505 for ac_option
in --version -v -V -qversion; do
4506 { { ac_try
="$ac_compiler $ac_option >&5"
4508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512 $as_echo "$ac_try_echo"; } >&5
4513 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4515 if test -s conftest.err; then
4517 ... rest of stderr output deleted ...
4518 10q' conftest.err >conftest.er1
4519 cat conftest.er1 >&5
4520 rm -f conftest.er1 conftest.err
4522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4523 test $ac_status = 0; }
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4527 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4528 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4529 $as_echo_n "(cached) " >&6
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4545 if ac_fn_cxx_try_compile "$LINENO"; then :
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4555 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4556 if test $ac_compiler_gnu = yes; then
4561 ac_test_CXXFLAGS=${CXXFLAGS+set}
4562 ac_save_CXXFLAGS=$CXXFLAGS
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4564 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4565 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4568 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4569 ac_cxx_werror_flag=yes
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4583 if ac_fn_cxx_try_compile "$LINENO"; then :
4584 ac_cv_prog_cxx_g=yes
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4598 if ac_fn_cxx_try_compile "$LINENO"; then :
4601 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4614 if ac_fn_cxx_try_compile "$LINENO"; then :
4615 ac_cv_prog_cxx_g=yes
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4625 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4626 if test "$ac_test_CXXFLAGS" = set; then
4627 CXXFLAGS=$ac_save_CXXFLAGS
4628 elif test $ac_cv_prog_cxx_g = yes; then
4629 if test "$GXX" = yes; then
4635 if test "$GXX" = yes; then
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650 if test -n "$ac_tool_prefix"; then
4651 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4652 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4658 if test -n "$GNATBIND"; then
4659 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 GNATBIND=$ac_cv_prog_GNATBIND
4679 if test -n "$GNATBIND"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4681 $as_echo "$GNATBIND" >&6; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4689 if test -z "$ac_cv_prog_GNATBIND"; then
4690 ac_ct_GNATBIND=$GNATBIND
4691 # Extract the first word of "gnatbind", so it can be a program name with args.
4692 set dummy gnatbind; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4698 if test -n "$ac_ct_GNATBIND"; then
4699 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4719 if test -n "$ac_ct_GNATBIND"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4721 $as_echo "$ac_ct_GNATBIND" >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4727 if test "x$ac_ct_GNATBIND" = x; then
4730 case $cross_compiling:$ac_tool_warned in
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4734 ac_tool_warned=yes ;;
4736 GNATBIND=$ac_ct_GNATBIND
4739 GNATBIND="$ac_cv_prog_GNATBIND"
4742 if test -n "$ac_tool_prefix"; then
4743 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4744 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4750 if test -n "$GNATMAKE"; then
4751 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 GNATMAKE=$ac_cv_prog_GNATMAKE
4771 if test -n "$GNATMAKE"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4773 $as_echo "$GNATMAKE" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4781 if test -z "$ac_cv_prog_GNATMAKE"; then
4782 ac_ct_GNATMAKE=$GNATMAKE
4783 # Extract the first word of "gnatmake", so it can be a program name with args.
4784 set dummy gnatmake; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4790 if test -n "$ac_ct_GNATMAKE"; then
4791 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4811 if test -n "$ac_ct_GNATMAKE"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4813 $as_echo "$ac_ct_GNATMAKE" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4819 if test "x$ac_ct_GNATMAKE" = x; then
4822 case $cross_compiling:$ac_tool_warned in
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned=yes ;;
4828 GNATMAKE=$ac_ct_GNATMAKE
4831 GNATMAKE="$ac_cv_prog_GNATMAKE"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4835 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4836 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4839 cat >conftest.adb <<EOF
4840 procedure conftest is begin null; end conftest;
4842 acx_cv_cc_gcc_supports_ada=no
4843 # There is a bug in old released versions of GCC which causes the
4844 # driver to exit successfully when the appropriate language module
4845 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4846 # Therefore we must check for the error message as well as an
4847 # unsuccessful exit.
4848 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4849 # given a .adb file, but produce no object file. So we must check
4850 # if an object file was really produced to guard against this.
4851 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4852 if test x"$errors" = x && test -f conftest.$ac_objext; then
4853 acx_cv_cc_gcc_supports_ada=yes
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4858 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4860 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4867 # autoconf is lame and doesn't give us any substitution variable for this.
4868 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4869 NO_MINUS_C_MINUS_O=yes
4871 OUTPUT_OPTION='-o $@'
4876 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4877 # optimizations to be activated explicitly by the toplevel.
4879 */prev-gcc/xgcc*) ;;
4880 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4884 # -------------------------
4885 # Check C compiler features
4886 # -------------------------
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4895 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4896 # On Suns, sometimes $CPP names a directory.
4897 if test -n "$CPP" && test -d "$CPP"; then
4900 if test -z "$CPP"; then
4901 if test "${ac_cv_prog_CPP+set}" = set; then :
4902 $as_echo_n "(cached) " >&6
4904 # Double quotes because CPP needs to be expanded
4905 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4908 for ac_c_preproc_warn_flag in '' yes
4910 # Use a header file that comes with gcc, so configuring glibc
4911 # with a fresh cross-compiler works.
4912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913 # <limits.h> exists even on freestanding compilers.
4914 # On the NeXT, cc -E runs the code through the compiler's parser,
4915 # not just through cpp. "Syntax error" is here to catch this case.
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4919 # include <limits.h>
4921 # include <assert.h>
4925 if ac_fn_c_try_cpp "$LINENO"; then :
4928 # Broken: fails on valid input.
4931 rm -f conftest.err conftest.$ac_ext
4933 # OK, works on sane cases. Now check whether nonexistent headers
4934 # can be detected and how.
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h. */
4937 #include <ac_nonexistent.h>
4939 if ac_fn_c_try_cpp "$LINENO"; then :
4940 # Broken: success on invalid input.
4943 # Passes both tests.
4947 rm -f conftest.err conftest.$ac_ext
4950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4951 rm -f conftest.err conftest.
$ac_ext
4952 if $ac_preproc_ok; then :
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4965 $as_echo "$CPP" >&6; }
4967 for ac_c_preproc_warn_flag
in '' yes
4969 # Use a header file that comes with gcc, so configuring glibc
4970 # with a fresh cross-compiler works.
4971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4972 # <limits.h> exists even on freestanding compilers.
4973 # On the NeXT, cc -E runs the code through the compiler's parser,
4974 # not just through cpp. "Syntax error" is here to catch this case.
4975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4978 # include <limits.h>
4980 # include <assert.h>
4984 if ac_fn_c_try_cpp
"$LINENO"; then :
4987 # Broken: fails on valid input.
4990 rm -f conftest.err conftest.
$ac_ext
4992 # OK, works on sane cases. Now check whether nonexistent headers
4993 # can be detected and how.
4994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 #include <ac_nonexistent.h>
4998 if ac_fn_c_try_cpp
"$LINENO"; then :
4999 # Broken: success on invalid input.
5002 # Passes both tests.
5006 rm -f conftest.err conftest.
$ac_ext
5009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5010 rm -f conftest.err conftest.
$ac_ext
5011 if $ac_preproc_ok; then :
5014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5016 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5017 See \`config.log' for more details." "$LINENO" 5; }
5021 ac_cpp
='$CPP $CPPFLAGS'
5022 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5028 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5029 if test "${ac_cv_path_GREP+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5032 if test -z "$GREP"; then
5033 ac_path_GREP_found
=false
5034 # Loop through the user's path and test for each of PROGNAME-LIST
5035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5036 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5039 test -z "$as_dir" && as_dir
=.
5040 for ac_prog
in grep ggrep
; do
5041 for ac_exec_ext
in '' $ac_executable_extensions; do
5042 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5043 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5044 # Check for GNU ac_path_GREP and select it if it is found.
5045 # Check for GNU $ac_path_GREP
5046 case `"$ac_path_GREP" --version 2>&1` in
5048 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5051 $as_echo_n 0123456789 >"conftest.in"
5054 cat "conftest.in" "conftest.in" >"conftest.tmp"
5055 mv "conftest.tmp" "conftest.in"
5056 cp "conftest.in" "conftest.nl"
5057 $as_echo 'GREP' >> "conftest.nl"
5058 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5059 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5060 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5061 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5062 # Best one so far, save it but keep looking for a better one
5063 ac_cv_path_GREP
="$ac_path_GREP"
5064 ac_path_GREP_max
=$ac_count
5066 # 10*(2^10) chars as input seems more than enough
5067 test $ac_count -gt 10 && break
5069 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5072 $ac_path_GREP_found && break 3
5077 if test -z "$ac_cv_path_GREP"; then
5078 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5081 ac_cv_path_GREP
=$GREP
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5086 $as_echo "$ac_cv_path_GREP" >&6; }
5087 GREP
="$ac_cv_path_GREP"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5091 $as_echo_n "checking for egrep... " >&6; }
5092 if test "${ac_cv_path_EGREP+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
5095 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5096 then ac_cv_path_EGREP
="$GREP -E"
5098 if test -z "$EGREP"; then
5099 ac_path_EGREP_found
=false
5100 # Loop through the user's path and test for each of PROGNAME-LIST
5101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5102 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5105 test -z "$as_dir" && as_dir
=.
5106 for ac_prog
in egrep; do
5107 for ac_exec_ext
in '' $ac_executable_extensions; do
5108 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5109 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5110 # Check for GNU ac_path_EGREP and select it if it is found.
5111 # Check for GNU $ac_path_EGREP
5112 case `"$ac_path_EGREP" --version 2>&1` in
5114 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5117 $as_echo_n 0123456789 >"conftest.in"
5120 cat "conftest.in" "conftest.in" >"conftest.tmp"
5121 mv "conftest.tmp" "conftest.in"
5122 cp "conftest.in" "conftest.nl"
5123 $as_echo 'EGREP' >> "conftest.nl"
5124 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5125 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5126 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5127 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5128 # Best one so far, save it but keep looking for a better one
5129 ac_cv_path_EGREP
="$ac_path_EGREP"
5130 ac_path_EGREP_max
=$ac_count
5132 # 10*(2^10) chars as input seems more than enough
5133 test $ac_count -gt 10 && break
5135 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5138 $ac_path_EGREP_found && break 3
5143 if test -z "$ac_cv_path_EGREP"; then
5144 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5147 ac_cv_path_EGREP
=$EGREP
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5153 $as_echo "$ac_cv_path_EGREP" >&6; }
5154 EGREP
="$ac_cv_path_EGREP"
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5158 $as_echo_n "checking for ANSI C header files... " >&6; }
5159 if test "${ac_cv_header_stdc+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5177 if ac_fn_c_try_compile
"$LINENO"; then :
5178 ac_cv_header_stdc
=yes
5180 ac_cv_header_stdc
=no
5182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5184 if test $ac_cv_header_stdc = yes; then
5185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5192 $EGREP "memchr" >/dev
/null
2>&1; then :
5195 ac_cv_header_stdc
=no
5201 if test $ac_cv_header_stdc = yes; then
5202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "free" >/dev
/null
2>&1; then :
5212 ac_cv_header_stdc
=no
5218 if test $ac_cv_header_stdc = yes; then
5219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5220 if test "$cross_compiling" = yes; then :
5223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5227 #if ((' ' & 0x0FF) == 0x020)
5228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5231 # define ISLOWER(c) \
5232 (('a' <= (c) && (c) <= 'i') \
5233 || ('j' <= (c) && (c) <= 'r') \
5234 || ('s' <= (c) && (c) <= 'z'))
5235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5243 for (i = 0; i < 256; i++)
5244 if (XOR (islower (i), ISLOWER (i))
5245 || toupper (i) != TOUPPER (i))
5250 if ac_fn_c_try_run
"$LINENO"; then :
5253 ac_cv_header_stdc
=no
5255 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5256 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5262 $as_echo "$ac_cv_header_stdc" >&6; }
5263 if test $ac_cv_header_stdc = yes; then
5265 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5269 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5270 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5271 inttypes.h stdint.h unistd.h
5273 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5274 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5276 eval as_val
=\$
$as_ac_Header
5277 if test "x$as_val" = x
""yes; then :
5278 cat >>confdefs.h
<<_ACEOF
5279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5288 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5289 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5296 if test "$MINIX" = yes; then
5298 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5301 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5304 $as_echo "#define _MINIX 1" >>confdefs.h
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5310 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5311 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5317 # define __EXTENSIONS__ 1
5318 $ac_includes_default
5327 if ac_fn_c_try_compile
"$LINENO"; then :
5328 ac_cv_safe_to_define___extensions__
=yes
5330 ac_cv_safe_to_define___extensions__
=no
5332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5335 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5336 test $ac_cv_safe_to_define___extensions__ = yes &&
5337 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5339 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5341 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5343 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5345 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5349 ac_cpp
='$CPP $CPPFLAGS'
5350 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5354 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5355 # On Suns, sometimes $CPP names a directory.
5356 if test -n "$CPP" && test -d "$CPP"; then
5359 if test -z "$CPP"; then
5360 if test "${ac_cv_prog_CPP+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5363 # Double quotes because CPP needs to be expanded
5364 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5367 for ac_c_preproc_warn_flag
in '' yes
5369 # Use a header file that comes with gcc, so configuring glibc
5370 # with a fresh cross-compiler works.
5371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5372 # <limits.h> exists even on freestanding compilers.
5373 # On the NeXT, cc -E runs the code through the compiler's parser,
5374 # not just through cpp. "Syntax error" is here to catch this case.
5375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5378 # include <limits.h>
5380 # include <assert.h>
5384 if ac_fn_c_try_cpp
"$LINENO"; then :
5387 # Broken: fails on valid input.
5390 rm -f conftest.err conftest.
$ac_ext
5392 # OK, works on sane cases. Now check whether nonexistent headers
5393 # can be detected and how.
5394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 #include <ac_nonexistent.h>
5398 if ac_fn_c_try_cpp
"$LINENO"; then :
5399 # Broken: success on invalid input.
5402 # Passes both tests.
5406 rm -f conftest.err conftest.
$ac_ext
5409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410 rm -f conftest.err conftest.
$ac_ext
5411 if $ac_preproc_ok; then :
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5424 $as_echo "$CPP" >&6; }
5426 for ac_c_preproc_warn_flag
in '' yes
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431 # <limits.h> exists even on freestanding compilers.
5432 # On the NeXT, cc -E runs the code through the compiler's parser,
5433 # not just through cpp. "Syntax error" is here to catch this case.
5434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5437 # include <limits.h>
5439 # include <assert.h>
5443 if ac_fn_c_try_cpp
"$LINENO"; then :
5446 # Broken: fails on valid input.
5449 rm -f conftest.err conftest.
$ac_ext
5451 # OK, works on sane cases. Now check whether nonexistent headers
5452 # can be detected and how.
5453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455 #include <ac_nonexistent.h>
5457 if ac_fn_c_try_cpp
"$LINENO"; then :
5458 # Broken: success on invalid input.
5461 # Passes both tests.
5465 rm -f conftest.err conftest.
$ac_ext
5468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5469 rm -f conftest.err conftest.
$ac_ext
5470 if $ac_preproc_ok; then :
5473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5475 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5476 See \`config.log' for more details." "$LINENO" 5; }
5480 ac_cpp
='$CPP $CPPFLAGS'
5481 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5486 $as_echo_n "checking for inline... " >&6; }
5487 if test "${ac_cv_c_inline+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5491 for ac_kw
in inline __inline__ __inline
; do
5492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5496 static $ac_kw foo_t static_foo () {return 0; }
5497 $ac_kw foo_t foo () {return 0; }
5501 if ac_fn_c_try_compile
"$LINENO"; then :
5502 ac_cv_c_inline
=$ac_kw
5504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5505 test "$ac_cv_c_inline" != no
&& break
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5510 $as_echo "$ac_cv_c_inline" >&6; }
5512 case $ac_cv_c_inline in
5515 case $ac_cv_c_inline in
5517 *) ac_val
=$ac_cv_c_inline;;
5519 cat >>confdefs.h
<<_ACEOF
5521 #define inline $ac_val
5528 # Check whether --enable-largefile was given.
5529 if test "${enable_largefile+set}" = set; then :
5530 enableval
=$enable_largefile;
5533 if test "$enable_largefile" != no
; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5536 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5537 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5540 ac_cv_sys_largefile_CC
=no
5541 if test "$GCC" != yes; then
5544 # IRIX 6.2 and later do not support large files by default,
5545 # so use the C compiler's -n32 option if that helps.
5546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <sys/types.h>
5549 /* Check that off_t can represent 2**63 - 1 correctly.
5550 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5551 since some C++ compilers masquerading as C compilers
5552 incorrectly reject 9223372036854775807. */
5553 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5554 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5555 && LARGE_OFF_T % 2147483647 == 1)
5565 if ac_fn_c_try_compile
"$LINENO"; then :
5568 rm -f core conftest.err conftest.
$ac_objext
5570 if ac_fn_c_try_compile
"$LINENO"; then :
5571 ac_cv_sys_largefile_CC
=' -n32'; break
5573 rm -f core conftest.err conftest.
$ac_objext
5577 rm -f conftest.
$ac_ext
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5581 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5582 if test "$ac_cv_sys_largefile_CC" != no
; then
5583 CC
=$CC$ac_cv_sys_largefile_CC
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5587 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5588 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5589 $as_echo_n "(cached) " >&6
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <sys/types.h>
5595 /* Check that off_t can represent 2**63 - 1 correctly.
5596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5597 since some C++ compilers masquerading as C compilers
5598 incorrectly reject 9223372036854775807. */
5599 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5601 && LARGE_OFF_T % 2147483647 == 1)
5611 if ac_fn_c_try_compile
"$LINENO"; then :
5612 ac_cv_sys_file_offset_bits
=no
; break
5614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 #define _FILE_OFFSET_BITS 64
5618 #include <sys/types.h>
5619 /* Check that off_t can represent 2**63 - 1 correctly.
5620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5621 since some C++ compilers masquerading as C compilers
5622 incorrectly reject 9223372036854775807. */
5623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5625 && LARGE_OFF_T % 2147483647 == 1)
5635 if ac_fn_c_try_compile
"$LINENO"; then :
5636 ac_cv_sys_file_offset_bits
=64; break
5638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5639 ac_cv_sys_file_offset_bits
=unknown
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5644 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5645 case $ac_cv_sys_file_offset_bits in #(
5648 cat >>confdefs.h
<<_ACEOF
5649 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5654 if test $ac_cv_sys_file_offset_bits = unknown
; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5656 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5657 if test "${ac_cv_sys_large_files+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 #include <sys/types.h>
5664 /* Check that off_t can represent 2**63 - 1 correctly.
5665 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5666 since some C++ compilers masquerading as C compilers
5667 incorrectly reject 9223372036854775807. */
5668 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5669 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5670 && LARGE_OFF_T % 2147483647 == 1)
5680 if ac_fn_c_try_compile
"$LINENO"; then :
5681 ac_cv_sys_large_files
=no
; break
5683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 #define _LARGE_FILES 1
5687 #include <sys/types.h>
5688 /* Check that off_t can represent 2**63 - 1 correctly.
5689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5690 since some C++ compilers masquerading as C compilers
5691 incorrectly reject 9223372036854775807. */
5692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5694 && LARGE_OFF_T % 2147483647 == 1)
5704 if ac_fn_c_try_compile
"$LINENO"; then :
5705 ac_cv_sys_large_files
=1; break
5707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5708 ac_cv_sys_large_files
=unknown
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5713 $as_echo "$ac_cv_sys_large_files" >&6; }
5714 case $ac_cv_sys_large_files in #(
5717 cat >>confdefs.h
<<_ACEOF
5718 #define _LARGE_FILES $ac_cv_sys_large_files
5727 # sizeof(char) is 1 by definition.
5728 # The cast to long int works around a bug in the HP C Compiler
5729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5731 # This bug is HP SR number 8606223364.
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5733 $as_echo_n "checking size of void *... " >&6; }
5734 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5737 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5740 if test "$ac_cv_type_void_p" = yes; then
5741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5743 { as_fn_set_status
77
5744 as_fn_error
"cannot compute sizeof (void *)
5745 See \`config.log' for more details." "$LINENO" 5; }; }
5747 ac_cv_sizeof_void_p
=0
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5753 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5757 cat >>confdefs.h
<<_ACEOF
5758 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5762 # The cast to long int works around a bug in the HP C Compiler
5763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5765 # This bug is HP SR number 8606223364.
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5767 $as_echo_n "checking size of short... " >&6; }
5768 if test "${ac_cv_sizeof_short+set}" = set; then :
5769 $as_echo_n "(cached) " >&6
5771 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5774 if test "$ac_cv_type_short" = yes; then
5775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5777 { as_fn_set_status
77
5778 as_fn_error
"cannot compute sizeof (short)
5779 See \`config.log' for more details." "$LINENO" 5; }; }
5781 ac_cv_sizeof_short
=0
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5787 $as_echo "$ac_cv_sizeof_short" >&6; }
5791 cat >>confdefs.h
<<_ACEOF
5792 #define SIZEOF_SHORT $ac_cv_sizeof_short
5796 # The cast to long int works around a bug in the HP C Compiler
5797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5799 # This bug is HP SR number 8606223364.
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5801 $as_echo_n "checking size of int... " >&6; }
5802 if test "${ac_cv_sizeof_int+set}" = set; then :
5803 $as_echo_n "(cached) " >&6
5805 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5808 if test "$ac_cv_type_int" = yes; then
5809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5811 { as_fn_set_status
77
5812 as_fn_error
"cannot compute sizeof (int)
5813 See \`config.log' for more details." "$LINENO" 5; }; }
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5821 $as_echo "$ac_cv_sizeof_int" >&6; }
5825 cat >>confdefs.h
<<_ACEOF
5826 #define SIZEOF_INT $ac_cv_sizeof_int
5830 # The cast to long int works around a bug in the HP C Compiler
5831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5833 # This bug is HP SR number 8606223364.
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5835 $as_echo_n "checking size of long... " >&6; }
5836 if test "${ac_cv_sizeof_long+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5839 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5842 if test "$ac_cv_type_long" = yes; then
5843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5845 { as_fn_set_status
77
5846 as_fn_error
"cannot compute sizeof (long)
5847 See \`config.log' for more details." "$LINENO" 5; }; }
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5855 $as_echo "$ac_cv_sizeof_long" >&6; }
5859 cat >>confdefs.h
<<_ACEOF
5860 #define SIZEOF_LONG $ac_cv_sizeof_long
5864 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5865 if test "x$ac_cv_type_long_long" = x
""yes; then :
5867 cat >>confdefs.h
<<_ACEOF
5868 #define HAVE_LONG_LONG 1
5871 # The cast to long int works around a bug in the HP C Compiler
5872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5874 # This bug is HP SR number 8606223364.
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5876 $as_echo_n "checking size of long long... " >&6; }
5877 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5880 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5883 if test "$ac_cv_type_long_long" = yes; then
5884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5886 { as_fn_set_status
77
5887 as_fn_error
"cannot compute sizeof (long long)
5888 See \`config.log' for more details." "$LINENO" 5; }; }
5890 ac_cv_sizeof_long_long
=0
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5896 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5900 cat >>confdefs.h
<<_ACEOF
5901 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5907 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5908 if test "x$ac_cv_type___int64" = x
""yes; then :
5910 cat >>confdefs.h
<<_ACEOF
5911 #define HAVE___INT64 1
5914 # The cast to long int works around a bug in the HP C Compiler
5915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5917 # This bug is HP SR number 8606223364.
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5919 $as_echo_n "checking size of __int64... " >&6; }
5920 if test "${ac_cv_sizeof___int64+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5923 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5926 if test "$ac_cv_type___int64" = yes; then
5927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5929 { as_fn_set_status
77
5930 as_fn_error
"cannot compute sizeof (__int64)
5931 See \`config.log' for more details." "$LINENO" 5; }; }
5933 ac_cv_sizeof___int64
=0
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5939 $as_echo "$ac_cv_sizeof___int64" >&6; }
5943 cat >>confdefs.h
<<_ACEOF
5944 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5950 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5951 case $ac_cv_c_int8_t in #(
5955 cat >>confdefs.h
<<_ACEOF
5956 #define int8_t $ac_cv_c_int8_t
5961 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5962 case $ac_cv_c_int16_t in #(
5966 cat >>confdefs.h
<<_ACEOF
5967 #define int16_t $ac_cv_c_int16_t
5972 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5973 case $ac_cv_c_int32_t in #(
5977 cat >>confdefs.h
<<_ACEOF
5978 #define int32_t $ac_cv_c_int32_t
5983 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5984 case $ac_cv_c_int64_t in #(
5988 cat >>confdefs.h
<<_ACEOF
5989 #define int64_t $ac_cv_c_int64_t
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5996 $as_echo_n "checking for long long int... " >&6; }
5997 if test "${ac_cv_type_long_long_int+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
6000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6003 /* For now, do not test the preprocessor; as of 2007 there are too many
6004 implementations with broken preprocessors. Perhaps this can
6005 be revisited in 2012. In the meantime, code should not expect
6006 #if to work with literals wider than 32 bits. */
6007 /* Test literals. */
6008 long long int ll = 9223372036854775807ll;
6009 long long int nll = -9223372036854775807LL;
6010 unsigned long long int ull = 18446744073709551615ULL;
6011 /* Test constant expressions. */
6012 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6014 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6020 /* Test availability of runtime routines for shift and division. */
6021 long long int llmax = 9223372036854775807ll;
6022 unsigned long long int ullmax = 18446744073709551615ull;
6023 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6024 | (llmax / ll) | (llmax % ll)
6025 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6026 | (ullmax / ull) | (ullmax % ull));
6032 if ac_fn_c_try_link
"$LINENO"; then :
6033 if test "$cross_compiling" = yes; then :
6034 ac_cv_type_long_long_int
=yes
6036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6041 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6042 # define LLONG_MAX (HALF - 1 + HALF)
6047 long long int n = 1;
6051 long long int m = n << i;
6054 if (LLONG_MAX / 2 < m)
6062 if ac_fn_c_try_run
"$LINENO"; then :
6063 ac_cv_type_long_long_int
=yes
6065 ac_cv_type_long_long_int
=no
6067 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6068 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6072 ac_cv_type_long_long_int
=no
6074 rm -f core conftest.err conftest.
$ac_objext \
6075 conftest
$ac_exeext conftest.
$ac_ext
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6078 $as_echo "$ac_cv_type_long_long_int" >&6; }
6079 if test $ac_cv_type_long_long_int = yes; then
6081 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6087 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6088 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6090 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6093 test $ac_cv_type_long_long_int = yes \
6094 && ac_type
='long long int' \
6095 || ac_type
='long int'
6097 cat >>confdefs.h
<<_ACEOF
6098 #define intmax_t $ac_type
6105 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6106 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6108 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6111 for ac_type
in 'int' 'long int' 'long long int'; do
6112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 $ac_includes_default
6118 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6125 if ac_fn_c_try_compile
"$LINENO"; then :
6127 cat >>confdefs.h
<<_ACEOF
6128 #define intptr_t $ac_type
6133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6134 test -z "$ac_type" && break
6139 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6140 case $ac_cv_c_uint8_t in #(
6144 $as_echo "#define _UINT8_T 1" >>confdefs.h
6147 cat >>confdefs.h
<<_ACEOF
6148 #define uint8_t $ac_cv_c_uint8_t
6153 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6154 case $ac_cv_c_uint16_t in #(
6159 cat >>confdefs.h
<<_ACEOF
6160 #define uint16_t $ac_cv_c_uint16_t
6165 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6166 case $ac_cv_c_uint32_t in #(
6170 $as_echo "#define _UINT32_T 1" >>confdefs.h
6173 cat >>confdefs.h
<<_ACEOF
6174 #define uint32_t $ac_cv_c_uint32_t
6179 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6180 case $ac_cv_c_uint64_t in #(
6184 $as_echo "#define _UINT64_T 1" >>confdefs.h
6187 cat >>confdefs.h
<<_ACEOF
6188 #define uint64_t $ac_cv_c_uint64_t
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6195 $as_echo_n "checking for unsigned long long int... " >&6; }
6196 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6202 /* For now, do not test the preprocessor; as of 2007 there are too many
6203 implementations with broken preprocessors. Perhaps this can
6204 be revisited in 2012. In the meantime, code should not expect
6205 #if to work with literals wider than 32 bits. */
6206 /* Test literals. */
6207 long long int ll = 9223372036854775807ll;
6208 long long int nll = -9223372036854775807LL;
6209 unsigned long long int ull = 18446744073709551615ULL;
6210 /* Test constant expressions. */
6211 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6213 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6219 /* Test availability of runtime routines for shift and division. */
6220 long long int llmax = 9223372036854775807ll;
6221 unsigned long long int ullmax = 18446744073709551615ull;
6222 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6223 | (llmax / ll) | (llmax % ll)
6224 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6225 | (ullmax / ull) | (ullmax % ull));
6231 if ac_fn_c_try_link
"$LINENO"; then :
6232 ac_cv_type_unsigned_long_long_int
=yes
6234 ac_cv_type_unsigned_long_long_int
=no
6236 rm -f core conftest.err conftest.
$ac_objext \
6237 conftest
$ac_exeext conftest.
$ac_ext
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6240 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6241 if test $ac_cv_type_unsigned_long_long_int = yes; then
6243 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6249 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6250 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6252 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6255 test $ac_cv_type_unsigned_long_long_int = yes \
6256 && ac_type
='unsigned long long int' \
6257 || ac_type
='unsigned long int'
6259 cat >>confdefs.h
<<_ACEOF
6260 #define uintmax_t $ac_type
6267 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6268 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6270 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6273 for ac_type
in 'unsigned int' 'unsigned long int' \
6274 'unsigned long long int'; do
6275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 $ac_includes_default
6281 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6288 if ac_fn_c_try_compile
"$LINENO"; then :
6290 cat >>confdefs.h
<<_ACEOF
6291 #define uintptr_t $ac_type
6296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6297 test -z "$ac_type" && break
6315 # ---------------------
6316 # Warnings and checking
6317 # ---------------------
6319 # Check $CC warning features (if it's GCC).
6320 # We want to use -pedantic, but we don't want warnings about
6323 # * overlong strings
6324 # So, we only use -pedantic if we can disable those warnings.
6327 save_CFLAGS
="$CFLAGS"
6328 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6329 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6332 $as_echo_n "checking whether $CC supports $option... " >&6; }
6333 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6334 $as_echo_n "(cached) " >&6
6337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6348 if ac_fn_c_try_compile
"$LINENO"; then :
6349 eval "$as_acx_Woption=yes"
6351 eval "$as_acx_Woption=no"
6353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6356 eval ac_res
=\$
$as_acx_Woption
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6358 $as_echo "$ac_res" >&6; }
6359 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6360 loose_warn
="$loose_warn${loose_warn:+ }$option"
6363 CFLAGS
="$save_CFLAGS"
6366 save_CFLAGS
="$CFLAGS"
6367 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6368 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6371 $as_echo_n "checking whether $CC supports $option... " >&6; }
6372 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6373 $as_echo_n "(cached) " >&6
6376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6387 if ac_fn_c_try_compile
"$LINENO"; then :
6388 eval "$as_acx_Woption=yes"
6390 eval "$as_acx_Woption=no"
6392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6395 eval ac_res
=\$
$as_acx_Woption
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6397 $as_echo "$ac_res" >&6; }
6398 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6399 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6402 CFLAGS
="$save_CFLAGS"
6405 save_CFLAGS
="$CFLAGS"
6406 for option
in -Wmissing-format-attribute; do
6407 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6410 $as_echo_n "checking whether $CC supports $option... " >&6; }
6411 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6412 $as_echo_n "(cached) " >&6
6415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6426 if ac_fn_c_try_compile
"$LINENO"; then :
6427 eval "$as_acx_Woption=yes"
6429 eval "$as_acx_Woption=no"
6431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6434 eval ac_res
=\$
$as_acx_Woption
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6436 $as_echo "$ac_res" >&6; }
6437 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6438 strict_warn
="$strict_warn${strict_warn:+ }$option"
6441 CFLAGS
="$save_CFLAGS"
6444 save_CFLAGS
="$CFLAGS"
6445 for option
in -Wold-style-definition -Wc++-compat; do
6446 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6449 $as_echo_n "checking whether $CC supports $option... " >&6; }
6450 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6451 $as_echo_n "(cached) " >&6
6454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6465 if ac_fn_c_try_compile
"$LINENO"; then :
6466 eval "$as_acx_Woption=yes"
6468 eval "$as_acx_Woption=no"
6470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6473 eval ac_res
=\$
$as_acx_Woption
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6475 $as_echo "$ac_res" >&6; }
6476 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6477 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6480 CFLAGS
="$save_CFLAGS"
6482 if test "$GCC" = yes; then :
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6484 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6485 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6488 save_CFLAGS
="$CFLAGS"
6489 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6501 if ac_fn_c_try_compile
"$LINENO"; then :
6502 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6504 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6507 CFLAGS
="$save_CFLAGS"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6510 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6511 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6512 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6517 # Check whether --enable-werror-always was given.
6518 if test "${enable_werror_always+set}" = set; then :
6519 enableval
=$enable_werror_always;
6521 enable_werror_always
=no
6524 if test $enable_werror_always = yes; then :
6525 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6530 # The above macros do nothing if the compiler is not GCC. However, the
6531 # Makefile has more goo to add other flags, so these variables are used
6532 # to enable warnings only for GCC.
6535 if test "x$GCC" = "xyes"; then
6536 warn_cflags
='$(GCC_WARN_CFLAGS)'
6537 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6542 # Enable expensive internal checks
6544 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6548 # Check whether --enable-checking was given.
6549 if test "${enable_checking+set}" = set; then :
6550 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6553 # Determine the default checks.
6554 if test x
$is_release = x
; then
6555 ac_checking_flags
=yes
6557 ac_checking_flags
=release
6561 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6562 for check
in release
$ac_checking_flags
6565 # these set all the flags to specific states
6566 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6567 ac_fold_checking
= ; ac_gc_checking
=1 ;
6568 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6569 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6570 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6571 ac_types_checking
=1 ;;
6572 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6573 ac_fold_checking
= ; ac_gc_checking
= ;
6574 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6575 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6576 ac_tree_checking
= ; ac_valgrind_checking
= ;
6577 ac_types_checking
= ;;
6578 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6579 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6580 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6581 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6582 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6583 ac_types_checking
=1 ;;
6584 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6585 ac_fold_checking
= ; ac_gc_checking
= ;
6586 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6587 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6588 ac_tree_checking
= ; ac_valgrind_checking
= ;
6589 ac_types_checking
= ;;
6590 # these enable particular checks
6591 assert
) ac_assert_checking
=1 ;;
6592 df
) ac_df_checking
=1 ;;
6593 fold) ac_fold_checking
=1 ;;
6594 gc
) ac_gc_checking
=1 ;;
6595 gcac
) ac_gc_always_collect
=1 ;;
6596 gimple
) ac_gimple_checking
=1 ;;
6597 misc
) ac_checking
=1 ;;
6598 rtl
) ac_rtl_checking
=1 ;;
6599 rtlflag
) ac_rtlflag_checking
=1 ;;
6600 runtime
) ac_runtime_checking
=1 ;;
6601 tree
) ac_tree_checking
=1 ;;
6602 types
) ac_types_checking
=1 ;;
6603 valgrind
) ac_valgrind_checking
=1 ;;
6604 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6610 if test x
$ac_checking != x
; then
6612 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6614 nocommon_flag
=-fno-common
6617 if test x
$ac_df_checking != x
; then
6619 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6622 if test x
$ac_assert_checking != x
; then
6624 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6627 if test x
$ac_gimple_checking != x
; then
6629 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6633 if test x
$ac_runtime_checking != x
; then
6635 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6638 if test x
$ac_tree_checking != x
; then
6640 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6642 TREEBROWSER
=tree-browser.o
6644 if test x
$ac_types_checking != x
; then
6646 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6650 if test x
$ac_rtl_checking != x
; then
6652 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6655 if test x
$ac_rtlflag_checking != x
; then
6657 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6660 if test x
$ac_gc_checking != x
; then
6662 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6665 if test x
$ac_gc_always_collect != x
; then
6667 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6670 if test x
$ac_fold_checking != x
; then
6672 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6675 valgrind_path_defines
=
6678 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6679 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6687 if test x
$ac_valgrind_checking != x
; then
6688 # It is certainly possible that there's valgrind but no valgrind.h.
6689 # GCC relies on making annotations so we must have both.
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6691 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <valgrind/memcheck.h>
6695 #ifndef VALGRIND_DISCARD
6696 #error VALGRIND_DISCARD not defined
6699 if ac_fn_c_try_cpp
"$LINENO"; then :
6700 gcc_cv_header_valgrind_memcheck_h
=yes
6702 gcc_cv_header_valgrind_memcheck_h
=no
6704 rm -f conftest.err conftest.
$ac_ext
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6706 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6708 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6711 #include <memcheck.h>
6712 #ifndef VALGRIND_DISCARD
6713 #error VALGRIND_DISCARD not defined
6716 if ac_fn_c_try_cpp
"$LINENO"; then :
6717 gcc_cv_header_memcheck_h
=yes
6719 gcc_cv_header_memcheck_h
=no
6721 rm -f conftest.err conftest.
$ac_ext
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6723 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6725 # Prepare PATH_SEPARATOR.
6726 # The user is always right.
6727 if test "${PATH_SEPARATOR+set}" != set; then
6728 echo "#! /bin/sh" >conf$$.sh
6729 echo "exit 0" >>conf$$.sh
6731 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6739 # Find out how to test for executable files. Don't use a zero-byte file,
6740 # as systems may use methods other than mode bits to determine executability.
6741 cat >conf$$.
file <<_ASEOF
6745 chmod +x conf$$.
file
6746 if test -x conf$$.
file >/dev
/null
2>&1; then
6747 ac_executable_p
="test -x"
6749 ac_executable_p
="test -f"
6753 # Extract the first word of "valgrind", so it can be a program name with args.
6754 set dummy valgrind
; ac_word
=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6758 $as_echo_n "(cached) " >&6
6760 case "$valgrind_path" in
6762 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6765 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6766 for ac_dir
in $PATH; do
6768 test -z "$ac_dir" && ac_dir
=.
6769 for ac_exec_ext
in '' $ac_executable_extensions; do
6770 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6771 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6772 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6782 valgrind_path
="$ac_cv_path_valgrind_path"
6783 if test -n "$valgrind_path"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6785 $as_echo "$valgrind_path" >&6; }
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6791 if test "x$valgrind_path" = "x" \
6792 ||
(test $have_valgrind_h = no \
6793 && test $gcc_cv_header_memcheck_h = no \
6794 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6795 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6797 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6798 valgrind_command
="$valgrind_path -q"
6800 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6802 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6804 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6807 if test $gcc_cv_header_memcheck_h = yes; then
6809 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6816 # Enable code coverage collection
6817 # Check whether --enable-coverage was given.
6818 if test "${enable_coverage+set}" = set; then :
6819 enableval
=$enable_coverage; case "${enableval}" in
6821 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6824 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6827 # a.k.a. --disable-coverage
6831 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6840 # Check whether --enable-gather-detailed-mem-stats was given.
6841 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6842 enableval
=$enable_gather_detailed_mem_stats;
6844 enable_gather_detailed_mem_stats
=no
6847 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6849 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6853 # -------------------------------
6854 # Miscenalleous configure options
6855 # -------------------------------
6857 # See if we are building gcc with C++.
6858 # Check whether --enable-build-with-cxx was given.
6859 if test "${enable_build_with_cxx+set}" = set; then :
6860 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6862 ENABLE_BUILD_WITH_CXX
=no
6866 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6868 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6874 # Check whether --with-stabs was given.
6875 if test "${with_stabs+set}" = set; then :
6876 withval
=$with_stabs; stabs
="$with_stabs"
6882 # Determine whether or not multilibs are enabled.
6883 # Check whether --enable-multilib was given.
6884 if test "${enable_multilib+set}" = set; then :
6885 enableval
=$enable_multilib;
6892 # Enable __cxa_atexit for C++.
6893 # Check whether --enable-__cxa_atexit was given.
6894 if test "${enable___cxa_atexit+set}" = set; then :
6895 enableval
=$enable___cxa_atexit;
6899 # Enable C extension for decimal float if target supports it.
6901 # Check whether --enable-decimal-float was given.
6902 if test "${enable_decimal_float+set}" = set; then :
6903 enableval
=$enable_decimal_float;
6904 case $enable_decimal_float in
6905 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6906 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6907 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6913 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6914 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6916 enable_decimal_float
=yes
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6920 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6921 enable_decimal_float
=no
6928 # x86's use BID format instead of DPD
6929 case x
$enable_decimal_float in
6932 i?
86*-*-* | x86_64
*-*-*)
6933 enable_decimal_float
=bid
6936 enable_decimal_float
=dpd
6939 default_decimal_float
=$enable_decimal_float
6942 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6943 # dependency on libdecnumber.
6944 default_decimal_float
=dpd
6951 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6953 cat >>confdefs.h
<<_ACEOF
6954 #define ENABLE_DECIMAL_FLOAT $dfp
6958 # Use default_decimal_float for dependency.
6959 enable_decimal_float
=$default_decimal_float
6961 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6963 cat >>confdefs.h
<<_ACEOF
6964 #define ENABLE_DECIMAL_BID_FORMAT $bid
6968 # Enable C extension for fixed-point arithmetic.
6969 # Check whether --enable-fixed-point was given.
6970 if test "${enable_fixed_point+set}" = set; then :
6971 enableval
=$enable_fixed_point;
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6980 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6981 enable_fixed_point
=no
6984 enable_fixed_point
=yes
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6990 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6991 enable_fixed_point
=no
6999 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7001 cat >>confdefs.h
<<_ACEOF
7002 #define ENABLE_FIXED_POINT $fixedpoint
7007 # Pass with no value to take the default
7008 # Pass with a value to specify a thread package
7009 # Check whether --enable-threads was given.
7010 if test "${enable_threads+set}" = set; then :
7011 enableval
=$enable_threads;
7017 # Check whether --enable-tls was given.
7018 if test "${enable_tls+set}" = set; then :
7019 enableval
=$enable_tls;
7022 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7023 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7031 # Check whether --enable-objc-gc was given.
7032 if test "${enable_objc_gc+set}" = set; then :
7033 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7043 case ,${enable_languages}, in
7051 # Check whether --with-upc-pts was given.
7052 if test "${with_upc_pts+set}" = set; then :
7053 withval
=$with_upc_pts;
7056 upc_pts_rep
="packed"
7058 $as_echo "#define UPC_PTS_PACKED_REP 1" >>confdefs.h
7062 upc_pts_rep
="struct"
7064 $as_echo "#define UPC_PTS_STRUCT_REP 1" >>confdefs.h
7068 upc_pts_rep
="word_pair"
7070 $as_echo "#define UPC_PTS_WORD_PAIR_REP 1" >>confdefs.h
7073 *) as_fn_error
"$withval is an invalid option to --with-upc-pts" "$LINENO" 5
7079 if test -n "$lang_upc_enabled"; then
7080 upc_pts_rep
="packed"
7082 $as_echo "#define UPC_PTS_PACKED_REP 1" >>confdefs.h
7090 # Perl is required for checking pts representation
7091 # Extract the first word of "perl", so it can be a program name with args.
7092 set dummy perl
; ac_word
=$2
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094 $as_echo_n "checking for $ac_word... " >&6; }
7095 if test "${ac_cv_prog_PERL+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7098 if test -n "$PERL"; then
7099 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
7101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7105 test -z "$as_dir" && as_dir
=.
7106 for ac_exec_ext
in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7108 ac_cv_prog_PERL
="perl"
7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 PERL
=$ac_cv_prog_PERL
7119 if test -n "$PERL"; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7121 $as_echo "$PERL" >&6; }
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124 $as_echo "no" >&6; }
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC shared pointer address field position" >&5
7130 $as_echo_n "checking for UPC shared pointer address field position... " >&6; }
7132 # Check whether --with-upc-pts-vaddr-order was given.
7133 if test "${with_upc_pts_vaddr_order+set}" = set; then :
7134 withval
=$with_upc_pts_vaddr_order;
7135 upc_vaddr_order
="$withval"
7136 if test "$withval" != "last" &&
7137 test "$withval" != "first"; then
7138 as_fn_error
"$withval is an invalid option to --with-upc-pts-vaddr-order" "$LINENO" 5
7143 upc_vaddr_order
="first"
7148 cat >>confdefs.h
<<_ACEOF
7149 #define UPC_PTS_VADDR_FIRST `if test x"$upc_vaddr_order" = x"first"; then echo 1; else echo 0; fi`
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_vaddr_order" >&5
7154 $as_echo "$upc_vaddr_order" >&6; }
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared packed representation" >&5
7157 $as_echo_n "checking for UPC pointer-to-shared packed representation... " >&6; }
7159 # Check whether --with-upc-packed-bits was given.
7160 if test "${with_upc_packed_bits+set}" = set; then :
7161 withval
=$with_upc_packed_bits;
7162 if test x
"$upc_pts_rep" = x
"packed"; then
7163 upc_packed_bits
="$withval";
7165 UPC_PTS_PHASE_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/; print $1 if ($1+$2+$3 == 64) && $1>=1;'`
7166 UPC_MAX_BLOCK_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/; print 1<<$1;'`
7167 UPC_PTS_THREAD_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/; print $2 if ($1+$2+$3 == 64) && $2>=1;'`
7168 UPC_MAX_THREADS
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/; print 1<<$2;'`
7169 UPC_PTS_VADDR_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/; print $3 if ($1+$2+$3 == 64) && $3>=20;'`
7170 if test -z $UPC_PTS_PHASE_SIZE -o \
7171 -z $UPC_PTS_THREAD_SIZE -o \
7172 -z $UPC_PTS_VADDR_SIZE ; then
7173 as_fn_error
"--with-upc-packed-bits=phase,thread,vaddr requires phase+thread+vaddr=64 and phase >= 1 and thread >= 1 and vaddr >= 20" "$LINENO" 5
7176 as_fn_error
"--with-upc-packed-bits is only supported for packed pointer representation" "$LINENO" 5
7181 # GCC UPC packed pointer representation defaults.
7183 UPC_PTS_PHASE_SIZE
=16
7184 UPC_MAX_BLOCK_SIZE
=65536
7185 UPC_PTS_THREAD_SIZE
=12
7186 UPC_MAX_THREADS
=4096
7187 UPC_PTS_VADDR_SIZE
=36
7191 if test x
"$upc_pts_rep" = x
"packed"; then
7193 cat >>confdefs.h
<<_ACEOF
7194 #define UPC_PTS_SIZE $UPC_PTS_SIZE
7198 cat >>confdefs.h
<<_ACEOF
7199 #define UPC_PTS_PHASE_SIZE $UPC_PTS_PHASE_SIZE
7203 cat >>confdefs.h
<<_ACEOF
7204 #define UPC_PTS_THREAD_SIZE $UPC_PTS_THREAD_SIZE
7208 cat >>confdefs.h
<<_ACEOF
7209 #define UPC_PTS_VADDR_SIZE $UPC_PTS_VADDR_SIZE
7213 cat >>confdefs.h
<<_ACEOF
7214 #define UPC_MAX_BLOCK_SIZE $UPC_MAX_BLOCK_SIZE
7218 cat >>confdefs.h
<<_ACEOF
7219 #define UPC_MAX_THREADS $UPC_MAX_THREADS
7222 if test x
"$upc_vaddr_order" = x
"first"; then
7223 UPC_PTS_VADDR_SHIFT
=`(expr $UPC_PTS_THREAD_SIZE + $UPC_PTS_PHASE_SIZE)`
7224 UPC_PTS_THREAD_SHIFT
=`(expr $UPC_PTS_PHASE_SIZE)`
7225 UPC_PTS_PHASE_SHIFT
=0
7227 UPC_PTS_VADDR_SHIFT
=0
7228 UPC_PTS_THREAD_SHIFT
=`(expr $UPC_PTS_VADDR_SIZE)`
7229 UPC_PTS_PHASE_SHIFT
=`(expr $UPC_PTS_VADDR_SIZE+$UPC_PTS_THREAD_SIZE)`
7232 cat >>confdefs.h
<<_ACEOF
7233 #define UPC_PTS_VADDR_SHIFT $UPC_PTS_VADDR_SHIFT
7237 cat >>confdefs.h
<<_ACEOF
7238 #define UPC_PTS_THREAD_SHIFT $UPC_PTS_THREAD_SHIFT
7242 cat >>confdefs.h
<<_ACEOF
7243 #define UPC_PTS_PHASE_SHIFT $UPC_PTS_PHASE_SHIFT
7246 upc_pts_rep_res
="$UPC_PTS_PHASE_SIZE,$UPC_PTS_THREAD_SIZE,$UPC_PTS_VADDR_SIZE"
7248 upc_pts_rep_res
="not used (configured for struct)"
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_pts_rep_res" >&5
7251 $as_echo "$upc_pts_rep_res" >&6; }
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7254 $as_echo_n "checking for UPC link script support... " >&6; }
7255 # Check whether --enable-upc-link-script was given.
7256 if test "${enable_upc_link_script+set}" = set; then :
7257 enableval
=$enable_upc_link_script;
7261 as_fn_error
"--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7266 enable_upc_link_script
=no
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_link_script" >&5
7271 $as_echo "$enable_upc_link_script" >&6; }
7272 if test "$enable_upc_link_script" = yes; then
7274 $as_echo "#define HAVE_UPC_LINK_SCRIPT 1" >>confdefs.h
7279 # Check whether --with-dwarf2 was given.
7280 if test "${with_dwarf2+set}" = set; then :
7281 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7287 # Check whether --enable-shared was given.
7288 if test "${enable_shared+set}" = set; then :
7289 enableval
=$enable_shared;
7290 case $enable_shared in
7294 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7295 for pkg
in $enableval; do
7296 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7311 # Check whether --with-build-sysroot was given.
7312 if test "${with_build_sysroot+set}" = set; then :
7313 withval
=$with_build_sysroot;
7318 # Check whether --with-sysroot was given.
7319 if test "${with_sysroot+set}" = set; then :
7320 withval
=$with_sysroot;
7321 case ${with_sysroot} in
7322 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7323 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7326 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7327 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7329 if test "x$prefix" = xNONE
; then
7330 test_prefix
=/usr
/local
7334 if test "x$exec_prefix" = xNONE
; then
7335 test_exec_prefix
=$test_prefix
7337 test_exec_prefix
=$exec_prefix
7339 case ${TARGET_SYSTEM_ROOT} in
7340 "${test_prefix}"|
"${test_prefix}/"*|\
7341 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7342 '${prefix}'|
'${prefix}/'*|\
7343 '${exec_prefix}'|
'${exec_prefix}/'*)
7344 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7345 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7352 TARGET_SYSTEM_ROOT_DEFINE
=
7353 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7362 # Check whether --with-specs was given.
7363 if test "${with_specs+set}" = set; then :
7364 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7374 # Check whether --with-pkgversion was given.
7375 if test "${with_pkgversion+set}" = set; then :
7376 withval
=$with_pkgversion; case "$withval" in
7377 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7379 *) PKGVERSION
="($withval) " ;;
7390 # Check whether --with-bugurl was given.
7391 if test "${with_bugurl+set}" = set; then :
7392 withval
=$with_bugurl; case "$withval" in
7393 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7396 *) BUGURL
="$withval"
7400 BUGURL
="http://gccupc.org/bugs"
7410 REPORT_BUGS_TO
="<$BUGURL>"
7411 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7418 # Sanity check enable_languages in case someone does not run the toplevel
7419 # configure # script.
7420 # Check whether --enable-languages was given.
7421 if test "${enable_languages+set}" = set; then :
7422 enableval
=$enable_languages; case ,${enable_languages}, in
7424 # go safe -- we cannot be much sure without the toplevel
7426 # analysis of which target libs are present and usable
7430 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7435 enable_languages
=c
,${enable_languages}
7444 # Check whether --with-multilib-list was given.
7445 if test "${with_multilib_list+set}" = set; then :
7446 withval
=$with_multilib_list; :
7448 with_multilib_list
=default
7452 # -------------------------
7453 # Checks for other programs
7454 # -------------------------
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7457 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7459 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7460 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7461 $as_echo_n "(cached) " >&6
7463 cat >conftest.
make <<\_ACEOF
7466 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7468 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7469 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7471 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7473 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7477 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7479 $as_echo "yes" >&6; }
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 SET_MAKE
="MAKE=${MAKE-make}"
7488 # Find some useful tools
7489 for ac_prog
in gawk mawk nawk
awk
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy
$ac_prog; ac_word
=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if test "${ac_cv_prog_AWK+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7498 if test -n "$AWK"; then
7499 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir
=.
7506 for ac_exec_ext
in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_prog_AWK
="$ac_prog"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 if test -n "$AWK"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7521 $as_echo "$AWK" >&6; }
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7528 test -n "$AWK" && break
7531 # We need awk to create options.c and options.h.
7532 # Bail out if it's missing.
7534 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7538 $as_echo_n "checking whether ln -s works... " >&6; }
7539 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7542 rm -f conftestdata_t
7543 echo >conftestdata_f
7544 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7546 gcc_cv_prog_LN_S
="ln -s"
7548 if ln conftestdata_f conftestdata_t
2>/dev
/null
7552 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7554 gcc_cv_prog_LN_S
="cp -p"
7560 rm -f conftestdata_f conftestdata_t
7563 LN_S
="$gcc_cv_prog_LN_S"
7564 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7566 $as_echo "yes" >&6; }
7568 if test "$gcc_cv_prog_LN_S" = "ln"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7570 $as_echo "no, using ln" >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7573 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7578 $as_echo_n "checking whether ln works... " >&6; }
7579 if test "${acx_cv_prog_LN+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
7582 rm -f conftestdata_t
7583 echo >conftestdata_f
7584 if ln conftestdata_f conftestdata_t
2>/dev
/null
7590 rm -f conftestdata_f conftestdata_t
7593 if test $acx_cv_prog_LN = no
; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7596 $as_echo "no, using $LN" >&6; }
7598 LN
="$acx_cv_prog_LN"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7600 $as_echo "yes" >&6; }
7603 if test -n "$ac_tool_prefix"; then
7604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7605 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7611 if test -n "$RANLIB"; then
7612 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7618 test -z "$as_dir" && as_dir
=.
7619 for ac_exec_ext
in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 RANLIB
=$ac_cv_prog_RANLIB
7632 if test -n "$RANLIB"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7634 $as_echo "$RANLIB" >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7642 if test -z "$ac_cv_prog_RANLIB"; then
7643 ac_ct_RANLIB
=$RANLIB
7644 # Extract the first word of "ranlib", so it can be a program name with args.
7645 set dummy ranlib
; ac_word
=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7649 $as_echo_n "(cached) " >&6
7651 if test -n "$ac_ct_RANLIB"; then
7652 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir
=.
7659 for ac_exec_ext
in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7672 if test -n "$ac_ct_RANLIB"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7674 $as_echo "$ac_ct_RANLIB" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7680 if test "x$ac_ct_RANLIB" = x
; then
7683 case $cross_compiling:$ac_tool_warned in
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687 ac_tool_warned
=yes ;;
7689 RANLIB
=$ac_ct_RANLIB
7692 RANLIB
="$ac_cv_prog_RANLIB"
7697 # By default, the Darwin ranlib will not treat common symbols as
7698 # definitions when building the archive table of contents. Other
7699 # ranlibs do that; pass an option to the Darwin ranlib that makes
7700 # it behave similarly.
7708 # Find a good install program. We prefer a C program (faster),
7709 # so one script is as good as another. But avoid the broken or
7710 # incompatible versions:
7711 # SysV /etc/install, /usr/sbin/install
7712 # SunOS /usr/etc/install
7713 # IRIX /sbin/install
7715 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7716 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7717 # ./install, which can be erroneously created by make from ./install.sh.
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7719 $as_echo_n "checking for a BSD compatible install... " >&6; }
7720 if test -z "$INSTALL"; then
7721 if test "${ac_cv_path_install+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7724 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7725 for ac_dir
in $PATH; do
7726 # Account for people who put trailing slashes in PATH elements.
7728 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7730 # OSF1 and SCO ODT 3.0 have their own names for install.
7731 for ac_prog
in ginstall scoinst
install; do
7732 if test -f $ac_dir/$ac_prog; then
7733 if test $ac_prog = install &&
7734 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7735 # AIX install. It has an incompatible calling convention.
7736 # OSF/1 installbsd also uses dspmsg, but is usable.
7739 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7750 if test "${ac_cv_path_install+set}" = set; then
7751 INSTALL
="$ac_cv_path_install"
7753 # As a last resort, use the slow shell script. We don't cache a
7754 # path for INSTALL within a source directory, because that will
7755 # break other packages using the cache if that directory is
7756 # removed, or if the path is relative.
7757 INSTALL
="$ac_install_sh"
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7761 $as_echo "$INSTALL" >&6; }
7763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7764 # It thinks the first close brace ends the variable substitution.
7765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7767 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7770 # See if cmp has --ignore-initial.
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7772 $as_echo_n "checking for cmp's capabilities... " >&6; }
7773 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7778 gcc_cv_prog_cmp_skip
=slowcompare
7779 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7780 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7783 gcc_cv_prog_cmp_skip
=gnucompare
7786 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7787 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7788 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7791 gcc_cv_prog_cmp_skip
=fastcompare
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7799 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7800 make_compare_target
=$gcc_cv_prog_cmp_skip
7804 # See if we have the mktemp command.
7805 # Extract the first word of "mktemp", so it can be a program name with args.
7806 set dummy mktemp
; ac_word
=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7812 if test -n "$have_mktemp_command"; then
7813 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir
=.
7820 for ac_exec_ext
in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_prog_have_mktemp_command
="yes"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7833 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7834 if test -n "$have_mktemp_command"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7836 $as_echo "$have_mktemp_command" >&6; }
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7844 # See if makeinfo has been installed and is modern enough
7845 # that we can use it.
7847 # Extract the first word of "makeinfo", so it can be a program name with args.
7848 set dummy makeinfo
; ac_word
=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7854 if test -n "$MAKEINFO"; then
7855 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7861 test -z "$as_dir" && as_dir
=.
7862 for ac_exec_ext
in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_prog_MAKEINFO
="makeinfo"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 MAKEINFO
=$ac_cv_prog_MAKEINFO
7875 if test -n "$MAKEINFO"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7877 $as_echo "$MAKEINFO" >&6; }
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7884 if test -n "$MAKEINFO"; then
7885 # Found it, now check the version.
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7887 $as_echo_n "checking for modern makeinfo... " >&6; }
7888 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7891 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7892 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7894 case $ac_prog_version in
7895 '') gcc_cv_prog_makeinfo_modern
=no
;;
7896 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7897 *) gcc_cv_prog_makeinfo_modern
=no
;;
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7902 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7904 gcc_cv_prog_makeinfo_modern
=no
7906 if test $gcc_cv_prog_makeinfo_modern = no
; then
7907 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7910 if test $gcc_cv_prog_makeinfo_modern = no
; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7912 *** Makeinfo is missing or too old.
7913 *** Info documentation will not be built." >&5
7914 $as_echo "$as_me: WARNING:
7915 *** Makeinfo is missing or too old.
7916 *** Info documentation will not be built." >&2;}
7923 # Is pod2man recent enough to regenerate manpages?
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7925 $as_echo_n "checking for recent Pod::Man... " >&6; }
7926 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7928 $as_echo "yes" >&6; }
7929 GENERATED_MANPAGES
=generated-manpages
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7937 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7942 # Extract the first word of "$ac_prog", so it can be a program name with args.
7943 set dummy
$ac_prog; ac_word
=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if test "${ac_cv_prog_FLEX+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7949 if test -n "$FLEX"; then
7950 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7956 test -z "$as_dir" && as_dir
=.
7957 for ac_exec_ext
in '' $ac_executable_extensions; do
7958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7959 ac_cv_prog_FLEX
="$ac_prog"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 FLEX
=$ac_cv_prog_FLEX
7970 if test -n "$FLEX"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7972 $as_echo "$FLEX" >&6; }
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7979 test -n "$FLEX" && break
7981 test -n "$FLEX" || FLEX
="$MISSING flex"
7985 for ac_prog
in bison
7987 # Extract the first word of "$ac_prog", so it can be a program name with args.
7988 set dummy
$ac_prog; ac_word
=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if test "${ac_cv_prog_BISON+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7994 if test -n "$BISON"; then
7995 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8001 test -z "$as_dir" && as_dir
=.
8002 for ac_exec_ext
in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_prog_BISON
="$ac_prog"
8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 BISON
=$ac_cv_prog_BISON
8015 if test -n "$BISON"; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8017 $as_echo "$BISON" >&6; }
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8024 test -n "$BISON" && break
8026 test -n "$BISON" || BISON
="$MISSING bison"
8029 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8030 # check for build == host before using them.
8033 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8034 && test -d ..
/binutils
; then
8035 NM
='${objdir}/../binutils/nm-new'
8037 # Extract the first word of "nm", so it can be a program name with args.
8038 set dummy nm
; ac_word
=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if test "${ac_cv_prog_NM+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
8044 if test -n "$NM"; then
8045 ac_cv_prog_NM
="$NM" # Let the user override the test.
8047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8051 test -z "$as_dir" && as_dir
=.
8052 for ac_exec_ext
in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8066 if test -n "$NM"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8068 $as_echo "$NM" >&6; }
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8078 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8079 && test -d ..
/binutils
; then
8080 AR
='${objdir}/../binutils/ar'
8082 # Extract the first word of "ar", so it can be a program name with args.
8083 set dummy
ar; ac_word
=$2
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8085 $as_echo_n "checking for $ac_word... " >&6; }
8086 if test "${ac_cv_prog_AR+set}" = set; then :
8087 $as_echo_n "(cached) " >&6
8089 if test -n "$AR"; then
8090 ac_cv_prog_AR
="$AR" # Let the user override the test.
8092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8096 test -z "$as_dir" && as_dir
=.
8097 for ac_exec_ext
in '' $ac_executable_extensions; do
8098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8111 if test -n "$AR"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8113 $as_echo "$AR" >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8123 # --------------------
8124 # Checks for C headers
8125 # --------------------
8127 # Need to reject headers which give warnings, so that the -Werror bootstrap
8128 # works later. *sigh* This needs to come before all header checks.
8130 ac_c_preproc_warn_flag
=yes
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8133 $as_echo_n "checking for ANSI C header files... " >&6; }
8134 if test "${ac_cv_header_stdc+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8152 if ac_fn_c_try_compile
"$LINENO"; then :
8153 ac_cv_header_stdc
=yes
8155 ac_cv_header_stdc
=no
8157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8159 if test $ac_cv_header_stdc = yes; then
8160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8167 $EGREP "memchr" >/dev
/null
2>&1; then :
8170 ac_cv_header_stdc
=no
8176 if test $ac_cv_header_stdc = yes; then
8177 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8184 $EGREP "free" >/dev
/null
2>&1; then :
8187 ac_cv_header_stdc
=no
8193 if test $ac_cv_header_stdc = yes; then
8194 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8195 if test "$cross_compiling" = yes; then :
8198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8202 #if ((' ' & 0x0FF) == 0x020)
8203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8206 # define ISLOWER(c) \
8207 (('a' <= (c) && (c) <= 'i') \
8208 || ('j' <= (c) && (c) <= 'r') \
8209 || ('s' <= (c) && (c) <= 'z'))
8210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8218 for (i = 0; i < 256; i++)
8219 if (XOR (islower (i), ISLOWER (i))
8220 || toupper (i) != TOUPPER (i))
8225 if ac_fn_c_try_run
"$LINENO"; then :
8228 ac_cv_header_stdc
=no
8230 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8231 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8237 $as_echo "$ac_cv_header_stdc" >&6; }
8238 if test $ac_cv_header_stdc = yes; then
8240 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8245 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8246 if test "${ac_cv_header_time+set}" = set; then :
8247 $as_echo_n "(cached) " >&6
8249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8251 #include <sys/types.h>
8252 #include <sys/time.h>
8258 if ((struct tm *) 0)
8264 if ac_fn_c_try_compile
"$LINENO"; then :
8265 ac_cv_header_time
=yes
8267 ac_cv_header_time
=no
8269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8272 $as_echo "$ac_cv_header_time" >&6; }
8273 if test $ac_cv_header_time = yes; then
8275 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8280 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8281 if test "${gcc_cv_header_string+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
8284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8287 #include <strings.h>
8296 if ac_fn_c_try_compile
"$LINENO"; then :
8297 gcc_cv_header_string
=yes
8299 gcc_cv_header_string
=no
8301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8304 $as_echo "$gcc_cv_header_string" >&6; }
8305 if test $gcc_cv_header_string = yes; then
8307 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8312 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8313 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8318 #include <sys/types.h>
8319 #include <sys/wait.h>
8321 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8324 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8332 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8337 if ac_fn_c_try_compile
"$LINENO"; then :
8338 ac_cv_header_sys_wait_h
=yes
8340 ac_cv_header_sys_wait_h
=no
8342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8345 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8346 if test $ac_cv_header_sys_wait_h = yes; then
8348 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8352 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8353 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8354 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8355 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8357 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8358 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8359 eval as_val
=\$
$as_ac_Header
8360 if test "x$as_val" = x
""yes; then :
8361 cat >>confdefs.h
<<_ACEOF
8362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8369 # Check for thread headers.
8370 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8371 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8377 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8378 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8385 # These tests can't be done till we know if we have limits.h.
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8387 $as_echo_n "checking for CHAR_BIT... " >&6; }
8388 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8389 $as_echo_n "(cached) " >&6
8391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 #ifdef HAVE_LIMITS_H
8400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8401 $EGREP "found" >/dev
/null
2>&1; then :
8402 gcc_cv_decl_char_bit
=yes
8404 gcc_cv_decl_char_bit
=no
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8411 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8412 if test $gcc_cv_decl_char_bit = no
; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8414 $as_echo_n "checking number of bits in a byte... " >&6; }
8415 if test "${gcc_cv_c_nbby+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
8420 while test $i -lt 65; do
8421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8428 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8429 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8435 if ac_fn_c_try_compile
"$LINENO"; then :
8436 gcc_cv_c_nbby
=$i; break
8438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8441 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8445 $as_echo "$gcc_cv_c_nbby" >&6; }
8446 if test $gcc_cv_c_nbby = failed
; then
8447 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8450 cat >>confdefs.h
<<_ACEOF
8451 #define CHAR_BIT $gcc_cv_c_nbby
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8457 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8458 if test "${ac_cv_c_bigendian+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8461 ac_cv_c_bigendian
=unknown
8462 # See if we're dealing with a universal compiler.
8463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8465 #ifndef __APPLE_CC__
8466 not a universal capable compiler
8471 if ac_fn_c_try_compile
"$LINENO"; then :
8473 # Check for potential -arch flags. It is not universal unless
8474 # there are at least two -arch flags with different values.
8477 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8478 if test -n "$ac_prev"; then
8480 i?
86 | x86_64 | ppc | ppc64
)
8481 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8484 ac_cv_c_bigendian
=universal
8490 elif test "x$ac_word" = "x-arch"; then
8495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8496 if test $ac_cv_c_bigendian = unknown
; then
8497 # See if sys/param.h defines the BYTE_ORDER macro.
8498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500 #include <sys/types.h>
8501 #include <sys/param.h>
8506 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8507 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8516 if ac_fn_c_try_compile
"$LINENO"; then :
8517 # It does; now see whether it defined to BIG_ENDIAN or not.
8518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8520 #include <sys/types.h>
8521 #include <sys/param.h>
8526 #if BYTE_ORDER != BIG_ENDIAN
8534 if ac_fn_c_try_compile
"$LINENO"; then :
8535 ac_cv_c_bigendian
=yes
8537 ac_cv_c_bigendian
=no
8539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8543 if test $ac_cv_c_bigendian = unknown
; then
8544 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8552 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8560 if ac_fn_c_try_compile
"$LINENO"; then :
8561 # It does; now see whether it defined to _BIG_ENDIAN or not.
8562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8577 if ac_fn_c_try_compile
"$LINENO"; then :
8578 ac_cv_c_bigendian
=yes
8580 ac_cv_c_bigendian
=no
8582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8586 if test $ac_cv_c_bigendian = unknown
; then
8587 # Compile a test program.
8588 if test "$cross_compiling" = yes; then :
8589 # Try to guess by grepping values from an object file.
8590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 short int ascii_mm[] =
8593 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8594 short int ascii_ii[] =
8595 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8596 int use_ascii (int i) {
8597 return ascii_mm[i] + ascii_ii[i];
8599 short int ebcdic_ii[] =
8600 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8601 short int ebcdic_mm[] =
8602 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8603 int use_ebcdic (int i) {
8604 return ebcdic_mm[i] + ebcdic_ii[i];
8611 return use_ascii (foo) == use_ebcdic (foo);
8616 if ac_fn_c_try_compile
"$LINENO"; then :
8617 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8618 ac_cv_c_bigendian
=yes
8620 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8621 if test "$ac_cv_c_bigendian" = unknown
; then
8622 ac_cv_c_bigendian
=no
8624 # finding both strings is unlikely to happen, but who knows?
8625 ac_cv_c_bigendian
=unknown
8629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 $ac_includes_default
8638 /* Are we little or big endian? From Harbison&Steele. */
8642 char c[sizeof (long int)];
8645 return u.c[sizeof (long int) - 1] == 1;
8651 if ac_fn_c_try_run
"$LINENO"; then :
8652 ac_cv_c_bigendian
=no
8654 ac_cv_c_bigendian
=yes
8656 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8657 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8663 $as_echo "$ac_cv_c_bigendian" >&6; }
8664 case $ac_cv_c_bigendian in #(
8666 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8672 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8676 as_fn_error
"unknown endianness
8677 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8681 # ----------------------
8682 # Checks for C++ headers
8683 # ----------------------
8686 ac_cpp
='$CXXCPP $CPPFLAGS'
8687 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8688 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8689 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8691 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8692 if test -z "$CXXCPP"; then
8693 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8694 $as_echo_n "(cached) " >&6
8696 # Double quotes because CXXCPP needs to be expanded
8697 for CXXCPP
in "$CXX -E" "/lib/cpp"
8700 for ac_cxx_preproc_warn_flag
in '' yes
8702 # Use a header file that comes with gcc, so configuring glibc
8703 # with a fresh cross-compiler works.
8704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8705 # <limits.h> exists even on freestanding compilers.
8706 # On the NeXT, cc -E runs the code through the compiler's parser,
8707 # not just through cpp. "Syntax error" is here to catch this case.
8708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8711 # include <limits.h>
8713 # include <assert.h>
8717 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8720 # Broken: fails on valid input.
8723 rm -f conftest.err conftest.
$ac_ext
8725 # OK, works on sane cases. Now check whether nonexistent headers
8726 # can be detected and how.
8727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 #include <ac_nonexistent.h>
8731 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8732 # Broken: success on invalid input.
8735 # Passes both tests.
8739 rm -f conftest.err conftest.
$ac_ext
8742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8743 rm -f conftest.err conftest.
$ac_ext
8744 if $ac_preproc_ok; then :
8749 ac_cv_prog_CXXCPP
=$CXXCPP
8752 CXXCPP
=$ac_cv_prog_CXXCPP
8754 ac_cv_prog_CXXCPP
=$CXXCPP
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8757 $as_echo "$CXXCPP" >&6; }
8759 for ac_cxx_preproc_warn_flag
in '' yes
8761 # Use a header file that comes with gcc, so configuring glibc
8762 # with a fresh cross-compiler works.
8763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8764 # <limits.h> exists even on freestanding compilers.
8765 # On the NeXT, cc -E runs the code through the compiler's parser,
8766 # not just through cpp. "Syntax error" is here to catch this case.
8767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8770 # include <limits.h>
8772 # include <assert.h>
8776 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8779 # Broken: fails on valid input.
8782 rm -f conftest.err conftest.
$ac_ext
8784 # OK, works on sane cases. Now check whether nonexistent headers
8785 # can be detected and how.
8786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h. */
8788 #include <ac_nonexistent.h>
8790 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8791 # Broken: success on invalid input.
8794 # Passes both tests.
8798 rm -f conftest.err conftest.
$ac_ext
8801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8802 rm -f conftest.err conftest.
$ac_ext
8803 if $ac_preproc_ok; then :
8806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8809 See \`config.log' for more details." >&5
8810 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8811 See \`config.log' for more details." >&2;}; }
8815 ac_cpp
='$CPP $CPPFLAGS'
8816 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8817 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8818 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8822 ac_cpp
='$CXXCPP $CPPFLAGS'
8823 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8824 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8825 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8830 for ac_header
in unordered_map
8832 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8833 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8834 cat >>confdefs.h
<<_ACEOF
8835 #define HAVE_UNORDERED_MAP 1
8841 for ac_header
in tr1/unordered_map
8843 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8844 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8845 cat >>confdefs.h
<<_ACEOF
8846 #define HAVE_TR1_UNORDERED_MAP 1
8852 for ac_header
in ext
/hash_map
8854 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8855 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8856 cat >>confdefs.h
<<_ACEOF
8857 #define HAVE_EXT_HASH_MAP 1
8865 ac_cpp
='$CPP $CPPFLAGS'
8866 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8876 # These libraries may be used by collect2.
8877 # We may need a special search path to get them linked.
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8879 $as_echo_n "checking for collect2 libraries... " >&6; }
8880 if test "${gcc_cv_collect2_libs+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
8884 for libs
in '' -lld -lmld \
8885 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8886 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8892 /* Override any GCC internal prototype to avoid an error.
8893 Use char because int might match the return type of a GCC
8894 builtin and then its argument prototype would still apply. */
8907 if ac_fn_c_try_link
"$LINENO"; then :
8908 gcc_cv_collect2_libs
="$libs"; break
8910 rm -f core conftest.err conftest.
$ac_objext \
8911 conftest
$ac_exeext conftest.
$ac_ext
8914 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8917 $as_echo "$gcc_cv_collect2_libs" >&6; }
8918 case $gcc_cv_collect2_libs in
8920 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8924 # When building Ada code on Alpha, we need exc_resume which is usually in
8925 # -lexc. So test for it.
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8929 $as_echo_n "checking for library containing exc_resume... " >&6; }
8930 if test "${ac_cv_search_exc_resume+set}" = set; then :
8931 $as_echo_n "(cached) " >&6
8933 ac_func_search_save_LIBS
=$LIBS
8934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8937 /* Override any GCC internal prototype to avoid an error.
8938 Use char because int might match the return type of a GCC
8939 builtin and then its argument prototype would still apply. */
8947 return exc_resume ();
8952 for ac_lib
in '' exc
; do
8953 if test -z "$ac_lib"; then
8954 ac_res
="none required"
8957 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8959 if ac_fn_c_try_link
"$LINENO"; then :
8960 ac_cv_search_exc_resume
=$ac_res
8962 rm -f core conftest.err conftest.
$ac_objext \
8964 if test "${ac_cv_search_exc_resume+set}" = set; then :
8968 if test "${ac_cv_search_exc_resume+set}" = set; then :
8971 ac_cv_search_exc_resume
=no
8974 LIBS
=$ac_func_search_save_LIBS
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8977 $as_echo "$ac_cv_search_exc_resume" >&6; }
8978 ac_res
=$ac_cv_search_exc_resume
8979 if test "$ac_res" != no
; then :
8980 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8988 # Some systems put ldexp and frexp in libm instead of libc; assume
8989 # they're both in the same place. jcf-dump needs them.
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8993 $as_echo_n "checking for library containing ldexp... " >&6; }
8994 if test "${ac_cv_search_ldexp+set}" = set; then :
8995 $as_echo_n "(cached) " >&6
8997 ac_func_search_save_LIBS
=$LIBS
8998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9001 /* Override any GCC internal prototype to avoid an error.
9002 Use char because int might match the return type of a GCC
9003 builtin and then its argument prototype would still apply. */
9016 for ac_lib
in '' m
; do
9017 if test -z "$ac_lib"; then
9018 ac_res
="none required"
9021 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9023 if ac_fn_c_try_link
"$LINENO"; then :
9024 ac_cv_search_ldexp
=$ac_res
9026 rm -f core conftest.err conftest.
$ac_objext \
9028 if test "${ac_cv_search_ldexp+set}" = set; then :
9032 if test "${ac_cv_search_ldexp+set}" = set; then :
9035 ac_cv_search_ldexp
=no
9038 LIBS
=$ac_func_search_save_LIBS
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9041 $as_echo "$ac_cv_search_ldexp" >&6; }
9042 ac_res
=$ac_cv_search_ldexp
9043 if test "$ac_res" != no
; then :
9044 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9052 # Use <inttypes.h> only if it exists,
9053 # doesn't clash with <sys/types.h>, and declares intmax_t.
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9055 $as_echo_n "checking for inttypes.h... " >&6; }
9056 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9057 $as_echo_n "(cached) " >&6
9059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h. */
9061 #include <sys/types.h>
9062 #include <inttypes.h>
9071 if ac_fn_c_try_compile
"$LINENO"; then :
9072 gcc_cv_header_inttypes_h
=yes
9074 gcc_cv_header_inttypes_h
=no
9076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9080 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9081 if test $gcc_cv_header_inttypes_h = yes; then
9083 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9089 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9090 sysconf strsignal getrusage nl_langinfo \
9091 gettimeofday mbstowcs wcswidth mmap setlocale \
9092 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
9094 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9095 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9096 eval as_val
=\$
$as_ac_var
9097 if test "x$as_val" = x
""yes; then :
9098 cat >>confdefs.h
<<_ACEOF
9099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9106 if test x
$ac_cv_func_mbstowcs = xyes
; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9108 $as_echo_n "checking whether mbstowcs works... " >&6; }
9109 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9110 $as_echo_n "(cached) " >&6
9112 if test "$cross_compiling" = yes; then :
9113 gcc_cv_func_mbstowcs_works
=yes
9115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9124 if ac_fn_c_try_run
"$LINENO"; then :
9125 gcc_cv_func_mbstowcs_works
=yes
9127 gcc_cv_func_mbstowcs_works
=no
9129 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9130 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9135 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9136 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9138 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9143 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9144 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9148 cat >>confdefs.h
<<_ACEOF
9154 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9155 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9159 cat >>confdefs.h
<<_ACEOF
9160 #define caddr_t char *
9167 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9168 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9169 gcc_header_sys_mman_h
=yes
9171 gcc_header_sys_mman_h
=no
9174 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9175 if test "x$ac_cv_func_mmap" = x
""yes; then :
9181 if test "$gcc_header_sys_mman_h" != yes \
9182 ||
test "$gcc_func_mmap" != yes; then
9183 gcc_cv_func_mmap_file
=no
9184 gcc_cv_func_mmap_dev_zero
=no
9185 gcc_cv_func_mmap_anon
=no
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9188 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9189 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9190 $as_echo_n "(cached) " >&6
9192 # Add a system to this blacklist if
9193 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9194 # memory area containing the same data that you'd get if you applied
9195 # read() to the same fd. The only system known to have a problem here
9196 # is VMS, where text files have record structure.
9199 gcc_cv_func_mmap_file
=no
;;
9201 gcc_cv_func_mmap_file
=yes;;
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9205 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9207 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9208 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9209 $as_echo_n "(cached) " >&6
9211 # Add a system to this blacklist if it has mmap() but /dev/zero
9212 # does not exist, or if mmapping /dev/zero does not give anonymous
9213 # zeroed pages with both the following properties:
9214 # 1. If you map N consecutive pages in with one call, and then
9215 # unmap any subset of those pages, the pages that were not
9216 # explicitly unmapped remain accessible.
9217 # 2. If you map two adjacent blocks of memory and then unmap them
9218 # both at once, they must both go away.
9219 # Systems known to be in this category are Windows (all variants),
9222 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9223 gcc_cv_func_mmap_dev_zero
=no
;;
9225 gcc_cv_func_mmap_dev_zero
=yes;;
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9229 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9231 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9233 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9234 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9235 $as_echo_n "(cached) " >&6
9237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9238 /* end confdefs.h. */
9239 #include <sys/types.h>
9240 #include <sys/mman.h>
9243 #ifndef MAP_ANONYMOUS
9244 #define MAP_ANONYMOUS MAP_ANON
9250 int n = MAP_ANONYMOUS;
9255 if ac_fn_c_try_compile
"$LINENO"; then :
9256 gcc_cv_decl_map_anon
=yes
9258 gcc_cv_decl_map_anon
=no
9260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9263 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9265 if test $gcc_cv_decl_map_anon = no
; then
9266 gcc_cv_func_mmap_anon
=no
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9269 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9270 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9271 $as_echo_n "(cached) " >&6
9273 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9274 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9275 # doesn't give anonymous zeroed pages with the same properties listed
9276 # above for use of /dev/zero.
9277 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9279 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9280 gcc_cv_func_mmap_anon
=no
;;
9282 gcc_cv_func_mmap_anon
=yes;;
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9286 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9290 if test $gcc_cv_func_mmap_file = yes; then
9292 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9295 if test $gcc_cv_func_mmap_dev_zero = yes; then
9297 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9300 if test $gcc_cv_func_mmap_anon = yes; then
9302 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9309 # Under VMS, vfork works very differently than on Unix. The standard test
9310 # won't work, and it isn't easily adaptable. It makes more sense to
9312 ac_cv_func_vfork_works
=yes
9315 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9316 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9320 cat >>confdefs.h
<<_ACEOF
9326 for ac_header
in vfork.h
9328 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9329 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9330 cat >>confdefs.h
<<_ACEOF
9331 #define HAVE_VFORK_H 1
9337 for ac_func
in fork vfork
9339 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9340 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9341 eval as_val
=\$
$as_ac_var
9342 if test "x$as_val" = x
""yes; then :
9343 cat >>confdefs.h
<<_ACEOF
9344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9350 if test "x$ac_cv_func_fork" = xyes
; then
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9352 $as_echo_n "checking for working fork... " >&6; }
9353 if test "${ac_cv_func_fork_works+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9356 if test "$cross_compiling" = yes; then :
9357 ac_cv_func_fork_works
=cross
9359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361 $ac_includes_default
9366 /* By Ruediger Kuhlmann. */
9373 if ac_fn_c_try_run
"$LINENO"; then :
9374 ac_cv_func_fork_works
=yes
9376 ac_cv_func_fork_works
=no
9378 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9379 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9384 $as_echo "$ac_cv_func_fork_works" >&6; }
9387 ac_cv_func_fork_works
=$ac_cv_func_fork
9389 if test "x$ac_cv_func_fork_works" = xcross
; then
9391 *-*-amigaos* |
*-*-msdosdjgpp*)
9392 # Override, as these systems have only a dummy fork() stub
9393 ac_cv_func_fork_works
=no
9396 ac_cv_func_fork_works
=yes
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9400 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9402 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9403 if test "x$ac_cv_func_vfork" = xyes
; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9405 $as_echo_n "checking for working vfork... " >&6; }
9406 if test "${ac_cv_func_vfork_works+set}" = set; then :
9407 $as_echo_n "(cached) " >&6
9409 if test "$cross_compiling" = yes; then :
9410 ac_cv_func_vfork_works
=cross
9412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9414 /* Thanks to Paul Eggert for this test. */
9415 $ac_includes_default
9416 #include <sys/wait.h>
9420 /* On some sparc systems, changes by the child to local and incoming
9421 argument registers are propagated back to the parent. The compiler
9422 is told about this with #include <vfork.h>, but some compilers
9423 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9424 static variable whose address is put into a register that is
9425 clobbered by the vfork. */
9428 sparc_address_test (int arg)
9430 sparc_address_test (arg) int arg;
9451 pid_t parent = getpid ();
9454 sparc_address_test (0);
9459 /* Here is another test for sparc vfork register problems. This
9460 test uses lots of local variables, at least as many local
9461 variables as main has allocated so far including compiler
9462 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9463 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9464 reuse the register of parent for one of the local variables,
9465 since it will think that parent can't possibly be used any more
9466 in this routine. Assigning to the local variable will thus
9467 munge parent in the parent process. */
9469 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9470 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9471 /* Convince the compiler that p..p7 are live; otherwise, it might
9472 use the same hardware register for all 8 local variables. */
9473 if (p != p1 || p != p2 || p != p3 || p != p4
9474 || p != p5 || p != p6 || p != p7)
9477 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9478 from child file descriptors. If the child closes a descriptor
9479 before it execs or exits, this munges the parent's descriptor
9480 as well. Test for this by closing stdout in the child. */
9481 _exit(close(fileno(stdout)) != 0);
9486 while (wait(&status) != child)
9489 /* Was there some problem with vforking? */
9492 /* Did the child fail? (This shouldn't happen.) */
9495 /* Did the vfork/compiler bug occur? */
9496 || parent != getpid()
9498 /* Did the file descriptor bug occur? */
9499 || fstat(fileno(stdout), &st) != 0
9504 if ac_fn_c_try_run
"$LINENO"; then :
9505 ac_cv_func_vfork_works
=yes
9507 ac_cv_func_vfork_works
=no
9509 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9510 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9515 $as_echo "$ac_cv_func_vfork_works" >&6; }
9518 if test "x$ac_cv_func_fork_works" = xcross
; then
9519 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9521 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9524 if test "x$ac_cv_func_vfork_works" = xyes
; then
9526 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9530 $as_echo "#define vfork fork" >>confdefs.h
9533 if test "x$ac_cv_func_fork_works" = xyes
; then
9535 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9541 if test "X$prefix" = "XNONE"; then
9542 acl_final_prefix
="$ac_default_prefix"
9544 acl_final_prefix
="$prefix"
9546 if test "X$exec_prefix" = "XNONE"; then
9547 acl_final_exec_prefix
='${prefix}'
9549 acl_final_exec_prefix
="$exec_prefix"
9551 acl_save_prefix
="$prefix"
9552 prefix
="$acl_final_prefix"
9553 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9554 prefix
="$acl_save_prefix"
9557 # Check whether --with-gnu-ld was given.
9558 if test "${with_gnu_ld+set}" = set; then :
9559 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9564 # Prepare PATH_SEPARATOR.
9565 # The user is always right.
9566 if test "${PATH_SEPARATOR+set}" != set; then
9567 echo "#! /bin/sh" >conf$$.sh
9568 echo "exit 0" >>conf$$.sh
9570 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9578 if test "$GCC" = yes; then
9579 # Check if gcc -print-prog-name=ld gives a path.
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9581 $as_echo_n "checking for ld used by GCC... " >&6; }
9584 # gcc leaves a trailing carriage return which upsets mingw
9585 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9587 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9590 # Accept absolute paths.
9591 [\\/]* |
[A-Za-z
]:[\\/]*)
9592 re_direlt
='/[^/][^/]*/\.\./'
9593 # Canonicalize the path of ld
9594 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9595 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9596 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9598 test -z "$LD" && LD
="$ac_prog"
9601 # If it fails, then pretend we aren't using GCC.
9605 # If it is relative, then search for the first ld in PATH.
9609 elif test "$with_gnu_ld" = yes; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9611 $as_echo_n "checking for GNU ld... " >&6; }
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9614 $as_echo_n "checking for non-GNU ld... " >&6; }
9616 if test "${acl_cv_path_LD+set}" = set; then :
9617 $as_echo_n "(cached) " >&6
9619 if test -z "$LD"; then
9620 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9621 for ac_dir
in $PATH; do
9622 test -z "$ac_dir" && ac_dir
=.
9623 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9624 acl_cv_path_LD
="$ac_dir/$ac_prog"
9625 # Check to see if the program is GNU ld. I'd rather use --version,
9626 # but apparently some GNU ld's only accept -v.
9627 # Break only if it was the GNU/non-GNU ld that we prefer.
9628 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9629 test "$with_gnu_ld" != no
&& break
9631 test "$with_gnu_ld" != yes && break
9637 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9641 LD
="$acl_cv_path_LD"
9642 if test -n "$LD"; then
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9644 $as_echo "$LD" >&6; }
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9647 $as_echo "no" >&6; }
9649 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9651 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9652 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9653 $as_echo_n "(cached) " >&6
9655 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9656 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9657 acl_cv_prog_gnu_ld
=yes
9659 acl_cv_prog_gnu_ld
=no
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9663 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9664 with_gnu_ld
=$acl_cv_prog_gnu_ld
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9669 $as_echo_n "checking for shared library run path origin... " >&6; }
9670 if test "${acl_cv_rpath+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9674 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9675 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9682 $as_echo "$acl_cv_rpath" >&6; }
9684 libext
="$acl_cv_libext"
9685 shlibext
="$acl_cv_shlibext"
9686 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9687 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9688 hardcode_direct
="$acl_cv_hardcode_direct"
9689 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9690 # Check whether --enable-rpath was given.
9691 if test "${enable_rpath+set}" = set; then :
9692 enableval
=$enable_rpath; :
9706 acl_save_prefix
="$prefix"
9707 prefix
="$acl_final_prefix"
9708 acl_save_exec_prefix
="$exec_prefix"
9709 exec_prefix
="$acl_final_exec_prefix"
9711 eval additional_includedir
=\"$includedir\"
9712 eval additional_libdir
=\"$libdir\"
9714 exec_prefix
="$acl_save_exec_prefix"
9715 prefix
="$acl_save_prefix"
9718 # Check whether --with-libiconv-prefix was given.
9719 if test "${with_libiconv_prefix+set}" = set; then :
9720 withval
=$with_libiconv_prefix;
9721 if test "X$withval" = "Xno"; then
9724 if test "X$withval" = "X"; then
9726 acl_save_prefix
="$prefix"
9727 prefix
="$acl_final_prefix"
9728 acl_save_exec_prefix
="$exec_prefix"
9729 exec_prefix
="$acl_final_exec_prefix"
9731 eval additional_includedir
=\"$includedir\"
9732 eval additional_libdir
=\"$libdir\"
9734 exec_prefix
="$acl_save_exec_prefix"
9735 prefix
="$acl_save_prefix"
9738 additional_includedir
="$withval/include"
9739 additional_libdir
="$withval/lib"
9750 names_already_handled
=
9751 names_next_round
='iconv '
9752 while test -n "$names_next_round"; do
9753 names_this_round
="$names_next_round"
9755 for name
in $names_this_round; do
9757 for n
in $names_already_handled; do
9758 if test "$n" = "$name"; then
9763 if test -z "$already_handled"; then
9764 names_already_handled
="$names_already_handled $name"
9765 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9766 eval value
=\"\
$HAVE_LIB$uppername\"
9767 if test -n "$value"; then
9768 if test "$value" = yes; then
9769 eval value
=\"\
$LIB$uppername\"
9770 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9771 eval value
=\"\
$LTLIB$uppername\"
9772 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9781 if test $use_additional = yes; then
9782 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9783 found_dir
="$additional_libdir"
9784 found_so
="$additional_libdir/lib$name.$shlibext"
9785 if test -f "$additional_libdir/lib$name.la"; then
9786 found_la
="$additional_libdir/lib$name.la"
9789 if test -f "$additional_libdir/lib$name.$libext"; then
9790 found_dir
="$additional_libdir"
9791 found_a
="$additional_libdir/lib$name.$libext"
9792 if test -f "$additional_libdir/lib$name.la"; then
9793 found_la
="$additional_libdir/lib$name.la"
9798 if test "X$found_dir" = "X"; then
9799 for x
in $LDFLAGS $LTLIBICONV; do
9801 acl_save_prefix
="$prefix"
9802 prefix
="$acl_final_prefix"
9803 acl_save_exec_prefix
="$exec_prefix"
9804 exec_prefix
="$acl_final_exec_prefix"
9806 exec_prefix
="$acl_save_exec_prefix"
9807 prefix
="$acl_save_prefix"
9811 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9812 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9814 found_so
="$dir/lib$name.$shlibext"
9815 if test -f "$dir/lib$name.la"; then
9816 found_la
="$dir/lib$name.la"
9819 if test -f "$dir/lib$name.$libext"; then
9821 found_a
="$dir/lib$name.$libext"
9822 if test -f "$dir/lib$name.la"; then
9823 found_la
="$dir/lib$name.la"
9829 if test "X$found_dir" != "X"; then
9834 if test "X$found_dir" != "X"; then
9835 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9836 if test "X$found_so" != "X"; then
9837 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9838 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9841 for x
in $ltrpathdirs; do
9842 if test "X$x" = "X$found_dir"; then
9847 if test -z "$haveit"; then
9848 ltrpathdirs
="$ltrpathdirs $found_dir"
9850 if test "$hardcode_direct" = yes; then
9851 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9853 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9854 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9856 for x
in $rpathdirs; do
9857 if test "X$x" = "X$found_dir"; then
9862 if test -z "$haveit"; then
9863 rpathdirs
="$rpathdirs $found_dir"
9867 for x
in $LDFLAGS $LIBICONV; do
9869 acl_save_prefix
="$prefix"
9870 prefix
="$acl_final_prefix"
9871 acl_save_exec_prefix
="$exec_prefix"
9872 exec_prefix
="$acl_final_exec_prefix"
9874 exec_prefix
="$acl_save_exec_prefix"
9875 prefix
="$acl_save_prefix"
9877 if test "X$x" = "X-L$found_dir"; then
9882 if test -z "$haveit"; then
9883 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9885 if test "$hardcode_minus_L" != no
; then
9886 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9888 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9894 if test "X$found_a" != "X"; then
9895 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9897 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9900 additional_includedir
=
9901 case "$found_dir" in
9903 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9904 additional_includedir
="$basedir/include"
9907 if test "X$additional_includedir" != "X"; then
9908 if test "X$additional_includedir" != "X/usr/include"; then
9910 if test "X$additional_includedir" = "X/usr/local/include"; then
9911 if test -n "$GCC"; then
9913 linux
*) haveit
=yes;;
9917 if test -z "$haveit"; then
9918 for x
in $CPPFLAGS $INCICONV; do
9920 acl_save_prefix
="$prefix"
9921 prefix
="$acl_final_prefix"
9922 acl_save_exec_prefix
="$exec_prefix"
9923 exec_prefix
="$acl_final_exec_prefix"
9925 exec_prefix
="$acl_save_exec_prefix"
9926 prefix
="$acl_save_prefix"
9928 if test "X$x" = "X-I$additional_includedir"; then
9933 if test -z "$haveit"; then
9934 if test -d "$additional_includedir"; then
9935 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9941 if test -n "$found_la"; then
9942 save_libdir
="$libdir"
9944 */* |
*\\*) .
"$found_la" ;;
9945 *) .
"./$found_la" ;;
9947 libdir
="$save_libdir"
9948 for dep
in $dependency_libs; do
9951 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9952 if test "X$additional_libdir" != "X/usr/lib"; then
9954 if test "X$additional_libdir" = "X/usr/local/lib"; then
9955 if test -n "$GCC"; then
9957 linux
*) haveit
=yes;;
9961 if test -z "$haveit"; then
9963 for x
in $LDFLAGS $LIBICONV; do
9965 acl_save_prefix
="$prefix"
9966 prefix
="$acl_final_prefix"
9967 acl_save_exec_prefix
="$exec_prefix"
9968 exec_prefix
="$acl_final_exec_prefix"
9970 exec_prefix
="$acl_save_exec_prefix"
9971 prefix
="$acl_save_prefix"
9973 if test "X$x" = "X-L$additional_libdir"; then
9978 if test -z "$haveit"; then
9979 if test -d "$additional_libdir"; then
9980 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9984 for x
in $LDFLAGS $LTLIBICONV; do
9986 acl_save_prefix
="$prefix"
9987 prefix
="$acl_final_prefix"
9988 acl_save_exec_prefix
="$exec_prefix"
9989 exec_prefix
="$acl_final_exec_prefix"
9991 exec_prefix
="$acl_save_exec_prefix"
9992 prefix
="$acl_save_prefix"
9994 if test "X$x" = "X-L$additional_libdir"; then
9999 if test -z "$haveit"; then
10000 if test -d "$additional_libdir"; then
10001 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10008 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10009 if test "$enable_rpath" != no
; then
10011 for x
in $rpathdirs; do
10012 if test "X$x" = "X$dir"; then
10017 if test -z "$haveit"; then
10018 rpathdirs
="$rpathdirs $dir"
10021 for x
in $ltrpathdirs; do
10022 if test "X$x" = "X$dir"; then
10027 if test -z "$haveit"; then
10028 ltrpathdirs
="$ltrpathdirs $dir"
10033 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10036 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10039 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10040 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10046 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10047 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10053 if test "X$rpathdirs" != "X"; then
10054 if test -n "$hardcode_libdir_separator"; then
10056 for found_dir
in $rpathdirs; do
10057 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10059 acl_save_libdir
="$libdir"
10061 eval flag
=\"$hardcode_libdir_flag_spec\"
10062 libdir
="$acl_save_libdir"
10063 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10065 for found_dir
in $rpathdirs; do
10066 acl_save_libdir
="$libdir"
10067 libdir
="$found_dir"
10068 eval flag
=\"$hardcode_libdir_flag_spec\"
10069 libdir
="$acl_save_libdir"
10070 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10074 if test "X$ltrpathdirs" != "X"; then
10075 for found_dir
in $ltrpathdirs; do
10076 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10086 am_save_CPPFLAGS
="$CPPFLAGS"
10088 for element
in $INCICONV; do
10090 for x
in $CPPFLAGS; do
10092 acl_save_prefix
="$prefix"
10093 prefix
="$acl_final_prefix"
10094 acl_save_exec_prefix
="$exec_prefix"
10095 exec_prefix
="$acl_final_exec_prefix"
10097 exec_prefix
="$acl_save_exec_prefix"
10098 prefix
="$acl_save_prefix"
10100 if test "X$x" = "X$element"; then
10105 if test -z "$haveit"; then
10106 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10112 $as_echo_n "checking for iconv... " >&6; }
10113 if test "${am_cv_func_iconv+set}" = set; then :
10114 $as_echo_n "(cached) " >&6
10117 am_cv_func_iconv
="no, consider installing GNU libiconv"
10119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10121 #include <stdlib.h>
10126 iconv_t cd = iconv_open("","");
10127 iconv(cd,NULL,NULL,NULL,NULL);
10133 if ac_fn_c_try_link
"$LINENO"; then :
10134 am_cv_func_iconv
=yes
10136 rm -f core conftest.err conftest.
$ac_objext \
10137 conftest
$ac_exeext conftest.
$ac_ext
10138 if test "$am_cv_func_iconv" != yes; then
10139 am_save_LIBS
="$LIBS"
10140 LIBS
="$LIBS $LIBICONV"
10141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 #include <stdlib.h>
10148 iconv_t cd = iconv_open("","");
10149 iconv(cd,NULL,NULL,NULL,NULL);
10155 if ac_fn_c_try_link
"$LINENO"; then :
10156 am_cv_lib_iconv
=yes
10157 am_cv_func_iconv
=yes
10159 rm -f core conftest.err conftest.
$ac_objext \
10160 conftest
$ac_exeext conftest.
$ac_ext
10161 LIBS
="$am_save_LIBS"
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10166 $as_echo "$am_cv_func_iconv" >&6; }
10167 if test "$am_cv_func_iconv" = yes; then
10169 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10172 if test "$am_cv_lib_iconv" = yes; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10174 $as_echo_n "checking how to link with libiconv... " >&6; }
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10176 $as_echo "$LIBICONV" >&6; }
10178 CPPFLAGS
="$am_save_CPPFLAGS"
10185 if test "$am_cv_func_iconv" = yes; then
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10187 $as_echo_n "checking for iconv declaration... " >&6; }
10188 if test "${am_cv_proto_iconv+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h. */
10195 #include <stdlib.h>
10201 #if defined(__STDC__) || defined(__cplusplus)
10202 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10215 if ac_fn_c_try_compile
"$LINENO"; then :
10216 am_cv_proto_iconv_arg1
=""
10218 am_cv_proto_iconv_arg1
="const"
10220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10221 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);"
10224 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10226 }$am_cv_proto_iconv" >&5
10228 }$am_cv_proto_iconv" >&6; }
10230 cat >>confdefs.h
<<_ACEOF
10231 #define ICONV_CONST $am_cv_proto_iconv_arg1
10236 # Until we have in-tree GNU iconv:
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10242 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10243 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10244 $as_echo_n "(cached) " >&6
10246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10248 #include <locale.h>
10257 if ac_fn_c_try_link
"$LINENO"; then :
10258 am_cv_val_LC_MESSAGES
=yes
10260 am_cv_val_LC_MESSAGES
=no
10262 rm -f core conftest.err conftest.
$ac_objext \
10263 conftest
$ac_exeext conftest.
$ac_ext
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10266 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10267 if test $am_cv_val_LC_MESSAGES = yes; then
10269 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10276 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10277 if test "${am_cv_langinfo_codeset+set}" = set; then :
10278 $as_echo_n "(cached) " >&6
10280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 #include <langinfo.h>
10286 char* cs = nl_langinfo(CODESET);
10291 if ac_fn_c_try_link
"$LINENO"; then :
10292 am_cv_langinfo_codeset
=yes
10294 am_cv_langinfo_codeset
=no
10296 rm -f core conftest.err conftest.
$ac_objext \
10297 conftest
$ac_exeext conftest.
$ac_ext
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10301 $as_echo "$am_cv_langinfo_codeset" >&6; }
10302 if test $am_cv_langinfo_codeset = yes; then
10304 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10309 # We will need to find libiberty.h and ansidecl.h
10310 saved_CFLAGS
="$CFLAGS"
10311 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10312 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10313 strsignal strstr strverscmp \
10314 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10315 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
10317 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10319 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10320 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10321 $as_echo_n "(cached) " >&6
10323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10326 #define $ac_tr_decl 1
10328 #include "ansidecl.h"
10329 #include "system.h"
10335 char *(*pfn) = (char *(*)) $ac_func ;
10341 if ac_fn_c_try_compile
"$LINENO"; then :
10342 eval "gcc_cv_have_decl_$ac_func=yes"
10344 eval "gcc_cv_have_decl_$ac_func=no"
10346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10349 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10351 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10352 #define $ac_tr_decl 1
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10357 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10358 #define $ac_tr_decl 0
10366 for ac_func
in getrlimit setrlimit getrusage
10368 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10370 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10371 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10372 $as_echo_n "(cached) " >&6
10374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10377 #define $ac_tr_decl 1
10379 #include "ansidecl.h"
10380 #include "system.h"
10381 #ifdef HAVE_SYS_RESOURCE_H
10382 #include <sys/resource.h>
10390 char *(*pfn) = (char *(*)) $ac_func ;
10396 if ac_fn_c_try_compile
"$LINENO"; then :
10397 eval "gcc_cv_have_decl_$ac_func=yes"
10399 eval "gcc_cv_have_decl_$ac_func=no"
10401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10404 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10406 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10407 #define $ac_tr_decl 1
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10413 #define $ac_tr_decl 0
10421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10424 #include "ansidecl.h"
10425 #include "system.h"
10426 #ifdef HAVE_SYS_RESOURCE_H
10427 #include <sys/resource.h>
10438 if ac_fn_c_try_compile
"$LINENO"; then :
10442 $as_echo "#define rlim_t long" >>confdefs.h
10445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10447 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10448 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10449 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10450 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10451 for ac_func
in ldgetname
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_LDFCN_H
10477 char *(*pfn) = (char *(*)) $ac_func ;
10483 if ac_fn_c_try_compile
"$LINENO"; then :
10484 eval "gcc_cv_have_decl_$ac_func=yes"
10486 eval "gcc_cv_have_decl_$ac_func=no"
10488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10491 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10493 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10494 #define $ac_tr_decl 1
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10500 #define $ac_tr_decl 0
10508 for ac_func
in times
10510 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10512 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10513 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10514 $as_echo_n "(cached) " >&6
10516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10519 #define $ac_tr_decl 1
10521 #include "ansidecl.h"
10522 #include "system.h"
10523 #ifdef HAVE_SYS_TIMES_H
10524 #include <sys/times.h>
10532 char *(*pfn) = (char *(*)) $ac_func ;
10538 if ac_fn_c_try_compile
"$LINENO"; then :
10539 eval "gcc_cv_have_decl_$ac_func=yes"
10541 eval "gcc_cv_have_decl_$ac_func=no"
10543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10546 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10548 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10549 #define $ac_tr_decl 1
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10555 #define $ac_tr_decl 0
10563 for ac_func
in sigaltstack
10565 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10567 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10568 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10569 $as_echo_n "(cached) " >&6
10571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10574 #define $ac_tr_decl 1
10576 #include "ansidecl.h"
10577 #include "system.h"
10578 #include <signal.h>
10585 char *(*pfn) = (char *(*)) $ac_func ;
10591 if ac_fn_c_try_compile
"$LINENO"; then :
10592 eval "gcc_cv_have_decl_$ac_func=yes"
10594 eval "gcc_cv_have_decl_$ac_func=no"
10596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10599 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10601 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10602 #define $ac_tr_decl 1
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10608 #define $ac_tr_decl 0
10616 # More time-related stuff.
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10618 $as_echo_n "checking for struct tms... " >&6; }
10619 if test "${ac_cv_struct_tms+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
10623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10626 #include "ansidecl.h"
10627 #include "system.h"
10628 #ifdef HAVE_SYS_TIMES_H
10629 #include <sys/times.h>
10640 if ac_fn_c_try_compile
"$LINENO"; then :
10641 ac_cv_struct_tms
=yes
10643 ac_cv_struct_tms
=no
10645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10648 $as_echo "$ac_cv_struct_tms" >&6; }
10649 if test $ac_cv_struct_tms = yes; then
10651 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10655 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10656 # revisit after autoconf 2.50.
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10658 $as_echo_n "checking for clock_t... " >&6; }
10659 if test "${gcc_cv_type_clock_t+set}" = set; then :
10660 $as_echo_n "(cached) " >&6
10663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10666 #include "ansidecl.h"
10667 #include "system.h"
10677 if ac_fn_c_try_compile
"$LINENO"; then :
10678 gcc_cv_type_clock_t
=yes
10680 gcc_cv_type_clock_t
=no
10682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10685 $as_echo "$gcc_cv_type_clock_t" >&6; }
10686 if test $gcc_cv_type_clock_t = yes; then
10688 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10692 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10693 CFLAGS
="$saved_CFLAGS"
10695 # Check whether --enable-initfini-array was given.
10696 if test "${enable_initfini_array+set}" = set; then :
10697 enableval
=$enable_initfini_array;
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10701 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10702 if test "${gcc_cv_initfini_array+set}" = set; then :
10703 $as_echo_n "(cached) " >&6
10705 if test "$cross_compiling" = yes; then :
10706 gcc_cv_initfini_array
=no
10708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10712 int main (void) { return x; }
10713 int foo (void) { x = 0; }
10714 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10716 if ac_fn_c_try_run
"$LINENO"; then :
10717 gcc_cv_initfini_array
=yes
10719 gcc_cv_initfini_array
=no
10721 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10722 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10727 $as_echo "$gcc_cv_initfini_array" >&6; }
10728 enable_initfini_array
=$gcc_cv_initfini_array
10732 if test $enable_initfini_array = yes; then
10734 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10738 # mkdir takes a single argument on some systems.
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10740 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10741 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10742 $as_echo_n "(cached) " >&6
10744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10747 #include <sys/types.h>
10748 #ifdef HAVE_SYS_STAT_H
10749 # include <sys/stat.h>
10751 #ifdef HAVE_UNISTD_H
10752 # include <unistd.h>
10754 #ifdef HAVE_DIRECT_H
10755 # include <direct.h>
10765 if ac_fn_c_try_compile
"$LINENO"; then :
10766 gcc_cv_mkdir_takes_one_arg
=no
10768 gcc_cv_mkdir_takes_one_arg
=yes
10770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10773 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10774 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10776 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10787 # With Setjmp/Longjmp based exception handling.
10788 # Check whether --enable-sjlj-exceptions was given.
10789 if test "${enable_sjlj_exceptions+set}" = set; then :
10790 enableval
=$enable_sjlj_exceptions; case $target in
10792 if test $enableval != yes; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10794 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10799 force_sjlj_exceptions
=yes
10803 force_sjlj_exceptions
=yes
10807 force_sjlj_exceptions
=no
10812 if test $force_sjlj_exceptions = yes; then
10813 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10815 cat >>confdefs.h
<<_ACEOF
10816 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10821 # For platforms with the unwind ABI which includes an unwind library,
10822 # libunwind, we can choose to use the system libunwind.
10823 # config.gcc also contains tests of with_system_libunwind.
10826 # Check whether --with-system-libunwind was given.
10827 if test "${with_system_libunwind+set}" = set; then :
10828 withval
=$with_system_libunwind;
10831 # If system-libunwind was not specifically set, pick a default setting.
10832 if test x
$with_system_libunwind = x
; then
10834 ia64-
*-hpux*) with_system_libunwind
=yes ;;
10835 *) with_system_libunwind
=no
;;
10838 # Based on system-libunwind and target, do we have ipinfo?
10839 if test x
$with_system_libunwind = xyes
; then
10841 ia64-
*-*) have_unwind_getipinfo
=no
;;
10842 *) have_unwind_getipinfo
=yes ;;
10845 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10848 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
10849 *) have_unwind_getipinfo
=yes ;;
10854 if test x
$have_unwind_getipinfo = xyes
; then
10856 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10861 # --------------------------------------------------------
10862 # Build, host, and target specific configuration fragments
10863 # --------------------------------------------------------
10865 # Collect build-machine-specific information.
10866 .
${srcdir}/config.build
10868 # Collect host-machine-specific information.
10869 .
${srcdir}/config.
host
10873 # Collect target-machine-specific information.
10874 .
${srcdir}/config.gcc
10876 extra_objs
="${host_extra_objs} ${extra_objs}"
10877 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10879 # Default the target-machine variables that were not explicitly set.
10880 if test x
"$tm_file" = x
10881 then tm_file
=$cpu_type/$cpu_type.h
; fi
10883 if test x
"$extra_headers" = x
10884 then extra_headers
=; fi
10886 if test x
$md_file = x
10887 then md_file
=$cpu_type/$cpu_type.md
; fi
10889 if test x
$out_file = x
10890 then out_file
=$cpu_type/$cpu_type.c
; fi
10892 if test x
"$tmake_file" = x
10893 then tmake_file
=$cpu_type/t-
$cpu_type
10896 if test x
"$dwarf2" = xyes
10897 then tm_file
="$tm_file tm-dwarf2.h"
10900 # Say what files are being used for the output code and MD file.
10901 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10902 echo "Using \`$srcdir/config/$md_file' as machine description file."
10904 # If any of the xm_file variables contain nonexistent files, warn
10905 # about them and drop them.
10908 for x
in $build_xm_file; do
10909 if test -f $srcdir/config
/$x
10911 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10912 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10915 build_xm_file
="$bx"
10918 for x
in $host_xm_file; do
10919 if test -f $srcdir/config
/$x
10921 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10922 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10928 for x
in $xm_file; do
10929 if test -f $srcdir/config
/$x
10931 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10932 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10938 for f
in $tm_file; do
10941 if test $count = ax
; then
10942 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10944 echo "Using the following target machine macro files:"
10945 for f
in $tm_file; do
10946 echo " $srcdir/config/$f"
10950 if test x
$need_64bit_hwint = xyes
; then
10952 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10956 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10958 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10963 for f
in $host_xm_file; do
10966 if test $count = a
; then
10968 elif test $count = ax
; then
10969 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10971 echo "Using the following host machine macro files:"
10972 for f
in $host_xm_file; do
10973 echo " $srcdir/config/$f"
10976 echo "Using ${out_host_hook_obj} for host machine hooks."
10978 if test "$host_xm_file" != "$build_xm_file"; then
10980 for f
in $build_xm_file; do
10983 if test $count = a
; then
10985 elif test $count = ax
; then
10986 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10988 echo "Using the following build machine macro files:"
10989 for f
in $build_xm_file; do
10990 echo " $srcdir/config/$f"
10996 powerpc
*-*-darwin*)
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10998 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10999 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11000 $as_echo_n "(cached) " >&6
11002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h. */
11005 #include <sys/cdefs.h>
11006 #include <sys/signal.h>
11007 #include <ucontext.h>
11008 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11011 if ac_fn_c_try_compile
"$LINENO"; then :
11012 gcc_cv_mcontext_underscores
=no
11014 gcc_cv_mcontext_underscores
=yes
11016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11019 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11020 if test $gcc_cv_mcontext_underscores = yes; then
11022 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11032 # Check if a valid thread package
11033 case ${enable_threads} in
11036 target_thread_file
='single'
11040 target_thread_file
='single'
11042 aix | dce | gnat | irix | posix | posix95 | rtems | \
11043 single | vxworks | win32 | mipssde
)
11044 target_thread_file
=${enable_threads}
11047 echo "${enable_threads} is an unknown thread package" 1>&2
11052 if test x
${thread_file} = x
; then
11053 # No thread file set by target-specific clauses in config.gcc,
11054 # so use file chosen by default logic above
11055 thread_file
=${target_thread_file}
11058 # Make gthr-default.h if we have a thread file.
11060 if test $thread_file != single
; then
11061 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11062 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
11063 rm -f gthr-default.h-t
11065 mv -f gthr-default.h-t gthr-default.h
11067 gthread_flags
=-DHAVE_GTHR_DEFAULT
11076 if test x
$enable___cxa_atexit = xyes || \
11077 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11078 if test x
$host = x
$target; then
11080 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11081 # keyed to flag_use_cxa_atexit
11086 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11087 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11090 echo "__cxa_atexit can't be enabled on this target"
11096 # We can't check for __cxa_atexit when building a cross, so assume
11100 if test x
$use_cxa_atexit = xyes
; then
11102 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11107 # Look for a file containing extra machine modes.
11108 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11109 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11112 cat >>confdefs.h
<<_ACEOF
11113 #define EXTRA_MODES_FILE "config/$extra_modes"
11118 # Convert extra_options into a form suitable for Makefile use.
11121 for f
in $extra_options; do
11122 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11123 all_opt_files
="$all_opt_files $srcdir/config/$f"
11127 # auto-host.h is the file containing items generated by autoconf and is
11128 # the first file included by config.h.
11129 # If host=build, it is correct to have bconfig include auto-host.h
11130 # as well. If host!=build, we are in error and need to do more
11131 # work to find out the build config parameters.
11132 if test x
$host = x
$build
11134 build_auto
=auto-host.h
11136 # We create a subdir, then run autoconf in the subdir.
11137 # To prevent recursion we set host and build for the new
11138 # invocation of configure to the build for this invocation
11145 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11146 *) realsrcdir
=..
/${srcdir};;
11148 saved_CFLAGS
="${CFLAGS}"
11149 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11150 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11151 ${realsrcdir}/configure \
11152 --enable-languages=${enable_languages-all} \
11153 --target=$target_alias --host=$build_alias --build=$build_alias
11154 CFLAGS
="${saved_CFLAGS}"
11156 # We just finished tests for the build machine, so rename
11157 # the file auto-build.h in the gcc directory.
11158 mv auto-host.h ..
/auto-build.h
11161 build_auto
=auto-build.h
11165 tm_file
="${tm_file} defaults.h"
11166 tm_p_file
="${tm_p_file} tm-preds.h"
11167 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11168 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11169 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11170 # put this back in temporarily.
11171 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11177 # Compile in configure arguments.
11178 if test -f configargs.h
; then
11179 # Being re-configured.
11180 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11181 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11183 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11186 # Double all backslashes and backslash all quotes to turn
11187 # gcc_config_arguments into a C string.
11188 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11189 $gcc_config_arguments
11191 gcc_config_arguments_str
=`cat conftest.out`
11194 cat > configargs.h
<<EOF
11195 /* Generated automatically. */
11196 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11197 static const char thread_model[] = "$thread_file";
11199 static const struct {
11200 const char *name, *value;
11201 } configure_default_options[] = $configure_default_options;
11204 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11205 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11206 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11207 if test -f $srcdir/REVISION
; then
11208 gcc_REVISION
=`cat $srcdir/REVISION`
11212 cat > plugin-version.h
<<EOF
11213 #include "configargs.h"
11215 static char basever[] = "$gcc_BASEVER";
11216 static char datestamp[] = "$gcc_DATESTAMP";
11217 static char devphase[] = "$gcc_DEVPHASE";
11218 static char revision[] = "$gcc_REVISION";
11220 /* FIXME plugins: We should make the version information more precise.
11221 One way to do is to add a checksum. */
11223 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11224 devphase, revision,
11225 configuration_arguments};
11228 # Internationalization
11229 # If we haven't got the data from the intl directory,
11230 # assume NLS is disabled.
11239 if test -f ..
/intl
/config.intl
; then
11240 . ..
/intl
/config.intl
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11243 $as_echo_n "checking whether NLS is requested... " >&6; }
11244 if test x
"$USE_NLS" != xyes
; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11249 $as_echo "yes" >&6; }
11251 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11255 $as_echo_n "checking for catalogs to be installed... " >&6; }
11256 # Look for .po and .gmo files in the source directory.
11259 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11260 # If there aren't any .gmo files the shell will give us the
11261 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11263 case "$cat" in *\
**)
11266 # The quadruple backslash is collapsed to a double backslash
11267 # by the backticks, then collapsed again by the double quotes,
11268 # leaving us with one backslash in the sed expression (right
11269 # before the dot that mustn't act as a wildcard).
11270 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11271 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11272 # The user is allowed to set LINGUAS to a list of languages to
11273 # install catalogs for. If it's empty that means "all of them."
11274 if test "x$LINGUAS" = x
; then
11275 CATALOGS
="$CATALOGS $cat"
11276 XLINGUAS
="$XLINGUAS $lang"
11278 case "$LINGUAS" in *$lang*)
11279 CATALOGS
="$CATALOGS $cat"
11280 XLINGUAS
="$XLINGUAS $lang"
11285 LINGUAS
="$XLINGUAS"
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11287 $as_echo "$LINGUAS" >&6; }
11300 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11301 # -liconv on the link line twice.
11302 case "$LIBINTL" in *$LIBICONV*)
11306 # Check whether --enable-secureplt was given.
11307 if test "${enable_secureplt+set}" = set; then :
11308 enableval
=$enable_secureplt;
11312 # Check whether --enable-leading-mingw64-underscores was given.
11313 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11314 enableval
=$enable_leading_mingw64_underscores;
11317 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11319 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11323 # Check whether --enable-cld was given.
11324 if test "${enable_cld+set}" = set; then :
11325 enableval
=$enable_cld;
11331 # Check whether --enable-frame-pointer was given.
11332 if test "${enable_frame_pointer+set}" = set; then :
11333 enableval
=$enable_frame_pointer;
11337 linux
* | darwin
[8912]*)
11338 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11340 enable_frame_pointer
=no
11343 enable_frame_pointer
=yes
11350 # Windows32 Registry support for specifying GCC installation paths.
11351 # Check whether --enable-win32-registry was given.
11352 if test "${enable_win32_registry+set}" = set; then :
11353 enableval
=$enable_win32_registry;
11358 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11359 if test "x$enable_win32_registry" != xno
; then
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11361 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11362 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11363 $as_echo_n "(cached) " >&6
11365 ac_func_search_save_LIBS
=$LIBS
11366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11369 /* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11375 char RegOpenKeyExA ();
11379 return RegOpenKeyExA ();
11384 for ac_lib
in '' advapi32
; do
11385 if test -z "$ac_lib"; then
11386 ac_res
="none required"
11389 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11391 if ac_fn_c_try_link
"$LINENO"; then :
11392 ac_cv_search_RegOpenKeyExA
=$ac_res
11394 rm -f core conftest.err conftest.
$ac_objext \
11396 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11400 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11403 ac_cv_search_RegOpenKeyExA
=no
11405 rm conftest.
$ac_ext
11406 LIBS
=$ac_func_search_save_LIBS
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11409 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11410 ac_res
=$ac_cv_search_RegOpenKeyExA
11411 if test "$ac_res" != no
; then :
11412 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11415 enable_win32_registry
=no
11420 if test "x$enable_win32_registry" != xno
; then
11422 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11425 if test "x$enable_win32_registry" != xyes \
11426 && test "x$enable_win32_registry" != x
; then
11428 cat >>confdefs.h
<<_ACEOF
11429 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11437 # Get an absolute path to the GCC top-level source directory
11438 holddir
=`${PWDCMD-pwd}`
11440 topdir
=`${PWDCMD-pwd}`
11443 # Conditionalize the makefile for this host machine.
11445 for f
in ${host_xmake_file}
11447 if test -f ${srcdir}/config
/$f
11449 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11453 # Conditionalize the makefile for this target machine.
11455 for f
in ${tmake_file}
11457 if test -f ${srcdir}/config
/$f
11459 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11462 tmake_file
="${tmake_file_}"
11464 out_object_file
=`basename $out_file .c`.o
11466 tm_file_list
="options.h"
11467 tm_include_list
="options.h insn-constants.h"
11468 for f
in $tm_file; do
11471 f
=`echo $f | sed 's/^..//'`
11472 tm_file_list
="${tm_file_list} $f"
11473 tm_include_list
="${tm_include_list} $f"
11476 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11477 tm_include_list
="${tm_include_list} $f"
11480 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11481 tm_include_list
="${tm_include_list} config/$f"
11488 for f
in $tm_p_file; do
11491 tm_p_file_list
="${tm_p_file_list} $f"
11492 tm_p_include_list
="${tm_p_include_list} $f"
11495 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11496 tm_p_include_list
="${tm_p_include_list} config/$f"
11502 for f
in $xm_file; do
11505 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11506 xm_include_list
="${xm_include_list} $f"
11509 xm_file_list
="${xm_file_list} $f"
11510 xm_include_list
="${xm_include_list} $f"
11513 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11514 xm_include_list
="${xm_include_list} config/$f"
11520 host_xm_include_list
=
11521 for f
in $host_xm_file; do
11524 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11525 host_xm_include_list
="${host_xm_include_list} $f"
11528 host_xm_file_list
="${host_xm_file_list} $f"
11529 host_xm_include_list
="${host_xm_include_list} $f"
11532 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11533 host_xm_include_list
="${host_xm_include_list} config/$f"
11538 build_xm_file_list
=
11539 for f
in $build_xm_file; do
11542 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11543 build_xm_include_list
="${build_xm_include_list} $f"
11545 auto-build.h | auto-host.h
)
11546 build_xm_file_list
="${build_xm_file_list} $f"
11547 build_xm_include_list
="${build_xm_include_list} $f"
11550 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11551 build_xm_include_list
="${build_xm_include_list} config/$f"
11556 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11557 # cross-compiler which does not use the native headers and libraries.
11558 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11561 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11563 if test "x$with_build_sysroot" != x
; then
11564 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11566 # This value is used, even on a native system, because
11567 # CROSS_SYSTEM_HEADER_DIR is just
11568 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11569 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11572 if test x
$host != x
$target
11574 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11576 SYSTEM_HEADER_DIR
=$build_system_header_dir
11577 case "$host","$target" in
11578 # Darwin crosses can use the host system's libraries and headers,
11579 # because of the fat library support. Of course, it must be the
11580 # same version of Darwin on both sides. Allow the user to
11581 # just say --target=foo-darwin without a version number to mean
11582 # "the version on this system".
11583 *-*-darwin*,*-*-darwin*)
11584 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11585 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11586 if test $hostos = $targetos -o $targetos = darwin
; then
11588 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11593 i?
86-*-*,x86_64-
*-* \
11594 | powerpc
*-*-*,powerpc64
*-*-*)
11595 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11600 if test "x$with_headers" = x
; then
11607 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11608 SYSTEM_HEADER_DIR
=$build_system_header_dir
11611 # If this is a cross-compiler that does not
11612 # have its own set of headers then define
11615 # If this is using newlib, without having the headers available now,
11616 # then define inhibit_libc in LIBGCC2_CFLAGS.
11617 # This prevents libgcc2 from containing any code which requires libc
11619 : ${inhibit_libc=false}
11620 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11621 test x
$with_newlib = xyes
; } &&
11622 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11627 # When building gcc with a cross-compiler, we need to adjust things so
11628 # that the generator programs are still built with the native compiler.
11629 # Also, we cannot run fixincludes.
11631 # These are the normal (build=host) settings:
11632 CC_FOR_BUILD
='$(CC)'
11633 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11634 BUILD_LDFLAGS
='$(LDFLAGS)'
11635 STMP_FIXINC
=stmp-fixinc
11637 # And these apply if build != host, or we are generating coverage data
11638 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11640 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11641 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11644 # Expand extra_headers to include complete path.
11645 # This substitutes for lots of t-* files.
11646 extra_headers_list
=
11647 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11648 for file in ${extra_headers} ; do
11649 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11652 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11653 if test x
"$use_gcc_tgmath" = xyes
11654 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11657 # Define collect2 in Makefile.
11658 case $host_can_use_collect2 in
11660 *) collect2
='collect2$(exeext)' ;;
11664 # Add a definition of USE_COLLECT2 if system wants one.
11665 case $use_collect2 in
11666 no
) use_collect2
= ;;
11669 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11670 xm_defines
="${xm_defines} USE_COLLECT2"
11671 case $host_can_use_collect2 in
11673 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11680 cat >>confdefs.h
<<_ACEOF
11681 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11685 # ---------------------------
11686 # Assembler & linker features
11687 # ---------------------------
11689 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11690 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11691 # However when ld-new is first executed from the build tree, libtool will
11692 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11693 # to the build tree. While doing this we need to use the previous-stage
11694 # linker, or we have an infinite loop. The presence of a shell script as
11695 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11696 # the gcc/collect-ld script. So we need to know how libtool works, or
11697 # exec-tool will fail.
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11703 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11708 macro_version
='2.2.7a'
11709 macro_revision
='1.3134'
11723 ltmain
="$ac_aux_dir/ltmain.sh"
11725 # Backslashify metacharacters that are still active within
11726 # double-quoted strings.
11727 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11729 # Same as above, but do not quote variable references.
11730 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11732 # Sed substitution to delay expansion of an escaped shell variable in a
11733 # double_quote_subst'ed string.
11734 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11736 # Sed substitution to delay expansion of an escaped single quote.
11737 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11739 # Sed substitution to avoid accidental globbing in evaled expressions
11740 no_glob_subst
='s/\*/\\\*/g'
11742 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11743 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11744 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11747 $as_echo_n "checking how to print strings... " >&6; }
11748 # Test print first, because it will be a builtin if present.
11749 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11750 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11752 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11755 # Use this function as a fallback that always works.
11756 func_fallback_echo ()
11758 eval 'cat <<_LTECHO_EOF
11762 ECHO='func_fallback_echo
'
11765 # func_echo_all arg...
11766 # Invoke $ECHO with all args, space-separated.
11773 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11774 $as_echo "printf" >&6; } ;;
11775 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11776 $as_echo "print -r" >&6; } ;;
11777 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11778 $as_echo "cat" >&6; } ;;
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11795 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11796 if test "${ac_cv_path_SED+set}" = set; then :
11797 $as_echo_n "(cached) " >&6
11799 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11800 for ac_i in 1 2 3 4 5 6 7; do
11801 ac_script="$ac_script$as_nl$ac_script"
11803 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11804 { ac_script=; unset ac_script;}
11805 if test -z "$SED"; then
11806 ac_path_SED_found=false
11807 # Loop through the user's path and
test for each of PROGNAME-LIST
11808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11809 for as_dir
in $PATH
11812 test -z "$as_dir" && as_dir
=.
11813 for ac_prog
in sed gsed
; do
11814 for ac_exec_ext
in '' $ac_executable_extensions; do
11815 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11816 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11817 # Check for GNU ac_path_SED and select it if it is found.
11818 # Check for GNU $ac_path_SED
11819 case `"$ac_path_SED" --version 2>&1` in
11821 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11824 $as_echo_n 0123456789 >"conftest.in"
11827 cat "conftest.in" "conftest.in" >"conftest.tmp"
11828 mv "conftest.tmp" "conftest.in"
11829 cp "conftest.in" "conftest.nl"
11830 $as_echo '' >> "conftest.nl"
11831 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11832 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11833 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11834 if test $ac_count -gt ${ac_path_SED_max-0}; then
11835 # Best one so far, save it but keep looking for a better one
11836 ac_cv_path_SED
="$ac_path_SED"
11837 ac_path_SED_max
=$ac_count
11839 # 10*(2^10) chars as input seems more than enough
11840 test $ac_count -gt 10 && break
11842 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11845 $ac_path_SED_found && break 3
11850 if test -z "$ac_cv_path_SED"; then
11851 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11854 ac_cv_path_SED
=$SED
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11859 $as_echo "$ac_cv_path_SED" >&6; }
11860 SED
="$ac_cv_path_SED"
11863 test -z "$SED" && SED
=sed
11864 Xsed
="$SED -e 1s/^X//"
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11877 $as_echo_n "checking for fgrep... " >&6; }
11878 if test "${ac_cv_path_FGREP+set}" = set; then :
11879 $as_echo_n "(cached) " >&6
11881 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11882 then ac_cv_path_FGREP
="$GREP -F"
11884 if test -z "$FGREP"; then
11885 ac_path_FGREP_found
=false
11886 # Loop through the user's path and test for each of PROGNAME-LIST
11887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11888 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11891 test -z "$as_dir" && as_dir
=.
11892 for ac_prog
in fgrep
; do
11893 for ac_exec_ext
in '' $ac_executable_extensions; do
11894 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11895 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11896 # Check for GNU ac_path_FGREP and select it if it is found.
11897 # Check for GNU $ac_path_FGREP
11898 case `"$ac_path_FGREP" --version 2>&1` in
11900 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11903 $as_echo_n 0123456789 >"conftest.in"
11906 cat "conftest.in" "conftest.in" >"conftest.tmp"
11907 mv "conftest.tmp" "conftest.in"
11908 cp "conftest.in" "conftest.nl"
11909 $as_echo 'FGREP' >> "conftest.nl"
11910 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11911 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11912 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11913 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11914 # Best one so far, save it but keep looking for a better one
11915 ac_cv_path_FGREP
="$ac_path_FGREP"
11916 ac_path_FGREP_max
=$ac_count
11918 # 10*(2^10) chars as input seems more than enough
11919 test $ac_count -gt 10 && break
11921 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11924 $ac_path_FGREP_found && break 3
11929 if test -z "$ac_cv_path_FGREP"; then
11930 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11933 ac_cv_path_FGREP
=$FGREP
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11939 $as_echo "$ac_cv_path_FGREP" >&6; }
11940 FGREP
="$ac_cv_path_FGREP"
11943 test -z "$GREP" && GREP
=grep
11963 # Check whether --with-gnu-ld was given.
11964 if test "${with_gnu_ld+set}" = set; then :
11965 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11971 if test "$GCC" = yes; then
11972 # Check if gcc -print-prog-name=ld gives a path.
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11974 $as_echo_n "checking for ld used by $CC... " >&6; }
11977 # gcc leaves a trailing carriage return which upsets mingw
11978 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11980 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11983 # Accept absolute paths.
11985 re_direlt
='/[^/][^/]*/\.\./'
11986 # Canonicalize the pathname of ld
11987 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11988 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11989 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11991 test -z "$LD" && LD
="$ac_prog"
11994 # If it fails, then pretend we aren't using GCC.
11998 # If it is relative, then search for the first ld in PATH.
11999 with_gnu_ld
=unknown
12002 elif test "$with_gnu_ld" = yes; then
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12004 $as_echo_n "checking for GNU ld... " >&6; }
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12007 $as_echo_n "checking for non-GNU ld... " >&6; }
12009 if test "${lt_cv_path_LD+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
12012 if test -z "$LD"; then
12013 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12014 for ac_dir
in $PATH; do
12016 test -z "$ac_dir" && ac_dir
=.
12017 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12018 lt_cv_path_LD
="$ac_dir/$ac_prog"
12019 # Check to see if the program is GNU ld. I'd rather use --version,
12020 # but apparently some variants of GNU ld only accept -v.
12021 # Break only if it was the GNU/non-GNU ld that we prefer.
12022 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12023 *GNU
* |
*'with BFD'*)
12024 test "$with_gnu_ld" != no
&& break
12027 test "$with_gnu_ld" != yes && break
12034 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12038 LD
="$lt_cv_path_LD"
12039 if test -n "$LD"; then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12041 $as_echo "$LD" >&6; }
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12046 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12048 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12049 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12052 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12053 case `$LD -v 2>&1 </dev/null` in
12054 *GNU
* |
*'with BFD'*)
12055 lt_cv_prog_gnu_ld
=yes
12058 lt_cv_prog_gnu_ld
=no
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12063 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12064 with_gnu_ld
=$lt_cv_prog_gnu_ld
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12075 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12076 if test "${lt_cv_path_NM+set}" = set; then :
12077 $as_echo_n "(cached) " >&6
12079 if test -n "$NM"; then
12080 # Let the user override the test.
12081 lt_cv_path_NM
="$NM"
12083 lt_nm_to_check
="${ac_tool_prefix}nm"
12084 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12085 lt_nm_to_check
="$lt_nm_to_check nm"
12087 for lt_tmp_nm
in $lt_nm_to_check; do
12088 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12089 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12091 test -z "$ac_dir" && ac_dir
=.
12092 tmp_nm
="$ac_dir/$lt_tmp_nm"
12093 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12094 # Check to see if the nm accepts a BSD-compat flag.
12095 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12096 # nm: unknown option "B" ignored
12097 # Tru64's nm complains that /dev/null is an invalid object file
12098 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12099 */dev
/null
* |
*'Invalid file or object type'*)
12100 lt_cv_path_NM
="$tmp_nm -B"
12104 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12106 lt_cv_path_NM
="$tmp_nm -p"
12110 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12111 continue # so that we can try to find one that supports BSD flags
12120 : ${lt_cv_path_NM=no}
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12124 $as_echo "$lt_cv_path_NM" >&6; }
12125 if test "$lt_cv_path_NM" != "no"; then
12126 NM
="$lt_cv_path_NM"
12128 # Didn't find any BSD compatible name lister, look for dumpbin.
12129 if test -n "$DUMPBIN"; then :
12130 # Let the user override the test.
12132 if test -n "$ac_tool_prefix"; then
12133 for ac_prog
in dumpbin
"link -dump"
12135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12136 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138 $as_echo_n "checking for $ac_word... " >&6; }
12139 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12140 $as_echo_n "(cached) " >&6
12142 if test -n "$DUMPBIN"; then
12143 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12146 for as_dir
in $PATH
12149 test -z "$as_dir" && as_dir
=.
12150 for ac_exec_ext
in '' $ac_executable_extensions; do
12151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12152 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12162 DUMPBIN
=$ac_cv_prog_DUMPBIN
12163 if test -n "$DUMPBIN"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12165 $as_echo "$DUMPBIN" >&6; }
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12172 test -n "$DUMPBIN" && break
12175 if test -z "$DUMPBIN"; then
12176 ac_ct_DUMPBIN
=$DUMPBIN
12177 for ac_prog
in dumpbin
"link -dump"
12179 # Extract the first word of "$ac_prog", so it can be a program name with args.
12180 set dummy
$ac_prog; ac_word
=$2
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182 $as_echo_n "checking for $ac_word... " >&6; }
12183 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12184 $as_echo_n "(cached) " >&6
12186 if test -n "$ac_ct_DUMPBIN"; then
12187 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12190 for as_dir
in $PATH
12193 test -z "$as_dir" && as_dir
=.
12194 for ac_exec_ext
in '' $ac_executable_extensions; do
12195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12196 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12206 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12207 if test -n "$ac_ct_DUMPBIN"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12209 $as_echo "$ac_ct_DUMPBIN" >&6; }
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12216 test -n "$ac_ct_DUMPBIN" && break
12219 if test "x$ac_ct_DUMPBIN" = x
; then
12222 case $cross_compiling:$ac_tool_warned in
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12226 ac_tool_warned
=yes ;;
12228 DUMPBIN
=$ac_ct_DUMPBIN
12232 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12234 DUMPBIN
="$DUMPBIN -symbols"
12242 if test "$DUMPBIN" != ":"; then
12246 test -z "$NM" && NM
=nm
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12254 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12255 if test "${lt_cv_nm_interface+set}" = set; then :
12256 $as_echo_n "(cached) " >&6
12258 lt_cv_nm_interface
="BSD nm"
12259 echo "int some_variable = 0;" > conftest.
$ac_ext
12260 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12261 (eval "$ac_compile" 2>conftest.err
)
12262 cat conftest.err
>&5
12263 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12264 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12265 cat conftest.err
>&5
12266 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12267 cat conftest.out
>&5
12268 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12269 lt_cv_nm_interface
="MS dumpbin"
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12274 $as_echo "$lt_cv_nm_interface" >&6; }
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12277 $as_echo_n "checking whether ln -s works... " >&6; }
12279 if test "$LN_S" = "ln -s"; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12281 $as_echo "yes" >&6; }
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12284 $as_echo "no, using $LN_S" >&6; }
12287 # find the maximum length of command line arguments
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12289 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12290 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12291 $as_echo_n "(cached) " >&6
12298 # On DJGPP, this test can blow up pretty badly due to problems in libc
12299 # (any single argument exceeding 2000 bytes causes a buffer overrun
12300 # during glob expansion). Even if it were fixed, the result of this
12301 # check would be larger than it should be.
12302 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12306 # Under GNU Hurd, this test is not required because there is
12307 # no limit to the length of command line arguments.
12308 # Libtool will interpret -1 as no limit whatsoever
12309 lt_cv_sys_max_cmd_len
=-1;
12312 cygwin
* | mingw
* | cegcc
*)
12313 # On Win9x/ME, this test blows up -- it succeeds, but takes
12314 # about 5 minutes as the teststring grows exponentially.
12315 # Worse, since 9x/ME are not pre-emptively multitasking,
12316 # you end up with a "frozen" computer, even though with patience
12317 # the test eventually succeeds (with a max line length of 256k).
12318 # Instead, let's just punt: use the minimum linelength reported by
12319 # all of the supported platforms: 8192 (on NT/2K/XP).
12320 lt_cv_sys_max_cmd_len
=8192;
12324 # On MiNT this can take a long time and run out of memory.
12325 lt_cv_sys_max_cmd_len
=8192;
12329 # On AmigaOS with pdksh, this test takes hours, literally.
12330 # So we just punt and use a minimum line length of 8192.
12331 lt_cv_sys_max_cmd_len
=8192;
12334 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12335 # This has been around since 386BSD, at least. Likely further.
12336 if test -x /sbin
/sysctl
; then
12337 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12338 elif test -x /usr
/sbin
/sysctl
; then
12339 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12341 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12343 # And add a safety zone
12344 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12345 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12349 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12350 lt_cv_sys_max_cmd_len
=196608
12354 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12355 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12356 # nice to cause kernel panics so lets avoid the loop below.
12357 # First set a reasonable default.
12358 lt_cv_sys_max_cmd_len
=16384
12360 if test -x /sbin
/sysconfig
; then
12361 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12362 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12367 lt_cv_sys_max_cmd_len
=102400
12369 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12370 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12371 if test -n "$kargmax"; then
12372 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12374 lt_cv_sys_max_cmd_len
=32768
12378 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12379 if test -n "$lt_cv_sys_max_cmd_len"; then
12380 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12381 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12383 # Make teststring a little bigger before we do anything with it.
12384 # a 1K string should be a reasonable start.
12385 for i
in 1 2 3 4 5 6 7 8 ; do
12386 teststring
=$teststring$teststring
12388 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12389 # If test is not a shell built-in, we'll probably end up computing a
12390 # maximum length that is only half of the actual maximum length, but
12392 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12393 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12394 test $i != 17 # 1/2 MB should be enough
12397 teststring
=$teststring$teststring
12399 # Only check the string length outside the loop.
12400 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12402 # Add a significant safety factor because C++ compilers can tack on
12403 # massive amounts of additional arguments before passing them to the
12404 # linker. It appears as though 1/2 is a usable value.
12405 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12412 if test -n $lt_cv_sys_max_cmd_len ; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12414 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12417 $as_echo "none" >&6; }
12419 max_cmd_len
=$lt_cv_sys_max_cmd_len
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12431 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12432 # Try some XSI features
12434 ( _lt_dummy
="a/b/c"
12435 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12437 && eval 'test $(( 1 + 1 )) -eq 2 \
12438 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12441 $as_echo "$xsi_shell" >&6; }
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12445 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12447 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12449 && lt_shell_append=yes
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12451 $as_echo "$lt_shell_append" >&6; }
12454 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12464 # test EBCDIC or ASCII
12465 case `echo X|tr X '\101'` in
12466 A) # ASCII based system
12467 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12468 lt_SP2NL='tr \040 \012'
12469 lt_NL2SP='tr \015\012 \040\040'
12471 *) # EBCDIC based system
12472 lt_SP2NL='tr \100 \n'
12473 lt_NL2SP='tr \r\n \100\100'
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12486 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12487 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12488 $as_echo_n "(cached
) " >&6
12490 lt_cv_ld_reload_flag='-r'
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12493 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12494 reload_flag=$lt_cv_ld_reload_flag
12495 case $reload_flag in
12497 *) reload_flag=" $reload_flag" ;;
12499 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12502 if test "$GCC" = yes; then
12503 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12505 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12518 if test -n "$ac_tool_prefix"; then
12519 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12520 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12522 $as_echo_n "checking
for $ac_word...
" >&6; }
12523 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12524 $as_echo_n "(cached
) " >&6
12526 if test -n "$OBJDUMP"; then
12527 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530 for as_dir in $PATH
12533 test -z "$as_dir" && as_dir=.
12534 for ac_exec_ext in '' $ac_executable_extensions; do
12535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12536 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12537 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12546 OBJDUMP=$ac_cv_prog_OBJDUMP
12547 if test -n "$OBJDUMP"; then
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12549 $as_echo "$OBJDUMP" >&6; }
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12552 $as_echo "no
" >&6; }
12557 if test -z "$ac_cv_prog_OBJDUMP"; then
12558 ac_ct_OBJDUMP=$OBJDUMP
12559 # Extract the first word of "objdump
", so it can be a program name with args.
12560 set dummy objdump; ac_word=$2
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12562 $as_echo_n "checking
for $ac_word...
" >&6; }
12563 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12564 $as_echo_n "(cached
) " >&6
12566 if test -n "$ac_ct_OBJDUMP"; then
12567 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570 for as_dir in $PATH
12573 test -z "$as_dir" && as_dir=.
12574 for ac_exec_ext in '' $ac_executable_extensions; do
12575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12576 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12577 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12586 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12587 if test -n "$ac_ct_OBJDUMP"; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12589 $as_echo "$ac_ct_OBJDUMP" >&6; }
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12592 $as_echo "no
" >&6; }
12595 if test "x
$ac_ct_OBJDUMP" = x; then
12598 case $cross_compiling:$ac_tool_warned in
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12601 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12602 ac_tool_warned=yes ;;
12604 OBJDUMP=$ac_ct_OBJDUMP
12607 OBJDUMP="$ac_cv_prog_OBJDUMP"
12610 test -z "$OBJDUMP" && OBJDUMP=objdump
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12621 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12622 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12623 $as_echo_n "(cached
) " >&6
12625 lt_cv_file_magic_cmd='$MAGIC_CMD'
12626 lt_cv_file_magic_test_file=
12627 lt_cv_deplibs_check_method='unknown'
12628 # Need to set the preceding variable on all platforms that support
12629 # interlibrary dependencies.
12630 # 'none' -- dependencies not supported.
12631 # `unknown' -- same as none, but documents that we really don't know.
12632 # 'pass_all' -- all dependencies passed with no checks.
12633 # 'test_compile' -- check by making test program.
12634 # 'file_magic [[regex]]' -- check by looking for files in library path
12635 # which responds to the $file_magic_cmd with a given extended regex.
12636 # If you have `file' or equivalent on your system and you're not sure
12637 # whether `pass_all' will *always* work, you probably want this one.
12641 lt_cv_deplibs_check_method=pass_all
12645 lt_cv_deplibs_check_method=pass_all
12649 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12650 lt_cv_file_magic_cmd='/usr/bin/file -L'
12651 lt_cv_file_magic_test_file=/shlib/libc.so
12655 # func_win32_libid is a shell function defined in ltmain.sh
12656 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12657 lt_cv_file_magic_cmd='func_win32_libid'
12661 # Base MSYS/MinGW do not provide the 'file' command needed by
12662 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12663 # unless we find 'file', for example because we are cross-compiling.
12664 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12665 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12666 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12667 lt_cv_file_magic_cmd='func_win32_libid'
12669 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12670 lt_cv_file_magic_cmd='$OBJDUMP -f'
12675 # use the weaker test based on 'objdump'. See mingw*.
12676 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12677 lt_cv_file_magic_cmd='$OBJDUMP -f'
12680 darwin* | rhapsody*)
12681 lt_cv_deplibs_check_method=pass_all
12684 freebsd* | dragonfly*)
12685 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12688 # Not sure whether the presence of OpenBSD here was a mistake.
12689 # Let's accept both of them until this is cleared up.
12690 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12691 lt_cv_file_magic_cmd=/usr/bin/file
12692 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12696 lt_cv_deplibs_check_method=pass_all
12701 lt_cv_deplibs_check_method=pass_all
12705 lt_cv_deplibs_check_method=pass_all
12708 hpux10.20* | hpux11*)
12709 lt_cv_file_magic_cmd=/usr/bin/file
12712 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12713 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12716 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]'
12717 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12721 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12727 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12731 irix5* | irix6* | nonstopux*)
12733 *-32|*"-32 ") libmagic=32-bit;;
12734 *-n32|*"-n32 ") libmagic=N32;;
12735 *-64|*"-64 ") libmagic=64-bit;;
12736 *) libmagic=never-match;;
12738 lt_cv_deplibs_check_method=pass_all
12741 # This must be Linux ELF.
12742 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12743 lt_cv_deplibs_check_method=pass_all
12747 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12755 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12756 lt_cv_file_magic_cmd=/usr/bin/file
12757 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12761 lt_cv_deplibs_check_method=pass_all
12765 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12766 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12768 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12772 osf3* | osf4* | osf5*)
12773 lt_cv_deplibs_check_method=pass_all
12777 lt_cv_deplibs_check_method=pass_all
12781 lt_cv_deplibs_check_method=pass_all
12784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12785 lt_cv_deplibs_check_method=pass_all
12789 case $host_vendor in
12791 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]'
12792 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12795 lt_cv_deplibs_check_method=pass_all
12798 lt_cv_file_magic_cmd='/bin/file'
12799 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12802 lt_cv_file_magic_cmd='/bin/file'
12803 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12804 lt_cv_file_magic_test_file=/lib/libc.so
12807 lt_cv_deplibs_check_method=pass_all
12810 lt_cv_deplibs_check_method=pass_all
12816 lt_cv_deplibs_check_method=pass_all
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12822 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12823 file_magic_cmd=$lt_cv_file_magic_cmd
12824 deplibs_check_method=$lt_cv_deplibs_check_method
12825 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12838 if test -n "$ac_tool_prefix"; then
12839 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12840 set dummy ${ac_tool_prefix}ar; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12842 $as_echo_n "checking
for $ac_word...
" >&6; }
12843 if test "${ac_cv_prog_AR+set}" = set; then :
12844 $as_echo_n "(cached
) " >&6
12846 if test -n "$AR"; then
12847 ac_cv_prog_AR="$AR" # Let the user override the test.
12849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850 for as_dir in $PATH
12853 test -z "$as_dir" && as_dir=.
12854 for ac_exec_ext in '' $ac_executable_extensions; do
12855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12856 ac_cv_prog_AR="${ac_tool_prefix}ar"
12857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12867 if test -n "$AR"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12869 $as_echo "$AR" >&6; }
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12872 $as_echo "no
" >&6; }
12877 if test -z "$ac_cv_prog_AR"; then
12879 # Extract the first word of "ar", so it can be a program name with args.
12880 set dummy ar; ac_word=$2
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12882 $as_echo_n "checking
for $ac_word...
" >&6; }
12883 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12884 $as_echo_n "(cached
) " >&6
12886 if test -n "$ac_ct_AR"; then
12887 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12893 test -z "$as_dir" && as_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
12895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12896 ac_cv_prog_ac_ct_AR="ar"
12897 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12906 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12907 if test -n "$ac_ct_AR"; then
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12909 $as_echo "$ac_ct_AR" >&6; }
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12912 $as_echo "no
" >&6; }
12915 if test "x
$ac_ct_AR" = x; then
12918 case $cross_compiling:$ac_tool_warned in
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12921 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12922 ac_tool_warned=yes ;;
12927 AR="$ac_cv_prog_AR"
12930 test -z "$AR" && AR=ar
12931 test -z "$AR_FLAGS" && AR_FLAGS=cru
12943 if test -n "$ac_tool_prefix"; then
12944 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12945 set dummy ${ac_tool_prefix}strip; ac_word=$2
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12947 $as_echo_n "checking
for $ac_word...
" >&6; }
12948 if test "${ac_cv_prog_STRIP+set}" = set; then :
12949 $as_echo_n "(cached
) " >&6
12951 if test -n "$STRIP"; then
12952 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955 for as_dir in $PATH
12958 test -z "$as_dir" && as_dir=.
12959 for ac_exec_ext in '' $ac_executable_extensions; do
12960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12961 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12962 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12971 STRIP=$ac_cv_prog_STRIP
12972 if test -n "$STRIP"; then
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12974 $as_echo "$STRIP" >&6; }
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12977 $as_echo "no
" >&6; }
12982 if test -z "$ac_cv_prog_STRIP"; then
12984 # Extract the first word of "strip
", so it can be a program name with args.
12985 set dummy strip; ac_word=$2
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12987 $as_echo_n "checking
for $ac_word...
" >&6; }
12988 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12989 $as_echo_n "(cached
) " >&6
12991 if test -n "$ac_ct_STRIP"; then
12992 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH
12998 test -z "$as_dir" && as_dir=.
12999 for ac_exec_ext in '' $ac_executable_extensions; do
13000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13001 ac_cv_prog_ac_ct_STRIP="strip
"
13002 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13011 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13012 if test -n "$ac_ct_STRIP"; then
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13014 $as_echo "$ac_ct_STRIP" >&6; }
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13017 $as_echo "no
" >&6; }
13020 if test "x
$ac_ct_STRIP" = x; then
13023 case $cross_compiling:$ac_tool_warned in
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13026 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13027 ac_tool_warned=yes ;;
13032 STRIP="$ac_cv_prog_STRIP"
13035 test -z "$STRIP" && STRIP=:
13042 if test -n "$ac_tool_prefix"; then
13043 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13044 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13046 $as_echo_n "checking
for $ac_word...
" >&6; }
13047 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13048 $as_echo_n "(cached
) " >&6
13050 if test -n "$RANLIB"; then
13051 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13057 test -z "$as_dir" && as_dir=.
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13070 RANLIB=$ac_cv_prog_RANLIB
13071 if test -n "$RANLIB"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13073 $as_echo "$RANLIB" >&6; }
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13076 $as_echo "no
" >&6; }
13081 if test -z "$ac_cv_prog_RANLIB"; then
13082 ac_ct_RANLIB=$RANLIB
13083 # Extract the first word of "ranlib
", so it can be a program name with args.
13084 set dummy ranlib; ac_word=$2
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13086 $as_echo_n "checking
for $ac_word...
" >&6; }
13087 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13088 $as_echo_n "(cached
) " >&6
13090 if test -n "$ac_ct_RANLIB"; then
13091 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13097 test -z "$as_dir" && as_dir=.
13098 for ac_exec_ext in '' $ac_executable_extensions; do
13099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13100 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13101 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13110 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13111 if test -n "$ac_ct_RANLIB"; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13113 $as_echo "$ac_ct_RANLIB" >&6; }
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13116 $as_echo "no
" >&6; }
13119 if test "x
$ac_ct_RANLIB" = x; then
13122 case $cross_compiling:$ac_tool_warned in
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13125 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13126 ac_tool_warned=yes ;;
13128 RANLIB=$ac_ct_RANLIB
13131 RANLIB="$ac_cv_prog_RANLIB"
13134 test -z "$RANLIB" && RANLIB=:
13141 # Determine commands to create old-style static archives.
13142 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13143 old_postinstall_cmds='chmod 644 $oldlib'
13144 old_postuninstall_cmds=
13146 if test -n "$RANLIB"; then
13149 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13152 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13155 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13160 lock_old_archive_extraction=yes ;;
13162 lock_old_archive_extraction=no ;;
13203 # If no C compiler was specified, use CC.
13206 # If no C compiler flags were specified, use CFLAGS.
13207 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13209 # Allow CC to be a program name with arguments.
13213 # Check for command to grab the raw symbol name followed by C symbol from nm.
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13215 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13216 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13217 $as_echo_n "(cached
) " >&6
13220 # These are sane defaults that work on at least a few old systems.
13221 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13223 # Character class describing NM global symbol codes.
13224 symcode='[BCDEGRST]'
13226 # Regexp to match symbols that can be accessed directly from C.
13227 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13229 # Define system-specific variables.
13234 cygwin* | mingw* | pw32* | cegcc*)
13235 symcode='[ABCDGISTW]'
13238 if test "$host_cpu" = ia64; then
13239 symcode='[ABCDEGRST]'
13242 irix* | nonstopux*)
13243 symcode='[BCDEGRST]'
13246 symcode='[BCDEGQRST]'
13257 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13265 # If we're using GNU nm, then use its standard symbol codes.
13266 case `$NM -V 2>&1` in
13267 *GNU* | *'with BFD'*)
13268 symcode='[ABCDGIRSTW]' ;;
13271 # Transform an extracted symbol line into a proper C declaration.
13272 # Some systems (esp. on ia64) link data and code symbols differently,
13273 # so use this general approach.
13274 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13276 # Transform an extracted symbol line into symbol name and symbol address
13277 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13278 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'"
13280 # Handle CRLF in mingw tool chain
13284 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13288 # Try without a prefix underscore, then with it.
13289 for ac_symprfx in "" "_
"; do
13291 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13292 symxfrm="\\1 $ac_symprfx\\2 \\2"
13294 # Write the raw and C identifiers.
13295 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13296 # Fake it for dumpbin and say T for any non-static function
13297 # and D for any global variable.
13298 # Also find C++ and __fastcall symbols from MSVC++,
13299 # which start with @ or ?.
13300 lt_cv_sys_global_symbol_pipe="$AWK '"\
13301 " {last_section=section; section=\$ 3};"\
13302 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13303 " \$ 0!~/External *\|/{next};"\
13304 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13305 " {if(hide[section]) next};"\
13306 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13307 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13308 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13309 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13310 " ' prfx
=^
$ac_symprfx"
13312 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13315 # Check to see that the pipe works correctly.
13319 cat > conftest.$ac_ext <<_LT_EOF
13324 void nm_test_func(void);
13325 void nm_test_func(void){}
13329 int main(){nm_test_var='a';nm_test_func();return(0);}
13332 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13333 (eval $ac_compile) 2>&5
13335 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13336 test $ac_status = 0; }; then
13337 # Now try to grab the symbols.
13339 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13340 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13342 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13343 test $ac_status = 0; } && test -s "$nlist"; then
13344 # Try sorting and uniquifying the output.
13345 if sort "$nlist" | uniq > "$nlist"T; then
13346 mv -f "$nlist"T "$nlist"
13351 # Make sure that we snagged all the symbols we need.
13352 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13353 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13354 cat <<_LT_EOF > conftest.$ac_ext
13360 # Now generate the symbol file.
13361 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13363 cat <<_LT_EOF >> conftest.$ac_ext
13365 /* The mapping between symbol names and symbols. */
13370 lt__PROGRAM__LTX_preloaded_symbols[] =
13372 { "@PROGRAM@
", (void *) 0 },
13374 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13375 cat <<\_LT_EOF >> conftest.$ac_ext
13379 /* This works around a problem in FreeBSD linker */
13380 #ifdef FREEBSD_WORKAROUND
13381 static const void *lt_preloaded_setup() {
13382 return lt__PROGRAM__LTX_preloaded_symbols;
13390 # Now try linking the two files.
13391 mv conftest.$ac_objext conftstm.$ac_objext
13392 lt_save_LIBS="$LIBS"
13393 lt_save_CFLAGS="$CFLAGS"
13394 LIBS="conftstm.
$ac_objext"
13395 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13396 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13397 (eval $ac_link) 2>&5
13399 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13400 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13403 LIBS="$lt_save_LIBS"
13404 CFLAGS="$lt_save_CFLAGS"
13406 echo "cannot
find nm_test_func
in $nlist" >&5
13409 echo "cannot
find nm_test_var
in $nlist" >&5
13412 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13415 echo "$progname: failed program was
:" >&5
13416 cat conftest.$ac_ext >&5
13418 rm -rf conftest* conftst*
13420 # Do not use the global_symbol_pipe unless it works.
13421 if test "$pipe_works" = yes; then
13424 lt_cv_sys_global_symbol_pipe=
13430 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13431 lt_cv_sys_global_symbol_to_cdecl=
13433 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13435 $as_echo "failed
" >&6; }
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13438 $as_echo "ok
" >&6; }
13462 # Check whether --enable-libtool-lock was given.
13463 if test "${enable_libtool_lock+set}" = set; then :
13464 enableval=$enable_libtool_lock;
13467 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13469 # Some flags need to be propagated to the compiler or linker for good
13473 # Find out which ABI we are using.
13474 echo 'int i;' > conftest.$ac_ext
13475 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13476 (eval $ac_compile) 2>&5
13478 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13479 test $ac_status = 0; }; then
13480 case `/usr/bin/file conftest.$ac_objext` in
13482 HPUX_IA64_MODE="32"
13485 HPUX_IA64_MODE="64"
13492 # Find out which ABI we are using.
13493 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13494 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13495 (eval $ac_compile) 2>&5
13497 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13498 test $ac_status = 0; }; then
13499 if test "$lt_cv_prog_gnu_ld" = yes; then
13500 case `/usr/bin/file conftest.$ac_objext` in
13502 LD="${LD-ld} -melf32bsmip"
13505 LD="${LD-ld} -melf32bmipn32"
13508 LD="${LD-ld} -melf64bmip"
13512 case `/usr/bin/file conftest.$ac_objext` in
13528 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13529 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13530 # Find out which ABI we are using.
13531 echo 'int i;' > conftest.$ac_ext
13532 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13533 (eval $ac_compile) 2>&5
13535 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13536 test $ac_status = 0; }; then
13537 case `/usr/bin/file conftest.o` in
13540 x86_64-*kfreebsd*-gnu)
13541 LD="${LD-ld} -m elf_i386_fbsd
"
13544 LD="${LD-ld} -m elf_i386
"
13546 ppc64-*linux*|powerpc64-*linux*)
13547 LD="${LD-ld} -m elf32ppclinux
"
13550 LD="${LD-ld} -m elf_s390
"
13553 LD="${LD-ld} -m elf32_sparc
"
13559 x86_64-*kfreebsd*-gnu)
13560 LD="${LD-ld} -m elf_x86_64_fbsd
"
13563 LD="${LD-ld} -m elf_x86_64
"
13565 ppc*-*linux*|powerpc*-*linux*)
13566 LD="${LD-ld} -m elf64ppc
"
13568 s390*-*linux*|s390*-*tpf*)
13569 LD="${LD-ld} -m elf64_s390
"
13572 LD="${LD-ld} -m elf64_sparc
"
13582 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13583 SAVE_CFLAGS="$CFLAGS"
13584 CFLAGS="$CFLAGS -belf"
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13586 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13587 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13588 $as_echo_n "(cached
) " >&6
13591 ac_cpp='$CPP $CPPFLAGS'
13592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h. */
13607 if ac_fn_c_try_link "$LINENO"; then :
13608 lt_cv_cc_needs_belf=yes
13610 lt_cv_cc_needs_belf=no
13612 rm -f core conftest.err conftest.$ac_objext \
13613 conftest$ac_exeext conftest.$ac_ext
13615 ac_cpp='$CPP $CPPFLAGS'
13616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13622 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13623 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13624 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13625 CFLAGS="$SAVE_CFLAGS"
13629 # Find out which ABI we are using.
13630 echo 'int i;' > conftest.$ac_ext
13631 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13632 (eval $ac_compile) 2>&5
13634 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13635 test $ac_status = 0; }; then
13636 case `/usr/bin/file conftest.o` in
13638 case $lt_cv_prog_gnu_ld in
13639 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13641 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13653 need_locks="$enable_libtool_lock"
13657 rhapsody* | darwin*)
13658 if test -n "$ac_tool_prefix"; then
13659 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13660 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13662 $as_echo_n "checking
for $ac_word...
" >&6; }
13663 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13664 $as_echo_n "(cached
) " >&6
13666 if test -n "$DSYMUTIL"; then
13667 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13670 for as_dir in $PATH
13673 test -z "$as_dir" && as_dir=.
13674 for ac_exec_ext in '' $ac_executable_extensions; do
13675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13676 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13677 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13686 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13687 if test -n "$DSYMUTIL"; then
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13689 $as_echo "$DSYMUTIL" >&6; }
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13692 $as_echo "no
" >&6; }
13697 if test -z "$ac_cv_prog_DSYMUTIL"; then
13698 ac_ct_DSYMUTIL=$DSYMUTIL
13699 # Extract the first word of "dsymutil
", so it can be a program name with args.
13700 set dummy dsymutil; ac_word=$2
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13702 $as_echo_n "checking
for $ac_word...
" >&6; }
13703 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13704 $as_echo_n "(cached
) " >&6
13706 if test -n "$ac_ct_DSYMUTIL"; then
13707 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13710 for as_dir in $PATH
13713 test -z "$as_dir" && as_dir=.
13714 for ac_exec_ext in '' $ac_executable_extensions; do
13715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13716 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13717 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13726 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13727 if test -n "$ac_ct_DSYMUTIL"; then
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13729 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13732 $as_echo "no
" >&6; }
13735 if test "x
$ac_ct_DSYMUTIL" = x; then
13738 case $cross_compiling:$ac_tool_warned in
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13741 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13742 ac_tool_warned=yes ;;
13744 DSYMUTIL=$ac_ct_DSYMUTIL
13747 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13750 if test -n "$ac_tool_prefix"; then
13751 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13752 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13754 $as_echo_n "checking
for $ac_word...
" >&6; }
13755 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13756 $as_echo_n "(cached
) " >&6
13758 if test -n "$NMEDIT"; then
13759 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762 for as_dir in $PATH
13765 test -z "$as_dir" && as_dir=.
13766 for ac_exec_ext in '' $ac_executable_extensions; do
13767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13768 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13769 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13778 NMEDIT=$ac_cv_prog_NMEDIT
13779 if test -n "$NMEDIT"; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13781 $as_echo "$NMEDIT" >&6; }
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13784 $as_echo "no
" >&6; }
13789 if test -z "$ac_cv_prog_NMEDIT"; then
13790 ac_ct_NMEDIT=$NMEDIT
13791 # Extract the first word of "nmedit
", so it can be a program name with args.
13792 set dummy nmedit; ac_word=$2
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13794 $as_echo_n "checking
for $ac_word...
" >&6; }
13795 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13796 $as_echo_n "(cached
) " >&6
13798 if test -n "$ac_ct_NMEDIT"; then
13799 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13805 test -z "$as_dir" && as_dir=.
13806 for ac_exec_ext in '' $ac_executable_extensions; do
13807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13808 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13809 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13818 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13819 if test -n "$ac_ct_NMEDIT"; then
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13821 $as_echo "$ac_ct_NMEDIT" >&6; }
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13824 $as_echo "no
" >&6; }
13827 if test "x
$ac_ct_NMEDIT" = x; then
13830 case $cross_compiling:$ac_tool_warned in
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13833 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13834 ac_tool_warned=yes ;;
13836 NMEDIT=$ac_ct_NMEDIT
13839 NMEDIT="$ac_cv_prog_NMEDIT"
13842 if test -n "$ac_tool_prefix"; then
13843 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13844 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13846 $as_echo_n "checking
for $ac_word...
" >&6; }
13847 if test "${ac_cv_prog_LIPO+set}" = set; then :
13848 $as_echo_n "(cached
) " >&6
13850 if test -n "$LIPO"; then
13851 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854 for as_dir in $PATH
13857 test -z "$as_dir" && as_dir=.
13858 for ac_exec_ext in '' $ac_executable_extensions; do
13859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13860 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13861 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13870 LIPO=$ac_cv_prog_LIPO
13871 if test -n "$LIPO"; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13873 $as_echo "$LIPO" >&6; }
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13876 $as_echo "no
" >&6; }
13881 if test -z "$ac_cv_prog_LIPO"; then
13883 # Extract the first word of "lipo
", so it can be a program name with args.
13884 set dummy lipo; ac_word=$2
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13886 $as_echo_n "checking
for $ac_word...
" >&6; }
13887 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13888 $as_echo_n "(cached
) " >&6
13890 if test -n "$ac_ct_LIPO"; then
13891 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894 for as_dir in $PATH
13897 test -z "$as_dir" && as_dir=.
13898 for ac_exec_ext in '' $ac_executable_extensions; do
13899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13900 ac_cv_prog_ac_ct_LIPO="lipo
"
13901 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13910 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13911 if test -n "$ac_ct_LIPO"; then
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13913 $as_echo "$ac_ct_LIPO" >&6; }
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13916 $as_echo "no
" >&6; }
13919 if test "x
$ac_ct_LIPO" = x; then
13922 case $cross_compiling:$ac_tool_warned in
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13925 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13926 ac_tool_warned=yes ;;
13931 LIPO="$ac_cv_prog_LIPO"
13934 if test -n "$ac_tool_prefix"; then
13935 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13936 set dummy ${ac_tool_prefix}otool; ac_word=$2
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13938 $as_echo_n "checking
for $ac_word...
" >&6; }
13939 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13940 $as_echo_n "(cached
) " >&6
13942 if test -n "$OTOOL"; then
13943 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13946 for as_dir in $PATH
13949 test -z "$as_dir" && as_dir=.
13950 for ac_exec_ext in '' $ac_executable_extensions; do
13951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13952 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13953 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13962 OTOOL=$ac_cv_prog_OTOOL
13963 if test -n "$OTOOL"; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13965 $as_echo "$OTOOL" >&6; }
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13968 $as_echo "no
" >&6; }
13973 if test -z "$ac_cv_prog_OTOOL"; then
13975 # Extract the first word of "otool
", so it can be a program name with args.
13976 set dummy otool; ac_word=$2
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13978 $as_echo_n "checking
for $ac_word...
" >&6; }
13979 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13980 $as_echo_n "(cached
) " >&6
13982 if test -n "$ac_ct_OTOOL"; then
13983 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986 for as_dir in $PATH
13989 test -z "$as_dir" && as_dir=.
13990 for ac_exec_ext in '' $ac_executable_extensions; do
13991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13992 ac_cv_prog_ac_ct_OTOOL="otool
"
13993 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14002 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14003 if test -n "$ac_ct_OTOOL"; then
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14005 $as_echo "$ac_ct_OTOOL" >&6; }
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14008 $as_echo "no
" >&6; }
14011 if test "x
$ac_ct_OTOOL" = x; then
14014 case $cross_compiling:$ac_tool_warned in
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14017 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14018 ac_tool_warned=yes ;;
14023 OTOOL="$ac_cv_prog_OTOOL"
14026 if test -n "$ac_tool_prefix"; then
14027 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14028 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14030 $as_echo_n "checking
for $ac_word...
" >&6; }
14031 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14032 $as_echo_n "(cached
) " >&6
14034 if test -n "$OTOOL64"; then
14035 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14038 for as_dir in $PATH
14041 test -z "$as_dir" && as_dir=.
14042 for ac_exec_ext in '' $ac_executable_extensions; do
14043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14044 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14045 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14054 OTOOL64=$ac_cv_prog_OTOOL64
14055 if test -n "$OTOOL64"; then
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14057 $as_echo "$OTOOL64" >&6; }
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14060 $as_echo "no
" >&6; }
14065 if test -z "$ac_cv_prog_OTOOL64"; then
14066 ac_ct_OTOOL64=$OTOOL64
14067 # Extract the first word of "otool64
", so it can be a program name with args.
14068 set dummy otool64; ac_word=$2
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14070 $as_echo_n "checking
for $ac_word...
" >&6; }
14071 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14072 $as_echo_n "(cached
) " >&6
14074 if test -n "$ac_ct_OTOOL64"; then
14075 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078 for as_dir in $PATH
14081 test -z "$as_dir" && as_dir=.
14082 for ac_exec_ext in '' $ac_executable_extensions; do
14083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14084 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14085 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14094 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14095 if test -n "$ac_ct_OTOOL64"; then
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14097 $as_echo "$ac_ct_OTOOL64" >&6; }
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14100 $as_echo "no
" >&6; }
14103 if test "x
$ac_ct_OTOOL64" = x; then
14106 case $cross_compiling:$ac_tool_warned in
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14109 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14110 ac_tool_warned=yes ;;
14112 OTOOL64=$ac_ct_OTOOL64
14115 OTOOL64="$ac_cv_prog_OTOOL64"
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14145 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14146 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14147 $as_echo_n "(cached
) " >&6
14149 lt_cv_apple_cc_single_mod=no
14150 if test -z "${LT_MULTI_MODULE}"; then
14151 # By default we will add the -single_module flag. You can override
14152 # by either setting the environment variable LT_MULTI_MODULE
14153 # non-empty at configure time, or by adding -multi_module to the
14155 rm -rf libconftest.dylib*
14156 echo "int foo
(void
){return 1;}" > conftest.c
14157 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14158 -dynamiclib -Wl,-single_module conftest.c
" >&5
14159 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14160 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14162 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14163 lt_cv_apple_cc_single_mod=yes
14165 cat conftest.err >&5
14167 rm -rf libconftest.dylib*
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14172 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14174 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14175 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14176 $as_echo_n "(cached
) " >&6
14178 lt_cv_ld_exported_symbols_list=no
14179 save_LDFLAGS=$LDFLAGS
14180 echo "_main
" > conftest.sym
14181 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h. */
14193 if ac_fn_c_try_link "$LINENO"; then :
14194 lt_cv_ld_exported_symbols_list=yes
14196 lt_cv_ld_exported_symbols_list=no
14198 rm -f core conftest.err conftest.$ac_objext \
14199 conftest$ac_exeext conftest.$ac_ext
14200 LDFLAGS="$save_LDFLAGS"
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14204 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14206 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14207 if test "${lt_cv_ld_force_load+set}" = set; then :
14208 $as_echo_n "(cached
) " >&6
14210 lt_cv_ld_force_load=no
14211 cat > conftest.c << _LT_EOF
14212 int forced_loaded() { return 2;}
14214 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14215 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14216 echo "$AR cru libconftest.a conftest.o
" >&5
14217 $AR cru libconftest.a conftest.o 2>&5
14218 cat > conftest.c << _LT_EOF
14219 int main() { return 0;}
14221 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14222 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14224 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14225 lt_cv_ld_force_load=yes
14227 cat conftest.err >&5
14229 rm -f conftest.err libconftest.a conftest conftest.c
14230 rm -rf conftest.dSYM
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14234 $as_echo "$lt_cv_ld_force_load" >&6; }
14236 rhapsody* | darwin1.[012])
14237 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14239 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14240 darwin*) # darwin 5.x on
14241 # if running on 10.5 or later, the deployment target defaults
14242 # to the OS version, if on x86, and 10.4, the deployment
14243 # target defaults to 10.4. Don't you love it?
14244 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14245 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14246 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14248 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14250 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14254 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14255 _lt_dar_single_mod='$single_module'
14257 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14258 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14260 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14262 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14263 _lt_dsymutil='~$DSYMUTIL $lib || :'
14270 for ac_header in dlfcn.h
14272 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14273 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14274 cat >>confdefs.h <<_ACEOF
14275 #define HAVE_DLFCN_H 1
14292 enable_win32_dll=no
14295 # Check whether --enable-shared was given.
14296 if test "${enable_shared+set}" = set; then :
14297 enableval=$enable_shared; p=${PACKAGE-default}
14299 yes) enable_shared=yes ;;
14300 no) enable_shared=no ;;
14303 # Look at the argument we got. We use all the common list separators.
14304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14305 for pkg in $enableval; do
14307 if test "X
$pkg" = "X
$p"; then
14326 # Check whether --enable-static was given.
14327 if test "${enable_static+set}" = set; then :
14328 enableval=$enable_static; p=${PACKAGE-default}
14330 yes) enable_static=yes ;;
14331 no) enable_static=no ;;
14334 # Look at the argument we got. We use all the common list separators.
14335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14336 for pkg in $enableval; do
14338 if test "X
$pkg" = "X
$p"; then
14358 # Check whether --with-pic was given.
14359 if test "${with_pic+set}" = set; then :
14360 withval=$with_pic; pic_mode="$withval"
14366 test -z "$pic_mode" && pic_mode=default
14374 # Check whether --enable-fast-install was given.
14375 if test "${enable_fast_install+set}" = set; then :
14376 enableval=$enable_fast_install; p=${PACKAGE-default}
14378 yes) enable_fast_install=yes ;;
14379 no) enable_fast_install=no ;;
14381 enable_fast_install=no
14382 # Look at the argument we got. We use all the common list separators.
14383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14384 for pkg in $enableval; do
14386 if test "X
$pkg" = "X
$p"; then
14387 enable_fast_install=yes
14394 enable_fast_install=yes
14407 # This can be used to rebuild libtool when needed
14408 LIBTOOL_DEPS="$ltmain"
14410 # Always use our own libtool.
14411 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14438 test -z "$LN_S" && LN_S="ln -s"
14453 if test -n "${ZSH_VERSION+set}" ; then
14454 setopt NO_GLOB_SUBST
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14458 $as_echo_n "checking
for objdir...
" >&6; }
14459 if test "${lt_cv_objdir+set}" = set; then :
14460 $as_echo_n "(cached
) " >&6
14462 rm -f .libs 2>/dev/null
14463 mkdir .libs 2>/dev/null
14464 if test -d .libs; then
14467 # MS-DOS does not allow filenames that begin with a dot.
14470 rmdir .libs 2>/dev/null
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14473 $as_echo "$lt_cv_objdir" >&6; }
14474 objdir=$lt_cv_objdir
14480 cat >>confdefs.h <<_ACEOF
14481 #define LT_OBJDIR "$lt_cv_objdir/"
14489 # AIX sometimes has problems with the GCC collect2 program. For some
14490 # reason, if we set the COLLECT_NAMES environment variable, the problems
14491 # vanish in a puff of smoke.
14492 if test "X
${COLLECT_NAMES+set}" != Xset; then
14494 export COLLECT_NAMES
14499 # Global variables:
14501 can_build_shared=yes
14503 # All known linkers require a `.a' archive for static linking (except MSVC,
14504 # which needs '.lib').
14507 with_gnu_ld="$lt_cv_prog_gnu_ld"
14510 old_CFLAGS="$CFLAGS"
14512 # Set sane defaults for various variables
14513 test -z "$CC" && CC=cc
14514 test -z "$LTCC" && LTCC=$CC
14515 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14516 test -z "$LD" && LD=ld
14517 test -z "$ac_objext" && ac_objext=o
14519 for cc_temp in $compiler""; do
14521 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14522 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14527 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14530 # Only perform the check for file, if the check method requires it
14531 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14532 case $deplibs_check_method in
14534 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14536 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14537 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14538 $as_echo_n "(cached
) " >&6
14542 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14545 lt_save_MAGIC_CMD="$MAGIC_CMD"
14546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14547 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14548 for ac_dir in $ac_dummy; do
14550 test -z "$ac_dir" && ac_dir=.
14551 if test -f $ac_dir/${ac_tool_prefix}file; then
14552 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14553 if test -n "$file_magic_test_file"; then
14554 case $deplibs_check_method in
14556 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14559 $EGREP "$file_magic_regex" > /dev/null; then
14564 *** Warning: the command libtool uses to detect shared libraries,
14565 *** $file_magic_cmd, produces output that libtool cannot recognize.
14566 *** The result is that libtool may fail to recognize shared libraries
14567 *** as such. This will affect the creation of libtool libraries that
14568 *** depend on shared libraries, but programs linked with such libtool
14569 *** libraries will work regardless of this problem. Nevertheless, you
14570 *** may want to report the problem to your system manager and/or to
14571 *** bug-libtool@gnu.org
14581 MAGIC_CMD="$lt_save_MAGIC_CMD"
14586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14587 if test -n "$MAGIC_CMD"; then
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14589 $as_echo "$MAGIC_CMD" >&6; }
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14592 $as_echo "no
" >&6; }
14599 if test -z "$lt_cv_path_MAGIC_CMD"; then
14600 if test -n "$ac_tool_prefix"; then
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14602 $as_echo_n "checking
for file...
" >&6; }
14603 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14604 $as_echo_n "(cached
) " >&6
14608 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14611 lt_save_MAGIC_CMD="$MAGIC_CMD"
14612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14613 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14614 for ac_dir in $ac_dummy; do
14616 test -z "$ac_dir" && ac_dir=.
14617 if test -f $ac_dir/file; then
14618 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14619 if test -n "$file_magic_test_file"; then
14620 case $deplibs_check_method in
14622 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14624 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14625 $EGREP "$file_magic_regex" > /dev/null; then
14630 *** Warning: the command libtool uses to detect shared libraries,
14631 *** $file_magic_cmd, produces output that libtool cannot recognize.
14632 *** The result is that libtool may fail to recognize shared libraries
14633 *** as such. This will affect the creation of libtool libraries that
14634 *** depend on shared libraries, but programs linked with such libtool
14635 *** libraries will work regardless of this problem. Nevertheless, you
14636 *** may want to report the problem to your system manager and/or to
14637 *** bug-libtool@gnu.org
14647 MAGIC_CMD="$lt_save_MAGIC_CMD"
14652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14653 if test -n "$MAGIC_CMD"; then
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14655 $as_echo "$MAGIC_CMD" >&6; }
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14658 $as_echo "no
" >&6; }
14671 # Use C for the default configuration in the libtool script
14675 ac_cpp='$CPP $CPPFLAGS'
14676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14681 # Source file extension for C test sources.
14684 # Object file extension for compiled C test sources.
14688 # Code to be used in simple compile tests
14689 lt_simple_compile_test_code="int some_variable
= 0;"
14691 # Code to be used in simple link tests
14692 lt_simple_link_test_code='int main(){return(0);}'
14700 # If no C compiler was specified, use CC.
14703 # If no C compiler flags were specified, use CFLAGS.
14704 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14706 # Allow CC to be a program name with arguments.
14709 # Save the default compiler, since it gets overwritten when the other
14710 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14711 compiler_DEFAULT=$CC
14713 # save warnings/boilerplate of simple test code
14714 ac_outfile=conftest.$ac_objext
14715 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14716 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14717 _lt_compiler_boilerplate=`cat conftest.err`
14720 ac_outfile=conftest.$ac_objext
14721 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14722 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14723 _lt_linker_boilerplate=`cat conftest.err`
14728 ## There is no encapsulation within the following macros, do not change
14729 ## the running order or otherwise move them around unless you know exactly
14730 ## what you are doing...
14731 if test -n "$compiler"; then
14733 lt_prog_compiler_no_builtin_flag=
14735 if test "$GCC" = yes; then
14736 case $cc_basename in
14738 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14740 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14744 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14745 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14746 $as_echo_n "(cached
) " >&6
14748 lt_cv_prog_compiler_rtti_exceptions=no
14749 ac_outfile=conftest.$ac_objext
14750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14751 lt_compiler_flag="-fno-rtti -fno-exceptions"
14752 # Insert the option either (1) after the last *FLAGS variable, or
14753 # (2) before a word containing "conftest.
", or (3) at the end.
14754 # Note that $ac_compile itself does not contain backslashes and begins
14755 # with a dollar sign (not a hyphen), so the echo should work correctly.
14756 # The option is referenced via a variable to avoid confusing sed.
14757 lt_compile=`echo "$ac_compile" | $SED \
14758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14760 -e 's:$: $lt_compiler_flag:'`
14761 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14762 (eval "$lt_compile" 2>conftest.err)
14764 cat conftest.err >&5
14765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14766 if (exit $ac_status) && test -s "$ac_outfile"; then
14767 # The compiler can only warn and ignore the option if not recognized
14768 # So say no if there are warnings other than the usual output.
14769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14772 lt_cv_prog_compiler_rtti_exceptions=yes
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14779 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14781 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14782 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14794 lt_prog_compiler_wl=
14795 lt_prog_compiler_pic=
14796 lt_prog_compiler_static=
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14799 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14801 if test "$GCC" = yes; then
14802 lt_prog_compiler_wl='-Wl,'
14803 lt_prog_compiler_static='-static'
14807 # All AIX code is PIC.
14808 if test "$host_cpu" = ia64; then
14809 # AIX 5 now supports IA64 processor
14810 lt_prog_compiler_static='-Bstatic'
14817 # see comment about AmigaOS4 .so support
14818 lt_prog_compiler_pic='-fPIC'
14821 # FIXME: we need at least 68020 code to build shared libraries, but
14822 # adding the `-m68020' flag to GCC prevents building anything better,
14824 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14829 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14830 # PIC is the default for these OSes.
14833 mingw* | cygwin* | pw32* | os2* | cegcc*)
14834 # This hack is so that the source file can tell whether it is being
14835 # built for inclusion in a dll (and should export symbols for example).
14836 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14837 # (--disable-auto-import) libraries
14838 lt_prog_compiler_pic='-DDLL_EXPORT'
14841 darwin* | rhapsody*)
14842 # PIC is the default on this platform
14843 # Common symbols not allowed in MH_DYLIB files
14844 lt_prog_compiler_pic='-fno-common'
14848 # PIC is the default for Haiku.
14849 # The "-static" flag exists, but is broken.
14850 lt_prog_compiler_static=
14854 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14855 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14856 # sets the default TLS model and affects inlining.
14862 lt_prog_compiler_pic='-fPIC'
14868 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14869 # Instead, we relocate shared libraries at runtime.
14873 # Just because we use GCC doesn't mean we suddenly get shared libraries
14874 # on systems that don't support them.
14875 lt_prog_compiler_can_build_shared=no
14880 # QNX uses GNU C++, but need to define -shared option too, otherwise
14881 # it will coredump.
14882 lt_prog_compiler_pic='-fPIC -shared'
14886 if test -d /usr/nec; then
14887 lt_prog_compiler_pic=-Kconform_pic
14892 lt_prog_compiler_pic='-fPIC'
14896 case $cc_basename in
14897 nvcc*) # Cuda Compiler Driver 2.2
14898 lt_prog_compiler_wl='-Xlinker '
14899 lt_prog_compiler_pic='-Xcompiler -fPIC'
14903 # PORTME Check for flag to pass linker flags through the system compiler.
14906 lt_prog_compiler_wl='-Wl,'
14907 if test "$host_cpu" = ia64; then
14908 # AIX 5 now supports IA64 processor
14909 lt_prog_compiler_static='-Bstatic'
14911 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14915 mingw* | cygwin* | pw32* | os2* | cegcc*)
14916 # This hack is so that the source file can tell whether it is being
14917 # built for inclusion in a dll (and should export symbols for example).
14918 lt_prog_compiler_pic='-DDLL_EXPORT'
14921 hpux9* | hpux10* | hpux11*)
14922 lt_prog_compiler_wl='-Wl,'
14923 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14924 # not for PA HP-UX.
14930 lt_prog_compiler_pic='+Z'
14933 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14934 lt_prog_compiler_static='${wl}-a ${wl}archive'
14937 irix5* | irix6* | nonstopux*)
14938 lt_prog_compiler_wl='-Wl,'
14939 # PIC (with -KPIC) is the default.
14940 lt_prog_compiler_static='-non_shared'
14943 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14944 case $cc_basename in
14945 # old Intel for x86_64 which still supported -KPIC.
14947 lt_prog_compiler_wl='-Wl,'
14948 lt_prog_compiler_pic='-KPIC'
14949 lt_prog_compiler_static='-static'
14951 # icc used to be incompatible with GCC.
14952 # ICC 10 doesn't accept -KPIC any more.
14954 lt_prog_compiler_wl='-Wl,'
14955 lt_prog_compiler_pic='-fPIC'
14956 lt_prog_compiler_static='-static'
14958 # Lahey Fortran 8.1.
14960 lt_prog_compiler_wl='-Wl,'
14961 lt_prog_compiler_pic='--shared'
14962 lt_prog_compiler_static='--static'
14964 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14965 # Portland Group compilers (*not* the Pentium gcc compiler,
14966 # which looks to be a dead project)
14967 lt_prog_compiler_wl='-Wl,'
14968 lt_prog_compiler_pic='-fpic'
14969 lt_prog_compiler_static='-Bstatic'
14972 lt_prog_compiler_wl='-Wl,'
14973 # All Alpha code is PIC.
14974 lt_prog_compiler_static='-non_shared'
14976 xl* | bgxl* | bgf* | mpixl*)
14977 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14978 lt_prog_compiler_wl='-Wl,'
14979 lt_prog_compiler_pic='-qpic'
14980 lt_prog_compiler_static='-qstaticlink'
14983 case `$CC -V 2>&1 | sed 5q` in
14984 *Sun\ F* | *Sun*Fortran*)
14985 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14986 lt_prog_compiler_pic='-KPIC'
14987 lt_prog_compiler_static='-Bstatic'
14988 lt_prog_compiler_wl=''
14992 lt_prog_compiler_pic='-KPIC'
14993 lt_prog_compiler_static='-Bstatic'
14994 lt_prog_compiler_wl='-Wl,'
15002 lt_prog_compiler_pic='-KPIC'
15003 lt_prog_compiler_static='-Bstatic'
15007 # QNX uses GNU C++, but need to define -shared option too, otherwise
15008 # it will coredump.
15009 lt_prog_compiler_pic='-fPIC -shared'
15012 osf3* | osf4* | osf5*)
15013 lt_prog_compiler_wl='-Wl,'
15014 # All OSF/1 code is PIC.
15015 lt_prog_compiler_static='-non_shared'
15019 lt_prog_compiler_static='-non_shared'
15023 lt_prog_compiler_pic='-KPIC'
15024 lt_prog_compiler_static='-Bstatic'
15025 case $cc_basename in
15026 f77* | f90* | f95*)
15027 lt_prog_compiler_wl='-Qoption ld ';;
15029 lt_prog_compiler_wl='-Wl,';;
15034 lt_prog_compiler_wl='-Qoption ld '
15035 lt_prog_compiler_pic='-PIC'
15036 lt_prog_compiler_static='-Bstatic'
15039 sysv4 | sysv4.2uw2* | sysv4.3*)
15040 lt_prog_compiler_wl='-Wl,'
15041 lt_prog_compiler_pic='-KPIC'
15042 lt_prog_compiler_static='-Bstatic'
15046 if test -d /usr/nec ;then
15047 lt_prog_compiler_pic='-Kconform_pic'
15048 lt_prog_compiler_static='-Bstatic'
15052 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15053 lt_prog_compiler_wl='-Wl,'
15054 lt_prog_compiler_pic='-KPIC'
15055 lt_prog_compiler_static='-Bstatic'
15059 lt_prog_compiler_wl='-Wl,'
15060 lt_prog_compiler_can_build_shared=no
15064 lt_prog_compiler_pic='-pic'
15065 lt_prog_compiler_static='-Bstatic'
15069 lt_prog_compiler_can_build_shared=no
15075 # For platforms which do not support PIC, -DPIC is meaningless:
15077 lt_prog_compiler_pic=
15080 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15084 $as_echo "$lt_prog_compiler_pic" >&6; }
15092 # Check to make sure the PIC flag actually works.
15094 if test -n "$lt_prog_compiler_pic"; then
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15096 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15097 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15098 $as_echo_n "(cached
) " >&6
15100 lt_cv_prog_compiler_pic_works=no
15101 ac_outfile=conftest.$ac_objext
15102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15103 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15104 # Insert the option either (1) after the last *FLAGS variable, or
15105 # (2) before a word containing "conftest.
", or (3) at the end.
15106 # Note that $ac_compile itself does not contain backslashes and begins
15107 # with a dollar sign (not a hyphen), so the echo should work correctly.
15108 # The option is referenced via a variable to avoid confusing sed.
15109 lt_compile=`echo "$ac_compile" | $SED \
15110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15112 -e 's:$: $lt_compiler_flag:'`
15113 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15114 (eval "$lt_compile" 2>conftest.err)
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15118 if (exit $ac_status) && test -s "$ac_outfile"; then
15119 # The compiler can only warn and ignore the option if not recognized
15120 # So say no if there are warnings other than the usual output.
15121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15124 lt_cv_prog_compiler_pic_works=yes
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15131 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15133 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15134 case $lt_prog_compiler_pic in
15136 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15139 lt_prog_compiler_pic=
15140 lt_prog_compiler_can_build_shared=no
15151 # Check to make sure the static flag actually works.
15153 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15155 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15156 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15157 $as_echo_n "(cached
) " >&6
15159 lt_cv_prog_compiler_static_works=no
15160 save_LDFLAGS="$LDFLAGS"
15161 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15162 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15163 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15164 # The linker can only warn and ignore the option if not recognized
15165 # So say no if there are warnings
15166 if test -s conftest.err; then
15167 # Append any errors to the config.log.
15168 cat conftest.err 1>&5
15169 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15171 if diff conftest.exp conftest.er2 >/dev/null; then
15172 lt_cv_prog_compiler_static_works=yes
15175 lt_cv_prog_compiler_static_works=yes
15179 LDFLAGS="$save_LDFLAGS"
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15183 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15185 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15188 lt_prog_compiler_static=
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15198 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15199 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15200 $as_echo_n "(cached
) " >&6
15202 lt_cv_prog_compiler_c_o=no
15203 $RM -r conftest 2>/dev/null
15207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15209 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15210 # Insert the option either (1) after the last *FLAGS variable, or
15211 # (2) before a word containing "conftest.
", or (3) at the end.
15212 # Note that $ac_compile itself does not contain backslashes and begins
15213 # with a dollar sign (not a hyphen), so the echo should work correctly.
15214 lt_compile=`echo "$ac_compile" | $SED \
15215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15217 -e 's:$: $lt_compiler_flag:'`
15218 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15219 (eval "$lt_compile" 2>out/conftest.err)
15221 cat out/conftest.err >&5
15222 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15223 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15225 # The compiler can only warn and ignore the option if not recognized
15226 # So say no if there are warnings
15227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15228 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15229 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15230 lt_cv_prog_compiler_c_o=yes
15235 # SGI C++ compiler will create directory out/ii_files/ for
15236 # template instantiation
15237 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15238 $RM out/* && rmdir out
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15245 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15253 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15254 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15255 $as_echo_n "(cached
) " >&6
15257 lt_cv_prog_compiler_c_o=no
15258 $RM -r conftest 2>/dev/null
15262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15264 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15265 # Insert the option either (1) after the last *FLAGS variable, or
15266 # (2) before a word containing "conftest.
", or (3) at the end.
15267 # Note that $ac_compile itself does not contain backslashes and begins
15268 # with a dollar sign (not a hyphen), so the echo should work correctly.
15269 lt_compile=`echo "$ac_compile" | $SED \
15270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15272 -e 's:$: $lt_compiler_flag:'`
15273 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15274 (eval "$lt_compile" 2>out/conftest.err)
15276 cat out/conftest.err >&5
15277 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15278 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15280 # The compiler can only warn and ignore the option if not recognized
15281 # So say no if there are warnings
15282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15283 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15284 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15285 lt_cv_prog_compiler_c_o=yes
15290 # SGI C++ compiler will create directory out/ii_files/ for
15291 # template instantiation
15292 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15293 $RM out/* && rmdir out
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15300 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15305 hard_links="nottested
"
15306 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15307 # do not overwrite the value of need_locks provided by the user
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15309 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15312 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15314 ln conftest.a conftest.b 2>&5 || hard_links=no
15315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15317 $as_echo "$hard_links" >&6; }
15318 if test "$hard_links" = no; then
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15320 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15333 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15336 allow_undefined_flag=
15337 always_export_symbols=no
15339 archive_expsym_cmds=
15340 compiler_needs_object=no
15341 enable_shared_with_static_runtimes=no
15342 export_dynamic_flag_spec=
15343 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15344 hardcode_automatic=no
15346 hardcode_direct_absolute=no
15347 hardcode_libdir_flag_spec=
15348 hardcode_libdir_flag_spec_ld=
15349 hardcode_libdir_separator=
15350 hardcode_minus_L=no
15351 hardcode_shlibpath_var=unsupported
15353 link_all_deplibs=unknown
15355 module_expsym_cmds=
15356 old_archive_from_new_cmds=
15357 old_archive_from_expsyms_cmds=
15358 thread_safe_flag_spec=
15359 whole_archive_flag_spec=
15360 # include_expsyms should be a list of space-separated symbols to be *always*
15361 # included in the symbol list
15363 # exclude_expsyms can be an extended regexp of symbols to exclude
15364 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15365 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15366 # as well as any symbol that contains `d'.
15367 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15368 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15369 # platforms (ab)use it in PIC code, but their linkers get confused if
15370 # the symbol is explicitly referenced. Since portable code cannot
15371 # rely on this symbol name, it's probably fine to never include it in
15372 # preloaded symbol tables.
15373 # Exclude shared library initialization/finalization symbols.
15374 extract_expsyms_cmds=
15377 cygwin* | mingw* | pw32* | cegcc*)
15378 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15379 # When not using gcc, we currently assume that we are using
15380 # Microsoft Visual C++.
15381 if test "$GCC" != yes; then
15386 # we just hope/assume this is gcc and not c89 (= MSVC++)
15396 # On some targets, GNU ld is compatible enough with the native linker
15397 # that we're better off using the native interface for both.
15398 lt_use_gnu_ld_interface=no
15399 if test "$with_gnu_ld" = yes; then
15402 # The AIX port of GNU ld has always aspired to compatibility
15403 # with the native linker. However, as the warning in the GNU ld
15404 # block says, versions before 2.19.5* couldn't really create working
15405 # shared libraries, regardless of the interface used.
15406 case `$LD -v 2>&1` in
15407 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15408 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15409 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15411 lt_use_gnu_ld_interface=yes
15416 lt_use_gnu_ld_interface=yes
15421 if test "$lt_use_gnu_ld_interface" = yes; then
15422 # If archive_cmds runs LD, not CC, wlarc should be empty
15425 # Set some defaults for GNU ld with shared library support. These
15426 # are reset later if shared libraries are not supported. Putting them
15427 # here allows them to be overridden if necessary.
15428 runpath_var=LD_RUN_PATH
15429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15430 export_dynamic_flag_spec='${wl}--export-dynamic'
15431 # ancient GNU ld didn't support --whole-archive et. al.
15432 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15433 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15435 whole_archive_flag_spec=
15437 supports_anon_versioning=no
15438 case `$LD -v 2>&1` in
15439 *GNU\ gold*) supports_anon_versioning=yes ;;
15440 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15441 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15442 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15443 *\ 2.11.*) ;; # other 2.11 versions
15444 *) supports_anon_versioning=yes ;;
15447 # See if GNU ld supports shared libraries.
15450 # On AIX/PPC, the GNU linker is very broken
15451 if test "$host_cpu" != ia64; then
15455 *** Warning: the GNU linker, at least up to release 2.19, is reported
15456 *** to be unable to reliably create shared libraries on AIX.
15457 *** Therefore, libtool is disabling shared libraries support. If you
15458 *** really care for shared libraries, you may want to install binutils
15459 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15460 *** You will then need to restart the configuration process.
15469 # see comment about AmigaOS4 .so support
15470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15471 archive_expsym_cmds=''
15474 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)'
15475 hardcode_libdir_flag_spec
='-L$libdir'
15476 hardcode_minus_L
=yes
15482 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15483 allow_undefined_flag
=unsupported
15484 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15485 # support --undefined. This deserves some investigation. FIXME
15486 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15492 cygwin
* | mingw
* | pw32
* | cegcc
*)
15493 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15494 # as there is no search path for DLLs.
15495 hardcode_libdir_flag_spec
='-L$libdir'
15496 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15497 allow_undefined_flag
=unsupported
15498 always_export_symbols
=no
15499 enable_shared_with_static_runtimes
=yes
15500 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15502 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15503 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15504 # If the export-symbols file already is a .def file (1st line
15505 # is EXPORTS), use it as is; otherwise, prepend...
15506 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15507 cp $export_symbols $output_objdir/$soname.def;
15509 echo EXPORTS > $output_objdir/$soname.def;
15510 cat $export_symbols >> $output_objdir/$soname.def;
15512 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15519 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15520 link_all_deplibs
=yes
15525 hardcode_shlibpath_var
=no
15526 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15527 export_dynamic_flag_spec
='${wl}-E'
15528 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15529 # Instead, shared libraries are loaded at an image base (0x10000000 by
15530 # default) and relocated if they conflict, which is a slow very memory
15531 # consuming and fragmenting process. To avoid this, we pick a random,
15532 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15533 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15534 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15535 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'
15538 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15540 if test "$host_os" = linux-dietlibc
; then
15541 case $cc_basename in
15542 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15545 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15546 && test "$tmp_diet" = no
15549 tmp_sharedflag
='-shared'
15550 case $cc_basename,$host_cpu in
15551 pgcc
*) # Portland Group C compiler
15552 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'
15553 tmp_addflag
=' $pic_flag'
15555 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15556 # Portland Group f77 and f90 compilers
15557 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'
15558 tmp_addflag
=' $pic_flag -Mnomain' ;;
15559 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15560 tmp_addflag
=' -i_dynamic' ;;
15561 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15562 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15563 ifc
* | ifort
*) # Intel Fortran compiler
15564 tmp_addflag
=' -nofor_main' ;;
15565 lf95
*) # Lahey Fortran 8.1
15566 whole_archive_flag_spec
=
15567 tmp_sharedflag
='--shared' ;;
15568 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15569 tmp_sharedflag
='-qmkshrobj'
15571 nvcc
*) # Cuda Compiler Driver 2.2
15572 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'
15573 compiler_needs_object
=yes
15576 case `$CC -V 2>&1 | sed 5q` in
15577 *Sun\ C
*) # Sun C 5.9
15578 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'
15579 compiler_needs_object
=yes
15580 tmp_sharedflag
='-G' ;;
15581 *Sun\ F
*) # Sun Fortran 8.3
15582 tmp_sharedflag
='-G' ;;
15584 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15586 if test "x$supports_anon_versioning" = xyes
; then
15587 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15588 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15589 echo "local: *; };" >> $output_objdir/$libname.ver~
15590 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15593 case $cc_basename in
15594 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15595 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15596 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15597 hardcode_libdir_flag_spec
=
15598 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15599 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15600 if test "x$supports_anon_versioning" = xyes
; then
15601 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15603 echo "local: *; };" >> $output_objdir/$libname.ver~
15604 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15614 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15615 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15618 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15619 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15624 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15628 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15629 *** create shared libraries on Solaris systems. Therefore, libtool
15630 *** is disabling shared libraries support. We urge you to upgrade GNU
15631 *** binutils to release 2.9.1 or newer. Another option is to modify
15632 *** your PATH or compiler configuration so that the native linker is
15633 *** used, and then restart.
15636 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15637 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15638 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15644 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15645 case `$LD -v 2>&1` in
15646 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15650 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15651 *** reliably create shared libraries on SCO systems. Therefore, libtool
15652 *** is disabling shared libraries support. We urge you to upgrade GNU
15653 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15654 *** your PATH or compiler configuration so that the native linker is
15655 *** used, and then restart.
15660 # For security reasons, it is highly recommended that you always
15661 # use absolute paths for naming shared libraries, and exclude the
15662 # DT_RUNPATH tag from executables and libraries. But doing so
15663 # requires that you compile everything twice, which is a pain.
15664 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15665 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15666 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15667 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15676 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15678 hardcode_direct
=yes
15679 hardcode_shlibpath_var
=no
15683 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15684 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15685 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15692 if test "$ld_shlibs" = no
; then
15694 hardcode_libdir_flag_spec
=
15695 export_dynamic_flag_spec
=
15696 whole_archive_flag_spec
=
15699 # PORTME fill in a description of your system's linker (not GNU ld)
15702 allow_undefined_flag
=unsupported
15703 always_export_symbols
=yes
15704 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'
15705 # Note: this linker hardcodes the directories in LIBPATH if there
15706 # are no directories specified by -L.
15707 hardcode_minus_L
=yes
15708 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15709 # Neither direct hardcoding nor static linking is supported with a
15711 hardcode_direct
=unsupported
15716 if test "$host_cpu" = ia64
; then
15717 # On IA64, the linker does run time linking by default, so we don't
15718 # have to do anything special.
15719 aix_use_runtimelinking
=no
15720 exp_sym_flag
='-Bexport'
15723 # If we're using GNU nm, then we don't want the "-C" option.
15724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15725 # Also, AIX nm treats weak defined symbols like other global
15726 # defined symbols, whereas GNU nm marks them as "W".
15727 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15728 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'
15730 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'
15732 aix_use_runtimelinking
=no
15734 # Test if we are trying to use run time linking or normal
15735 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15736 # need to do runtime linking.
15737 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15738 for ld_flag
in $LDFLAGS; do
15739 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15740 aix_use_runtimelinking
=yes
15747 exp_sym_flag
='-bexport'
15748 no_entry_flag
='-bnoentry'
15751 # When large executables or shared objects are built, AIX ld can
15752 # have problems creating the table of contents. If linking a library
15753 # or program results in "error TOC overflow" add -mminimal-toc to
15754 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15755 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15758 hardcode_direct
=yes
15759 hardcode_direct_absolute
=yes
15760 hardcode_libdir_separator
=':'
15761 link_all_deplibs
=yes
15762 file_list_spec
='${wl}-f,'
15764 if test "$GCC" = yes; then
15765 case $host_os in aix4.
[012]|aix4.
[012].
*)
15766 # We only want to do this on AIX 4.2 and lower, the check
15767 # below for broken collect2 doesn't work under 4.3+
15768 collect2name
=`${CC} -print-prog-name=collect2`
15769 if test -f "$collect2name" &&
15770 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15772 # We have reworked collect2
15775 # We have old collect2
15776 hardcode_direct
=unsupported
15777 # It fails to find uninstalled libraries when the uninstalled
15778 # path is not listed in the libpath. Setting hardcode_minus_L
15779 # to unsupported forces relinking
15780 hardcode_minus_L
=yes
15781 hardcode_libdir_flag_spec
='-L$libdir'
15782 hardcode_libdir_separator
=
15786 shared_flag
='-shared'
15787 if test "$aix_use_runtimelinking" = yes; then
15788 shared_flag
="$shared_flag "'${wl}-G'
15792 if test "$host_cpu" = ia64
; then
15793 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15794 # chokes on -Wl,-G. The following line is correct:
15797 if test "$aix_use_runtimelinking" = yes; then
15798 shared_flag
='${wl}-G'
15800 shared_flag
='${wl}-bM:SRE'
15805 export_dynamic_flag_spec
='${wl}-bexpall'
15806 # It seems that -bexpall does not export symbols beginning with
15807 # underscore (_), so it is better to generate a list of symbols to export.
15808 always_export_symbols
=yes
15809 if test "$aix_use_runtimelinking" = yes; then
15810 # Warning - without using the other runtime loading flags (-brtl),
15811 # -berok will link without error, but may produce a broken library.
15812 allow_undefined_flag
='-berok'
15813 # Determine the default libpath from the value encoded in an
15814 # empty executable.
15815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h. */
15826 if ac_fn_c_try_link
"$LINENO"; then :
15828 lt_aix_libpath_sed
='
15829 /Import File Strings/,/^$/ {
15835 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15836 # Check for a 64-bit object if we didn't find anything.
15837 if test -z "$aix_libpath"; then
15838 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15841 rm -f core conftest.err conftest.
$ac_objext \
15842 conftest
$ac_exeext conftest.
$ac_ext
15843 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15845 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15846 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"
15848 if test "$host_cpu" = ia64
; then
15849 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15850 allow_undefined_flag
="-z nodefs"
15851 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"
15853 # Determine the default libpath from the value encoded in an
15854 # empty executable.
15855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h. */
15866 if ac_fn_c_try_link
"$LINENO"; then :
15868 lt_aix_libpath_sed
='
15869 /Import File Strings/,/^$/ {
15875 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15876 # Check for a 64-bit object if we didn't find anything.
15877 if test -z "$aix_libpath"; then
15878 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15881 rm -f core conftest.err conftest.
$ac_objext \
15882 conftest
$ac_exeext conftest.
$ac_ext
15883 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15885 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15886 # Warning - without using the other run time loading flags,
15887 # -berok will link without error, but may produce a broken library.
15888 no_undefined_flag
=' ${wl}-bernotok'
15889 allow_undefined_flag
=' ${wl}-berok'
15890 if test "$with_gnu_ld" = yes; then
15891 # We only use this code for GNU lds that support --whole-archive.
15892 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15894 # Exported symbols can be pulled into shared objects from archives
15895 whole_archive_flag_spec
='$convenience'
15897 archive_cmds_need_lc
=yes
15898 # This is similar to how AIX traditionally builds its shared libraries.
15899 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'
15907 # see comment about AmigaOS4 .so support
15908 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15909 archive_expsym_cmds
=''
15912 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)'
15913 hardcode_libdir_flag_spec
='-L$libdir'
15914 hardcode_minus_L
=yes
15920 export_dynamic_flag_spec
=-rdynamic
15923 cygwin
* | mingw
* | pw32
* | cegcc
*)
15924 # When not using gcc, we currently assume that we are using
15925 # Microsoft Visual C++.
15926 # hardcode_libdir_flag_spec is actually meaningless, as there is
15927 # no search path for DLLs.
15928 hardcode_libdir_flag_spec
=' '
15929 allow_undefined_flag
=unsupported
15930 # Tell ltmain to make .lib files, not .a files.
15932 # Tell ltmain to make .dll files, not .so files.
15934 # FIXME: Setting linknames here is a bad hack.
15935 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15936 # The linker will automatically build a .lib file if we build a DLL.
15937 old_archive_from_new_cmds
='true'
15938 # FIXME: Should let the user specify the lib program.
15939 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15940 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15941 enable_shared_with_static_runtimes
=yes
15944 darwin
* | rhapsody
*)
15947 archive_cmds_need_lc
=no
15949 hardcode_automatic
=yes
15950 hardcode_shlibpath_var
=unsupported
15951 if test "$lt_cv_ld_force_load" = "yes"; then
15952 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\"`'
15954 whole_archive_flag_spec
=''
15956 link_all_deplibs
=yes
15957 allow_undefined_flag
="$_lt_dar_allow_undefined"
15958 case $cc_basename in
15959 ifort
*) _lt_dar_can_shared
=yes ;;
15960 *) _lt_dar_can_shared
=$GCC ;;
15962 if test "$_lt_dar_can_shared" = "yes"; then
15963 output_verbose_link_cmd
=func_echo_all
15964 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15965 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15966 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}"
15967 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}"
15976 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15977 hardcode_libdir_flag_spec
='-L$libdir'
15978 hardcode_shlibpath_var
=no
15981 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15982 # support. Future versions do this automatically, but an explicit c++rt0.o
15983 # does not break anything, and helps significantly (at the cost of a little
15986 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15987 hardcode_libdir_flag_spec
='-R$libdir'
15988 hardcode_direct
=yes
15989 hardcode_shlibpath_var
=no
15992 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15994 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15995 hardcode_direct
=yes
15996 hardcode_minus_L
=yes
15997 hardcode_shlibpath_var
=no
16000 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16001 freebsd
* | dragonfly
*)
16002 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16003 hardcode_libdir_flag_spec
='-R$libdir'
16004 hardcode_direct
=yes
16005 hardcode_shlibpath_var
=no
16009 if test "$GCC" = yes; then
16010 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'
16012 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'
16014 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16015 hardcode_libdir_separator
=:
16016 hardcode_direct
=yes
16018 # hardcode_minus_L: Not really in the search PATH,
16019 # but as the default location of the library.
16020 hardcode_minus_L
=yes
16021 export_dynamic_flag_spec
='${wl}-E'
16025 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16026 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16028 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16030 if test "$with_gnu_ld" = no
; then
16031 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16032 hardcode_libdir_flag_spec_ld
='+b $libdir'
16033 hardcode_libdir_separator
=:
16034 hardcode_direct
=yes
16035 hardcode_direct_absolute
=yes
16036 export_dynamic_flag_spec
='${wl}-E'
16037 # hardcode_minus_L: Not really in the search PATH,
16038 # but as the default location of the library.
16039 hardcode_minus_L
=yes
16044 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16047 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16050 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16053 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16059 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16062 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16066 # Older versions of the 11.00 compiler do not understand -b yet
16067 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16069 $as_echo_n "checking if $CC understands -b... " >&6; }
16070 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16071 $as_echo_n "(cached) " >&6
16073 lt_cv_prog_compiler__b
=no
16074 save_LDFLAGS
="$LDFLAGS"
16075 LDFLAGS
="$LDFLAGS -b"
16076 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16077 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16078 # The linker can only warn and ignore the option if not recognized
16079 # So say no if there are warnings
16080 if test -s conftest.err
; then
16081 # Append any errors to the config.log.
16082 cat conftest.err
1>&5
16083 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16084 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16085 if diff conftest.exp conftest.er2
>/dev
/null
; then
16086 lt_cv_prog_compiler__b
=yes
16089 lt_cv_prog_compiler__b
=yes
16093 LDFLAGS
="$save_LDFLAGS"
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16097 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16099 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16100 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16102 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16108 if test "$with_gnu_ld" = no
; then
16109 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16110 hardcode_libdir_separator
=:
16115 hardcode_shlibpath_var
=no
16118 hardcode_direct
=yes
16119 hardcode_direct_absolute
=yes
16120 export_dynamic_flag_spec
='${wl}-E'
16122 # hardcode_minus_L: Not really in the search PATH,
16123 # but as the default location of the library.
16124 hardcode_minus_L
=yes
16130 irix5
* | irix6
* | nonstopux
*)
16131 if test "$GCC" = yes; then
16132 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'
16133 # Try to use the -exported_symbol ld option, if it does not
16134 # work, assume that -exports_file does not work either and
16135 # implicitly export all symbols.
16136 save_LDFLAGS
="$LDFLAGS"
16137 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16139 /* end confdefs.h. */
16142 if ac_fn_c_try_link
"$LINENO"; then :
16143 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'
16146 rm -f core conftest.err conftest.
$ac_objext \
16147 conftest
$ac_exeext conftest.
$ac_ext
16148 LDFLAGS
="$save_LDFLAGS"
16150 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'
16151 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'
16153 archive_cmds_need_lc
='no'
16154 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16155 hardcode_libdir_separator
=:
16157 link_all_deplibs
=yes
16161 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16162 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16164 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16166 hardcode_libdir_flag_spec
='-R$libdir'
16167 hardcode_direct
=yes
16168 hardcode_shlibpath_var
=no
16172 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16173 hardcode_direct
=yes
16174 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16175 hardcode_libdir_separator
=:
16176 hardcode_shlibpath_var
=no
16183 if test -f /usr
/libexec
/ld.so
; then
16184 hardcode_direct
=yes
16185 hardcode_shlibpath_var
=no
16186 hardcode_direct_absolute
=yes
16187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16188 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16189 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16190 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16191 export_dynamic_flag_spec
='${wl}-E'
16194 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16195 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16196 hardcode_libdir_flag_spec
='-R$libdir'
16199 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16200 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16210 hardcode_libdir_flag_spec
='-L$libdir'
16211 hardcode_minus_L
=yes
16212 allow_undefined_flag
=unsupported
16213 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'
16214 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16218 if test "$GCC" = yes; then
16219 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16220 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'
16222 allow_undefined_flag
=' -expect_unresolved \*'
16223 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'
16225 archive_cmds_need_lc
='no'
16226 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16227 hardcode_libdir_separator
=:
16230 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16231 if test "$GCC" = yes; then
16232 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16233 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'
16234 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16236 allow_undefined_flag
=' -expect_unresolved \*'
16237 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'
16238 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~
16239 $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'
16241 # Both c and cxx compiler support -rpath directly
16242 hardcode_libdir_flag_spec
='-rpath $libdir'
16244 archive_cmds_need_lc
='no'
16245 hardcode_libdir_separator
=:
16249 no_undefined_flag
=' -z defs'
16250 if test "$GCC" = yes; then
16252 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16253 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16254 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16256 case `$CC -V 2>&1` in
16259 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16260 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16261 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16265 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16266 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16267 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16271 hardcode_libdir_flag_spec
='-R$libdir'
16272 hardcode_shlibpath_var
=no
16274 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16276 # The compiler driver will combine and reorder linker options,
16277 # but understands `-z linker_flag'. GCC discards it without `$wl',
16278 # but is careful enough not to reorder.
16279 # Supported since Solaris 2.6 (maybe 2.5.1?)
16280 if test "$GCC" = yes; then
16281 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16283 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16287 link_all_deplibs
=yes
16291 if test "x$host_vendor" = xsequent
; then
16292 # Use $CC to link under sequent, because it throws in some extra .o
16293 # files that make .init and .fini sections work.
16294 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16296 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16298 hardcode_libdir_flag_spec
='-L$libdir'
16299 hardcode_direct
=yes
16300 hardcode_minus_L
=yes
16301 hardcode_shlibpath_var
=no
16305 case $host_vendor in
16307 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16308 hardcode_direct
=yes # is this really true???
16311 ## LD is ld it makes a PLAMLIB
16312 ## CC just makes a GrossModule.
16313 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16314 reload_cmds
='$CC -r -o $output$reload_objs'
16318 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16319 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16322 runpath_var
='LD_RUN_PATH'
16323 hardcode_shlibpath_var
=no
16327 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16328 hardcode_shlibpath_var
=no
16329 export_dynamic_flag_spec
='-Bexport'
16333 if test -d /usr
/nec
; then
16334 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16335 hardcode_shlibpath_var
=no
16336 runpath_var
=LD_RUN_PATH
16337 hardcode_runpath_var
=yes
16342 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16343 no_undefined_flag
='${wl}-z,text'
16344 archive_cmds_need_lc
=no
16345 hardcode_shlibpath_var
=no
16346 runpath_var
='LD_RUN_PATH'
16348 if test "$GCC" = yes; then
16349 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16350 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16352 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16353 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16357 sysv5
* | sco3.2v5
* | sco5v6
*)
16358 # Note: We can NOT use -z defs as we might desire, because we do not
16359 # link with -lc, and that would cause any symbols used from libc to
16360 # always be unresolved, which means just about no library would
16361 # ever link correctly. If we're not using GNU ld we use -z text
16362 # though, which does catch some bad symbols but isn't as heavy-handed
16364 no_undefined_flag
='${wl}-z,text'
16365 allow_undefined_flag
='${wl}-z,nodefs'
16366 archive_cmds_need_lc
=no
16367 hardcode_shlibpath_var
=no
16368 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16369 hardcode_libdir_separator
=':'
16370 link_all_deplibs
=yes
16371 export_dynamic_flag_spec
='${wl}-Bexport'
16372 runpath_var
='LD_RUN_PATH'
16374 if test "$GCC" = yes; then
16375 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16376 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16378 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16379 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16384 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16385 hardcode_libdir_flag_spec
='-L$libdir'
16386 hardcode_shlibpath_var
=no
16394 if test x
$host_vendor = xsni
; then
16396 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16397 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16404 $as_echo "$ld_shlibs" >&6; }
16405 test "$ld_shlibs" = no
&& can_build_shared
=no
16407 with_gnu_ld
=$with_gnu_ld
16424 # Do we need to explicitly link libc?
16426 case "x$archive_cmds_need_lc" in
16428 # Assume -lc should be added
16429 archive_cmds_need_lc
=yes
16431 if test "$enable_shared" = yes && test "$GCC" = yes; then
16432 case $archive_cmds in
16434 # FIXME: we may have to deal with multi-command sequences.
16437 # Test whether the compiler implicitly links with -lc since on some
16438 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16439 # to ld, don't add -lc before -lgcc.
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16441 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16442 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16443 $as_echo_n "(cached) " >&6
16446 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16449 (eval $ac_compile) 2>&5
16451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16452 test $ac_status = 0; } 2>conftest.err
; then
16455 libobjs
=conftest.
$ac_objext
16457 wl
=$lt_prog_compiler_wl
16458 pic_flag
=$lt_prog_compiler_pic
16464 lt_save_allow_undefined_flag
=$allow_undefined_flag
16465 allow_undefined_flag
=
16466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16467 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16470 test $ac_status = 0; }
16472 lt_cv_archive_cmds_need_lc
=no
16474 lt_cv_archive_cmds_need_lc
=yes
16476 allow_undefined_flag
=$lt_save_allow_undefined_flag
16478 cat conftest.err
1>&5
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16484 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16485 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16649 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16651 if test "$GCC" = yes; then
16653 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16654 *) lt_awk_arg
="/^libraries:/" ;;
16657 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16658 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16660 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16661 case $lt_search_path_spec in
16663 # if the path contains ";" then we assume it to be the separator
16664 # otherwise default to the standard path separator (i.e. ":") - it is
16665 # assumed that no part of a normal pathname contains ";" but that should
16666 # okay in the real world where ";" in dirpaths is itself problematic.
16667 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16670 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16673 # Ok, now we have the path, separated by spaces, we can step through it
16674 # and add multilib dir if necessary.
16675 lt_tmp_lt_search_path_spec
=
16676 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16677 for lt_sys_path
in $lt_search_path_spec; do
16678 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16679 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16681 test -d "$lt_sys_path" && \
16682 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16685 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16686 BEGIN {RS=" "; FS="/|\n";} {
16689 for (lt_i = NF; lt_i > 0; lt_i--) {
16690 if ($lt_i != "" && $lt_i != ".") {
16691 if ($lt_i == "..") {
16694 if (lt_count == 0) {
16695 lt_foo="/" $lt_i lt_foo;
16702 if (lt_foo != "") { lt_freq[lt_foo]++; }
16703 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16705 # AWK program above erroneously prepends '/' to C:/dos/paths
16708 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16709 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16711 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16713 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16715 library_names_spec
=
16716 libname_spec
='lib$name'
16720 postuninstall_cmds
=
16724 shlibpath_overrides_runpath
=unknown
16726 dynamic_linker
="$host_os ld.so"
16727 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16728 need_lib_prefix
=unknown
16729 hardcode_into_libs
=no
16731 # when you set need_version to no, make sure it does not cause -set_version
16732 # flags to be left without arguments
16733 need_version
=unknown
16738 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16739 shlibpath_var
=LIBPATH
16741 # AIX 3 has no versioning support, so we append a major version to the name.
16742 soname_spec
='${libname}${release}${shared_ext}$major'
16749 hardcode_into_libs
=yes
16750 if test "$host_cpu" = ia64
; then
16751 # AIX 5 supports IA64
16752 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16753 shlibpath_var
=LD_LIBRARY_PATH
16755 # With GCC up to 2.95.x, collect2 would create an import file
16756 # for dependence libraries. The import file would start with
16757 # the line `#! .'. This would cause the generated library to
16758 # depend on `.', always an invalid library. This was fixed in
16759 # development snapshots of GCC prior to 3.0.
16761 aix4 | aix4.
[01] | aix4.
[01].
*)
16762 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16764 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16767 can_build_shared
=no
16771 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16772 # soname into executable. Probably we can add versioning support to
16773 # collect2, so additional links can be useful in future.
16774 if test "$aix_use_runtimelinking" = yes; then
16775 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16776 # instead of lib<name>.a to let people know that these are not
16777 # typical AIX shared libraries.
16778 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16780 # We preserve .a as extension for shared libraries through AIX4.2
16781 # and later when we are not doing run time linking.
16782 library_names_spec
='${libname}${release}.a $libname.a'
16783 soname_spec
='${libname}${release}${shared_ext}$major'
16785 shlibpath_var
=LIBPATH
16792 # Since July 2007 AmigaOS4 officially supports .so libraries.
16793 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797 library_names_spec
='$libname.ixlibrary $libname.a'
16798 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16799 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'
16805 library_names_spec
='${libname}${shared_ext}'
16806 dynamic_linker
="$host_os ld.so"
16807 shlibpath_var
=LIBRARY_PATH
16813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814 soname_spec
='${libname}${release}${shared_ext}$major'
16815 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16816 shlibpath_var
=LD_LIBRARY_PATH
16817 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16818 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16819 # the default ld.so.conf also contains /usr/contrib/lib and
16820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16821 # libtool to hard-code these into programs
16824 cygwin
* | mingw
* | pw32
* | cegcc
*)
16825 version_type
=windows
16830 case $GCC,$host_os in
16831 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16832 library_names_spec
='$libname.dll.a'
16833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16834 postinstall_cmds
='base_file=`basename \${file}`~
16835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16836 dldir=$destdir/`dirname \$dlpath`~
16837 test -d \$dldir || mkdir -p \$dldir~
16838 $install_prog $dir/$dlname \$dldir/$dlname~
16839 chmod a+x \$dldir/$dlname~
16840 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16841 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16843 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16844 dlpath=$dir/\$dldll~
16846 shlibpath_overrides_runpath
=yes
16850 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16851 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16853 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16856 # MinGW DLLs use traditional 'lib' prefix
16857 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16860 # pw32 DLLs use 'pw' prefix rather than 'lib'
16861 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16867 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16870 dynamic_linker
='Win32 ld.exe'
16871 # FIXME: first we should search . and the directory the executable is in
16875 darwin
* | rhapsody
*)
16876 dynamic_linker
="$host_os dyld"
16877 version_type
=darwin
16880 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16881 soname_spec
='${libname}${release}${major}$shared_ext'
16882 shlibpath_overrides_runpath
=yes
16883 shlibpath_var
=DYLD_LIBRARY_PATH
16884 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16886 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16887 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16895 soname_spec
='${libname}${release}${shared_ext}$major'
16896 shlibpath_var
=LD_LIBRARY_PATH
16899 freebsd
* | dragonfly
*)
16900 # DragonFly does not have aout. When/if they implement a new
16901 # versioning mechanism, adjust this.
16902 if test -x /usr
/bin
/objformat
; then
16903 objformat
=`/usr/bin/objformat`
16906 freebsd
[123]*) objformat
=aout
;;
16907 *) objformat
=elf
;;
16910 version_type
=freebsd-
$objformat
16911 case $version_type in
16913 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16918 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16922 shlibpath_var
=LD_LIBRARY_PATH
16925 shlibpath_overrides_runpath
=yes
16927 freebsd3.
[01]* | freebsdelf3.
[01]*)
16928 shlibpath_overrides_runpath
=yes
16929 hardcode_into_libs
=yes
16931 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16932 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16933 shlibpath_overrides_runpath
=no
16934 hardcode_into_libs
=yes
16936 *) # from 4.6 on, and DragonFly
16937 shlibpath_overrides_runpath
=yes
16938 hardcode_into_libs
=yes
16947 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16948 soname_spec
='${libname}${release}${shared_ext}$major'
16949 shlibpath_var
=LD_LIBRARY_PATH
16950 hardcode_into_libs
=yes
16957 dynamic_linker
="$host_os runtime_loader"
16958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16959 soname_spec
='${libname}${release}${shared_ext}$major'
16960 shlibpath_var
=LIBRARY_PATH
16961 shlibpath_overrides_runpath
=yes
16962 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16963 hardcode_into_libs
=yes
16966 hpux9
* | hpux10
* | hpux11
*)
16967 # Give a soname corresponding to the major version so that dld.sl refuses to
16968 # link against other versions.
16975 hardcode_into_libs
=yes
16976 dynamic_linker
="$host_os dld.so"
16977 shlibpath_var
=LD_LIBRARY_PATH
16978 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32
; then
16982 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16984 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16986 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16990 hardcode_into_libs
=yes
16991 dynamic_linker
="$host_os dld.sl"
16992 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16993 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16994 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995 soname_spec
='${libname}${release}${shared_ext}$major'
16996 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16997 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17001 dynamic_linker
="$host_os dld.sl"
17002 shlibpath_var
=SHLIB_PATH
17003 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17004 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005 soname_spec
='${libname}${release}${shared_ext}$major'
17008 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17009 postinstall_cmds
='chmod 555 $lib'
17010 # or fails outright, so override atomically:
17011 install_override_mode
=555
17018 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17019 soname_spec
='${libname}${release}${shared_ext}$major'
17020 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17021 shlibpath_var
=LD_LIBRARY_PATH
17022 shlibpath_overrides_runpath
=no
17023 hardcode_into_libs
=yes
17026 irix5
* | irix6
* | nonstopux
*)
17028 nonstopux
*) version_type
=nonstopux
;;
17030 if test "$lt_cv_prog_gnu_ld" = yes; then
17038 soname_spec
='${libname}${release}${shared_ext}$major'
17039 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17041 irix5
* | nonstopux
*)
17042 libsuff
= shlibsuff
=
17045 case $LD in # libtool.m4 will add one of these switches to LD
17046 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17047 libsuff
= shlibsuff
= libmagic
=32-bit;;
17048 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17049 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17050 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17051 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17052 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17056 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17057 shlibpath_overrides_runpath
=no
17058 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17059 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17060 hardcode_into_libs
=yes
17063 # No shared lib support for Linux oldld, aout, or coff.
17064 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17068 # This must be Linux ELF.
17069 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17073 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17074 soname_spec
='${libname}${release}${shared_ext}$major'
17075 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17076 shlibpath_var
=LD_LIBRARY_PATH
17077 shlibpath_overrides_runpath
=no
17079 # Some binutils ld are patched to set DT_RUNPATH
17080 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17081 $as_echo_n "(cached) " >&6
17083 lt_cv_shlibpath_overrides_runpath
=no
17084 save_LDFLAGS
=$LDFLAGS
17085 save_libdir
=$libdir
17086 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17087 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17099 if ac_fn_c_try_link
"$LINENO"; then :
17100 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17101 lt_cv_shlibpath_overrides_runpath
=yes
17104 rm -f core conftest.err conftest.
$ac_objext \
17105 conftest
$ac_exeext conftest.
$ac_ext
17106 LDFLAGS
=$save_LDFLAGS
17107 libdir
=$save_libdir
17111 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17113 # This implies no fast_install, which is unacceptable.
17114 # Some rework will be needed to allow for fast_install
17115 # before this can be enabled.
17116 hardcode_into_libs
=yes
17118 # Append ld.so.conf contents to the search path
17119 if test -f /etc
/ld.so.conf
; then
17120 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' ' '`
17121 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17124 # We used to test for /lib/ld.so.1 and disable shared libraries on
17125 # powerpc, because MkLinux only supported shared libraries with the
17126 # GNU dynamic linker. Since this was broken with cross compilers,
17127 # most powerpc-linux boxes support dynamic linking these days and
17128 # people can always --disable-shared, the test was removed, and we
17129 # assume the GNU/Linux dynamic linker is in use.
17130 dynamic_linker
='GNU/Linux ld.so'
17137 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17139 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17140 dynamic_linker
='NetBSD (a.out) ld.so'
17142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17143 soname_spec
='${libname}${release}${shared_ext}$major'
17144 dynamic_linker
='NetBSD ld.elf_so'
17146 shlibpath_var
=LD_LIBRARY_PATH
17147 shlibpath_overrides_runpath
=yes
17148 hardcode_into_libs
=yes
17153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154 shlibpath_var
=LD_LIBRARY_PATH
17155 shlibpath_overrides_runpath
=yes
17162 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163 soname_spec
='${libname}${release}${shared_ext}$major'
17164 shlibpath_var
=LD_LIBRARY_PATH
17165 shlibpath_overrides_runpath
=no
17166 hardcode_into_libs
=yes
17167 dynamic_linker
='ldqnx.so'
17172 sys_lib_dlsearch_path_spec
="/usr/lib"
17174 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17176 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17177 *) need_version
=no
;;
17179 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17180 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17181 shlibpath_var
=LD_LIBRARY_PATH
17182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17184 openbsd2.
[89] | openbsd2.
[89].
*)
17185 shlibpath_overrides_runpath
=no
17188 shlibpath_overrides_runpath
=yes
17192 shlibpath_overrides_runpath
=yes
17197 libname_spec
='$name'
17200 library_names_spec
='$libname${shared_ext} $libname.a'
17201 dynamic_linker
='OS/2 ld.exe'
17202 shlibpath_var
=LIBPATH
17205 osf3
* | osf4
* | osf5
*)
17209 soname_spec
='${libname}${release}${shared_ext}$major'
17210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211 shlibpath_var
=LD_LIBRARY_PATH
17212 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17213 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17224 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17225 soname_spec
='${libname}${release}${shared_ext}$major'
17226 shlibpath_var
=LD_LIBRARY_PATH
17227 shlibpath_overrides_runpath
=yes
17228 hardcode_into_libs
=yes
17229 # ldd complains unless libraries are executable
17230 postinstall_cmds
='chmod +x $lib'
17235 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17236 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17237 shlibpath_var
=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath
=yes
17239 if test "$with_gnu_ld" = yes; then
17247 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248 soname_spec
='${libname}${release}${shared_ext}$major'
17249 shlibpath_var
=LD_LIBRARY_PATH
17250 case $host_vendor in
17252 shlibpath_overrides_runpath
=no
17254 runpath_var
=LD_RUN_PATH
17262 shlibpath_overrides_runpath
=no
17263 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17269 if test -d /usr
/nec
;then
17271 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17272 soname_spec
='$libname${shared_ext}.$major'
17273 shlibpath_var
=LD_LIBRARY_PATH
17277 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17278 version_type
=freebsd-elf
17281 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17282 soname_spec
='${libname}${release}${shared_ext}$major'
17283 shlibpath_var
=LD_LIBRARY_PATH
17284 shlibpath_overrides_runpath
=yes
17285 hardcode_into_libs
=yes
17286 if test "$with_gnu_ld" = yes; then
17287 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17289 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17292 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17296 sys_lib_dlsearch_path_spec
='/usr/lib'
17300 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17304 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 shlibpath_var
=LD_LIBRARY_PATH
17306 shlibpath_overrides_runpath
=no
17307 hardcode_into_libs
=yes
17312 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313 soname_spec
='${libname}${release}${shared_ext}$major'
17314 shlibpath_var
=LD_LIBRARY_PATH
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17322 $as_echo "$dynamic_linker" >&6; }
17323 test "$dynamic_linker" = no
&& can_build_shared
=no
17325 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17326 if test "$GCC" = yes; then
17327 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17330 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17331 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17333 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17334 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17429 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17431 if test -n "$hardcode_libdir_flag_spec" ||
17432 test -n "$runpath_var" ||
17433 test "X$hardcode_automatic" = "Xyes" ; then
17435 # We can hardcode non-existent directories.
17436 if test "$hardcode_direct" != no
&&
17437 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17438 # have to relink, otherwise we might link with an installed library
17439 # when we should be linking with a yet-to-be-installed one
17440 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17441 test "$hardcode_minus_L" != no
; then
17442 # Linking always hardcodes the temporary library directory.
17443 hardcode_action
=relink
17445 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17446 hardcode_action
=immediate
17449 # We cannot hardcode anything, or else we can only hardcode existing
17451 hardcode_action
=unsupported
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17454 $as_echo "$hardcode_action" >&6; }
17456 if test "$hardcode_action" = relink ||
17457 test "$inherit_rpath" = yes; then
17458 # Fast installation is not supported
17459 enable_fast_install
=no
17460 elif test "$shlibpath_overrides_runpath" = yes ||
17461 test "$enable_shared" = no
; then
17462 # Fast installation is not necessary
17463 enable_fast_install
=needless
17471 if test "x$enable_dlopen" != xyes
; then
17472 enable_dlopen
=unknown
17473 enable_dlopen_self
=unknown
17474 enable_dlopen_self_static
=unknown
17481 lt_cv_dlopen
="load_add_on"
17483 lt_cv_dlopen_self
=yes
17486 mingw
* | pw32
* | cegcc
*)
17487 lt_cv_dlopen
="LoadLibrary"
17492 lt_cv_dlopen
="dlopen"
17497 # if libdl is installed we need to link against it
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17499 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17501 $as_echo_n "(cached) " >&6
17503 ac_check_lib_save_LIBS
=$LIBS
17505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h. */
17508 /* Override any GCC internal prototype to avoid an error.
17509 Use char because int might match the return type of a GCC
17510 builtin and then its argument prototype would still apply. */
17523 if ac_fn_c_try_link
"$LINENO"; then :
17524 ac_cv_lib_dl_dlopen
=yes
17526 ac_cv_lib_dl_dlopen
=no
17528 rm -f core conftest.err conftest.
$ac_objext \
17529 conftest
$ac_exeext conftest.
$ac_ext
17530 LIBS
=$ac_check_lib_save_LIBS
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17533 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17534 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17535 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17538 lt_cv_dlopen
="dyld"
17540 lt_cv_dlopen_self
=yes
17547 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17548 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17549 lt_cv_dlopen
="shl_load"
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17552 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17553 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17554 $as_echo_n "(cached) " >&6
17556 ac_check_lib_save_LIBS
=$LIBS
17558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17559 /* end confdefs.h. */
17561 /* Override any GCC internal prototype to avoid an error.
17562 Use char because int might match the return type of a GCC
17563 builtin and then its argument prototype would still apply. */
17571 return shl_load ();
17576 if ac_fn_c_try_link
"$LINENO"; then :
17577 ac_cv_lib_dld_shl_load
=yes
17579 ac_cv_lib_dld_shl_load
=no
17581 rm -f core conftest.err conftest.
$ac_objext \
17582 conftest
$ac_exeext conftest.
$ac_ext
17583 LIBS
=$ac_check_lib_save_LIBS
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17586 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17587 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17588 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17590 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17591 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17592 lt_cv_dlopen
="dlopen"
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17595 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17596 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17597 $as_echo_n "(cached) " >&6
17599 ac_check_lib_save_LIBS
=$LIBS
17601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17602 /* end confdefs.h. */
17604 /* Override any GCC internal prototype to avoid an error.
17605 Use char because int might match the return type of a GCC
17606 builtin and then its argument prototype would still apply. */
17619 if ac_fn_c_try_link
"$LINENO"; then :
17620 ac_cv_lib_dl_dlopen
=yes
17622 ac_cv_lib_dl_dlopen
=no
17624 rm -f core conftest.err conftest.
$ac_objext \
17625 conftest
$ac_exeext conftest.
$ac_ext
17626 LIBS
=$ac_check_lib_save_LIBS
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17629 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17630 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17631 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17634 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17635 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17636 $as_echo_n "(cached) " >&6
17638 ac_check_lib_save_LIBS
=$LIBS
17639 LIBS
="-lsvld $LIBS"
17640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17641 /* end confdefs.h. */
17643 /* Override any GCC internal prototype to avoid an error.
17644 Use char because int might match the return type of a GCC
17645 builtin and then its argument prototype would still apply. */
17658 if ac_fn_c_try_link
"$LINENO"; then :
17659 ac_cv_lib_svld_dlopen
=yes
17661 ac_cv_lib_svld_dlopen
=no
17663 rm -f core conftest.err conftest.
$ac_objext \
17664 conftest
$ac_exeext conftest.
$ac_ext
17665 LIBS
=$ac_check_lib_save_LIBS
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17668 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17669 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17670 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17673 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17674 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17675 $as_echo_n "(cached) " >&6
17677 ac_check_lib_save_LIBS
=$LIBS
17679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h. */
17682 /* Override any GCC internal prototype to avoid an error.
17683 Use char because int might match the return type of a GCC
17684 builtin and then its argument prototype would still apply. */
17692 return dld_link ();
17697 if ac_fn_c_try_link
"$LINENO"; then :
17698 ac_cv_lib_dld_dld_link
=yes
17700 ac_cv_lib_dld_dld_link
=no
17702 rm -f core conftest.err conftest.
$ac_objext \
17703 conftest
$ac_exeext conftest.
$ac_ext
17704 LIBS
=$ac_check_lib_save_LIBS
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17707 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17708 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17709 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17730 if test "x$lt_cv_dlopen" != xno
; then
17736 case $lt_cv_dlopen in
17738 save_CPPFLAGS
="$CPPFLAGS"
17739 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17741 save_LDFLAGS
="$LDFLAGS"
17742 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17745 LIBS
="$lt_cv_dlopen_libs $LIBS"
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17748 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17749 if test "${lt_cv_dlopen_self+set}" = set; then :
17750 $as_echo_n "(cached) " >&6
17752 if test "$cross_compiling" = yes; then :
17753 lt_cv_dlopen_self
=cross
17755 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17756 lt_status
=$lt_dlunknown
17757 cat > conftest.
$ac_ext <<_LT_EOF
17758 #line 17758 "configure"
17759 #include "confdefs.h"
17768 # define LT_DLGLOBAL RTLD_GLOBAL
17771 # define LT_DLGLOBAL DL_GLOBAL
17773 # define LT_DLGLOBAL 0
17777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17778 find out it does not work in some platform. */
17779 #ifndef LT_DLLAZY_OR_NOW
17781 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17784 # define LT_DLLAZY_OR_NOW DL_LAZY
17787 # define LT_DLLAZY_OR_NOW RTLD_NOW
17790 # define LT_DLLAZY_OR_NOW DL_NOW
17792 # define LT_DLLAZY_OR_NOW 0
17799 /* When -fvisbility=hidden is used, assume the code has been annotated
17800 correspondingly for the symbols needed. */
17801 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17802 void fnord () __attribute__((visibility("default")));
17805 void fnord () { int i=42; }
17808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17809 int status = $lt_dlunknown;
17813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17816 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17817 else puts (dlerror ());
17819 /* dlclose (self); */
17827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17828 (eval $ac_link) 2>&5
17830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17831 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17832 (.
/conftest
; exit; ) >&5 2>/dev
/null
17834 case x
$lt_status in
17835 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17836 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17837 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17840 # compilation failed
17841 lt_cv_dlopen_self
=no
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17849 $as_echo "$lt_cv_dlopen_self" >&6; }
17851 if test "x$lt_cv_dlopen_self" = xyes
; then
17852 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17854 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17855 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17856 $as_echo_n "(cached) " >&6
17858 if test "$cross_compiling" = yes; then :
17859 lt_cv_dlopen_self_static
=cross
17861 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17862 lt_status
=$lt_dlunknown
17863 cat > conftest.
$ac_ext <<_LT_EOF
17864 #line 17864 "configure"
17865 #include "confdefs.h"
17874 # define LT_DLGLOBAL RTLD_GLOBAL
17877 # define LT_DLGLOBAL DL_GLOBAL
17879 # define LT_DLGLOBAL 0
17883 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17884 find out it does not work in some platform. */
17885 #ifndef LT_DLLAZY_OR_NOW
17887 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17890 # define LT_DLLAZY_OR_NOW DL_LAZY
17893 # define LT_DLLAZY_OR_NOW RTLD_NOW
17896 # define LT_DLLAZY_OR_NOW DL_NOW
17898 # define LT_DLLAZY_OR_NOW 0
17905 /* When -fvisbility=hidden is used, assume the code has been annotated
17906 correspondingly for the symbols needed. */
17907 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17908 void fnord () __attribute__((visibility("default")));
17911 void fnord () { int i=42; }
17914 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17915 int status = $lt_dlunknown;
17919 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17922 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17923 else puts (dlerror ());
17925 /* dlclose (self); */
17933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17934 (eval $ac_link) 2>&5
17936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17937 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17938 (.
/conftest
; exit; ) >&5 2>/dev
/null
17940 case x
$lt_status in
17941 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17942 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17943 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17946 # compilation failed
17947 lt_cv_dlopen_self_static
=no
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17955 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17958 CPPFLAGS
="$save_CPPFLAGS"
17959 LDFLAGS
="$save_LDFLAGS"
17964 case $lt_cv_dlopen_self in
17965 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17966 *) enable_dlopen_self
=unknown
;;
17969 case $lt_cv_dlopen_self_static in
17970 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17971 *) enable_dlopen_self_static
=unknown
;;
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17994 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17995 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17996 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17997 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17999 $as_echo "yes" >&6; }
18001 # FIXME - insert some real tests, host_os isn't really good enough
18004 if test -n "$STRIP" ; then
18005 striplib
="$STRIP -x"
18006 old_striplib
="$STRIP -S"
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18008 $as_echo "yes" >&6; }
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18011 $as_echo "no" >&6; }
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18016 $as_echo "no" >&6; }
18032 # Report which library types will actually be built
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18034 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18036 $as_echo "$can_build_shared" >&6; }
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18039 $as_echo_n "checking whether to build shared libraries... " >&6; }
18040 test "$can_build_shared" = "no" && enable_shared
=no
18042 # On AIX, shared libraries and static libraries use the same namespace, and
18043 # are all built from PIC.
18046 test "$enable_shared" = yes && enable_static
=no
18047 if test -n "$RANLIB"; then
18048 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18049 postinstall_cmds
='$RANLIB $lib'
18054 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18055 test "$enable_shared" = yes && enable_static
=no
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18060 $as_echo "$enable_shared" >&6; }
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18063 $as_echo_n "checking whether to build static libraries... " >&6; }
18064 # Make sure either enable_shared or enable_static is yes.
18065 test "$enable_shared" = yes || enable_static
=yes
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18067 $as_echo "$enable_static" >&6; }
18074 ac_cpp
='$CPP $CPPFLAGS'
18075 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18076 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18077 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18081 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18082 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18083 (test "X$CXX" != "Xg++"))) ; then
18085 ac_cpp
='$CXXCPP $CPPFLAGS'
18086 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18087 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18088 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18090 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18091 if test -z "$CXXCPP"; then
18092 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18093 $as_echo_n "(cached) " >&6
18095 # Double quotes because CXXCPP needs to be expanded
18096 for CXXCPP
in "$CXX -E" "/lib/cpp"
18098 ac_preproc_ok
=false
18099 for ac_cxx_preproc_warn_flag
in '' yes
18101 # Use a header file that comes with gcc, so configuring glibc
18102 # with a fresh cross-compiler works.
18103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18104 # <limits.h> exists even on freestanding compilers.
18105 # On the NeXT, cc -E runs the code through the compiler's parser,
18106 # not just through cpp. "Syntax error" is here to catch this case.
18107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18110 # include <limits.h>
18112 # include <assert.h>
18116 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18119 # Broken: fails on valid input.
18122 rm -f conftest.err conftest.
$ac_ext
18124 # OK, works on sane cases. Now check whether nonexistent headers
18125 # can be detected and how.
18126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18127 /* end confdefs.h. */
18128 #include <ac_nonexistent.h>
18130 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18131 # Broken: success on invalid input.
18134 # Passes both tests.
18138 rm -f conftest.err conftest.
$ac_ext
18141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18142 rm -f conftest.err conftest.
$ac_ext
18143 if $ac_preproc_ok; then :
18148 ac_cv_prog_CXXCPP
=$CXXCPP
18151 CXXCPP
=$ac_cv_prog_CXXCPP
18153 ac_cv_prog_CXXCPP
=$CXXCPP
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18156 $as_echo "$CXXCPP" >&6; }
18157 ac_preproc_ok
=false
18158 for ac_cxx_preproc_warn_flag
in '' yes
18160 # Use a header file that comes with gcc, so configuring glibc
18161 # with a fresh cross-compiler works.
18162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18163 # <limits.h> exists even on freestanding compilers.
18164 # On the NeXT, cc -E runs the code through the compiler's parser,
18165 # not just through cpp. "Syntax error" is here to catch this case.
18166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18167 /* end confdefs.h. */
18169 # include <limits.h>
18171 # include <assert.h>
18175 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18178 # Broken: fails on valid input.
18181 rm -f conftest.err conftest.
$ac_ext
18183 # OK, works on sane cases. Now check whether nonexistent headers
18184 # can be detected and how.
18185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18186 /* end confdefs.h. */
18187 #include <ac_nonexistent.h>
18189 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18190 # Broken: success on invalid input.
18193 # Passes both tests.
18197 rm -f conftest.err conftest.
$ac_ext
18200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18201 rm -f conftest.err conftest.
$ac_ext
18202 if $ac_preproc_ok; then :
18205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18207 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18208 See \`config.log' for more details." "$LINENO" 5; }
18212 ac_cpp
='$CPP $CPPFLAGS'
18213 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18214 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18215 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18218 _lt_caught_CXX_error
=yes
18222 ac_cpp
='$CXXCPP $CPPFLAGS'
18223 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18224 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18225 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18227 archive_cmds_need_lc_CXX
=no
18228 allow_undefined_flag_CXX
=
18229 always_export_symbols_CXX
=no
18230 archive_expsym_cmds_CXX
=
18231 compiler_needs_object_CXX
=no
18232 export_dynamic_flag_spec_CXX
=
18233 hardcode_direct_CXX
=no
18234 hardcode_direct_absolute_CXX
=no
18235 hardcode_libdir_flag_spec_CXX
=
18236 hardcode_libdir_flag_spec_ld_CXX
=
18237 hardcode_libdir_separator_CXX
=
18238 hardcode_minus_L_CXX
=no
18239 hardcode_shlibpath_var_CXX
=unsupported
18240 hardcode_automatic_CXX
=no
18241 inherit_rpath_CXX
=no
18243 module_expsym_cmds_CXX
=
18244 link_all_deplibs_CXX
=unknown
18245 old_archive_cmds_CXX
=$old_archive_cmds
18246 reload_flag_CXX
=$reload_flag
18247 reload_cmds_CXX
=$reload_cmds
18248 no_undefined_flag_CXX
=
18249 whole_archive_flag_spec_CXX
=
18250 enable_shared_with_static_runtimes_CXX
=no
18252 # Source file extension for C++ test sources.
18255 # Object file extension for compiled C++ test sources.
18259 # No sense in running all these tests if we already determined that
18260 # the CXX compiler isn't working. Some variables (like enable_shared)
18261 # are currently assumed to apply to all compilers on this platform,
18262 # and will be corrupted by setting them based on a non-working compiler.
18263 if test "$_lt_caught_CXX_error" != yes; then
18264 # Code to be used in simple compile tests
18265 lt_simple_compile_test_code
="int some_variable = 0;"
18267 # Code to be used in simple link tests
18268 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18270 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18277 # If no C compiler was specified, use CC.
18280 # If no C compiler flags were specified, use CFLAGS.
18281 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18283 # Allow CC to be a program name with arguments.
18287 # save warnings/boilerplate of simple test code
18288 ac_outfile
=conftest.
$ac_objext
18289 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18290 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18291 _lt_compiler_boilerplate
=`cat conftest.err`
18294 ac_outfile
=conftest.
$ac_objext
18295 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18296 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18297 _lt_linker_boilerplate
=`cat conftest.err`
18301 # Allow CC to be a program name with arguments.
18306 lt_save_with_gnu_ld
=$with_gnu_ld
18307 lt_save_path_LD
=$lt_cv_path_LD
18308 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18309 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18311 $as_unset lt_cv_prog_gnu_ld
18313 if test -n "${lt_cv_path_LDCXX+set}"; then
18314 lt_cv_path_LD
=$lt_cv_path_LDCXX
18316 $as_unset lt_cv_path_LD
18318 test -z "${LDCXX+set}" || LD
=$LDCXX
18322 for cc_temp
in $compiler""; do
18324 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18325 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18330 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18333 if test -n "$compiler"; then
18334 # We don't want -fno-exception when compiling C++ code, so set the
18335 # no_builtin_flag separately
18336 if test "$GXX" = yes; then
18337 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18339 lt_prog_compiler_no_builtin_flag_CXX
=
18342 if test "$GXX" = yes; then
18343 # Set up default GNU C++ configuration
18347 # Check whether --with-gnu-ld was given.
18348 if test "${with_gnu_ld+set}" = set; then :
18349 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18355 if test "$GCC" = yes; then
18356 # Check if gcc -print-prog-name=ld gives a path.
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18358 $as_echo_n "checking for ld used by $CC... " >&6; }
18361 # gcc leaves a trailing carriage return which upsets mingw
18362 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18364 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18367 # Accept absolute paths.
18369 re_direlt
='/[^/][^/]*/\.\./'
18370 # Canonicalize the pathname of ld
18371 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18372 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18373 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18375 test -z "$LD" && LD
="$ac_prog"
18378 # If it fails, then pretend we aren't using GCC.
18382 # If it is relative, then search for the first ld in PATH.
18383 with_gnu_ld
=unknown
18386 elif test "$with_gnu_ld" = yes; then
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18388 $as_echo_n "checking for GNU ld... " >&6; }
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18391 $as_echo_n "checking for non-GNU ld... " >&6; }
18393 if test "${lt_cv_path_LD+set}" = set; then :
18394 $as_echo_n "(cached) " >&6
18396 if test -z "$LD"; then
18397 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18398 for ac_dir
in $PATH; do
18400 test -z "$ac_dir" && ac_dir
=.
18401 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18402 lt_cv_path_LD
="$ac_dir/$ac_prog"
18403 # Check to see if the program is GNU ld. I'd rather use --version,
18404 # but apparently some variants of GNU ld only accept -v.
18405 # Break only if it was the GNU/non-GNU ld that we prefer.
18406 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18407 *GNU
* |
*'with BFD'*)
18408 test "$with_gnu_ld" != no
&& break
18411 test "$with_gnu_ld" != yes && break
18418 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18422 LD
="$lt_cv_path_LD"
18423 if test -n "$LD"; then
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18425 $as_echo "$LD" >&6; }
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18428 $as_echo "no" >&6; }
18430 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18432 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18433 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18434 $as_echo_n "(cached) " >&6
18436 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18437 case `$LD -v 2>&1 </dev/null` in
18438 *GNU
* |
*'with BFD'*)
18439 lt_cv_prog_gnu_ld
=yes
18442 lt_cv_prog_gnu_ld
=no
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18447 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18448 with_gnu_ld
=$lt_cv_prog_gnu_ld
18456 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18457 # archiving commands below assume that GNU ld is being used.
18458 if test "$with_gnu_ld" = yes; then
18459 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18460 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'
18462 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18463 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18465 # If archive_cmds runs LD, not CC, wlarc should be empty
18466 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18467 # investigate it a little bit more. (MM)
18470 # ancient GNU ld didn't support --whole-archive et. al.
18471 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18472 $GREP 'no-whole-archive' > /dev
/null
; then
18473 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18475 whole_archive_flag_spec_CXX
=
18481 # A generic and very simple default shared library creation
18482 # command for GNU C++ for the case where it uses the native
18483 # linker, instead of GNU ld. If possible, this setting should
18484 # overridden to take advantage of the native linker features on
18485 # the platform it is being used on.
18486 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18489 # Commands to make compiler produce verbose output that lists
18490 # what "hidden" libraries, object files and flags are used when
18491 # linking a shared library.
18492 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18500 # PORTME: fill in a description of your system's C++ link characteristics
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18502 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18506 # FIXME: insert proper C++ library support
18510 if test "$host_cpu" = ia64
; then
18511 # On IA64, the linker does run time linking by default, so we don't
18512 # have to do anything special.
18513 aix_use_runtimelinking
=no
18514 exp_sym_flag
='-Bexport'
18517 aix_use_runtimelinking
=no
18519 # Test if we are trying to use run time linking or normal
18520 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18521 # need to do runtime linking.
18522 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18523 for ld_flag
in $LDFLAGS; do
18526 aix_use_runtimelinking
=yes
18534 exp_sym_flag
='-bexport'
18535 no_entry_flag
='-bnoentry'
18538 # When large executables or shared objects are built, AIX ld can
18539 # have problems creating the table of contents. If linking a library
18540 # or program results in "error TOC overflow" add -mminimal-toc to
18541 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18542 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18544 archive_cmds_CXX
=''
18545 hardcode_direct_CXX
=yes
18546 hardcode_direct_absolute_CXX
=yes
18547 hardcode_libdir_separator_CXX
=':'
18548 link_all_deplibs_CXX
=yes
18549 file_list_spec_CXX
='${wl}-f,'
18551 if test "$GXX" = yes; then
18552 case $host_os in aix4.
[012]|aix4.
[012].
*)
18553 # We only want to do this on AIX 4.2 and lower, the check
18554 # below for broken collect2 doesn't work under 4.3+
18555 collect2name
=`${CC} -print-prog-name=collect2`
18556 if test -f "$collect2name" &&
18557 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18559 # We have reworked collect2
18562 # We have old collect2
18563 hardcode_direct_CXX
=unsupported
18564 # It fails to find uninstalled libraries when the uninstalled
18565 # path is not listed in the libpath. Setting hardcode_minus_L
18566 # to unsupported forces relinking
18567 hardcode_minus_L_CXX
=yes
18568 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18569 hardcode_libdir_separator_CXX
=
18572 shared_flag
='-shared'
18573 if test "$aix_use_runtimelinking" = yes; then
18574 shared_flag
="$shared_flag "'${wl}-G'
18578 if test "$host_cpu" = ia64
; then
18579 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18580 # chokes on -Wl,-G. The following line is correct:
18583 if test "$aix_use_runtimelinking" = yes; then
18584 shared_flag
='${wl}-G'
18586 shared_flag
='${wl}-bM:SRE'
18591 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18592 # It seems that -bexpall does not export symbols beginning with
18593 # underscore (_), so it is better to generate a list of symbols to
18595 always_export_symbols_CXX
=yes
18596 if test "$aix_use_runtimelinking" = yes; then
18597 # Warning - without using the other runtime loading flags (-brtl),
18598 # -berok will link without error, but may produce a broken library.
18599 allow_undefined_flag_CXX
='-berok'
18600 # Determine the default libpath from the value encoded in an empty
18602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18603 /* end confdefs.h. */
18613 if ac_fn_cxx_try_link
"$LINENO"; then :
18615 lt_aix_libpath_sed
='
18616 /Import File Strings/,/^$/ {
18622 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18623 # Check for a 64-bit object if we didn't find anything.
18624 if test -z "$aix_libpath"; then
18625 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18628 rm -f core conftest.err conftest.
$ac_objext \
18629 conftest
$ac_exeext conftest.
$ac_ext
18630 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18632 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18634 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"
18636 if test "$host_cpu" = ia64
; then
18637 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18638 allow_undefined_flag_CXX
="-z nodefs"
18639 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"
18641 # Determine the default libpath from the value encoded in an
18642 # empty executable.
18643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18644 /* end confdefs.h. */
18654 if ac_fn_cxx_try_link
"$LINENO"; then :
18656 lt_aix_libpath_sed
='
18657 /Import File Strings/,/^$/ {
18663 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18664 # Check for a 64-bit object if we didn't find anything.
18665 if test -z "$aix_libpath"; then
18666 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18669 rm -f core conftest.err conftest.
$ac_objext \
18670 conftest
$ac_exeext conftest.
$ac_ext
18671 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18673 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18674 # Warning - without using the other run time loading flags,
18675 # -berok will link without error, but may produce a broken library.
18676 no_undefined_flag_CXX
=' ${wl}-bernotok'
18677 allow_undefined_flag_CXX
=' ${wl}-berok'
18678 if test "$with_gnu_ld" = yes; then
18679 # We only use this code for GNU lds that support --whole-archive.
18680 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18682 # Exported symbols can be pulled into shared objects from archives
18683 whole_archive_flag_spec_CXX
='$convenience'
18685 archive_cmds_need_lc_CXX
=yes
18686 # This is similar to how AIX traditionally builds its shared
18688 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'
18694 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18695 allow_undefined_flag_CXX
=unsupported
18696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18697 # support --undefined. This deserves some investigation. FIXME
18698 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18705 case $cc_basename in
18707 # FIXME: insert proper C++ library support
18713 cygwin
* | mingw
* | pw32
* | cegcc
*)
18714 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18715 # as there is no search path for DLLs.
18716 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18717 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18718 allow_undefined_flag_CXX
=unsupported
18719 always_export_symbols_CXX
=no
18720 enable_shared_with_static_runtimes_CXX
=yes
18722 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18723 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'
18724 # If the export-symbols file already is a .def file (1st line
18725 # is EXPORTS), use it as is; otherwise, prepend...
18726 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18727 cp $export_symbols $output_objdir/$soname.def;
18729 echo EXPORTS > $output_objdir/$soname.def;
18730 cat $export_symbols >> $output_objdir/$soname.def;
18732 $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'
18737 darwin
* | rhapsody
*)
18740 archive_cmds_need_lc_CXX
=no
18741 hardcode_direct_CXX
=no
18742 hardcode_automatic_CXX
=yes
18743 hardcode_shlibpath_var_CXX
=unsupported
18744 if test "$lt_cv_ld_force_load" = "yes"; then
18745 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\"`'
18747 whole_archive_flag_spec_CXX
=''
18749 link_all_deplibs_CXX
=yes
18750 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18751 case $cc_basename in
18752 ifort
*) _lt_dar_can_shared
=yes ;;
18753 *) _lt_dar_can_shared
=$GCC ;;
18755 if test "$_lt_dar_can_shared" = "yes"; then
18756 output_verbose_link_cmd
=func_echo_all
18757 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}"
18758 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18759 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}"
18760 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}"
18761 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18762 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}"
18763 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}"
18773 case $cc_basename in
18775 # FIXME: insert proper C++ library support
18779 # Green Hills C++ Compiler
18780 # FIXME: insert proper C++ library support
18784 # FIXME: insert proper C++ library support
18791 # C++ shared libraries reported to be fairly broken before
18797 archive_cmds_need_lc_CXX
=no
18800 freebsd
* | dragonfly
*)
18801 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18810 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18811 link_all_deplibs_CXX
=yes
18815 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18816 hardcode_libdir_separator_CXX
=:
18817 export_dynamic_flag_spec_CXX
='${wl}-E'
18818 hardcode_direct_CXX
=yes
18819 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18820 # but as the default
18821 # location of the library.
18823 case $cc_basename in
18825 # FIXME: insert proper C++ library support
18829 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'
18830 # Commands to make compiler produce verbose output that lists
18831 # what "hidden" libraries, object files and flags are used when
18832 # linking a shared library.
18834 # There doesn't appear to be a way to prevent this compiler from
18835 # explicitly linking system object files so we need to strip them
18836 # from the output so that they don't get included in the library
18838 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"'
18841 if test "$GXX" = yes; then
18842 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'
18844 # FIXME: insert proper C++ library support
18852 if test $with_gnu_ld = no
; then
18853 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18854 hardcode_libdir_separator_CXX
=:
18860 export_dynamic_flag_spec_CXX
='${wl}-E'
18866 hardcode_direct_CXX
=no
18867 hardcode_shlibpath_var_CXX
=no
18870 hardcode_direct_CXX
=yes
18871 hardcode_direct_absolute_CXX
=yes
18872 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18873 # but as the default
18874 # location of the library.
18878 case $cc_basename in
18880 # FIXME: insert proper C++ library support
18886 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18889 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18892 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18895 # Commands to make compiler produce verbose output that lists
18896 # what "hidden" libraries, object files and flags are used when
18897 # linking a shared library.
18899 # There doesn't appear to be a way to prevent this compiler from
18900 # explicitly linking system object files so we need to strip them
18901 # from the output so that they don't get included in the library
18903 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"'
18906 if test "$GXX" = yes; then
18907 if test $with_gnu_ld = no
; then
18910 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18913 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18916 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'
18921 # FIXME: insert proper C++ library support
18929 hardcode_direct_CXX
=no
18930 hardcode_shlibpath_var_CXX
=no
18931 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18932 export_dynamic_flag_spec_CXX
='${wl}-E'
18933 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18934 # Instead, shared libraries are loaded at an image base (0x10000000 by
18935 # default) and relocated if they conflict, which is a slow very memory
18936 # consuming and fragmenting process. To avoid this, we pick a random,
18937 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18938 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18939 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'
18940 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'
18943 case $cc_basename in
18946 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'
18948 # Archives containing C++ object files must be created using
18949 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18950 # necessary to make sure instantiated templates are included
18952 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18955 if test "$GXX" = yes; then
18956 if test "$with_gnu_ld" = no
; then
18957 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'
18959 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'
18962 link_all_deplibs_CXX
=yes
18965 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18966 hardcode_libdir_separator_CXX
=:
18967 inherit_rpath_CXX
=yes
18970 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18971 case $cc_basename in
18973 # Kuck and Associates, Inc. (KAI) C++ Compiler
18975 # KCC will only create a shared library if the output file
18976 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18977 # to its proper name (with version) after linking.
18978 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'
18979 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'
18980 # Commands to make compiler produce verbose output that lists
18981 # what "hidden" libraries, object files and flags are used when
18982 # linking a shared library.
18984 # There doesn't appear to be a way to prevent this compiler from
18985 # explicitly linking system object files so we need to strip them
18986 # from the output so that they don't get included in the library
18988 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"'
18990 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18991 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18993 # Archives containing C++ object files must be created using
18994 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18995 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19000 # version 8.0 and above of icpc choke on multiply defined symbols
19001 # if we add $predep_objects and $postdep_objects, however 7.1 and
19002 # earlier do not add the objects themselves.
19003 case `$CC -V 2>&1` in
19005 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19006 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'
19008 *) # Version 8.0 or newer
19011 ia64
*) tmp_idyn
=' -i_dynamic';;
19013 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19014 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'
19017 archive_cmds_need_lc_CXX
=no
19018 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19019 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19020 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19023 # Portland Group C++ compiler
19025 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19026 prelink_cmds_CXX
='tpldir=Template.dir~
19028 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19029 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19030 old_archive_cmds_CXX
='tpldir=Template.dir~
19032 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19033 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19035 archive_cmds_CXX
='tpldir=Template.dir~
19037 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19038 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19039 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19041 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19042 $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'
19044 *) # Version 6 and above use weak symbols
19045 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19046 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'
19050 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19051 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19052 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'
19056 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19057 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'
19059 runpath_var
=LD_RUN_PATH
19060 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19061 hardcode_libdir_separator_CXX
=:
19063 # Commands to make compiler produce verbose output that lists
19064 # what "hidden" libraries, object files and flags are used when
19065 # linking a shared library.
19067 # There doesn't appear to be a way to prevent this compiler from
19068 # explicitly linking system object files so we need to strip them
19069 # from the output so that they don't get included in the library
19071 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'
19073 xl
* | mpixl
* | bgxl
*)
19074 # IBM XL 8.0 on PPC, with GNU ld
19075 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19076 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19077 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19078 if test "x$supports_anon_versioning" = xyes
; then
19079 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19081 echo "local: *; };" >> $output_objdir/$libname.ver~
19082 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19086 case `$CC -V 2>&1 | sed 5q` in
19089 no_undefined_flag_CXX
=' -zdefs'
19090 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19091 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'
19092 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19093 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'
19094 compiler_needs_object_CXX
=yes
19096 # Not sure whether something based on
19097 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19099 output_verbose_link_cmd
='func_echo_all'
19101 # Archives containing C++ object files must be created using
19102 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19103 # necessary to make sure instantiated templates are included
19105 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19113 # FIXME: insert proper C++ library support
19118 # FIXME: insert proper C++ library support
19123 case $cc_basename in
19125 # FIXME: insert proper C++ library support
19129 # FIXME: insert proper C++ library support
19136 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19137 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19139 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19140 hardcode_direct_CXX
=yes
19141 hardcode_shlibpath_var_CXX
=no
19143 # Workaround some broken pre-1.5 toolchains
19144 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19152 # C++ shared libraries are fairly broken
19157 if test -f /usr
/libexec
/ld.so
; then
19158 hardcode_direct_CXX
=yes
19159 hardcode_shlibpath_var_CXX
=no
19160 hardcode_direct_absolute_CXX
=yes
19161 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19162 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19164 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19165 export_dynamic_flag_spec_CXX
='${wl}-E'
19166 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19168 output_verbose_link_cmd
=func_echo_all
19174 osf3
* | osf4
* | osf5
*)
19175 case $cc_basename in
19177 # Kuck and Associates, Inc. (KAI) C++ Compiler
19179 # KCC will only create a shared library if the output file
19180 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19181 # to its proper name (with version) after linking.
19182 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'
19184 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19185 hardcode_libdir_separator_CXX
=:
19187 # Archives containing C++ object files must be created using
19188 # the KAI C++ compiler.
19190 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19191 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19195 # Rational C++ 2.4.1
19196 # FIXME: insert proper C++ library support
19202 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19203 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'
19204 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19207 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19208 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'
19209 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19210 echo "-hidden">> $lib.exp~
19211 $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~
19213 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19217 hardcode_libdir_separator_CXX
=:
19219 # Commands to make compiler produce verbose output that lists
19220 # what "hidden" libraries, object files and flags are used when
19221 # linking a shared library.
19223 # There doesn't appear to be a way to prevent this compiler from
19224 # explicitly linking system object files so we need to strip them
19225 # from the output so that they don't get included in the library
19227 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"'
19230 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19231 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19234 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'
19237 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'
19241 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19242 hardcode_libdir_separator_CXX
=:
19244 # Commands to make compiler produce verbose output that lists
19245 # what "hidden" libraries, object files and flags are used when
19246 # linking a shared library.
19247 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19250 # FIXME: insert proper C++ library support
19258 # FIXME: insert proper C++ library support
19263 case $cc_basename in
19266 # FIXME: insert proper C++ library support
19271 # FIXME: insert proper C++ library support
19275 # FIXME: insert proper C++ library support
19282 case $cc_basename in
19284 # Sun C++ 4.2, 5.x and Centerline C++
19285 archive_cmds_need_lc_CXX
=yes
19286 no_undefined_flag_CXX
=' -zdefs'
19287 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19288 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19289 $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'
19291 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19292 hardcode_shlibpath_var_CXX
=no
19294 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19296 # The compiler driver will combine and reorder linker options,
19297 # but understands `-z linker_flag'.
19298 # Supported since Solaris 2.6 (maybe 2.5.1?)
19299 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19302 link_all_deplibs_CXX
=yes
19304 output_verbose_link_cmd
='func_echo_all'
19306 # Archives containing C++ object files must be created using
19307 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19308 # necessary to make sure instantiated templates are included
19310 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19313 # Green Hills C++ Compiler
19314 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19316 # The C++ compiler must be used to create the archive.
19317 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19320 # GNU C++ compiler with Solaris linker
19321 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19322 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19323 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19324 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19325 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19326 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19328 # Commands to make compiler produce verbose output that lists
19329 # what "hidden" libraries, object files and flags are used when
19330 # linking a shared library.
19331 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19333 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19335 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19336 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19337 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19339 # Commands to make compiler produce verbose output that lists
19340 # what "hidden" libraries, object files and flags are used when
19341 # linking a shared library.
19342 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19345 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19347 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19349 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19357 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19358 no_undefined_flag_CXX
='${wl}-z,text'
19359 archive_cmds_need_lc_CXX
=no
19360 hardcode_shlibpath_var_CXX
=no
19361 runpath_var
='LD_RUN_PATH'
19363 case $cc_basename in
19365 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19366 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19369 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19370 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19375 sysv5
* | sco3.2v5
* | sco5v6
*)
19376 # Note: We can NOT use -z defs as we might desire, because we do not
19377 # link with -lc, and that would cause any symbols used from libc to
19378 # always be unresolved, which means just about no library would
19379 # ever link correctly. If we're not using GNU ld we use -z text
19380 # though, which does catch some bad symbols but isn't as heavy-handed
19382 no_undefined_flag_CXX
='${wl}-z,text'
19383 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19384 archive_cmds_need_lc_CXX
=no
19385 hardcode_shlibpath_var_CXX
=no
19386 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19387 hardcode_libdir_separator_CXX
=':'
19388 link_all_deplibs_CXX
=yes
19389 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19390 runpath_var
='LD_RUN_PATH'
19392 case $cc_basename in
19394 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19395 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19396 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19397 '"$old_archive_cmds_CXX"
19398 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19399 '"$reload_cmds_CXX"
19402 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19403 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19409 case $cc_basename in
19411 # NonStop-UX NCC 3.20
19412 # FIXME: insert proper C++ library support
19416 # FIXME: insert proper C++ library support
19423 # FIXME: insert proper C++ library support
19428 # FIXME: insert proper C++ library support
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19434 $as_echo "$ld_shlibs_CXX" >&6; }
19435 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19441 ## There is no encapsulation within the following macros, do not change
19442 ## the running order or otherwise move them around unless you know exactly
19443 ## what you are doing...
19444 # Dependencies to place before and after the object being linked:
19445 predep_objects_CXX
=
19446 postdep_objects_CXX
=
19449 compiler_lib_search_path_CXX
=
19451 cat > conftest.
$ac_ext <<_LT_EOF
19455 Foo (void) { a = 0; }
19461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19462 (eval $ac_compile) 2>&5
19464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19465 test $ac_status = 0; }; then
19466 # Parse the compiler output and extract the necessary
19467 # objects, libraries and library flags.
19469 # Sentinel used to keep track of whether or not we are before
19470 # the conftest object file.
19471 pre_test_object_deps_done
=no
19473 for p
in `eval "$output_verbose_link_cmd"`; do
19477 # Some compilers place space between "-{L,R}" and the path.
19478 # Remove the space.
19479 if test $p = "-L" ||
19480 test $p = "-R"; then
19487 if test "$pre_test_object_deps_done" = no
; then
19490 # Internal compiler library paths should come after those
19491 # provided the user. The postdeps already come after the
19492 # user supplied libs so there is no need to process them.
19493 if test -z "$compiler_lib_search_path_CXX"; then
19494 compiler_lib_search_path_CXX
="${prev}${p}"
19496 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19499 # The "-l" case would never come before the object being
19500 # linked, so don't bother handling this case.
19503 if test -z "$postdeps_CXX"; then
19504 postdeps_CXX
="${prev}${p}"
19506 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19512 # This assumes that the test object file only shows up
19513 # once in the compiler output.
19514 if test "$p" = "conftest.$objext"; then
19515 pre_test_object_deps_done
=yes
19519 if test "$pre_test_object_deps_done" = no
; then
19520 if test -z "$predep_objects_CXX"; then
19521 predep_objects_CXX
="$p"
19523 predep_objects_CXX
="$predep_objects_CXX $p"
19526 if test -z "$postdep_objects_CXX"; then
19527 postdep_objects_CXX
="$p"
19529 postdep_objects_CXX
="$postdep_objects_CXX $p"
19534 *) ;; # Ignore the rest.
19542 echo "libtool.m4: error: problem compiling CXX test program"
19545 $RM -f confest.
$objext
19547 # PORTME: override above test on systems where it is broken
19550 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19551 # hack all around it, let's just trust "g++" to DTRT.
19552 predep_objects_CXX
=
19553 postdep_objects_CXX
=
19558 case `$CC -V 2>&1 | sed 5q` in
19562 # The more standards-conforming stlport4 library is
19563 # incompatible with the Cstd library. Avoid specifying
19564 # it if it's in CXXFLAGS. Ignore libCrun as
19565 # -library=stlport4 depends on it.
19566 case " $CXX $CXXFLAGS " in
19567 *" -library=stlport4 "*)
19568 solaris_use_stlport4
=yes
19572 if test "$solaris_use_stlport4" != yes; then
19573 postdeps_CXX
='-library=Cstd -library=Crun'
19580 case $cc_basename in
19582 # The more standards-conforming stlport4 library is
19583 # incompatible with the Cstd library. Avoid specifying
19584 # it if it's in CXXFLAGS. Ignore libCrun as
19585 # -library=stlport4 depends on it.
19586 case " $CXX $CXXFLAGS " in
19587 *" -library=stlport4 "*)
19588 solaris_use_stlport4
=yes
19592 # Adding this requires a known-good setup of shared libraries for
19593 # Sun compiler versions before 5.6, else PIC objects from an old
19594 # archive will be linked into the output, leading to subtle bugs.
19595 if test "$solaris_use_stlport4" != yes; then
19596 postdeps_CXX
='-library=Cstd -library=Crun'
19604 case " $postdeps_CXX " in
19605 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19607 compiler_lib_search_dirs_CXX
=
19608 if test -n "${compiler_lib_search_path_CXX}"; then
19609 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19642 lt_prog_compiler_wl_CXX
=
19643 lt_prog_compiler_pic_CXX
=
19644 lt_prog_compiler_static_CXX
=
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19647 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19649 # C++ specific cases for pic, static, wl, etc.
19650 if test "$GXX" = yes; then
19651 lt_prog_compiler_wl_CXX
='-Wl,'
19652 lt_prog_compiler_static_CXX
='-static'
19656 # All AIX code is PIC.
19657 if test "$host_cpu" = ia64
; then
19658 # AIX 5 now supports IA64 processor
19659 lt_prog_compiler_static_CXX
='-Bstatic'
19666 # see comment about AmigaOS4 .so support
19667 lt_prog_compiler_pic_CXX
='-fPIC'
19670 # FIXME: we need at least 68020 code to build shared libraries, but
19671 # adding the `-m68020' flag to GCC prevents building anything better,
19673 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19678 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19679 # PIC is the default for these OSes.
19681 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19682 # This hack is so that the source file can tell whether it is being
19683 # built for inclusion in a dll (and should export symbols for example).
19684 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19685 # (--disable-auto-import) libraries
19686 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19688 darwin
* | rhapsody
*)
19689 # PIC is the default on this platform
19690 # Common symbols not allowed in MH_DYLIB files
19691 lt_prog_compiler_pic_CXX
='-fno-common'
19694 # DJGPP does not support shared libraries at all
19695 lt_prog_compiler_pic_CXX
=
19698 # PIC is the default for Haiku.
19699 # The "-static" flag exists, but is broken.
19700 lt_prog_compiler_static_CXX
=
19703 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19704 # Instead, we relocate shared libraries at runtime.
19707 if test -d /usr
/nec
; then
19708 lt_prog_compiler_pic_CXX
=-Kconform_pic
19712 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19713 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19714 # sets the default TLS model and affects inlining.
19719 lt_prog_compiler_pic_CXX
='-fPIC'
19724 # QNX uses GNU C++, but need to define -shared option too, otherwise
19725 # it will coredump.
19726 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19729 lt_prog_compiler_pic_CXX
='-fPIC'
19735 # All AIX code is PIC.
19736 if test "$host_cpu" = ia64
; then
19737 # AIX 5 now supports IA64 processor
19738 lt_prog_compiler_static_CXX
='-Bstatic'
19740 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19744 case $cc_basename in
19746 # Green Hills C++ Compiler
19747 # _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"
19752 case $cc_basename in
19754 lt_prog_compiler_pic_CXX
='-KPIC'
19757 # Green Hills C++ Compiler
19758 lt_prog_compiler_pic_CXX
='-pic'
19764 freebsd
* | dragonfly
*)
19765 # FreeBSD uses GNU C++
19767 hpux9
* | hpux10
* | hpux11
*)
19768 case $cc_basename in
19770 lt_prog_compiler_wl_CXX
='-Wl,'
19771 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19772 if test "$host_cpu" != ia64
; then
19773 lt_prog_compiler_pic_CXX
='+Z'
19777 lt_prog_compiler_wl_CXX
='-Wl,'
19778 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19784 lt_prog_compiler_pic_CXX
='+Z'
19793 # This is c89, which is MS Visual C++ (no shared libs)
19794 # Anyone wants to do a port?
19796 irix5
* | irix6
* | nonstopux
*)
19797 case $cc_basename in
19799 lt_prog_compiler_wl_CXX
='-Wl,'
19800 lt_prog_compiler_static_CXX
='-non_shared'
19801 # CC pic flag -KPIC is the default.
19807 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19808 case $cc_basename in
19811 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19812 lt_prog_compiler_pic_CXX
='-fPIC'
19815 # old Intel C++ for x86_64 which still supported -KPIC.
19816 lt_prog_compiler_wl_CXX
='-Wl,'
19817 lt_prog_compiler_pic_CXX
='-KPIC'
19818 lt_prog_compiler_static_CXX
='-static'
19821 # Intel C++, used to be incompatible with GCC.
19822 # ICC 10 doesn't accept -KPIC any more.
19823 lt_prog_compiler_wl_CXX
='-Wl,'
19824 lt_prog_compiler_pic_CXX
='-fPIC'
19825 lt_prog_compiler_static_CXX
='-static'
19828 # Portland Group C++ compiler
19829 lt_prog_compiler_wl_CXX
='-Wl,'
19830 lt_prog_compiler_pic_CXX
='-fpic'
19831 lt_prog_compiler_static_CXX
='-Bstatic'
19835 # Make sure the PIC flag is empty. It appears that all Alpha
19836 # Linux and Compaq Tru64 Unix objects are PIC.
19837 lt_prog_compiler_pic_CXX
=
19838 lt_prog_compiler_static_CXX
='-non_shared'
19840 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19841 # IBM XL 8.0, 9.0 on PPC and BlueGene
19842 lt_prog_compiler_wl_CXX
='-Wl,'
19843 lt_prog_compiler_pic_CXX
='-qpic'
19844 lt_prog_compiler_static_CXX
='-qstaticlink'
19847 case `$CC -V 2>&1 | sed 5q` in
19850 lt_prog_compiler_pic_CXX
='-KPIC'
19851 lt_prog_compiler_static_CXX
='-Bstatic'
19852 lt_prog_compiler_wl_CXX
='-Qoption ld '
19863 case $cc_basename in
19865 lt_prog_compiler_pic_CXX
='-W c,exportall'
19874 # QNX uses GNU C++, but need to define -shared option too, otherwise
19875 # it will coredump.
19876 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19878 osf3
* | osf4
* | osf5
*)
19879 case $cc_basename in
19881 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19884 # Rational C++ 2.4.1
19885 lt_prog_compiler_pic_CXX
='-pic'
19888 # Digital/Compaq C++
19889 lt_prog_compiler_wl_CXX
='-Wl,'
19890 # Make sure the PIC flag is empty. It appears that all Alpha
19891 # Linux and Compaq Tru64 Unix objects are PIC.
19892 lt_prog_compiler_pic_CXX
=
19893 lt_prog_compiler_static_CXX
='-non_shared'
19902 case $cc_basename in
19904 # Sun C++ 4.2, 5.x and Centerline C++
19905 lt_prog_compiler_pic_CXX
='-KPIC'
19906 lt_prog_compiler_static_CXX
='-Bstatic'
19907 lt_prog_compiler_wl_CXX
='-Qoption ld '
19910 # Green Hills C++ Compiler
19911 lt_prog_compiler_pic_CXX
='-PIC'
19918 case $cc_basename in
19921 lt_prog_compiler_pic_CXX
='-pic'
19922 lt_prog_compiler_static_CXX
='-Bstatic'
19926 lt_prog_compiler_pic_CXX
='-pic'
19932 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19933 case $cc_basename in
19935 lt_prog_compiler_wl_CXX
='-Wl,'
19936 lt_prog_compiler_pic_CXX
='-KPIC'
19937 lt_prog_compiler_static_CXX
='-Bstatic'
19942 case $cc_basename in
19944 # NonStop-UX NCC 3.20
19945 lt_prog_compiler_pic_CXX
='-KPIC'
19954 lt_prog_compiler_can_build_shared_CXX
=no
19960 # For platforms which do not support PIC, -DPIC is meaningless:
19962 lt_prog_compiler_pic_CXX
=
19965 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19969 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19974 # Check to make sure the PIC flag actually works.
19976 if test -n "$lt_prog_compiler_pic_CXX"; then
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19978 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19979 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19980 $as_echo_n "(cached) " >&6
19982 lt_cv_prog_compiler_pic_works_CXX
=no
19983 ac_outfile
=conftest.
$ac_objext
19984 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19985 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19986 # Insert the option either (1) after the last *FLAGS variable, or
19987 # (2) before a word containing "conftest.", or (3) at the end.
19988 # Note that $ac_compile itself does not contain backslashes and begins
19989 # with a dollar sign (not a hyphen), so the echo should work correctly.
19990 # The option is referenced via a variable to avoid confusing sed.
19991 lt_compile
=`echo "$ac_compile" | $SED \
19992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19994 -e 's:$: $lt_compiler_flag:'`
19995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19996 (eval "$lt_compile" 2>conftest.err
)
19998 cat conftest.err
>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 if (exit $ac_status) && test -s "$ac_outfile"; then
20001 # The compiler can only warn and ignore the option if not recognized
20002 # So say no if there are warnings other than the usual output.
20003 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20004 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20005 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20006 lt_cv_prog_compiler_pic_works_CXX
=yes
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20013 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20015 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20016 case $lt_prog_compiler_pic_CXX in
20018 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20021 lt_prog_compiler_pic_CXX
=
20022 lt_prog_compiler_can_build_shared_CXX
=no
20030 # Check to make sure the static flag actually works.
20032 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20034 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20035 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20036 $as_echo_n "(cached) " >&6
20038 lt_cv_prog_compiler_static_works_CXX
=no
20039 save_LDFLAGS
="$LDFLAGS"
20040 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20041 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20042 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20043 # The linker can only warn and ignore the option if not recognized
20044 # So say no if there are warnings
20045 if test -s conftest.err
; then
20046 # Append any errors to the config.log.
20047 cat conftest.err
1>&5
20048 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20049 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20050 if diff conftest.exp conftest.er2
>/dev
/null
; then
20051 lt_cv_prog_compiler_static_works_CXX
=yes
20054 lt_cv_prog_compiler_static_works_CXX
=yes
20058 LDFLAGS
="$save_LDFLAGS"
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20062 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20064 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20067 lt_prog_compiler_static_CXX
=
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20074 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20075 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20076 $as_echo_n "(cached) " >&6
20078 lt_cv_prog_compiler_c_o_CXX
=no
20079 $RM -r conftest
2>/dev
/null
20083 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20085 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20086 # Insert the option either (1) after the last *FLAGS variable, or
20087 # (2) before a word containing "conftest.", or (3) at the end.
20088 # Note that $ac_compile itself does not contain backslashes and begins
20089 # with a dollar sign (not a hyphen), so the echo should work correctly.
20090 lt_compile
=`echo "$ac_compile" | $SED \
20091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20093 -e 's:$: $lt_compiler_flag:'`
20094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20095 (eval "$lt_compile" 2>out
/conftest.err
)
20097 cat out
/conftest.err
>&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20101 # The compiler can only warn and ignore the option if not recognized
20102 # So say no if there are warnings
20103 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20104 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20105 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20106 lt_cv_prog_compiler_c_o_CXX
=yes
20111 # SGI C++ compiler will create directory out/ii_files/ for
20112 # template instantiation
20113 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20114 $RM out
/* && rmdir out
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20121 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20126 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20127 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20128 $as_echo_n "(cached) " >&6
20130 lt_cv_prog_compiler_c_o_CXX
=no
20131 $RM -r conftest
2>/dev
/null
20135 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20137 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20138 # Insert the option either (1) after the last *FLAGS variable, or
20139 # (2) before a word containing "conftest.", or (3) at the end.
20140 # Note that $ac_compile itself does not contain backslashes and begins
20141 # with a dollar sign (not a hyphen), so the echo should work correctly.
20142 lt_compile
=`echo "$ac_compile" | $SED \
20143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20145 -e 's:$: $lt_compiler_flag:'`
20146 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20147 (eval "$lt_compile" 2>out
/conftest.err
)
20149 cat out
/conftest.err
>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20153 # The compiler can only warn and ignore the option if not recognized
20154 # So say no if there are warnings
20155 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20156 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20157 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20158 lt_cv_prog_compiler_c_o_CXX
=yes
20163 # SGI C++ compiler will create directory out/ii_files/ for
20164 # template instantiation
20165 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20166 $RM out
/* && rmdir out
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20173 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20178 hard_links
="nottested"
20179 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20180 # do not overwrite the value of need_locks provided by the user
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20182 $as_echo_n "checking if we can lock with hard links... " >&6; }
20185 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20187 ln conftest.a conftest.b
2>&5 || hard_links
=no
20188 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20190 $as_echo "$hard_links" >&6; }
20191 if test "$hard_links" = no
; then
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20193 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20203 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20205 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20208 # If we're using GNU nm, then we don't want the "-C" option.
20209 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20210 # Also, AIX nm treats weak defined symbols like other global defined
20211 # symbols, whereas GNU nm marks them as "W".
20212 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20213 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'
20215 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'
20219 export_symbols_cmds_CXX
="$ltdll_cmds"
20221 cygwin
* | mingw
* | cegcc
*)
20222 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'
20225 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20228 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20231 $as_echo "$ld_shlibs_CXX" >&6; }
20232 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20234 with_gnu_ld_CXX
=$with_gnu_ld
20242 # Do we need to explicitly link libc?
20244 case "x$archive_cmds_need_lc_CXX" in
20246 # Assume -lc should be added
20247 archive_cmds_need_lc_CXX
=yes
20249 if test "$enable_shared" = yes && test "$GCC" = yes; then
20250 case $archive_cmds_CXX in
20252 # FIXME: we may have to deal with multi-command sequences.
20255 # Test whether the compiler implicitly links with -lc since on some
20256 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20257 # to ld, don't add -lc before -lgcc.
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20259 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20260 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20261 $as_echo_n "(cached) " >&6
20264 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20267 (eval $ac_compile) 2>&5
20269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20270 test $ac_status = 0; } 2>conftest.err
; then
20273 libobjs
=conftest.
$ac_objext
20275 wl
=$lt_prog_compiler_wl_CXX
20276 pic_flag
=$lt_prog_compiler_pic_CXX
20282 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20283 allow_undefined_flag_CXX
=
20284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20285 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20288 test $ac_status = 0; }
20290 lt_cv_archive_cmds_need_lc_CXX
=no
20292 lt_cv_archive_cmds_need_lc_CXX
=yes
20294 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20296 cat conftest.err
1>&5
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20302 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20303 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20374 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20376 library_names_spec
=
20377 libname_spec
='lib$name'
20381 postuninstall_cmds
=
20385 shlibpath_overrides_runpath
=unknown
20387 dynamic_linker
="$host_os ld.so"
20388 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20389 need_lib_prefix
=unknown
20390 hardcode_into_libs
=no
20392 # when you set need_version to no, make sure it does not cause -set_version
20393 # flags to be left without arguments
20394 need_version
=unknown
20399 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20400 shlibpath_var
=LIBPATH
20402 # AIX 3 has no versioning support, so we append a major version to the name.
20403 soname_spec
='${libname}${release}${shared_ext}$major'
20410 hardcode_into_libs
=yes
20411 if test "$host_cpu" = ia64
; then
20412 # AIX 5 supports IA64
20413 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20414 shlibpath_var
=LD_LIBRARY_PATH
20416 # With GCC up to 2.95.x, collect2 would create an import file
20417 # for dependence libraries. The import file would start with
20418 # the line `#! .'. This would cause the generated library to
20419 # depend on `.', always an invalid library. This was fixed in
20420 # development snapshots of GCC prior to 3.0.
20422 aix4 | aix4.
[01] | aix4.
[01].
*)
20423 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20425 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20428 can_build_shared
=no
20432 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20433 # soname into executable. Probably we can add versioning support to
20434 # collect2, so additional links can be useful in future.
20435 if test "$aix_use_runtimelinking" = yes; then
20436 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20437 # instead of lib<name>.a to let people know that these are not
20438 # typical AIX shared libraries.
20439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20441 # We preserve .a as extension for shared libraries through AIX4.2
20442 # and later when we are not doing run time linking.
20443 library_names_spec
='${libname}${release}.a $libname.a'
20444 soname_spec
='${libname}${release}${shared_ext}$major'
20446 shlibpath_var
=LIBPATH
20453 # Since July 2007 AmigaOS4 officially supports .so libraries.
20454 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20455 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20458 library_names_spec
='$libname.ixlibrary $libname.a'
20459 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20460 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'
20466 library_names_spec
='${libname}${shared_ext}'
20467 dynamic_linker
="$host_os ld.so"
20468 shlibpath_var
=LIBRARY_PATH
20474 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20475 soname_spec
='${libname}${release}${shared_ext}$major'
20476 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20477 shlibpath_var
=LD_LIBRARY_PATH
20478 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20479 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20480 # the default ld.so.conf also contains /usr/contrib/lib and
20481 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20482 # libtool to hard-code these into programs
20485 cygwin
* | mingw
* | pw32
* | cegcc
*)
20486 version_type
=windows
20491 case $GCC,$host_os in
20492 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20493 library_names_spec
='$libname.dll.a'
20494 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20495 postinstall_cmds
='base_file=`basename \${file}`~
20496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20497 dldir=$destdir/`dirname \$dlpath`~
20498 test -d \$dldir || mkdir -p \$dldir~
20499 $install_prog $dir/$dlname \$dldir/$dlname~
20500 chmod a+x \$dldir/$dlname~
20501 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20502 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20504 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20505 dlpath=$dir/\$dldll~
20507 shlibpath_overrides_runpath
=yes
20511 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20512 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20516 # MinGW DLLs use traditional 'lib' prefix
20517 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20520 # pw32 DLLs use 'pw' prefix rather than 'lib'
20521 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20527 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20530 dynamic_linker
='Win32 ld.exe'
20531 # FIXME: first we should search . and the directory the executable is in
20535 darwin
* | rhapsody
*)
20536 dynamic_linker
="$host_os dyld"
20537 version_type
=darwin
20540 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20541 soname_spec
='${libname}${release}${major}$shared_ext'
20542 shlibpath_overrides_runpath
=yes
20543 shlibpath_var
=DYLD_LIBRARY_PATH
20544 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20546 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20553 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20554 soname_spec
='${libname}${release}${shared_ext}$major'
20555 shlibpath_var
=LD_LIBRARY_PATH
20558 freebsd
* | dragonfly
*)
20559 # DragonFly does not have aout. When/if they implement a new
20560 # versioning mechanism, adjust this.
20561 if test -x /usr
/bin
/objformat
; then
20562 objformat
=`/usr/bin/objformat`
20565 freebsd
[123]*) objformat
=aout
;;
20566 *) objformat
=elf
;;
20569 version_type
=freebsd-
$objformat
20570 case $version_type in
20572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20577 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20581 shlibpath_var
=LD_LIBRARY_PATH
20584 shlibpath_overrides_runpath
=yes
20586 freebsd3.
[01]* | freebsdelf3.
[01]*)
20587 shlibpath_overrides_runpath
=yes
20588 hardcode_into_libs
=yes
20590 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20591 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20592 shlibpath_overrides_runpath
=no
20593 hardcode_into_libs
=yes
20595 *) # from 4.6 on, and DragonFly
20596 shlibpath_overrides_runpath
=yes
20597 hardcode_into_libs
=yes
20606 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20607 soname_spec
='${libname}${release}${shared_ext}$major'
20608 shlibpath_var
=LD_LIBRARY_PATH
20609 hardcode_into_libs
=yes
20616 dynamic_linker
="$host_os runtime_loader"
20617 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20618 soname_spec
='${libname}${release}${shared_ext}$major'
20619 shlibpath_var
=LIBRARY_PATH
20620 shlibpath_overrides_runpath
=yes
20621 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20622 hardcode_into_libs
=yes
20625 hpux9
* | hpux10
* | hpux11
*)
20626 # Give a soname corresponding to the major version so that dld.sl refuses to
20627 # link against other versions.
20634 hardcode_into_libs
=yes
20635 dynamic_linker
="$host_os dld.so"
20636 shlibpath_var
=LD_LIBRARY_PATH
20637 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20639 soname_spec
='${libname}${release}${shared_ext}$major'
20640 if test "X$HPUX_IA64_MODE" = X32
; then
20641 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20643 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20645 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20649 hardcode_into_libs
=yes
20650 dynamic_linker
="$host_os dld.sl"
20651 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20652 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20654 soname_spec
='${libname}${release}${shared_ext}$major'
20655 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20656 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20660 dynamic_linker
="$host_os dld.sl"
20661 shlibpath_var
=SHLIB_PATH
20662 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20663 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20664 soname_spec
='${libname}${release}${shared_ext}$major'
20667 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20668 postinstall_cmds
='chmod 555 $lib'
20669 # or fails outright, so override atomically:
20670 install_override_mode
=555
20677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20678 soname_spec
='${libname}${release}${shared_ext}$major'
20679 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20680 shlibpath_var
=LD_LIBRARY_PATH
20681 shlibpath_overrides_runpath
=no
20682 hardcode_into_libs
=yes
20685 irix5
* | irix6
* | nonstopux
*)
20687 nonstopux
*) version_type
=nonstopux
;;
20689 if test "$lt_cv_prog_gnu_ld" = yes; then
20697 soname_spec
='${libname}${release}${shared_ext}$major'
20698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20700 irix5
* | nonstopux
*)
20701 libsuff
= shlibsuff
=
20704 case $LD in # libtool.m4 will add one of these switches to LD
20705 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20706 libsuff
= shlibsuff
= libmagic
=32-bit;;
20707 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20708 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20709 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20710 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20711 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20715 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20716 shlibpath_overrides_runpath
=no
20717 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20718 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20719 hardcode_into_libs
=yes
20722 # No shared lib support for Linux oldld, aout, or coff.
20723 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20727 # This must be Linux ELF.
20728 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20733 soname_spec
='${libname}${release}${shared_ext}$major'
20734 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20735 shlibpath_var
=LD_LIBRARY_PATH
20736 shlibpath_overrides_runpath
=no
20738 # Some binutils ld are patched to set DT_RUNPATH
20739 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20740 $as_echo_n "(cached) " >&6
20742 lt_cv_shlibpath_overrides_runpath
=no
20743 save_LDFLAGS
=$LDFLAGS
20744 save_libdir
=$libdir
20745 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20746 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20748 /* end confdefs.h. */
20758 if ac_fn_cxx_try_link
"$LINENO"; then :
20759 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20760 lt_cv_shlibpath_overrides_runpath
=yes
20763 rm -f core conftest.err conftest.
$ac_objext \
20764 conftest
$ac_exeext conftest.
$ac_ext
20765 LDFLAGS
=$save_LDFLAGS
20766 libdir
=$save_libdir
20770 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20772 # This implies no fast_install, which is unacceptable.
20773 # Some rework will be needed to allow for fast_install
20774 # before this can be enabled.
20775 hardcode_into_libs
=yes
20777 # Append ld.so.conf contents to the search path
20778 if test -f /etc
/ld.so.conf
; then
20779 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' ' '`
20780 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20783 # We used to test for /lib/ld.so.1 and disable shared libraries on
20784 # powerpc, because MkLinux only supported shared libraries with the
20785 # GNU dynamic linker. Since this was broken with cross compilers,
20786 # most powerpc-linux boxes support dynamic linking these days and
20787 # people can always --disable-shared, the test was removed, and we
20788 # assume the GNU/Linux dynamic linker is in use.
20789 dynamic_linker
='GNU/Linux ld.so'
20796 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20798 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20799 dynamic_linker
='NetBSD (a.out) ld.so'
20801 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20802 soname_spec
='${libname}${release}${shared_ext}$major'
20803 dynamic_linker
='NetBSD ld.elf_so'
20805 shlibpath_var
=LD_LIBRARY_PATH
20806 shlibpath_overrides_runpath
=yes
20807 hardcode_into_libs
=yes
20812 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813 shlibpath_var
=LD_LIBRARY_PATH
20814 shlibpath_overrides_runpath
=yes
20821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20822 soname_spec
='${libname}${release}${shared_ext}$major'
20823 shlibpath_var
=LD_LIBRARY_PATH
20824 shlibpath_overrides_runpath
=no
20825 hardcode_into_libs
=yes
20826 dynamic_linker
='ldqnx.so'
20831 sys_lib_dlsearch_path_spec
="/usr/lib"
20833 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20835 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20836 *) need_version
=no
;;
20838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20839 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20840 shlibpath_var
=LD_LIBRARY_PATH
20841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20843 openbsd2.
[89] | openbsd2.
[89].
*)
20844 shlibpath_overrides_runpath
=no
20847 shlibpath_overrides_runpath
=yes
20851 shlibpath_overrides_runpath
=yes
20856 libname_spec
='$name'
20859 library_names_spec
='$libname${shared_ext} $libname.a'
20860 dynamic_linker
='OS/2 ld.exe'
20861 shlibpath_var
=LIBPATH
20864 osf3
* | osf4
* | osf5
*)
20868 soname_spec
='${libname}${release}${shared_ext}$major'
20869 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20870 shlibpath_var
=LD_LIBRARY_PATH
20871 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20872 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20884 soname_spec
='${libname}${release}${shared_ext}$major'
20885 shlibpath_var
=LD_LIBRARY_PATH
20886 shlibpath_overrides_runpath
=yes
20887 hardcode_into_libs
=yes
20888 # ldd complains unless libraries are executable
20889 postinstall_cmds
='chmod +x $lib'
20894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20895 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20896 shlibpath_var
=LD_LIBRARY_PATH
20897 shlibpath_overrides_runpath
=yes
20898 if test "$with_gnu_ld" = yes; then
20906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20907 soname_spec
='${libname}${release}${shared_ext}$major'
20908 shlibpath_var
=LD_LIBRARY_PATH
20909 case $host_vendor in
20911 shlibpath_overrides_runpath
=no
20913 runpath_var
=LD_RUN_PATH
20921 shlibpath_overrides_runpath
=no
20922 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20928 if test -d /usr
/nec
;then
20930 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20931 soname_spec
='$libname${shared_ext}.$major'
20932 shlibpath_var
=LD_LIBRARY_PATH
20936 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20937 version_type
=freebsd-elf
20940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20941 soname_spec
='${libname}${release}${shared_ext}$major'
20942 shlibpath_var
=LD_LIBRARY_PATH
20943 shlibpath_overrides_runpath
=yes
20944 hardcode_into_libs
=yes
20945 if test "$with_gnu_ld" = yes; then
20946 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20948 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20951 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20955 sys_lib_dlsearch_path_spec
='/usr/lib'
20959 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20963 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20964 shlibpath_var
=LD_LIBRARY_PATH
20965 shlibpath_overrides_runpath
=no
20966 hardcode_into_libs
=yes
20971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20972 soname_spec
='${libname}${release}${shared_ext}$major'
20973 shlibpath_var
=LD_LIBRARY_PATH
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20981 $as_echo "$dynamic_linker" >&6; }
20982 test "$dynamic_linker" = no
&& can_build_shared
=no
20984 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20985 if test "$GCC" = yes; then
20986 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20989 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20990 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20992 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20993 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21034 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21035 hardcode_action_CXX
=
21036 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21037 test -n "$runpath_var_CXX" ||
21038 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21040 # We can hardcode non-existent directories.
21041 if test "$hardcode_direct_CXX" != no
&&
21042 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21043 # have to relink, otherwise we might link with an installed library
21044 # when we should be linking with a yet-to-be-installed one
21045 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21046 test "$hardcode_minus_L_CXX" != no
; then
21047 # Linking always hardcodes the temporary library directory.
21048 hardcode_action_CXX
=relink
21050 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21051 hardcode_action_CXX
=immediate
21054 # We cannot hardcode anything, or else we can only hardcode existing
21056 hardcode_action_CXX
=unsupported
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21059 $as_echo "$hardcode_action_CXX" >&6; }
21061 if test "$hardcode_action_CXX" = relink ||
21062 test "$inherit_rpath_CXX" = yes; then
21063 # Fast installation is not supported
21064 enable_fast_install
=no
21065 elif test "$shlibpath_overrides_runpath" = yes ||
21066 test "$enable_shared" = no
; then
21067 # Fast installation is not necessary
21068 enable_fast_install
=needless
21077 fi # test -n "$compiler"
21083 with_gnu_ld
=$lt_save_with_gnu_ld
21084 lt_cv_path_LDCXX
=$lt_cv_path_LD
21085 lt_cv_path_LD
=$lt_save_path_LD
21086 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21087 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21088 fi # test "$_lt_caught_CXX_error" != yes
21091 ac_cpp
='$CPP $CPPFLAGS'
21092 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21093 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21094 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21111 # Only expand once:
21117 # Identify the assembler which will work hand-in-glove with the newly
21118 # built GCC, so that we can examine its features. This is the assembler
21119 # which will be driven by the driver program.
21121 # If build != host, and we aren't building gas in-tree, we identify a
21122 # build->target assembler and hope that it will have the same features
21123 # as the host->target assembler we'll be using.
21124 gcc_cv_gas_major_version
=
21125 gcc_cv_gas_minor_version
=
21126 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21128 if test "${gcc_cv_as+set}" = set; then :
21132 if test -x "$DEFAULT_ASSEMBLER"; then
21133 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21134 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21135 && test -f ..
/gas
/Makefile \
21136 && test x
$build = x
$host; then
21137 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21138 elif test -x as
$build_exeext; then
21139 # Build using assembler in the current directory.
21140 gcc_cv_as
=.
/as
$build_exeext
21141 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21142 gcc_cv_as
="$AS_FOR_TARGET"
21144 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21145 set dummy
$AS_FOR_TARGET; ac_word
=$2
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21147 $as_echo_n "checking for $ac_word... " >&6; }
21148 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21149 $as_echo_n "(cached) " >&6
21153 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21157 for as_dir
in $PATH
21160 test -z "$as_dir" && as_dir
=.
21161 for ac_exec_ext
in '' $ac_executable_extensions; do
21162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21163 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21174 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21175 if test -n "$gcc_cv_as"; then
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21177 $as_echo "$gcc_cv_as" >&6; }
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21180 $as_echo "no" >&6; }
21187 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21189 case "$ORIGINAL_AS_FOR_TARGET" in
21190 .
/as | .
/as
$build_exeext) ;;
21191 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21196 $as_echo_n "checking what assembler to use... " >&6; }
21197 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21198 # Single tree build which includes gas. We want to prefer it
21199 # over whatever linker top-level may have detected, since
21200 # we'll use what we're building after installation anyway.
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21202 $as_echo "newly built gas" >&6; }
21204 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21205 for f
in $gcc_cv_as_bfd_srcdir/configure \
21206 $gcc_cv_as_gas_srcdir/configure \
21207 $gcc_cv_as_gas_srcdir/configure.
in \
21208 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21209 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21210 if test x
$gcc_cv_gas_version != x
; then
21214 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21215 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21216 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21217 case $gcc_cv_gas_patch_version in
21218 "") gcc_cv_gas_patch_version
="0" ;;
21220 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21221 + $gcc_cv_gas_minor_version \) \* 1000 \
21222 + $gcc_cv_gas_patch_version`
21224 in_tree_gas_is_elf
=no
21225 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21226 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21227 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21229 in_tree_gas_is_elf
=yes
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21233 $as_echo "$gcc_cv_as" >&6; }
21237 # Identify the linker which will work hand-in-glove with the newly
21238 # built GCC, so that we can examine its features. This is the linker
21239 # which will be driven by the driver program.
21241 # If build != host, and we aren't building gas in-tree, we identify a
21242 # build->target linker and hope that it will have the same features
21243 # as the host->target linker we'll be using.
21244 gcc_cv_gld_major_version
=
21245 gcc_cv_gld_minor_version
=
21246 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21247 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21249 if test "${gcc_cv_ld+set}" = set; then :
21253 if test -x "$DEFAULT_LINKER"; then
21254 gcc_cv_ld
="$DEFAULT_LINKER"
21255 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21256 && test -f ..
/ld
/Makefile \
21257 && test x
$build = x
$host; then
21258 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21259 elif test -x collect-ld
$build_exeext; then
21260 # Build using linker in the current directory.
21261 gcc_cv_ld
=.
/collect-ld
$build_exeext
21262 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21263 gcc_cv_ld
="$LD_FOR_TARGET"
21265 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21266 set dummy
$LD_FOR_TARGET; ac_word
=$2
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21268 $as_echo_n "checking for $ac_word... " >&6; }
21269 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21270 $as_echo_n "(cached) " >&6
21274 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21278 for as_dir
in $PATH
21281 test -z "$as_dir" && as_dir
=.
21282 for ac_exec_ext
in '' $ac_executable_extensions; do
21283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21284 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21295 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21296 if test -n "$gcc_cv_ld"; then
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21298 $as_echo "$gcc_cv_ld" >&6; }
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21301 $as_echo "no" >&6; }
21308 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21309 PLUGIN_LD
=`basename $gcc_cv_ld`
21311 # Check whether --with-plugin-ld was given.
21312 if test "${with_plugin_ld+set}" = set; then :
21313 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21314 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21315 PLUGIN_LD
="$withval"
21321 cat >>confdefs.h
<<_ACEOF
21322 #define PLUGIN_LD "$PLUGIN_LD"
21326 # Check to see if we are using gold instead of ld
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21328 $as_echo_n "checking whether we are using gold... " >&6; }
21330 if test x
$gcc_cv_ld != x
; then
21331 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21332 |
grep "GNU gold" > /dev
/null
; then
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21337 $as_echo "$ld_is_gold" >&6; }
21339 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21341 case "$ORIGINAL_LD_FOR_TARGET" in
21342 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21343 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21348 $as_echo_n "checking what linker to use... " >&6; }
21349 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21350 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21351 # Single tree build which includes ld. We want to prefer it
21352 # over whatever linker top-level may have detected, since
21353 # we'll use what we're building after installation anyway.
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21355 $as_echo "newly built ld" >&6; }
21357 in_tree_ld_is_elf
=no
21358 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21359 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21360 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21361 in_tree_ld_is_elf
=yes
21362 elif test "$ld_is_gold" = yes; then
21363 in_tree_ld_is_elf
=yes
21365 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
21367 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21368 if test x
$gcc_cv_gld_version != x
; then
21372 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21373 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21376 $as_echo "$gcc_cv_ld" >&6; }
21380 # Figure out what nm we will be using.
21381 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21382 if test "${gcc_cv_nm+set}" = set; then :
21386 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21387 && test -f ..
/binutils
/Makefile \
21388 && test x
$build = x
$host; then
21389 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21390 elif test -x nm
$build_exeext; then
21391 gcc_cv_nm
=.
/nm
$build_exeext
21392 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21393 gcc_cv_nm
="$NM_FOR_TARGET"
21395 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21396 set dummy
$NM_FOR_TARGET; ac_word
=$2
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21398 $as_echo_n "checking for $ac_word... " >&6; }
21399 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21400 $as_echo_n "(cached) " >&6
21404 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21408 for as_dir
in $PATH
21411 test -z "$as_dir" && as_dir
=.
21412 for ac_exec_ext
in '' $ac_executable_extensions; do
21413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21414 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21425 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21426 if test -n "$gcc_cv_nm"; then
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21428 $as_echo "$gcc_cv_nm" >&6; }
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21431 $as_echo "no" >&6; }
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21439 $as_echo_n "checking what nm to use... " >&6; }
21440 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21441 # Single tree build which includes binutils.
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21443 $as_echo "newly built nm" >&6; }
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21447 $as_echo "$gcc_cv_nm" >&6; }
21451 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21453 case "$ORIGINAL_NM_FOR_TARGET" in
21454 .
/nm | .
/nm
$build_exeext) ;;
21455 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21460 # Figure out what objdump we will be using.
21461 if test "${gcc_cv_objdump+set}" = set; then :
21465 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21466 && test -f ..
/binutils
/Makefile \
21467 && test x
$build = x
$host; then
21468 # Single tree build which includes binutils.
21469 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21470 elif test -x objdump
$build_exeext; then
21471 gcc_cv_objdump
=.
/objdump
$build_exeext
21472 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21473 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21475 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21476 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21478 $as_echo_n "checking for $ac_word... " >&6; }
21479 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21480 $as_echo_n "(cached) " >&6
21482 case $gcc_cv_objdump in
21484 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21488 for as_dir
in $PATH
21491 test -z "$as_dir" && as_dir
=.
21492 for ac_exec_ext
in '' $ac_executable_extensions; do
21493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21494 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21505 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21506 if test -n "$gcc_cv_objdump"; then
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21508 $as_echo "$gcc_cv_objdump" >&6; }
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21511 $as_echo "no" >&6; }
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21519 $as_echo_n "checking what objdump to use... " >&6; }
21520 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21521 # Single tree build which includes binutils.
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21523 $as_echo "newly built objdump" >&6; }
21524 elif test x
$gcc_cv_objdump = x
; then
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21526 $as_echo "not found" >&6; }
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21529 $as_echo "$gcc_cv_objdump" >&6; }
21532 # Figure out what readelf we will be using.
21533 if test "${gcc_cv_readelf+set}" = set; then :
21537 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21538 && test -f ..
/binutils
/Makefile \
21539 && test x
$build = x
$host; then
21540 # Single tree build which includes binutils.
21541 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21542 elif test -x readelf
$build_exeext; then
21543 gcc_cv_readelf
=.
/readelf
$build_exeext
21545 # Extract the first word of "readelf", so it can be a program name with args.
21546 set dummy readelf
; ac_word
=$2
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21548 $as_echo_n "checking for $ac_word... " >&6; }
21549 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21550 $as_echo_n "(cached) " >&6
21552 case $gcc_cv_readelf in
21554 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21558 for as_dir
in $PATH
21561 test -z "$as_dir" && as_dir
=.
21562 for ac_exec_ext
in '' $ac_executable_extensions; do
21563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21564 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21575 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21576 if test -n "$gcc_cv_readelf"; then
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21578 $as_echo "$gcc_cv_readelf" >&6; }
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21581 $as_echo "no" >&6; }
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21589 $as_echo_n "checking what readelf to use... " >&6; }
21590 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21591 # Single tree build which includes binutils.
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21593 $as_echo "newly built readelf" >&6; }
21594 elif test x
$gcc_cv_readelf = x
; then
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21596 $as_echo "not found" >&6; }
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21599 $as_echo "$gcc_cv_readelf" >&6; }
21602 # Figure out what assembler alignment features are present.
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21604 $as_echo_n "checking assembler flags... " >&6; }
21605 if test "${gcc_cv_as_flags+set}" = set; then :
21606 $as_echo_n "(cached) " >&6
21609 i
[34567]86-*-linux*)
21610 gcc_cv_as_flags
="--32"
21612 powerpc
*-*-darwin*)
21613 gcc_cv_as_flags
="-arch ppc"
21616 gcc_cv_as_flags
=" "
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21621 $as_echo "$gcc_cv_as_flags" >&6; }
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21624 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21625 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21626 $as_echo_n "(cached) " >&6
21628 gcc_cv_as_balign_and_p2align
=no
21629 if test $in_tree_gas = yes; then
21630 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21631 then gcc_cv_as_balign_and_p2align
=yes
21633 elif test x
$gcc_cv_as != x
; then
21635 .p2align 2' > conftest.s
21636 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21638 (eval $ac_try) 2>&5
21640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21641 test $ac_status = 0; }; }
21643 gcc_cv_as_balign_and_p2align
=yes
21645 echo "configure: failed program was" >&5
21648 rm -f conftest.o conftest.s
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21652 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21653 if test $gcc_cv_as_balign_and_p2align = yes; then
21655 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21660 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21661 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21662 $as_echo_n "(cached) " >&6
21664 gcc_cv_as_max_skip_p2align
=no
21665 if test $in_tree_gas = yes; then
21666 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21667 then gcc_cv_as_max_skip_p2align
=yes
21669 elif test x
$gcc_cv_as != x
; then
21670 echo '.p2align 4,,7' > conftest.s
21671 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21673 (eval $ac_try) 2>&5
21675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21676 test $ac_status = 0; }; }
21678 gcc_cv_as_max_skip_p2align
=yes
21680 echo "configure: failed program was" >&5
21683 rm -f conftest.o conftest.s
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21687 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21688 if test $gcc_cv_as_max_skip_p2align = yes; then
21690 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21695 $as_echo_n "checking assembler for .literal16... " >&6; }
21696 if test "${gcc_cv_as_literal16+set}" = set; then :
21697 $as_echo_n "(cached) " >&6
21699 gcc_cv_as_literal16
=no
21700 if test $in_tree_gas = yes; then
21701 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21702 then gcc_cv_as_literal16
=yes
21704 elif test x
$gcc_cv_as != x
; then
21705 echo '.literal16' > conftest.s
21706 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21708 (eval $ac_try) 2>&5
21710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21711 test $ac_status = 0; }; }
21713 gcc_cv_as_literal16
=yes
21715 echo "configure: failed program was" >&5
21718 rm -f conftest.o conftest.s
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21722 $as_echo "$gcc_cv_as_literal16" >&6; }
21723 if test $gcc_cv_as_literal16 = yes; then
21725 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21730 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21731 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21732 $as_echo_n "(cached) " >&6
21734 gcc_cv_as_subsection_m1
=no
21735 if test $in_tree_gas = yes; then
21736 if test $in_tree_gas_is_elf = yes \
21737 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21738 then gcc_cv_as_subsection_m1
=yes
21740 elif test x
$gcc_cv_as != x
; then
21741 echo 'conftest_label1: .word 0
21743 conftest_label2: .word 0
21744 .previous' > conftest.s
21745 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21747 (eval $ac_try) 2>&5
21749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21750 test $ac_status = 0; }; }
21752 if test x
$gcc_cv_nm != x
; then
21753 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21754 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21755 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21757 else gcc_cv_as_subsection_m1
=yes
21759 rm -f conftest.nm1 conftest.nm2
21762 echo "configure: failed program was" >&5
21765 rm -f conftest.o conftest.s
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21769 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21770 if test $gcc_cv_as_subsection_m1 = yes; then
21772 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21777 $as_echo_n "checking assembler for .weak... " >&6; }
21778 if test "${gcc_cv_as_weak+set}" = set; then :
21779 $as_echo_n "(cached) " >&6
21782 if test $in_tree_gas = yes; then
21783 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21784 then gcc_cv_as_weak
=yes
21786 elif test x
$gcc_cv_as != x
; then
21787 echo ' .weak foobar' > conftest.s
21788 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21790 (eval $ac_try) 2>&5
21792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21793 test $ac_status = 0; }; }
21797 echo "configure: failed program was" >&5
21800 rm -f conftest.o conftest.s
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21804 $as_echo "$gcc_cv_as_weak" >&6; }
21805 if test $gcc_cv_as_weak = yes; then
21807 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21812 $as_echo_n "checking assembler for .weakref... " >&6; }
21813 if test "${gcc_cv_as_weakref+set}" = set; then :
21814 $as_echo_n "(cached) " >&6
21816 gcc_cv_as_weakref
=no
21817 if test $in_tree_gas = yes; then
21818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21819 then gcc_cv_as_weakref
=yes
21821 elif test x
$gcc_cv_as != x
; then
21822 echo ' .weakref foobar, barfnot' > conftest.s
21823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21825 (eval $ac_try) 2>&5
21827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21828 test $ac_status = 0; }; }
21830 gcc_cv_as_weakref
=yes
21832 echo "configure: failed program was" >&5
21835 rm -f conftest.o conftest.s
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21839 $as_echo "$gcc_cv_as_weakref" >&6; }
21840 if test $gcc_cv_as_weakref = yes; then
21842 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21847 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21848 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21849 $as_echo_n "(cached) " >&6
21851 gcc_cv_as_nsubspa_comdat
=no
21852 if test $in_tree_gas = yes; then
21853 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21854 then gcc_cv_as_nsubspa_comdat
=yes
21856 elif test x
$gcc_cv_as != x
; then
21857 echo ' .SPACE $TEXT$
21858 .NSUBSPA $CODE$,COMDAT' > conftest.s
21859 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21861 (eval $ac_try) 2>&5
21863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21864 test $ac_status = 0; }; }
21866 gcc_cv_as_nsubspa_comdat
=yes
21868 echo "configure: failed program was" >&5
21871 rm -f conftest.o conftest.s
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21875 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21876 if test $gcc_cv_as_nsubspa_comdat = yes; then
21878 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21882 # .hidden needs to be supported in both the assembler and the linker,
21883 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21884 # This is irritatingly difficult to feature test for; we have to check the
21885 # date string after the version number. If we've got an in-tree
21886 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21888 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21890 $as_echo_n "checking assembler for .hidden... " >&6; }
21891 if test "${gcc_cv_as_hidden+set}" = set; then :
21892 $as_echo_n "(cached) " >&6
21894 gcc_cv_as_hidden
=no
21895 if test $in_tree_gas = yes; then
21896 if test $in_tree_gas_is_elf = yes \
21897 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21898 then gcc_cv_as_hidden
=yes
21900 elif test x
$gcc_cv_as != x
; then
21901 echo ' .hidden foobar
21902 foobar:' > conftest.s
21903 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21905 (eval $ac_try) 2>&5
21907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21908 test $ac_status = 0; }; }
21911 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21912 # STV_HIDDEN, so disable .hidden support if so.
21913 case "${target}" in
21915 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21916 cat > conftest.s
<<EOF
21921 .set default,hidden
21923 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
21924 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
21925 grep '\.hidden default' > /dev
/null
; then
21926 gcc_cv_as_hidden
=no
21928 gcc_cv_as_hidden
=yes
21931 # Assume bug is present if objdump is missing.
21932 gcc_cv_as_hidden
=no
21936 gcc_cv_as_hidden
=yes
21940 echo "configure: failed program was" >&5
21943 rm -f conftest.o conftest.s
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21947 $as_echo "$gcc_cv_as_hidden" >&6; }
21950 # gnu_indirect_function type is an extension proposed at
21951 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21952 # selection of function implementation
21953 # Check whether --enable-gnu-indirect-function was given.
21954 if test "${enable_gnu_indirect_function+set}" = set; then :
21955 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21957 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21958 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21961 enable_gnu_indirect_function
="$default_gnu_indirect_function"
21964 if test x
$enable_gnu_indirect_function = xyes
; then
21966 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21970 if test $in_tree_ld != yes ; then
21971 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21972 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21973 if test x
"$ld_is_gold" = xyes
; then
21974 # GNU gold --version looks like this:
21976 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
21978 # We extract the binutils version which is more familiar and specific
21979 # than the gold version.
21980 ld_vers
=`echo $ld_ver | sed -n \
21981 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
21983 # GNU ld --version looks like this:
21985 # GNU ld (GNU Binutils) 2.21.51.20110225
21986 ld_vers
=`echo $ld_ver | sed -n \
21987 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21989 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'`
21990 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21991 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21992 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21994 case "${target}" in
21997 # Solaris 2 ld -V output looks like this for a regular version:
21999 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22001 # but test versions add stuff at the end:
22003 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22005 ld_ver
=`$gcc_cv_ld -V 2>&1`
22006 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22007 ld_vers
=`echo $ld_ver | sed -n \
22008 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22009 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22010 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22018 $as_echo_n "checking linker for .hidden support... " >&6; }
22019 if test "${gcc_cv_ld_hidden+set}" = set; then :
22020 $as_echo_n "(cached) " >&6
22022 if test $in_tree_ld = yes ; then
22023 gcc_cv_ld_hidden
=no
22024 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 \
22025 && test $in_tree_ld_is_elf = yes; then
22026 gcc_cv_ld_hidden
=yes
22029 gcc_cv_ld_hidden
=yes
22030 if test x
"$ld_is_gold" = xyes
; then
22032 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22033 if test 0"$ld_date" -lt 20020404; then
22034 if test -n "$ld_date"; then
22035 # If there was date string, but was earlier than 2002-04-04, fail
22036 gcc_cv_ld_hidden
=no
22037 elif test -z "$ld_vers"; then
22038 # If there was no date string nor ld version number, something is wrong
22039 gcc_cv_ld_hidden
=no
22041 test -z "$ld_vers_patch" && ld_vers_patch
=0
22042 if test "$ld_vers_major" -lt 2; then
22043 gcc_cv_ld_hidden
=no
22044 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22045 gcc_cv_ld_hidden
="no"
22046 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22047 gcc_cv_ld_hidden
=no
22052 case "${target}" in
22053 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22054 gcc_cv_ld_hidden
=yes
22057 # .hidden support was backported to Solaris 8, starting with ld
22059 if test "$ld_vers_minor" -ge 276; then
22060 gcc_cv_ld_hidden
=yes
22062 gcc_cv_ld_hidden
=no
22065 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22066 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22067 # .symbolic was only added in Solaris 9 12/02.
22068 gcc_cv_ld_hidden
=yes
22071 gcc_cv_ld_hidden
=no
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22078 $as_echo "$gcc_cv_ld_hidden" >&6; }
22079 libgcc_visibility
=no
22082 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22083 libgcc_visibility
=yes
22085 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22090 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22091 gcc_cv_ld_ro_rw_mix
=unknown
22092 if test $in_tree_ld = yes ; then
22093 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 \
22094 && test $in_tree_ld_is_elf = yes; then
22095 gcc_cv_ld_ro_rw_mix
=read-write
22097 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22098 echo '.section myfoosect, "a"' > conftest1.s
22099 echo '.section myfoosect, "aw"' > conftest2.s
22100 echo '.byte 1' >> conftest2.s
22101 echo '.section myfoosect, "a"' > conftest3.s
22102 echo '.byte 0' >> conftest3.s
22103 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22104 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22105 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22106 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22107 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22108 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22109 | sed -e '/myfoosect/!d' -e N`
22110 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22111 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22112 gcc_cv_ld_ro_rw_mix
=read-only
22114 gcc_cv_ld_ro_rw_mix
=read-write
22118 rm -f conftest.
* conftest
[123].
*
22120 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22122 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22126 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22128 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22130 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22131 if test "${gcc_cv_as_leb128+set}" = set; then :
22132 $as_echo_n "(cached) " >&6
22134 gcc_cv_as_leb128
=no
22135 if test $in_tree_gas = yes; then
22136 if test $in_tree_gas_is_elf = yes \
22137 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22138 then gcc_cv_as_leb128
=yes
22140 elif test x
$gcc_cv_as != x
; then
22147 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22149 (eval $ac_try) 2>&5
22151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22152 test $ac_status = 0; }; }
22154 # GAS versions before 2.11 do not support uleb128,
22155 # despite appearing to.
22156 # ??? There exists an elf-specific test that will crash
22157 # the assembler. Perhaps it's better to figure out whether
22158 # arbitrary sections are supported and try the test.
22159 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22160 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22161 as_vers
=`echo $as_ver | sed -n \
22162 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22163 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22164 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22165 if test $as_major -eq 2 && test $as_minor -lt 11
22167 else gcc_cv_as_leb128
=yes
22171 echo "configure: failed program was" >&5
22174 rm -f conftest.o conftest.s
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22178 $as_echo "$gcc_cv_as_leb128" >&6; }
22179 if test $gcc_cv_as_leb128 = yes; then
22181 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22185 # Check if we have assembler support for unwind directives.
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22187 $as_echo_n "checking assembler for cfi directives... " >&6; }
22188 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22189 $as_echo_n "(cached) " >&6
22191 gcc_cv_as_cfi_directive
=no
22192 if test x
$gcc_cv_as != x
; then
22198 .cfi_escape 1, 2, 3, 4, 5
22199 .cfi_endproc' > conftest.s
22200 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22202 (eval $ac_try) 2>&5
22204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22205 test $ac_status = 0; }; }
22209 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22210 # read-only and read-write sections, we need to make sure that the
22211 # assembler used emits read-write .eh_frame sections.
22212 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22213 if test "x$gcc_cv_objdump" != x
; then
22214 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22215 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22216 gcc_cv_as_cfi_directive
=no
22219 i?
86-*-solaris2.1
[0-9]*)
22220 # On Solaris/x86, make sure that GCC and gas agree on using
22221 # read-only .eh_frame sections for 64-bit.
22222 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22223 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22224 sed -e /.eh_frame
/!d
-e N | \
22225 grep READONLY
> /dev
/null
; then
22226 gcc_cv_as_cfi_directive
=yes
22228 gcc_cv_as_cfi_directive
=no
22232 gcc_cv_as_cfi_directive
=yes
22237 # no objdump, err on the side of caution
22238 gcc_cv_as_cfi_directive
=no
22241 gcc_cv_as_cfi_directive
=yes
22245 gcc_cv_as_cfi_directive
=yes
22249 echo "configure: failed program was" >&5
22252 rm -f conftest.o conftest.s
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22256 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22258 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22260 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22261 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22262 $as_echo_n "(cached) " >&6
22264 gcc_cv_as_cfi_advance_working
=no
22265 if test x
$gcc_cv_as != x
; then
22268 .cfi_adjust_cfa_offset 64
22270 .cfi_adjust_cfa_offset 128
22271 .cfi_endproc' > conftest.s
22272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22274 (eval $ac_try) 2>&5
22276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22277 test $ac_status = 0; }; }
22280 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22281 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22282 gcc_cv_as_cfi_advance_working
=yes
22286 echo "configure: failed program was" >&5
22289 rm -f conftest.o conftest.s
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22293 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22296 # no objdump, err on the side of caution
22297 gcc_cv_as_cfi_advance_working
=no
22301 cat >>confdefs.h
<<_ACEOF
22302 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22303 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22309 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22310 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22311 $as_echo_n "(cached) " >&6
22313 gcc_cv_as_cfi_personality_directive
=no
22314 if test x
$gcc_cv_as != x
; then
22317 .cfi_personality 0, symbol
22318 .cfi_endproc' > conftest.s
22319 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22321 (eval $ac_try) 2>&5
22323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22324 test $ac_status = 0; }; }
22326 gcc_cv_as_cfi_personality_directive
=yes
22328 echo "configure: failed program was" >&5
22331 rm -f conftest.o conftest.s
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22335 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22338 cat >>confdefs.h
<<_ACEOF
22339 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22340 then echo 1; else echo 0; fi`
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22345 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22346 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22347 $as_echo_n "(cached) " >&6
22349 gcc_cv_as_cfi_sections_directive
=no
22350 if test x
$gcc_cv_as != x
; then
22352 .cfi_sections .debug_frame, .eh_frame
22354 .cfi_endproc' > conftest.s
22355 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22357 (eval $ac_try) 2>&5
22359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22360 test $ac_status = 0; }; }
22363 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22364 # Need to check that we generated the correct relocation for the
22365 # .debug_frame section. This was fixed for binutils 2.21.
22366 gcc_cv_as_cfi_sections_directive
=no
22367 if test "x$gcc_cv_objdump" != x
; then
22368 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22369 grep secrel
> /dev
/null
; then
22370 gcc_cv_as_cfi_sections_directive
=yes
22375 gcc_cv_as_cfi_sections_directive
=yes
22379 echo "configure: failed program was" >&5
22382 rm -f conftest.o conftest.s
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22386 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22390 cat >>confdefs.h
<<_ACEOF
22391 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22392 then echo 1; else echo 0; fi`
22396 # GAS versions up to and including 2.11.0 may mis-optimize
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22399 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22400 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22401 $as_echo_n "(cached) " >&6
22403 gcc_cv_as_eh_frame
=no
22404 if test $in_tree_gas = yes; then
22405 if test $in_tree_gas_is_elf = yes \
22406 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22407 then gcc_cv_as_eh_frame
=yes
22409 elif test x
$gcc_cv_as != x
; then
22416 .section .eh_frame,"aw",@progbits
22418 .4byte .LECIE1-.LSCIE1
22432 .4byte .LEFDE1-.LASFDE1
22434 .4byte .LASFDE1-__FRAME_BEGIN__
22441 .LEFDE1:' > conftest.s
22442 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22444 (eval $ac_try) 2>&5
22446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22447 test $ac_status = 0; }; }
22449 cat > conftest.lit
<<EOF
22450 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22451 0010 01000000 12000000 18000000 00000000 ................
22452 0020 08000000 04080000 0044 .........D
22454 cat > conftest.big
<<EOF
22455 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22456 0010 00000001 00000012 00000018 00000000 ................
22457 0020 00000008 04000000 0844 .........D
22459 # If the assembler didn't choke, and we can objdump,
22460 # and we got the correct data, then succeed.
22461 # The text in the here-document typically retains its unix-style line
22462 # endings, while the output of objdump will use host line endings.
22463 # Therefore, use diff -b for the comparisons.
22464 if test x
$gcc_cv_objdump != x \
22465 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22466 |
tail -3 > conftest.got \
22467 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22468 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22470 gcc_cv_as_eh_frame
=yes
22471 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22473 (eval $ac_try) 2>&5
22475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22476 test $ac_status = 0; }; }; then
22477 gcc_cv_as_eh_frame
=buggy
22479 # Uh oh, what do we do now?
22480 gcc_cv_as_eh_frame
=no
22483 echo "configure: failed program was" >&5
22486 rm -f conftest.o conftest.s
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22490 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22493 if test $gcc_cv_as_eh_frame = buggy
; then
22495 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22500 $as_echo_n "checking assembler for section merging support... " >&6; }
22501 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22502 $as_echo_n "(cached) " >&6
22504 gcc_cv_as_shf_merge
=no
22505 if test $in_tree_gas = yes; then
22506 if test $in_tree_gas_is_elf = yes \
22507 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22508 then gcc_cv_as_shf_merge
=yes
22510 elif test x
$gcc_cv_as != x
; then
22511 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22514 (eval $ac_try) 2>&5
22516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22517 test $ac_status = 0; }; }
22519 gcc_cv_as_shf_merge
=yes
22521 echo "configure: failed program was" >&5
22524 rm -f conftest.o conftest.s
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22528 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22530 if test $gcc_cv_as_shf_merge = no
; then
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22532 $as_echo_n "checking assembler for section merging support... " >&6; }
22533 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22534 $as_echo_n "(cached) " >&6
22536 gcc_cv_as_shf_merge
=no
22537 if test $in_tree_gas = yes; then
22538 if test $in_tree_gas_is_elf = yes \
22539 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22540 then gcc_cv_as_shf_merge
=yes
22542 elif test x
$gcc_cv_as != x
; then
22543 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22544 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22546 (eval $ac_try) 2>&5
22548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22549 test $ac_status = 0; }; }
22551 gcc_cv_as_shf_merge
=yes
22553 echo "configure: failed program was" >&5
22556 rm -f conftest.o conftest.s
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22560 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22564 cat >>confdefs.h
<<_ACEOF
22565 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22570 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22571 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22572 $as_echo_n "(cached) " >&6
22574 gcc_cv_as_comdat_group
=no
22575 if test $in_tree_gas = yes; then
22576 if test $in_tree_gas_is_elf = yes \
22577 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22578 then gcc_cv_as_comdat_group
=yes
22580 elif test x
$gcc_cv_as != x
; then
22581 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22582 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22584 (eval $ac_try) 2>&5
22586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22587 test $ac_status = 0; }; }
22589 gcc_cv_as_comdat_group
=yes
22591 echo "configure: failed program was" >&5
22594 rm -f conftest.o conftest.s
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22598 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22600 if test $gcc_cv_as_comdat_group = yes; then
22601 gcc_cv_as_comdat_group_percent
=no
22603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22604 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22605 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22606 $as_echo_n "(cached) " >&6
22608 gcc_cv_as_comdat_group_percent
=no
22609 if test $in_tree_gas = yes; then
22610 if test $in_tree_gas_is_elf = yes \
22611 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22612 then gcc_cv_as_comdat_group_percent
=yes
22614 elif test x
$gcc_cv_as != x
; then
22615 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22616 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22618 (eval $ac_try) 2>&5
22620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22621 test $ac_status = 0; }; }
22623 gcc_cv_as_comdat_group_percent
=yes
22625 echo "configure: failed program was" >&5
22628 rm -f conftest.o conftest.s
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22632 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22635 if test x
"$ld_is_gold" = xyes
; then
22637 elif test $in_tree_ld = yes ; then
22639 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 \
22640 && test $in_tree_ld_is_elf = yes; then
22643 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22645 if test 0"$ld_date" -lt 20050308; then
22646 if test -n "$ld_date"; then
22647 # If there was date string, but was earlier than 2005-03-08, fail
22649 elif test "$ld_vers_major" -lt 2; then
22651 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22656 case "${target}" in
22657 *-*-solaris2.1
[1-9]*)
22658 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22659 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22662 # FIXME: Maybe need to refine later when COMDAT group support with
22663 # Sun as is implemented.
22664 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 1688; then
22671 # Assume linkers other than GNU ld don't support COMDAT group.
22676 # Allow overriding the automatic COMDAT group tests above.
22677 # Check whether --enable-comdat was given.
22678 if test "${enable_comdat+set}" = set; then :
22679 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22682 if test $comdat_group = no
; then
22683 gcc_cv_as_comdat_group
=no
22684 gcc_cv_as_comdat_group_percent
=no
22687 cat >>confdefs.h
<<_ACEOF
22688 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22693 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22694 if test "${gcc_cv_as_discriminator+set}" = set; then :
22695 $as_echo_n "(cached) " >&6
22697 gcc_cv_as_discriminator
=no
22698 if test $in_tree_gas = yes; then
22699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22700 then gcc_cv_as_discriminator
=yes
22702 elif test x
$gcc_cv_as != x
; then
22705 .loc 1 1 0 discriminator 1' > conftest.s
22706 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22708 (eval $ac_try) 2>&5
22710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22711 test $ac_status = 0; }; }
22713 gcc_cv_as_discriminator
=yes
22715 echo "configure: failed program was" >&5
22718 rm -f conftest.o conftest.s
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22722 $as_echo "$gcc_cv_as_discriminator" >&6; }
22723 if test $gcc_cv_as_discriminator = yes; then
22725 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22729 # Thread-local storage - the check is heavily parameterized.
22737 .section ".tdata","awT",@progbits
22740 ldq $27,__tls_get_addr($29) !literal!1
22741 lda $16,foo($29) !tlsgd!1
22742 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22743 ldq $27,__tls_get_addr($29) !literal!2
22744 lda $16,foo($29) !tlsldm!2
22745 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22746 ldq $1,foo($29) !gotdtprel
22747 ldah $2,foo($29) !dtprelhi
22748 lda $3,foo($2) !dtprello
22749 lda $4,foo($29) !dtprel
22750 ldq $1,foo($29) !gottprel
22751 ldah $2,foo($29) !tprelhi
22752 lda $3,foo($2) !tprello
22753 lda $4,foo($29) !tprel'
22756 tls_as_opt
=--fatal-warnings
22758 cris-
*-*|crisv32-
*-*)
22760 .section ".tdata","awT",@progbits
22767 tls_as_opt
=--fatal-warnings
22771 .section ".tdata","awT",@progbits
22774 call #gettlsoff(x)'
22783 .section ".tdata","awT",@progbits
22787 addil LT%foo-$tls_gdidx$,gp
22788 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22791 addil LT%foo-$tls_ldidx$,gp
22793 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22794 addil LR%foo-$tls_dtpoff$,%ret0
22795 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22797 addil LT%foo-$tls_ieoff$,gp
22798 ldw RT%foo-$tls_ieoff$(%r1),%t2
22801 addil LR%foo-$tls_leoff$,%t1
22802 ldo RR%foo-$tls_leoff$(%r1),%t2'
22805 tls_as_opt
=--fatal-warnings
22809 .section ".tdata","awT",%progbits
22812 .word foo(gottpoff)
22822 i
[34567]86-*-solaris2.
*)
22824 tga_func
=___tls_get_addr
22830 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22832 .section .tdata,"awt",@progbits'
22836 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22840 .section ".tdata","awT",@progbits'
22843 tls_as_opt
="--fatal-warnings"
22845 conftest_s
="$conftest_s
22849 leal foo@tlsgd(,%ebx,1), %eax
22850 leal foo@tlsldm(%ebx), %eax
22851 leal foo@dtpoff(%eax), %edx
22852 movl foo@gottpoff(%ebx), %eax
22853 subl foo@gottpoff(%ebx), %eax
22854 addl foo@gotntpoff(%ebx), %eax
22855 movl foo@indntpoff, %eax
22856 movl \$foo@tpoff, %eax
22857 subl \$foo@tpoff, %eax
22858 leal foo@ntpoff(%ecx), %eax"
22862 .section ".tdata","awT",@progbits
22866 leaq foo@TLSGD(%rip), %rdi
22867 leaq foo@TLSLD(%rip), %rdi
22868 leaq foo@DTPOFF(%rax), %rdx
22869 movq foo@GOTTPOFF(%rip), %rax
22870 movq $foo@TPOFF, %rax'
22873 tls_as_opt
=--fatal-warnings
22877 .section ".tdata","awT",@progbits
22880 addl r16 = @ltoff(@dtpmod(foo#)), gp
22881 addl r17 = @ltoff(@dtprel(foo#)), gp
22882 addl r18 = @ltoff(@tprel(foo#)), gp
22883 addl r19 = @dtprel(foo#), gp
22884 adds r21 = @dtprel(foo#), r13
22885 movl r23 = @dtprel(foo#)
22886 addl r20 = @tprel(foo#), gp
22887 adds r22 = @tprel(foo#), r13
22888 movl r24 = @tprel(foo#)'
22891 tls_as_opt
=--fatal-warnings
22895 .section .tdata,"awT",@progbits
22899 addiu $4, $28, %tlsgd(x)
22900 addiu $4, $28, %tlsldm(x)
22901 lui $4, %dtprel_hi(x)
22902 addiu $4, $4, %dtprel_lo(x)
22903 lw $4, %gottprel(x)($28)
22904 lui $4, %tprel_hi(x)
22905 addiu $4, $4, %tprel_lo(x)'
22908 tls_as_opt
='-32 --fatal-warnings'
22912 .section .tdata,"awT",@progbits
22917 move.l x@TLSGD(%a5),%a0
22918 move.l x@TLSLDM(%a5),%a0
22919 move.l x@TLSLDO(%a5),%a0
22920 move.l x@TLSIE(%a5),%a0
22921 move.l x@TLSLE(%a5),%a0'
22924 tls_as_opt
='--fatal-warnings'
22928 .section ".tdata","awT",@progbits
22936 addi 3,31,ld0@got@tlsgd
22938 addi 3,31,x1@got@tlsld
22941 addis 9,3,x2@dtprel@ha
22942 addi 9,9,x2@dtprel@l
22943 lwz 9,x3@got@tprel(31)
22946 addis 9,2,x2@tprel@ha
22947 addi 9,9,x2@tprel@l'
22950 tls_as_opt
="-a32 --fatal-warnings"
22954 .section ".tdata","awT",@progbits
22962 addi 3,2,ld0@got@tlsgd
22968 addi 3,2,x1@got@tlsld
22974 addis 9,3,x2@dtprel@ha
22975 addi 9,9,x2@dtprel@l
22978 ld 9,x3@got@dtprel(2)
22984 tls_as_opt
="-a64 --fatal-warnings"
22988 .section ".tdata","awT",@progbits
22995 .long foo@GOTNTPOFF
22996 .long foo@INDNTPOFF
22997 l %r1,foo@GOTNTPOFF(%r12)
22998 l %r1,0(%r1):tls_load:foo
22999 bas %r14,0(%r1,%r13):tls_gdcall:foo
23000 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23003 tls_as_opt
="-m31 --fatal-warnings"
23007 .section ".tdata","awT",@progbits
23014 .quad foo@GOTNTPOFF
23015 lg %r1,foo@GOTNTPOFF(%r12)
23016 larl %r1,foo@INDNTPOFF
23017 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23018 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23021 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23023 sh-
*-* | sh
[34]-*-*)
23025 .section ".tdata","awT",@progbits
23035 tls_as_opt
=--fatal-warnings
23039 sparc
*-sun-solaris2.
*)
23041 tga_func
=__tls_get_addr
23047 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23049 .section ".tdata",#alloc,#write,#tls'
23054 .section ".tdata","awT",@progbits'
23057 tls_as_opt
="-32 --fatal-warnings"
23059 conftest_s
="$conftest_s
23062 sethi %tgd_hi22(foo), %o0
23063 add %o0, %tgd_lo10(foo), %o1
23064 add %l7, %o1, %o0, %tgd_add(foo)
23065 call __tls_get_addr, %tgd_call(foo)
23066 sethi %tldm_hi22(foo), %l1
23067 add %l1, %tldm_lo10(foo), %l2
23068 add %l7, %l2, %o0, %tldm_add(foo)
23069 call __tls_get_addr, %tldm_call(foo)
23070 sethi %tldo_hix22(foo), %l3
23071 xor %l3, %tldo_lox10(foo), %l4
23072 add %o0, %l4, %l5, %tldo_add(foo)
23073 sethi %tie_hi22(foo), %o3
23074 add %o3, %tie_lo10(foo), %o3
23075 ld [%l7 + %o3], %o2, %tie_ld(foo)
23076 add %g7, %o2, %o4, %tie_add(foo)
23077 sethi %tle_hix22(foo), %l1
23078 xor %l1, %tle_lox10(foo), %o5
23079 ld [%g7 + %o5], %o1"
23083 .section ".tdata","awT",@progbits
23086 movi a8, foo@TLSFUNC
23087 movi a10, foo@TLSARG
23088 callx8.tls a8, foo@TLSCALL'
23094 if test "x$enable_tls" = xno
; then
23095 : # TLS explicitly disabled.
23096 elif test "x$enable_tls" = xyes
; then
23097 set_have_as_tls
=yes # TLS explicitly enabled.
23098 elif test -z "$tls_first_major"; then
23099 : # If we don't have a check, assume no support.
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23102 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23103 if test "${gcc_cv_as_tls+set}" = set; then :
23104 $as_echo_n "(cached) " >&6
23107 if test $in_tree_gas = yes; then
23108 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23109 then gcc_cv_as_tls
=yes
23111 elif test x
$gcc_cv_as != x
; then
23112 echo "$conftest_s" > conftest.s
23113 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23115 (eval $ac_try) 2>&5
23117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23118 test $ac_status = 0; }; }
23122 echo "configure: failed program was" >&5
23125 rm -f conftest.o conftest.s
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23129 $as_echo "$gcc_cv_as_tls" >&6; }
23130 if test $gcc_cv_as_tls = yes; then
23131 set_have_as_tls
=yes
23136 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23137 # with TLS support are in use, native TLS cannot work.
23141 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23142 # gld with TLS support are in use, native TLS cannot work.
23145 # TLS was introduced in the Solaris 9 FCS release and backported to
23146 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23147 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23148 # ld and GCC don't support any longer.
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23151 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23153 # Check ld and ld.so.1 TLS support.
23154 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23155 # Assume all interesting versions of GNU ld have TLS support.
23156 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23160 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23162 min_tls_ld_vers_minor
=280
23164 # Solaris 8/SPARC ld has TLS support since version 1.272.
23165 sparc
*-*-solaris2.8
)
23166 min_tls_ld_vers_minor
=272
23168 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23170 min_tls_ld_vers_minor
=374
23172 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23173 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23174 min_tls_ld_vers_minor
=343
23177 if test "$ld_vers_major" -gt 1 || \
23178 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23185 $as_echo "$ld_tls_support" >&6; }
23188 save_LDFLAGS
="$LDFLAGS"
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23193 $as_echo_n "checking alternate thread library... " >&6; }
23195 # TLS support was backported to Solaris 8 patches, but only lives in
23196 # the alternate thread library which became the default in Solaris 9.
23197 # We want to always use that, irrespective of TLS support.
23199 # Take multilib subdir into account. There's no spec to handle
23200 # this. The 64 symlink exists since Solaris 8.
23201 lwp_dir
=/usr
/lib
/lwp
23202 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23203 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23210 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23212 cat >>confdefs.h
<<_ACEOF
23213 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23217 $as_echo "$lwp_dir" >&6; }
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23220 $as_echo_n "checking library containing $tga_func... " >&6; }
23221 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23222 # (32-bit x86) only lived in libthread, so check for that. Keep
23223 # set_have_as_tls if found, disable if not.
23224 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23226 $as_echo_n "checking for library containing $tga_func... " >&6; }
23227 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23228 $as_echo_n "(cached) " >&6
23230 ac_func_search_save_LIBS
=$LIBS
23231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23232 /* end confdefs.h. */
23234 /* Override any GCC internal prototype to avoid an error.
23235 Use char because int might match the return type of a GCC
23236 builtin and then its argument prototype would still apply. */
23244 return $tga_func ();
23249 for ac_lib
in '' thread
; do
23250 if test -z "$ac_lib"; then
23251 ac_res
="none required"
23254 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23256 if ac_fn_c_try_link
"$LINENO"; then :
23257 eval "$as_ac_Search=\$ac_res"
23259 rm -f core conftest.err conftest.
$ac_objext \
23261 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23265 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23268 eval "$as_ac_Search=no"
23270 rm conftest.
$ac_ext
23271 LIBS
=$ac_func_search_save_LIBS
23273 eval ac_res
=\$
$as_ac_Search
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23275 $as_echo "$ac_res" >&6; }
23276 eval ac_res
=\$
$as_ac_Search
23277 if test "$ac_res" != no
; then :
23278 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23284 # Clear LIBS if we cannot support TLS.
23285 if test $set_have_as_tls = no
; then
23288 # Always define LIB_TLS_SPEC, even without TLS support.
23290 cat >>confdefs.h
<<_ACEOF
23291 #define LIB_TLS_SPEC "$LIBS"
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23295 $as_echo "$LIBS" >&6; }
23298 LDFLAGS
="$save_LDFLAGS"
23301 if test $set_have_as_tls = yes ; then
23303 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23307 # Target-specific assembler checks.
23309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23310 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23311 gcc_cv_ld_static_dynamic
=no
23312 gcc_cv_ld_static_option
='-Bstatic'
23313 gcc_cv_ld_dynamic_option
='-Bdynamic'
23314 if test $in_tree_ld = yes ; then
23315 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
23316 gcc_cv_ld_static_dynamic
=yes
23318 elif test x
$gcc_cv_ld != x
; then
23319 # Check if linker supports -Bstatic/-Bdynamic option
23320 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23321 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23322 gcc_cv_ld_static_dynamic
=yes
23325 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23327 gcc_cv_ld_static_dynamic
=yes
23328 gcc_cv_ld_static_option
="-noso"
23329 gcc_cv_ld_dynamic_option
="-so_archive"
23331 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23333 gcc_cv_ld_static_dynamic
=yes
23335 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23337 gcc_cv_ld_static_dynamic
=yes
23342 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23344 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23347 cat >>confdefs.h
<<_ACEOF
23348 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23352 cat >>confdefs.h
<<_ACEOF
23353 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23358 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23360 if test x
"$demangler_in_ld" = xyes
; then
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23362 $as_echo_n "checking linker --demangle support... " >&6; }
23363 gcc_cv_ld_demangle
=no
23364 if test $in_tree_ld = yes; then
23365 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 \
23366 gcc_cv_ld_demangle
=yes
23368 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23369 # Check if the GNU linker supports --demangle option
23370 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23371 gcc_cv_ld_demangle
=yes
23374 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23376 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23380 $as_echo "$gcc_cv_ld_demangle" >&6; }
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23384 $as_echo_n "checking linker plugin support... " >&6; }
23385 gcc_cv_lto_plugin
=0
23386 if test -f liblto_plugin.la
; then
23387 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23388 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
23389 gcc_cv_lto_plugin
=2
23390 elif test "$ld_is_gold" = yes -a "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -eq 20; then
23391 gcc_cv_lto_plugin
=1
23394 elif test x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld" && echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23395 # Require GNU ld or gold 2.21+ for plugin support by default.
23396 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23397 gcc_cv_lto_plugin
=2
23398 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23399 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23400 gcc_cv_lto_plugin
=1
23402 elif test x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" != x
"$gcc_cv_ld"; then
23403 # Allow -fuse-linker-plugin if plugin linker differs from
23404 # default/specified linker.
23405 gcc_cv_lto_plugin
=1
23409 cat >>confdefs.h
<<_ACEOF
23410 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23414 $as_echo "$gcc_cv_lto_plugin" >&6; }
23417 # All TARGET_ABI_OSF targets.
23418 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
23419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23420 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23421 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23422 $as_echo_n "(cached) " >&6
23424 gcc_cv_as_alpha_explicit_relocs
=no
23425 if test $in_tree_gas = yes; then
23426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23427 then gcc_cv_as_alpha_explicit_relocs
=yes
23429 elif test x
$gcc_cv_as != x
; then
23430 echo ' .set nomacro
23432 extbl $3, $2, $3 !lituse_bytoff!1
23433 ldq $2, a($29) !literal!1
23434 ldq $4, b($29) !literal!2
23435 ldq_u $3, 0($2) !lituse_base!1
23436 ldq $27, f($29) !literal!5
23437 jsr $26, ($27), f !lituse_jsr!5
23438 ldah $29, 0($26) !gpdisp!3
23439 lda $0, c($29) !gprel
23440 ldah $1, d($29) !gprelhigh
23441 lda $1, d($1) !gprellow
23442 lda $29, 0($29) !gpdisp!3' > conftest.s
23443 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23445 (eval $ac_try) 2>&5
23447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23448 test $ac_status = 0; }; }
23450 gcc_cv_as_alpha_explicit_relocs
=yes
23452 echo "configure: failed program was" >&5
23455 rm -f conftest.o conftest.s
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23459 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23460 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23462 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23466 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23467 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23468 $as_echo_n "(cached) " >&6
23470 gcc_cv_as_alpha_jsrdirect_relocs
=no
23471 if test $in_tree_gas = yes; then
23472 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23473 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23475 elif test x
$gcc_cv_as != x
; then
23476 echo ' .set nomacro
23478 ldq $27, a($29) !literal!1
23479 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23480 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23482 (eval $ac_try) 2>&5
23484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23485 test $ac_status = 0; }; }
23487 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23489 echo "configure: failed program was" >&5
23492 rm -f conftest.o conftest.s
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23496 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23497 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23499 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23506 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23507 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23508 $as_echo_n "(cached) " >&6
23510 gcc_cv_as_cris_no_mul_bug
=no
23511 if test $in_tree_gas = yes; then
23512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23513 then gcc_cv_as_cris_no_mul_bug
=yes
23515 elif test x
$gcc_cv_as != x
; then
23516 echo '.text' > conftest.s
23517 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23519 (eval $ac_try) 2>&5
23521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23522 test $ac_status = 0; }; }
23524 gcc_cv_as_cris_no_mul_bug
=yes
23526 echo "configure: failed program was" >&5
23529 rm -f conftest.o conftest.s
23532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23533 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23534 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23536 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23543 $as_echo_n "checking assembler for .register... " >&6; }
23544 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23545 $as_echo_n "(cached) " >&6
23547 gcc_cv_as_sparc_register_op
=no
23548 if test x
$gcc_cv_as != x
; then
23549 echo '.register %g2, #scratch' > conftest.s
23550 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23552 (eval $ac_try) 2>&5
23554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23555 test $ac_status = 0; }; }
23557 gcc_cv_as_sparc_register_op
=yes
23559 echo "configure: failed program was" >&5
23562 rm -f conftest.o conftest.s
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23566 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23567 if test $gcc_cv_as_sparc_register_op = yes; then
23569 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23574 $as_echo_n "checking assembler for -relax option... " >&6; }
23575 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23576 $as_echo_n "(cached) " >&6
23578 gcc_cv_as_sparc_relax
=no
23579 if test x
$gcc_cv_as != x
; then
23580 echo '.text' > conftest.s
23581 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23583 (eval $ac_try) 2>&5
23585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23586 test $ac_status = 0; }; }
23588 gcc_cv_as_sparc_relax
=yes
23590 echo "configure: failed program was" >&5
23593 rm -f conftest.o conftest.s
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23597 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23598 if test $gcc_cv_as_sparc_relax = yes; then
23600 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23605 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23606 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23607 $as_echo_n "(cached) " >&6
23609 gcc_cv_as_sparc_gotdata_op
=no
23610 if test x
$gcc_cv_as != x
; then
23615 sethi %gdop_hix22(foo), %g1
23616 xor %g1, %gdop_lox10(foo), %g1
23617 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23618 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23620 (eval $ac_try) 2>&5
23622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23623 test $ac_status = 0; }; }
23625 if test x
$gcc_cv_ld != x \
23626 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23627 if test x
$gcc_cv_objdump != x
; then
23628 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
23629 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
23630 gcc_cv_as_sparc_gotdata_op
=no
23632 gcc_cv_as_sparc_gotdata_op
=yes
23638 echo "configure: failed program was" >&5
23641 rm -f conftest.o conftest.s
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23645 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23646 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23648 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23653 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23654 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23655 $as_echo_n "(cached) " >&6
23657 gcc_cv_as_sparc_ua_pcrel
=no
23658 if test x
$gcc_cv_as != x
; then
23665 .uaword %r_disp32(foo)' > conftest.s
23666 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23668 (eval $ac_try) 2>&5
23670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23671 test $ac_status = 0; }; }
23673 if test x
$gcc_cv_ld != x \
23674 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23675 gcc_cv_as_sparc_ua_pcrel
=yes
23679 echo "configure: failed program was" >&5
23682 rm -f conftest.o conftest.s
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23686 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23687 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23689 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23693 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23694 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23695 $as_echo_n "(cached) " >&6
23697 gcc_cv_as_sparc_ua_pcrel_hidden
=no
23698 if test x
$gcc_cv_as != x
; then
23702 .uaword %r_disp32(foo)
23703 .byte 0x32, 0x33, 0x34
23707 .skip 4' > conftest.s
23708 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
23716 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
23717 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
23718 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
23719 if $gcc_cv_objdump -R conftest
2> /dev
/null \
23720 |
grep 'DISP32' > /dev
/null
2>&1; then
23723 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
23728 echo "configure: failed program was" >&5
23731 rm -f conftest.o conftest.s
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23735 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23736 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23738 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23742 fi # unaligned pcrel relocs
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23745 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23746 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23747 $as_echo_n "(cached) " >&6
23749 gcc_cv_as_sparc_offsetable_lo10
=no
23750 if test x
$gcc_cv_as != x
; then
23752 or %g1, %lo(ab) + 12, %g1
23753 or %g1, %lo(ab + 12), %g1' > conftest.s
23754 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23756 (eval $ac_try) 2>&5
23758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23759 test $ac_status = 0; }; }
23761 if test x
$gcc_cv_objdump != x \
23762 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
23763 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
23764 gcc_cv_as_sparc_offsetable_lo10
=yes
23767 echo "configure: failed program was" >&5
23770 rm -f conftest.o conftest.s
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23774 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23775 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23777 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23782 i
[34567]86-*-* | x86_64-
*-*)
23785 # Full C++ conformance when using a shared libstdc++-v3 requires some
23786 # support from the Cygwin DLL, which in more recent versions exports
23787 # wrappers to aid in interposing and redirecting operators new, delete,
23788 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23789 # are configuring for a version of Cygwin that exports the wrappers.
23790 if test x
$host = x
$target; then
23791 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23792 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
23793 gcc_ac_cygwin_dll_wrappers
=yes
23795 gcc_ac_cygwin_dll_wrappers
=no
23799 # Can't check presence of libc functions during cross-compile, so
23800 # we just have to assume we're building for an up-to-date target.
23801 gcc_ac_cygwin_dll_wrappers
=yes
23804 cat >>confdefs.h
<<_ACEOF
23805 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23810 cygwin
* | pe | mingw32
*)
23811 # Recent binutils allows the three-operand form of ".comm" on PE. This
23812 # definition is used unconditionally to initialise the default state of
23813 # the target option variable that governs usage of the feature.
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23815 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23816 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23817 $as_echo_n "(cached) " >&6
23819 gcc_cv_as_comm_has_align
=no
23820 if test $in_tree_gas = yes; then
23821 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23822 then gcc_cv_as_comm_has_align
=yes
23824 elif test x
$gcc_cv_as != x
; then
23825 echo '.comm foo,1,32' > conftest.s
23826 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23828 (eval $ac_try) 2>&5
23830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23831 test $ac_status = 0; }; }
23833 gcc_cv_as_comm_has_align
=yes
23835 echo "configure: failed program was" >&5
23838 rm -f conftest.o conftest.s
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23842 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23845 cat >>confdefs.h
<<_ACEOF
23846 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23849 # Used for DWARF 2 in PE
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23851 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23852 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23853 $as_echo_n "(cached) " >&6
23855 gcc_cv_as_ix86_pe_secrel32
=no
23856 if test $in_tree_gas = yes; then
23857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23858 then gcc_cv_as_ix86_pe_secrel32
=yes
23860 elif test x
$gcc_cv_as != x
; then
23864 .secrel32 foo' > conftest.s
23865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23867 (eval $ac_try) 2>&5
23869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23870 test $ac_status = 0; }; }
23872 if test x
$gcc_cv_ld != x \
23873 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
23874 gcc_cv_as_ix86_pe_secrel32
=yes
23878 echo "configure: failed program was" >&5
23881 rm -f conftest.o conftest.s
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23885 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23886 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23888 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23891 # Test if the assembler supports the extended form of the .section
23892 # directive that specifies section alignment. LTO support uses this,
23893 # but normally only after installation, so we warn but don't fail the
23894 # configure if LTO is enabled but the assembler does not support it.
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23896 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23897 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23898 $as_echo_n "(cached) " >&6
23900 gcc_cv_as_section_has_align
=no
23901 if test $in_tree_gas = yes; then
23902 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23903 then gcc_cv_as_section_has_align
=yes
23905 elif test x
$gcc_cv_as != x
; then
23906 echo '.section lto_test,"dr0"' > conftest.s
23907 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23909 (eval $ac_try) 2>&5
23911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23912 test $ac_status = 0; }; }
23914 gcc_cv_as_section_has_align
=yes
23916 echo "configure: failed program was" >&5
23919 rm -f conftest.o conftest.s
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23923 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23925 if test x
$gcc_cv_as_section_has_align != xyes
; then
23926 case ",$enable_languages," in
23928 { $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
23929 $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;}
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23937 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23938 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23939 $as_echo_n "(cached) " >&6
23941 gcc_cv_as_ix86_filds
=no
23942 if test x
$gcc_cv_as != x
; then
23943 echo 'filds mem; fists mem' > conftest.s
23944 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23946 (eval $ac_try) 2>&5
23948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23949 test $ac_status = 0; }; }
23951 gcc_cv_as_ix86_filds
=yes
23953 echo "configure: failed program was" >&5
23956 rm -f conftest.o conftest.s
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23960 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23961 if test $gcc_cv_as_ix86_filds = yes; then
23963 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23968 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23969 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23970 $as_echo_n "(cached) " >&6
23972 gcc_cv_as_ix86_fildq
=no
23973 if test x
$gcc_cv_as != x
; then
23974 echo 'fildq mem; fistpq mem' > conftest.s
23975 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23977 (eval $ac_try) 2>&5
23979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23980 test $ac_status = 0; }; }
23982 gcc_cv_as_ix86_fildq
=yes
23984 echo "configure: failed program was" >&5
23987 rm -f conftest.o conftest.s
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23991 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23992 if test $gcc_cv_as_ix86_fildq = yes; then
23994 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23999 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24000 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24001 $as_echo_n "(cached) " >&6
24003 gcc_cv_as_ix86_cmov_sun_syntax
=no
24004 if test x
$gcc_cv_as != x
; then
24005 echo 'cmovl.l %edx, %eax' > conftest.s
24006 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24008 (eval $ac_try) 2>&5
24010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24011 test $ac_status = 0; }; }
24013 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24015 echo "configure: failed program was" >&5
24018 rm -f conftest.o conftest.s
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24022 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24023 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24025 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24030 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24031 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24032 $as_echo_n "(cached) " >&6
24034 gcc_cv_as_ix86_ffreep
=no
24035 if test x
$gcc_cv_as != x
; then
24036 echo 'ffreep %st(1)' > conftest.s
24037 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24039 (eval $ac_try) 2>&5
24041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24042 test $ac_status = 0; }; }
24044 gcc_cv_as_ix86_ffreep
=yes
24046 echo "configure: failed program was" >&5
24049 rm -f conftest.o conftest.s
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24053 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24054 if test $gcc_cv_as_ix86_ffreep = yes; then
24056 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24061 $as_echo_n "checking assembler for .quad directive... " >&6; }
24062 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24063 $as_echo_n "(cached) " >&6
24065 gcc_cv_as_ix86_quad
=no
24066 if test x
$gcc_cv_as != x
; then
24067 echo '.quad 0' > conftest.s
24068 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24070 (eval $ac_try) 2>&5
24072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24073 test $ac_status = 0; }; }
24075 gcc_cv_as_ix86_quad
=yes
24077 echo "configure: failed program was" >&5
24080 rm -f conftest.o conftest.s
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24084 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24085 if test $gcc_cv_as_ix86_quad = yes; then
24087 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24092 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24093 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24094 $as_echo_n "(cached) " >&6
24096 gcc_cv_as_ix86_sahf
=no
24097 if test x
$gcc_cv_as != x
; then
24100 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24102 (eval $ac_try) 2>&5
24104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24105 test $ac_status = 0; }; }
24107 gcc_cv_as_ix86_sahf
=yes
24109 echo "configure: failed program was" >&5
24112 rm -f conftest.o conftest.s
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24116 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24117 if test $gcc_cv_as_ix86_sahf = yes; then
24119 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24124 $as_echo_n "checking assembler for swap suffix... " >&6; }
24125 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24126 $as_echo_n "(cached) " >&6
24128 gcc_cv_as_ix86_swap
=no
24129 if test x
$gcc_cv_as != x
; then
24130 echo 'movl.s %esp, %ebp' > 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 gcc_cv_as_ix86_swap
=yes
24140 echo "configure: failed program was" >&5
24143 rm -f conftest.o conftest.s
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24147 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24148 if test $gcc_cv_as_ix86_swap = yes; then
24150 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24155 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24156 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24157 $as_echo_n "(cached) " >&6
24159 gcc_cv_as_ix86_diff_sect_delta
=no
24160 if test x
$gcc_cv_as != x
; then
24161 echo '.section .rodata
24167 .L2: nop' > conftest.s
24168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24170 (eval $ac_try) 2>&5
24172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24173 test $ac_status = 0; }; }
24175 gcc_cv_as_ix86_diff_sect_delta
=yes
24177 echo "configure: failed program was" >&5
24180 rm -f conftest.o conftest.s
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24184 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24185 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24187 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24191 # These two are used unconditionally by i386.[ch]; it is to be defined
24192 # to 1 if the feature is present, 0 otherwise.
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24194 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24195 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24196 $as_echo_n "(cached) " >&6
24198 gcc_cv_as_ix86_gotoff_in_data
=no
24199 if test $in_tree_gas = yes; then
24200 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24201 then gcc_cv_as_ix86_gotoff_in_data
=yes
24203 elif test x
$gcc_cv_as != x
; then
24208 .long .L0@GOTOFF' > conftest.s
24209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24211 (eval $ac_try) 2>&5
24213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24214 test $ac_status = 0; }; }
24216 gcc_cv_as_ix86_gotoff_in_data
=yes
24218 echo "configure: failed program was" >&5
24221 rm -f conftest.o conftest.s
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24225 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24228 cat >>confdefs.h
<<_ACEOF
24229 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24234 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24235 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24236 $as_echo_n "(cached) " >&6
24238 gcc_cv_as_ix86_rep_lock_prefix
=no
24239 if test x
$gcc_cv_as != x
; then
24241 lock addl %edi, (%eax,%esi)
24242 lock orl $0, (%esp)' > conftest.s
24243 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24245 (eval $ac_try) 2>&5
24247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24248 test $ac_status = 0; }; }
24250 gcc_cv_as_ix86_rep_lock_prefix
=yes
24252 echo "configure: failed program was" >&5
24255 rm -f conftest.o conftest.s
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24259 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24260 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24262 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24270 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24271 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24272 $as_echo_n "(cached) " >&6
24274 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24275 if test $in_tree_gas = yes; then
24276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24277 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24279 elif test x
$gcc_cv_as != x
; then
24281 addl r15 = @ltoffx(x#), gp
24283 ld8.mov r16 = [r15], x#' > conftest.s
24284 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24286 (eval $ac_try) 2>&5
24288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24289 test $ac_status = 0; }; }
24291 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24293 echo "configure: failed program was" >&5
24296 rm -f conftest.o conftest.s
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24300 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24301 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24303 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24311 *-*-aix*) conftest_s
=' .machine "pwr5"
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24316 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24317 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24318 $as_echo_n "(cached) " >&6
24320 gcc_cv_as_machine_directive
=no
24321 if test x
$gcc_cv_as != x
; then
24322 echo ' .machine ppc7400' > conftest.s
24323 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24325 (eval $ac_try) 2>&5
24327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24328 test $ac_status = 0; }; }
24330 gcc_cv_as_machine_directive
=yes
24332 echo "configure: failed program was" >&5
24335 rm -f conftest.o conftest.s
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24339 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24341 if test x
$gcc_cv_as_machine_directive != xyes
; then
24342 echo "*** This target requires an assembler supporting \".machine\"" >&2
24343 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24344 test x
$build = x
$target && exit 1
24348 *) conftest_s
=' .machine power4
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24354 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24355 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24356 $as_echo_n "(cached) " >&6
24358 gcc_cv_as_powerpc_mfcrf
=no
24359 if test $in_tree_gas = yes; then
24360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24361 then gcc_cv_as_powerpc_mfcrf
=yes
24363 elif test x
$gcc_cv_as != x
; then
24364 echo "$conftest_s" > conftest.s
24365 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24367 (eval $ac_try) 2>&5
24369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24370 test $ac_status = 0; }; }
24372 gcc_cv_as_powerpc_mfcrf
=yes
24374 echo "configure: failed program was" >&5
24377 rm -f conftest.o conftest.s
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24381 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24382 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24384 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24389 *-*-aix*) conftest_s
=' .machine "pwr5"
24392 *) conftest_s
=' .machine power5
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24398 $as_echo_n "checking assembler for popcntb support... " >&6; }
24399 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24400 $as_echo_n "(cached) " >&6
24402 gcc_cv_as_powerpc_popcntb
=no
24403 if test $in_tree_gas = yes; then
24404 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24405 then gcc_cv_as_powerpc_popcntb
=yes
24407 elif test x
$gcc_cv_as != x
; then
24408 echo "$conftest_s" > conftest.s
24409 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24411 (eval $ac_try) 2>&5
24413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24414 test $ac_status = 0; }; }
24416 gcc_cv_as_powerpc_popcntb
=yes
24418 echo "configure: failed program was" >&5
24421 rm -f conftest.o conftest.s
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24425 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24426 if test $gcc_cv_as_powerpc_popcntb = yes; then
24428 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24433 *-*-aix*) conftest_s
=' .machine "pwr5x"
24436 *) conftest_s
=' .machine power5
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24442 $as_echo_n "checking assembler for fp round support... " >&6; }
24443 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24444 $as_echo_n "(cached) " >&6
24446 gcc_cv_as_powerpc_fprnd
=no
24447 if test $in_tree_gas = yes; then
24448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24449 then gcc_cv_as_powerpc_fprnd
=yes
24451 elif test x
$gcc_cv_as != x
; then
24452 echo "$conftest_s" > conftest.s
24453 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24455 (eval $ac_try) 2>&5
24457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24458 test $ac_status = 0; }; }
24460 gcc_cv_as_powerpc_fprnd
=yes
24462 echo "configure: failed program was" >&5
24465 rm -f conftest.o conftest.s
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24469 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24470 if test $gcc_cv_as_powerpc_fprnd = yes; then
24472 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24477 *-*-aix*) conftest_s
=' .machine "pwr6"
24480 *) conftest_s
=' .machine power6
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24486 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24487 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24488 $as_echo_n "(cached) " >&6
24490 gcc_cv_as_powerpc_mfpgpr
=no
24491 if test $in_tree_gas = yes; then
24492 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24493 then gcc_cv_as_powerpc_mfpgpr
=yes
24495 elif test x
$gcc_cv_as != x
; then
24496 echo "$conftest_s" > conftest.s
24497 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24499 (eval $ac_try) 2>&5
24501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24502 test $ac_status = 0; }; }
24504 gcc_cv_as_powerpc_mfpgpr
=yes
24506 echo "configure: failed program was" >&5
24509 rm -f conftest.o conftest.s
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24513 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24514 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24516 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24521 *-*-aix*) conftest_s
=' .csect .text[PR]
24523 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24527 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24528 *) conftest_s
=' .text
24530 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24534 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24535 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24536 $as_echo_n "(cached) " >&6
24538 gcc_cv_as_powerpc_rel16
=no
24539 if test $in_tree_gas = yes; then
24540 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24541 then gcc_cv_as_powerpc_rel16
=yes
24543 elif test x
$gcc_cv_as != x
; then
24544 echo "$conftest_s" > conftest.s
24545 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24547 (eval $ac_try) 2>&5
24549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24550 test $ac_status = 0; }; }
24552 gcc_cv_as_powerpc_rel16
=yes
24554 echo "configure: failed program was" >&5
24557 rm -f conftest.o conftest.s
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24561 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24562 if test $gcc_cv_as_powerpc_rel16 = yes; then
24564 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24569 *-*-aix*) conftest_s
=' .machine "pwr6"
24572 *) conftest_s
=' .machine power6
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24578 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24579 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24580 $as_echo_n "(cached) " >&6
24582 gcc_cv_as_powerpc_cmpb
=no
24583 if test $in_tree_gas = yes; then
24584 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24585 then gcc_cv_as_powerpc_cmpb
=yes
24587 elif test x
$gcc_cv_as != x
; then
24588 echo "$conftest_s" > conftest.s
24589 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24591 (eval $ac_try) 2>&5
24593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24594 test $ac_status = 0; }; }
24596 gcc_cv_as_powerpc_cmpb
=yes
24598 echo "configure: failed program was" >&5
24601 rm -f conftest.o conftest.s
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24605 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24606 if test $gcc_cv_as_powerpc_cmpb = yes; then
24608 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24613 *-*-aix*) conftest_s
=' .machine "pwr6"
24616 *) conftest_s
=' .machine power6
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24622 $as_echo_n "checking assembler for decimal float support... " >&6; }
24623 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24624 $as_echo_n "(cached) " >&6
24626 gcc_cv_as_powerpc_dfp
=no
24627 if test $in_tree_gas = yes; then
24628 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24629 then gcc_cv_as_powerpc_dfp
=yes
24631 elif test x
$gcc_cv_as != x
; then
24632 echo "$conftest_s" > conftest.s
24633 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24635 (eval $ac_try) 2>&5
24637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24638 test $ac_status = 0; }; }
24640 gcc_cv_as_powerpc_dfp
=yes
24642 echo "configure: failed program was" >&5
24645 rm -f conftest.o conftest.s
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24649 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24650 if test $gcc_cv_as_powerpc_dfp = yes; then
24652 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24657 *-*-aix*) conftest_s
=' .machine "pwr7"
24660 *) conftest_s
=' .machine power7
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24666 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24667 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24668 $as_echo_n "(cached) " >&6
24670 gcc_cv_as_powerpc_vsx
=no
24671 if test $in_tree_gas = yes; then
24672 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24673 then gcc_cv_as_powerpc_vsx
=yes
24675 elif test x
$gcc_cv_as != x
; then
24676 echo "$conftest_s" > conftest.s
24677 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24679 (eval $ac_try) 2>&5
24681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24682 test $ac_status = 0; }; }
24684 gcc_cv_as_powerpc_vsx
=yes
24686 echo "configure: failed program was" >&5
24689 rm -f conftest.o conftest.s
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24693 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24694 if test $gcc_cv_as_powerpc_vsx = yes; then
24696 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24701 *-*-aix*) conftest_s
=' .machine "pwr7"
24704 *) conftest_s
=' .machine power7
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24710 $as_echo_n "checking assembler for popcntd support... " >&6; }
24711 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24712 $as_echo_n "(cached) " >&6
24714 gcc_cv_as_powerpc_popcntd
=no
24715 if test $in_tree_gas = yes; then
24716 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24717 then gcc_cv_as_powerpc_popcntd
=yes
24719 elif test x
$gcc_cv_as != x
; then
24720 echo "$conftest_s" > conftest.s
24721 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24723 (eval $ac_try) 2>&5
24725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24726 test $ac_status = 0; }; }
24728 gcc_cv_as_powerpc_popcntd
=yes
24730 echo "configure: failed program was" >&5
24733 rm -f conftest.o conftest.s
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24737 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24738 if test $gcc_cv_as_powerpc_popcntd = yes; then
24740 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24745 *-*-aix*) conftest_s
=' .csect .text[PR]
24747 *) conftest_s
=' .text
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24752 $as_echo_n "checking assembler for lwsync support... " >&6; }
24753 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24754 $as_echo_n "(cached) " >&6
24756 gcc_cv_as_powerpc_lwsync
=no
24757 if test $in_tree_gas = yes; then
24758 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24759 then gcc_cv_as_powerpc_lwsync
=yes
24761 elif test x
$gcc_cv_as != x
; then
24762 echo "$conftest_s" > conftest.s
24763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24765 (eval $ac_try) 2>&5
24767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24768 test $ac_status = 0; }; }
24770 gcc_cv_as_powerpc_lwsync
=yes
24772 echo "configure: failed program was" >&5
24775 rm -f conftest.o conftest.s
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24779 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24780 if test $gcc_cv_as_powerpc_lwsync = yes; then
24782 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24787 *-*-aix*) conftest_s
=' .machine "476"
24790 *) conftest_s
=' .machine "476"
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24796 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24797 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24798 $as_echo_n "(cached) " >&6
24800 gcc_cv_as_powerpc_dci
=no
24801 if test $in_tree_gas = yes; then
24802 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24803 then gcc_cv_as_powerpc_dci
=yes
24805 elif test x
$gcc_cv_as != x
; then
24806 echo "$conftest_s" > conftest.s
24807 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24809 (eval $ac_try) 2>&5
24811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24812 test $ac_status = 0; }; }
24814 gcc_cv_as_powerpc_dci
=yes
24816 echo "configure: failed program was" >&5
24819 rm -f conftest.o conftest.s
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24823 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24824 if test $gcc_cv_as_powerpc_dci = yes; then
24826 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24831 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24832 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24833 $as_echo_n "(cached) " >&6
24835 gcc_cv_as_powerpc_gnu_attribute
=no
24836 if test $in_tree_gas = yes; then
24837 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24838 then gcc_cv_as_powerpc_gnu_attribute
=yes
24840 elif test x
$gcc_cv_as != x
; then
24841 echo '.gnu_attribute 4,1' > conftest.s
24842 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24844 (eval $ac_try) 2>&5
24846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24847 test $ac_status = 0; }; }
24849 gcc_cv_as_powerpc_gnu_attribute
=yes
24851 echo "configure: failed program was" >&5
24854 rm -f conftest.o conftest.s
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24858 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24859 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24861 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24866 $as_echo_n "checking assembler for tls marker support... " >&6; }
24867 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24868 $as_echo_n "(cached) " >&6
24870 gcc_cv_as_powerpc_tls_markers
=no
24871 if test $in_tree_gas = yes; then
24872 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24873 then gcc_cv_as_powerpc_tls_markers
=yes
24875 elif test x
$gcc_cv_as != x
; then
24876 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24877 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24879 (eval $ac_try) 2>&5
24881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24882 test $ac_status = 0; }; }
24884 gcc_cv_as_powerpc_tls_markers
=yes
24886 echo "configure: failed program was" >&5
24889 rm -f conftest.o conftest.s
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24893 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24894 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24896 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24903 $as_echo_n "checking assembler for .ref support... " >&6; }
24904 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24905 $as_echo_n "(cached) " >&6
24907 gcc_cv_as_aix_ref
=no
24908 if test $in_tree_gas = yes; then
24909 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24912 elif test x
$gcc_cv_as != x
; then
24913 echo ' .csect stuff[rw]
24919 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24921 (eval $ac_try) 2>&5
24923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24924 test $ac_status = 0; }; }
24926 gcc_cv_as_aix_ref
=yes
24928 echo "configure: failed program was" >&5
24931 rm -f conftest.o conftest.s
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24935 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24936 if test $gcc_cv_as_aix_ref = yes; then
24938 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24947 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24948 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24949 $as_echo_n "(cached) " >&6
24951 gcc_cv_as_mips_explicit_relocs
=no
24952 if test $in_tree_gas = yes; then
24953 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24954 then gcc_cv_as_mips_explicit_relocs
=yes
24956 elif test x
$gcc_cv_as != x
; then
24957 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24958 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24960 (eval $ac_try) 2>&5
24962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24963 test $ac_status = 0; }; }
24965 gcc_cv_as_mips_explicit_relocs
=yes
24967 echo "configure: failed program was" >&5
24970 rm -f conftest.o conftest.s
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24974 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24975 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24976 if test x
$target_cpu_default = x
24977 then target_cpu_default
=MASK_EXPLICIT_RELOCS
24978 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24982 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24983 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24984 $as_echo_n "(cached) " >&6
24986 gcc_cv_as_mips_no_shared
=no
24987 if test $in_tree_gas = yes; then
24988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24989 then gcc_cv_as_mips_no_shared
=yes
24991 elif test x
$gcc_cv_as != x
; then
24992 echo 'nop' > conftest.s
24993 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24995 (eval $ac_try) 2>&5
24997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24998 test $ac_status = 0; }; }
25000 gcc_cv_as_mips_no_shared
=yes
25002 echo "configure: failed program was" >&5
25005 rm -f conftest.o conftest.s
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25009 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25010 if test $gcc_cv_as_mips_no_shared = yes; then
25012 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25017 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25018 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25019 $as_echo_n "(cached) " >&6
25021 gcc_cv_as_mips_gnu_attribute
=no
25022 if test $in_tree_gas = yes; then
25023 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25024 then gcc_cv_as_mips_gnu_attribute
=yes
25026 elif test x
$gcc_cv_as != x
; then
25027 echo '.gnu_attribute 4,1' > conftest.s
25028 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25030 (eval $ac_try) 2>&5
25032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25033 test $ac_status = 0; }; }
25035 gcc_cv_as_mips_gnu_attribute
=yes
25037 echo "configure: failed program was" >&5
25040 rm -f conftest.o conftest.s
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25044 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25045 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25047 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25052 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25053 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25054 $as_echo_n "(cached) " >&6
25056 gcc_cv_as_mips_dtprelword
=no
25057 if test $in_tree_gas = yes; then
25058 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25059 then gcc_cv_as_mips_dtprelword
=yes
25061 elif test x
$gcc_cv_as != x
; then
25062 echo '.section .tdata,"awT",@progbits
25066 .dtprelword x+0x8000' > conftest.s
25067 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25069 (eval $ac_try) 2>&5
25071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25072 test $ac_status = 0; }; }
25074 gcc_cv_as_mips_dtprelword
=yes
25076 echo "configure: failed program was" >&5
25079 rm -f conftest.o conftest.s
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25083 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25084 if test $gcc_cv_as_mips_dtprelword = yes; then
25086 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25091 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25092 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25093 $as_echo_n "(cached) " >&6
25095 gcc_cv_as_mips_dspr1_mult
=no
25096 if test x
$gcc_cv_as != x
; then
25097 echo ' .set mips32r2
25105 multu $ac3,$4,$5' > conftest.s
25106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25108 (eval $ac_try) 2>&5
25110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25111 test $ac_status = 0; }; }
25113 gcc_cv_as_mips_dspr1_mult
=yes
25115 echo "configure: failed program was" >&5
25118 rm -f conftest.o conftest.s
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25122 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25123 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25125 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25130 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25131 gcc_cv_as_ld_jalr_reloc
=no
25132 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25133 if test $in_tree_ld = yes ; then
25134 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 \
25135 && test $in_tree_ld_is_elf = yes; then
25136 gcc_cv_as_ld_jalr_reloc
=yes
25138 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25139 echo ' .ent x' > conftest.s
25140 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25141 echo ' ld $25,%call16(y)($28)' >> conftest.s
25142 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25143 echo '1: jalr $25' >> conftest.s
25144 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25145 echo '1: jalr $25' >> conftest.s
25146 echo ' .end x' >> conftest.s
25147 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25148 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25149 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25150 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25151 gcc_cv_as_ld_jalr_reloc
=yes
25157 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25158 if test x
$target_cpu_default = x
; then
25159 target_cpu_default
=MASK_RELAX_PIC_CALLS
25161 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25165 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25168 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25169 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25170 $as_echo_n "(cached) " >&6
25172 gcc_cv_ld_mips_personality_relaxation
=no
25173 if test $in_tree_ld = yes ; then
25174 if test "$gcc_cv_gld_major_version" -eq 2 \
25175 -a "$gcc_cv_gld_minor_version" -ge 21 \
25176 -o "$gcc_cv_gld_major_version" -gt 2; then
25177 gcc_cv_ld_mips_personality_relaxation
=yes
25179 elif test x
$gcc_cv_as != x \
25180 -a x
$gcc_cv_ld != x \
25181 -a x
$gcc_cv_readelf != x
; then
25182 cat > conftest.s
<<EOF
25184 .cfi_personality 0x80,indirect_ptr
25191 .section .data,"aw",@progbits
25195 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25196 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25197 if $gcc_cv_readelf -d conftest
2>&1 \
25198 |
grep TEXTREL
> /dev
/null
2>&1; then
25200 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25201 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25204 gcc_cv_ld_mips_personality_relaxation
=yes
25208 rm -f conftest.s conftest.o conftest
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25211 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25212 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25214 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25220 # Mips and HP-UX need the GNU assembler.
25221 # Linux on IA64 might be able to use the Intel assembler.
25224 mips
*-*-* |
*-*-hpux* )
25225 if test x
$gas_flag = xyes \
25226 ||
test x
"$host" != x
"$build" \
25227 ||
test ! -x "$gcc_cv_as" \
25228 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25231 echo "*** This configuration requires the GNU assembler" >&2
25237 # ??? Not all targets support dwarf2 debug_line, even within a version
25238 # of gas. Moreover, we need to emit a valid instruction to trigger any
25239 # info to the output file. So, as supported targets are added to gas 2.11,
25240 # add some instruction here to (also) show we expect this might work.
25241 # ??? Once 2.11 is released, probably need to add first known working
25242 # version to the per-target configury.
25243 case "$cpu_type" in
25244 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25245 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa
)
25255 if test x
"$insn" != x
; then
25257 .file 1 \"conftest.s\"
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25261 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25262 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25263 $as_echo_n "(cached) " >&6
25265 gcc_cv_as_dwarf2_debug_line
=no
25266 if test $in_tree_gas = yes; then
25267 if test $in_tree_gas_is_elf = yes \
25268 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25269 then gcc_cv_as_dwarf2_debug_line
=yes
25271 elif test x
$gcc_cv_as != x
; then
25272 echo "$conftest_s" > conftest.s
25273 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25275 (eval $ac_try) 2>&5
25277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25278 test $ac_status = 0; }; }
25280 if test x
$gcc_cv_objdump != x \
25281 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25282 |
grep debug_line
> /dev
/null
2>&1; then
25283 gcc_cv_as_dwarf2_debug_line
=yes
25286 echo "configure: failed program was" >&5
25289 rm -f conftest.o conftest.s
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25293 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25296 # The .debug_line file table must be in the exact order that
25297 # we specified the files, since these indices are also used
25298 # by DW_AT_decl_file. Approximate this test by testing if
25299 # the assembler bitches if the same index is assigned twice.
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25301 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25302 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25303 $as_echo_n "(cached) " >&6
25305 gcc_cv_as_dwarf2_file_buggy
=no
25306 if test x
$gcc_cv_as != x
; then
25307 echo ' .file 1 "foo.s"
25308 .file 1 "bar.s"' > conftest.s
25309 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25311 (eval $ac_try) 2>&5
25313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25314 test $ac_status = 0; }; }
25316 gcc_cv_as_dwarf2_file_buggy
=yes
25318 echo "configure: failed program was" >&5
25321 rm -f conftest.o conftest.s
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25325 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25328 if test $gcc_cv_as_dwarf2_debug_line = yes \
25329 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25331 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25336 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25337 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25338 $as_echo_n "(cached) " >&6
25340 gcc_cv_as_gdwarf2_flag
=no
25341 if test $in_tree_gas = yes; then
25342 if test $in_tree_gas_is_elf = yes \
25343 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25344 then gcc_cv_as_gdwarf2_flag
=yes
25346 elif test x
$gcc_cv_as != x
; then
25347 echo "$insn" > conftest.s
25348 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25350 (eval $ac_try) 2>&5
25352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25353 test $ac_status = 0; }; }
25355 gcc_cv_as_gdwarf2_flag
=yes
25357 echo "configure: failed program was" >&5
25360 rm -f conftest.o conftest.s
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25364 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25365 if test $gcc_cv_as_gdwarf2_flag = yes; then
25367 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25372 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25373 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25374 $as_echo_n "(cached) " >&6
25376 gcc_cv_as_gstabs_flag
=no
25377 if test $in_tree_gas = yes; then
25378 if test $in_tree_gas_is_elf = yes \
25379 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25380 then gcc_cv_as_gstabs_flag
=yes
25382 elif test x
$gcc_cv_as != x
; then
25383 echo "$insn" > conftest.s
25384 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25386 (eval $ac_try) 2>&5
25388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25389 test $ac_status = 0; }; }
25391 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25392 # and warns about it, but still exits successfully. So check for
25394 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25401 else gcc_cv_as_gstabs_flag
=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_gstabs_flag" >&5
25411 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25412 if test $gcc_cv_as_gstabs_flag = yes; then
25414 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25419 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25420 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25421 $as_echo_n "(cached) " >&6
25423 gcc_cv_as_debug_prefix_map_flag
=no
25424 if test $in_tree_gas = yes; then
25425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25426 then gcc_cv_as_debug_prefix_map_flag
=yes
25428 elif test x
$gcc_cv_as != x
; then
25429 echo "$insn" > conftest.s
25430 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432 (eval $ac_try) 2>&5
25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435 test $ac_status = 0; }; }
25437 gcc_cv_as_debug_prefix_map_flag
=yes
25439 echo "configure: failed program was" >&5
25442 rm -f conftest.o conftest.s
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25446 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25447 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25449 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25455 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25456 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25457 $as_echo_n "(cached) " >&6
25459 gcc_cv_as_lcomm_with_alignment
=no
25460 if test x
$gcc_cv_as != x
; then
25461 echo '.lcomm bar,4,16' > conftest.s
25462 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25464 (eval $ac_try) 2>&5
25466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25467 test $ac_status = 0; }; }
25469 gcc_cv_as_lcomm_with_alignment
=yes
25471 echo "configure: failed program was" >&5
25474 rm -f conftest.o conftest.s
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25478 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25479 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25481 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25485 # Check whether --enable-gnu-unique-object was given.
25486 if test "${enable_gnu_unique_object+set}" = set; then :
25487 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25489 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25490 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25494 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25495 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25496 $as_echo_n "(cached) " >&6
25498 gcc_cv_as_gnu_unique_object
=no
25499 if test $in_tree_gas = yes; then
25500 if test $in_tree_gas_is_elf = yes \
25501 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25502 then gcc_cv_as_gnu_unique_object
=yes
25504 elif test x
$gcc_cv_as != x
; then
25505 echo '.type foo, @gnu_unique_object' > conftest.s
25506 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25508 (eval $ac_try) 2>&5
25510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25511 test $ac_status = 0; }; }
25513 gcc_cv_as_gnu_unique_object
=yes
25515 echo "configure: failed program was" >&5
25518 rm -f conftest.o conftest.s
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25522 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25523 if test $gcc_cv_as_gnu_unique_object = yes; then
25524 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25525 if test x
$host = x
$build -a x
$host = x
$target &&
25526 ldd
--version 2>/dev
/null
&&
25527 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25528 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
25529 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25530 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
25531 if test "$glibcnum" -ge 2011 ; then
25532 enable_gnu_unique_object
=yes
25538 if test x
$enable_gnu_unique_object = xyes
; then
25540 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25545 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25546 if test "${gcc_cv_as_line_zero+set}" = set; then :
25547 $as_echo_n "(cached) " >&6
25549 gcc_cv_as_line_zero
=no
25550 if test $in_tree_gas = yes; then
25551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25552 then gcc_cv_as_line_zero
=yes
25554 elif test "x$gcc_cv_as" != x
; then
25555 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25556 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25558 (eval $ac_try) 2>&5
25560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25561 test $ac_status = 0; }; } &&
25562 test "x`cat conftest.out`" = x
25564 gcc_cv_as_line_zero
=yes
25566 echo "configure: failed program was" >&5
25568 echo "configure: error output was" >&5
25569 cat conftest.out
>&5
25571 rm -f conftest.o conftest.s conftest.out
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25575 $as_echo "$gcc_cv_as_line_zero" >&6; }
25576 if test "x$gcc_cv_as_line_zero" = xyes
; then
25578 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25583 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25584 gcc_cv_ld_eh_frame_hdr
=no
25585 if test $in_tree_ld = yes ; then
25586 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 \
25587 && test $in_tree_ld_is_elf = yes; then
25588 gcc_cv_ld_eh_frame_hdr
=yes
25590 elif test x
$gcc_cv_ld != x
; then
25591 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25592 # Check if linker supports --eh-frame-hdr option
25593 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
25594 gcc_cv_ld_eh_frame_hdr
=yes
25599 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25600 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
25601 gcc_cv_ld_eh_frame_hdr
=yes
25608 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
25610 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25614 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25617 $as_echo_n "checking linker position independent executable support... " >&6; }
25619 if test $in_tree_ld = yes ; then
25620 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 \
25621 && test $in_tree_ld_is_elf = yes; then
25624 elif test x
$gcc_cv_ld != x
; then
25625 # Check if linker supports -pie option
25626 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
25630 if test x
"$gcc_cv_ld_pie" = xyes
; then
25632 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25636 $as_echo "$gcc_cv_ld_pie" >&6; }
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25639 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25640 gcc_cv_ld_eh_gc_sections
=no
25641 if test $in_tree_ld = yes ; then
25642 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 \
25643 && test $in_tree_ld_is_elf = yes; then
25644 gcc_cv_ld_eh_gc_sections
=yes
25646 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25647 cat > conftest.s
<<EOF
25650 .type _start, @function
25653 .size _start, .-_start
25654 .section .text.foo,"ax",@progbits
25655 .type foo, @function
25659 .section .gcc_except_table.foo,"a",@progbits
25662 .section .eh_frame,"a",@progbits
25665 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25666 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25667 |
grep "gc-sections option ignored" > /dev
/null
; then
25668 gcc_cv_ld_eh_gc_sections
=no
25669 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25670 |
grep gcc_except_table
> /dev
/null
; then
25671 gcc_cv_ld_eh_gc_sections
=yes
25672 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25673 if test x
$gcc_cv_as_comdat_group != xyes
; then
25674 gcc_cv_ld_eh_gc_sections
=no
25675 cat > conftest.s
<<EOF
25678 .type _start, @function
25681 .size _start, .-_start
25682 .section .gnu.linkonce.t.foo,"ax",@progbits
25683 .type foo, @function
25687 .section .gcc_except_table.foo,"a",@progbits
25690 .section .eh_frame,"a",@progbits
25693 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25694 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25695 |
grep "gc-sections option ignored" > /dev
/null
; then
25696 gcc_cv_ld_eh_gc_sections
=no
25697 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25698 |
grep gcc_except_table
> /dev
/null
; then
25699 gcc_cv_ld_eh_gc_sections
=yes
25705 rm -f conftest.s conftest.o conftest
25709 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25710 gcc_cv_ld_eh_gc_sections
=no
25713 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
25715 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25719 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25722 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25723 gcc_cv_ld_eh_gc_sections_bug
=no
25724 if test $in_tree_ld = yes ; then
25725 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 \
25726 && test $in_tree_ld_is_elf = yes; then
25727 gcc_cv_ld_eh_gc_sections_bug
=yes
25729 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
25730 gcc_cv_ld_eh_gc_sections_bug
=yes
25731 cat > conftest.s
<<EOF
25734 .type _start, @function
25737 .size _start, .-_start
25738 .section .text.startup.foo,"ax",@progbits
25739 .type foo, @function
25743 .section .gcc_except_table.foo,"a",@progbits
25746 .section .eh_frame,"a",@progbits
25749 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25750 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25751 |
grep "gc-sections option ignored" > /dev
/null
; then
25753 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25754 |
grep gcc_except_table
> /dev
/null
; then
25755 gcc_cv_ld_eh_gc_sections_bug
=no
25758 rm -f conftest.s conftest.o conftest
25760 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
25762 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25766 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25773 $as_echo_n "checking linker --as-needed support... " >&6; }
25774 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25775 $as_echo_n "(cached) " >&6
25777 gcc_cv_ld_as_needed
=no
25778 if test $in_tree_ld = yes ; then
25779 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 \
25780 && test $in_tree_ld_is_elf = yes; then
25781 gcc_cv_ld_as_needed
=yes
25783 elif test x
$gcc_cv_ld != x
; then
25784 # Check if linker supports --as-needed and --no-as-needed options
25785 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
25786 gcc_cv_ld_as_needed
=yes
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25792 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25793 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
25795 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25799 case "$target:$tm_file" in
25800 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25802 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25803 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25804 $as_echo_n "(cached) " >&6
25806 gcc_cv_ld_no_dot_syms
=no
25807 if test $in_tree_ld = yes ; then
25808 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
25809 gcc_cv_ld_no_dot_syms
=yes
25811 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
25812 cat > conftest1.s
<<EOF
25816 cat > conftest2.s
<<EOF
25817 .section ".opd","aw"
25820 .type foo,@function
25822 .quad .LEfoo,.TOC.@tocbase,0
25828 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
25829 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
25830 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
25831 gcc_cv_ld_no_dot_syms
=yes
25833 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25838 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25839 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
25841 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25846 $as_echo_n "checking linker large toc support... " >&6; }
25847 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25848 $as_echo_n "(cached) " >&6
25850 gcc_cv_ld_large_toc
=no
25851 if test $in_tree_ld = yes ; then
25852 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
25853 gcc_cv_ld_large_toc
=yes
25855 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
25856 cat > conftest.s
<<EOF
25857 .section ".tbss","awT",@nobits
25863 addis 9,13,ie0@got@tprel@ha
25864 ld 9,ie0@got@tprel@l(9)
25866 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
25867 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
25868 gcc_cv_ld_large_toc
=yes
25870 rm -f conftest conftest.o conftest.s
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25875 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25876 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
25878 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25885 $as_echo_n "checking linker --build-id support... " >&6; }
25886 if test "${gcc_cv_ld_buildid+set}" = set; then :
25887 $as_echo_n "(cached) " >&6
25889 gcc_cv_ld_buildid
=no
25890 if test $in_tree_ld = yes ; then
25891 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25892 "$gcc_cv_gld_minor_version" -ge 18 -o \
25893 "$gcc_cv_gld_major_version" -gt 2 \
25894 && test $in_tree_ld_is_elf = yes; then
25895 gcc_cv_ld_buildid
=yes
25897 elif test x
$gcc_cv_ld != x
; then
25898 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
25899 gcc_cv_ld_buildid
=yes
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25904 $as_echo "$gcc_cv_ld_buildid" >&6; }
25905 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25907 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25911 # Check whether --enable-linker-build-id was given.
25912 if test "${enable_linker_build_id+set}" = set; then :
25913 enableval
=$enable_linker_build_id;
25915 enable_linker_build_id
=no
25919 if test x
"$enable_linker_build_id" = xyes
; then
25920 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25922 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25926 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25930 # In binutils 2.21, GNU ld gained support for new emulations fully
25931 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25933 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25934 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25935 $as_echo_n "(cached) " >&6
25937 gcc_cv_ld_sol2_emulation
=no
25938 if test $in_tree_ld = yes ; then
25939 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25940 "$gcc_cv_gld_minor_version" -ge 21 -o \
25941 "$gcc_cv_gld_major_version" -gt 2 \
25942 && test $in_tree_ld_is_elf = yes; then
25943 gcc_cv_ld_sol2_emulation
=yes
25945 elif test x
$gcc_cv_ld != x
; then
25946 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
25947 grep _sol2
> /dev
/null
; then
25948 gcc_cv_ld_sol2_emulation
=yes
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25953 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25954 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
25956 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25961 $as_echo_n "checking linker --sysroot support... " >&6; }
25962 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25963 $as_echo_n "(cached) " >&6
25965 gcc_cv_ld_sysroot
=no
25966 if test $in_tree_ld = yes ; then
25967 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
25968 gcc_cv_ld_sysroot
=yes
25970 elif test x
$gcc_cv_ld != x
; then
25971 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
25972 gcc_cv_ld_sysroot
=yes
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25977 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25978 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
25980 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25984 if test x
$with_sysroot = x
&& test x
$host = x
$target \
25985 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25986 && test "$prefix" != "NONE"; then
25988 cat >>confdefs.h
<<_ACEOF
25989 #define PREFIX_INCLUDE_DIR "$prefix/include"
25994 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
25995 if test "x$with_headers" != x
; then
25996 target_header_dir
=$with_headers
25997 elif test "x$with_sysroot" = x
; then
25998 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
25999 elif test "x$with_build_sysroot" != "x"; then
26000 target_header_dir
="${with_build_sysroot}/usr/include"
26001 elif test "x$with_sysroot" = xyes
; then
26002 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26004 target_header_dir
="${with_sysroot}/usr/include"
26007 target_header_dir
=/usr
/include
26010 # Test for stack protector support in target C library.
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26012 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26013 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26014 $as_echo_n "(cached) " >&6
26016 gcc_cv_libc_provides_ssp
=no
26018 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26019 # glibc 2.4 and later provides __stack_chk_fail and
26020 # either __stack_chk_guard, or TLS access to stack guard canary.
26021 if test -f $target_header_dir/features.h \
26022 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26023 $target_header_dir/features.h
> /dev
/null
; then
26024 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26025 $target_header_dir/features.h
> /dev
/null
; then
26026 gcc_cv_libc_provides_ssp
=yes
26027 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26028 $target_header_dir/features.h
> /dev
/null \
26029 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26030 $target_header_dir/features.h
> /dev
/null
; then
26031 gcc_cv_libc_provides_ssp
=yes
26032 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26033 $target_header_dir/features.h
> /dev
/null
&& \
26034 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26035 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26036 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26037 gcc_cv_libc_provides_ssp
=yes
26042 # Avoid complicated tests (see
26043 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26044 # simply assert that glibc does provide this, which is true for all
26045 # realistically usable GNU/Hurd configurations.
26046 gcc_cv_libc_provides_ssp
=yes;;
26047 *-*-darwin* |
*-*-freebsd*)
26048 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26049 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26050 gcc_cv_libc_provides_ssp
=yes
26052 echo "no __stack_chk_fail on this target"
26056 *) gcc_cv_libc_provides_ssp
=no
;;
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26060 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26062 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26064 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26068 # Test for <sys/sdt.h> on the target.
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26071 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26073 if test -f $target_header_dir/sys
/sdt.h
; then
26075 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26079 $as_echo "$have_sys_sdt_h" >&6; }
26081 # Check if TFmode long double should be used by default or not.
26082 # Some glibc targets used DFmode long double, but with glibc 2.4
26083 # and later they can use TFmode.
26085 powerpc
*-*-linux* | \
26086 sparc
*-*-linux* | \
26090 # Check whether --with-long-double-128 was given.
26091 if test "${with_long_double_128+set}" = set; then :
26092 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26094 gcc_cv_target_ldbl128
=no
26095 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26096 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26097 && gcc_cv_target_ldbl128
=yes
26103 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26105 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26110 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26111 gcc_cv_target_dl_iterate_phdr
=unknown
26114 # <link.h> needs both a dl_iterate_phdr declaration and support for
26115 # compilation with largefile support.
26116 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26117 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26118 gcc_cv_target_dl_iterate_phdr
=yes
26120 gcc_cv_target_dl_iterate_phdr
=no
26125 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26127 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26131 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26133 # Find out what GC implementation we want, or may, use.
26135 # Check whether --with-gc was given.
26136 if test "${with_gc+set}" = set; then :
26137 withval
=$with_gc; case "$withval" in
26144 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26148 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26156 echo "Using $GGC for garbage collection."
26158 # Libraries to use on the host. This will normally be set by the top
26159 # level Makefile. Here we simply capture the value for our Makefile.
26160 if test -z "${HOST_LIBS+set}"; then
26165 # Use the system's zlib library.
26167 zlibinc
="-I\$(srcdir)/../zlib"
26169 # Check whether --with-system-zlib was given.
26170 if test "${with_system_zlib+set}" = set; then :
26171 withval
=$with_system_zlib; zlibdir
=
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26181 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26182 # Check whether --enable-maintainer-mode was given.
26183 if test "${enable_maintainer_mode+set}" = set; then :
26184 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26191 $as_echo "$maintainer_mode" >&6; }
26193 if test "$maintainer_mode" = "yes"; then
26203 # Make empty files to contain the specs and options for each language.
26204 # Then add #include lines to for a compiler that has specs and/or options.
26210 # These (without "all_") are set in each config-lang.in.
26211 # `language' must be a single word so is spelled singularly.
26214 all_outputs
='Makefile'
26215 # List of language makefile fragments.
26216 all_lang_makefrags
=
26217 # Additional files for gengtype
26218 all_gtfiles
="$target_gtfiles"
26220 # These are the languages that are set in --enable-languages,
26221 # and are available in the GCC tree.
26222 all_selected_languages
=
26224 # Add the language fragments.
26225 # Languages are added via two mechanisms. Some information must be
26226 # recorded in makefile variables, these are defined in config-lang.in.
26227 # We accumulate them and plug them into the main Makefile.
26228 # The other mechanism is a set of hooks for each of the main targets
26229 # like `clean', `install', etc.
26231 language_hooks
="Make-hooks"
26233 for lang
in ${srcdir}/*/config-lang.
in
26235 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26237 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26238 if test "x$lang_alias" = x
26240 echo "$lang doesn't set \$language." 1>&2
26243 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26244 subdirs
="$subdirs $subdir"
26246 # $gcc_subdir is where the gcc integration files are to be found
26247 # for a language, both for internal compiler purposes (compiler
26248 # sources implementing front-end to GCC tree converters), and for
26249 # build infrastructure purposes (Make-lang.in, etc.)
26251 # This will be <subdir> (relative to $srcdir) if a line like
26252 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26253 # is found in <langdir>/config-lang.in, and will remain <langdir>
26256 # Except for the language alias (fetched above), the regular
26257 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26258 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26259 # only this and the language alias.
26261 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26262 if [ "$gcc_subdir" = "" ]; then
26263 gcc_subdir
="$subdir"
26266 case ",$enable_languages," in
26268 all_selected_languages
="$all_selected_languages $lang_alias"
26269 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26270 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26281 .
${srcdir}/$gcc_subdir/config-lang.
in
26282 if test "x$language" = x
26284 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26289 case ",$enable_languages," in
26290 *,$lang_alias,*) ;;
26292 for i
in $subdir_requires; do
26293 test -f "${srcdir}/$i/config-lang.in" && continue
26301 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26302 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26303 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26304 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26306 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26307 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26309 all_languages
="$all_languages $language"
26310 all_compilers
="$all_compilers $compilers"
26311 all_outputs
="$all_outputs $outputs"
26312 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26313 case ",$enable_languages," in
26316 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26325 # Pick up gtfiles for c
26327 .
${srcdir}/c-config-lang.
in
26328 all_gtfiles
="$all_gtfiles [c] $gtfiles"
26331 for language
in $all_selected_languages
26333 check_languages
="$check_languages check-$language"
26336 # We link each language in with a set of hooks, reached indirectly via
26337 # lang.${target}. Only do so for selected languages.
26341 target_list
="all.cross start.encap rest.encap tags \
26342 install-common install-man install-info install-pdf install-html dvi \
26343 pdf html uninstall info man srcextra srcman srcinfo \
26344 mostlyclean clean distclean maintainer-clean install-plugin"
26346 for t
in $target_list
26349 for lang
in $all_selected_languages
26353 echo "lang.$t: $x" >> Make-hooks
26357 # Option include files
26360 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26361 option_includes
="option-includes.mk"
26370 echo "dir ." > .gdbinit
26371 echo "dir ${srcdir}" >> .gdbinit
26372 if test x
$gdb_needs_out_file_path = xyes
26374 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26376 if test "x$subdirs" != x
; then
26379 echo "dir ${srcdir}/$s" >> .gdbinit
26382 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26384 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26388 # Find a directory in which to install a shared libgcc.
26390 # Check whether --enable-version-specific-runtime-libs was given.
26391 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26392 enableval
=$enable_version_specific_runtime_libs;
26397 # Check whether --with-slibdir was given.
26398 if test "${with_slibdir+set}" = set; then :
26399 withval
=$with_slibdir; slibdir
="$with_slibdir"
26401 if test "${enable_version_specific_runtime_libs+set}" = set; then
26402 slibdir
='$(libsubdir)'
26403 elif test "$host" != "$target"; then
26404 slibdir
='$(build_tooldir)/lib'
26406 slibdir
='$(libdir)'
26412 # Substitute configuration variables
26476 if test x
${build} = x
${host} ; then
26477 if test x
${host} = x
${target} ; then
26478 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26480 echo "Links are now set up to build a cross-compiler" 1>&2
26481 echo " from ${host} to ${target}." 1>&2
26484 if test x
${host} = x
${target} ; then
26485 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26486 echo " for ${target}." 1>&2
26488 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26489 echo " from ${host} to ${target}." 1>&2
26501 if test "x${CLOOGLIBS}" != "x" ; then
26503 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26507 # Check for plugin support
26508 # Check whether --enable-plugin was given.
26509 if test "${enable_plugin+set}" = set; then :
26510 enableval
=$enable_plugin; enable_plugin
=$enableval
26512 enable_plugin
=yes; default_plugin
=yes
26520 if test x
$build = x
$host; then
26521 export_sym_check
="nm${exeext} -g"
26522 elif test x
$host = x
$target; then
26523 export_sym_check
="$gcc_cv_nm -g"
26529 if test x
$build = x
$host; then
26530 export_sym_check
="objdump${exeext} -T"
26531 elif test x
$host = x
$target; then
26532 export_sym_check
="$gcc_cv_objdump -T"
26539 if test x
"$enable_plugin" = x
"yes"; then
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26542 $as_echo_n "checking for exported symbols... " >&6; }
26543 if test "x$export_sym_check" != x
; then
26544 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26545 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
26546 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26547 : # No need to use a flag
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26549 $as_echo "yes" >&6; }
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26552 $as_echo "yes" >&6; }
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26554 $as_echo_n "checking for -rdynamic... " >&6; }
26555 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
26556 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26557 plugin_rdynamic
=yes
26558 pluginlibs
="-rdynamic"
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26564 $as_echo "$plugin_rdynamic" >&6; }
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26568 $as_echo "unable to check" >&6; }
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26574 $as_echo_n "checking for library containing dlopen... " >&6; }
26575 if test "${ac_cv_search_dlopen+set}" = set; then :
26576 $as_echo_n "(cached) " >&6
26578 ac_func_search_save_LIBS
=$LIBS
26579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26580 /* end confdefs.h. */
26582 /* Override any GCC internal prototype to avoid an error.
26583 Use char because int might match the return type of a GCC
26584 builtin and then its argument prototype would still apply. */
26597 for ac_lib
in '' dl
; do
26598 if test -z "$ac_lib"; then
26599 ac_res
="none required"
26602 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26604 if ac_fn_c_try_link
"$LINENO"; then :
26605 ac_cv_search_dlopen
=$ac_res
26607 rm -f core conftest.err conftest.
$ac_objext \
26609 if test "${ac_cv_search_dlopen+set}" = set; then :
26613 if test "${ac_cv_search_dlopen+set}" = set; then :
26616 ac_cv_search_dlopen
=no
26618 rm conftest.
$ac_ext
26619 LIBS
=$ac_func_search_save_LIBS
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26622 $as_echo "$ac_cv_search_dlopen" >&6; }
26623 ac_res
=$ac_cv_search_dlopen
26624 if test "$ac_res" != no
; then :
26625 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26629 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
26630 pluginlibs
="$pluginlibs -ldl"
26634 # Check that we can build shared objects with -fPIC -shared
26635 saved_LDFLAGS
="$LDFLAGS"
26636 saved_CFLAGS
="$CFLAGS"
26639 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26640 CFLAGS
="$CFLAGS -fPIC"
26641 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
26644 CFLAGS
="$CFLAGS -fPIC"
26645 LDFLAGS
="$LDFLAGS -fPIC -shared"
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26649 $as_echo_n "checking for -fPIC -shared... " >&6; }
26650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26651 /* end confdefs.h. */
26661 if ac_fn_c_try_link
"$LINENO"; then :
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26663 $as_echo "yes" >&6; }; have_pic_shared
=yes
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26666 $as_echo "no" >&6; }; have_pic_shared
=no
26668 rm -f core conftest.err conftest.
$ac_objext \
26669 conftest
$ac_exeext conftest.
$ac_ext
26670 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
26674 LDFLAGS
="$saved_LDFLAGS"
26675 CFLAGS
="$saved_CFLAGS"
26677 # If plugin support had been requested but not available, fail.
26678 if test x
"$enable_plugin" = x
"no" ; then
26679 if test x
"$default_plugin" != x
"yes"; then
26681 Building GCC with plugin support requires a host that supports
26682 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26689 if test x
"$enable_plugin" = x
"yes"; then
26691 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26696 # Check whether --enable-libquadmath-support was given.
26697 if test "${enable_libquadmath_support+set}" = set; then :
26698 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
26700 ENABLE_LIBQUADMATH_SUPPORT
=yes
26703 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26705 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26710 # Configure the subdirectories
26711 # AC_CONFIG_SUBDIRS($subdirs)
26713 # Create the Makefile
26714 # and configure language subdirectories
26715 ac_config_files
="$ac_config_files $all_outputs"
26718 ac_config_commands
="$ac_config_commands default"
26720 cat >confcache
<<\_ACEOF
26721 # This file is a shell script that caches the results of configure
26722 # tests run on this system so they can be shared between configure
26723 # scripts and configure runs, see configure's option --config-cache.
26724 # It is not useful on other systems. If it contains results you don't
26725 # want to keep, you may remove or edit it.
26727 # config.status only pays attention to the cache file if you give it
26728 # the --recheck option to rerun configure.
26730 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26731 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26732 # following values.
26736 # The following way of writing the cache mishandles newlines in values,
26737 # but we know of no workaround that is simple, portable, and efficient.
26738 # So, we kill variables containing newlines.
26739 # Ultrix sh set writes to stderr and can't be redirected directly,
26740 # and sets the high bit in the cache file unless we assign to the vars.
26742 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26743 eval ac_val
=\$
$ac_var
26747 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26748 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26751 _ | IFS | as_nl
) ;; #(
26752 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26753 *) { eval $ac_var=; unset $ac_var;} ;;
26759 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26760 *${as_nl}ac_space
=\
*)
26761 # `set' does not quote correctly, so add quotes: double-quote
26762 # substitution turns \\\\ into \\, and sed turns \\ into \.
26765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26768 # `set' quotes correctly as required by POSIX, so do not add quotes.
26769 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26780 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26782 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26783 if test -w "$cache_file"; then
26784 test "x$cache_file" != "x/dev/null" &&
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26786 $as_echo "$as_me: updating cache $cache_file" >&6;}
26787 cat confcache
>$cache_file
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26790 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26795 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26796 # Let make expand exec_prefix.
26797 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26799 DEFS
=-DHAVE_CONFIG_H
26803 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26804 # 1. Remove the extension, and $U if already installed.
26805 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26806 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26807 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26808 # will be set to the directory where LIBOBJS objects are built.
26809 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26810 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
26812 LIBOBJS
=$ac_libobjs
26814 LTLIBOBJS
=$ac_ltlibobjs
26819 : ${CONFIG_STATUS=./config.status}
26821 ac_clean_files_save
=$ac_clean_files
26822 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26824 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26826 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26828 # Generated by $as_me.
26829 # Run this file to recreate the current configuration.
26830 # Compiler output produced by configure, useful for debugging
26831 # configure, is in config.log if it exists.
26834 ac_cs_recheck=false
26837 SHELL=\${CONFIG_SHELL-$SHELL}
26840 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
26841 ## -------------------- ##
26842 ## M4sh Initialization. ##
26843 ## -------------------- ##
26845 # Be more Bourne compatible
26846 DUALCASE
=1; export DUALCASE
# for MKS sh
26847 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
26850 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26851 # is contrary to our usage. Disable this feature.
26852 alias -g '${1+"$@"}'='"$@"'
26853 setopt NO_GLOB_SUBST
26855 case `(set -o) 2>/dev/null` in #(
26867 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26868 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26869 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26871 # Prefer a ksh shell builtin over an external printf program on Solaris,
26872 # but without wasting forks for bash or zsh.
26873 if test -z "$BASH_VERSION$ZSH_VERSION" \
26874 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26875 as_echo='print
-r --'
26876 as_echo_n='print
-rn --'
26877 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26878 as_echo='printf %s
\n'
26879 as_echo_n='printf %s
'
26881 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26882 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26883 as_echo_n='/usr
/ucb
/echo -n'
26885 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26886 as_echo_n_body='eval
26890 expr "X$arg" : "X\\(.*\\)$as_nl";
26891 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26893 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26895 export as_echo_n_body
26896 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26898 export as_echo_body
26899 as_echo='sh
-c $as_echo_body as_echo
'
26902 # The user is always right.
26903 if test "${PATH_SEPARATOR+set}" != set; then
26905 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26906 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26913 # We need space, tab and new line, in precisely that order. Quoting is
26914 # there to prevent editors from complaining about space-tab.
26915 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26916 # splitting by setting IFS to empty value.)
26919 # Find who we are. Look in the path if we contain no directory separator.
26921 *[\\/]* ) as_myself=$0 ;;
26922 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26923 for as_dir in $PATH
26926 test -z "$as_dir" && as_dir=.
26927 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26933 # We did not find ourselves, most probably we were run as `sh COMMAND'
26934 # in which case we are not to be found in the path.
26935 if test "x$as_myself" = x
; then
26938 if test ! -f "$as_myself"; then
26939 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26943 # Unset variables that we do not need and which cause bugs (e.g. in
26944 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26945 # suppresses any "Segmentation fault" message there. '((' could
26946 # trigger a bug in pdksh 5.2.14.
26947 for as_var
in BASH_ENV ENV MAIL MAILPATH
26948 do eval test x\
${$as_var+set} = xset \
26949 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26962 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26965 # as_fn_error ERROR [LINENO LOG_FD]
26966 # ---------------------------------
26967 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26968 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26969 # script with status $?, using 1 if that was 0.
26972 as_status
=$?
; test $as_status -eq 0 && as_status
=1
26974 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26975 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26977 $as_echo "$as_me: error: $1" >&2
26978 as_fn_exit
$as_status
26982 # as_fn_set_status STATUS
26983 # -----------------------
26984 # Set $? to STATUS, without forking.
26985 as_fn_set_status
()
26988 } # as_fn_set_status
26990 # as_fn_exit STATUS
26991 # -----------------
26992 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26996 as_fn_set_status
$1
27002 # Portably unset VAR.
27005 { eval $1=; unset $1;}
27007 as_unset
=as_fn_unset
27008 # as_fn_append VAR VALUE
27009 # ----------------------
27010 # Append the text in VALUE to the end of the definition contained in VAR. Take
27011 # advantage of any shell optimizations that allow amortized linear growth over
27012 # repeated appends, instead of the typical quadratic growth present in naive
27014 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27015 eval 'as_fn_append ()
27026 # as_fn_arith ARG...
27027 # ------------------
27028 # Perform arithmetic evaluation on the ARGs, and store the result in the
27029 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27030 # must be portable across $(()) and expr.
27031 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27032 eval 'as_fn_arith ()
27039 as_val
=`expr "$@" || test $? -eq 1`
27044 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27045 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27051 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27052 as_basename
=basename
27057 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27063 as_me
=`$as_basename -- "$0" ||
27064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27065 X"$0" : 'X\(//\)$' \| \
27066 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27068 sed '/^.*\/\([^/][^/]*\)\/*$/{
27082 # Avoid depending upon Character Ranges.
27083 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27084 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27085 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27086 as_cr_digits
='0123456789'
27087 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27089 ECHO_C
= ECHO_N
= ECHO_T
=
27090 case `echo -n x` in #(((((
27092 case `echo 'xy\c'` in
27093 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27095 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27102 rm -f conf$$ conf$$.exe conf$$.
file
27103 if test -d conf$$.dir
; then
27104 rm -f conf$$.dir
/conf$$.
file
27107 mkdir conf$$.dir
2>/dev
/null
27109 if (echo >conf$$.
file) 2>/dev
/null
; then
27110 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27112 # ... but there are two gotchas:
27113 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27114 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27115 # In both cases, we have to default to `cp -p'.
27116 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27118 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27126 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27127 rmdir conf$$.dir
2>/dev
/null
27132 # Create "$as_dir" as a directory, including parents if necessary.
27137 -*) as_dir
=.
/$as_dir;;
27139 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27143 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27144 *) as_qdir
=$as_dir;;
27146 as_dirs
="'$as_qdir' $as_dirs"
27147 as_dir
=`$as_dirname -- "$as_dir" ||
27148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27149 X"$as_dir" : 'X\(//\)[^/]' \| \
27150 X"$as_dir" : 'X\(//\)$' \| \
27151 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27152 $as_echo X"$as_dir" |
27153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27157 /^X\(\/\/\)[^/].*/{
27170 test -d "$as_dir" && break
27172 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27173 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27177 if mkdir
-p .
2>/dev
/null
; then
27178 as_mkdir_p
='mkdir -p "$as_dir"'
27180 test -d .
/-p && rmdir .
/-p
27184 if test -x / >/dev
/null
2>&1; then
27185 as_test_x
='test -x'
27187 if ls -dL / >/dev
/null
2>&1; then
27194 if test -d "$1"; then
27200 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27201 ???[sx]*):;;*)false;;esac;fi
27205 as_executable_p
=$as_test_x
27207 # Sed expression to map a string onto a valid CPP name.
27208 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27210 # Sed expression to map a string onto a valid variable name.
27211 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27215 ## ----------------------------------- ##
27216 ## Main body of $CONFIG_STATUS script. ##
27217 ## ----------------------------------- ##
27219 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27222 # Save the log message, to keep $0 and so on meaningful, and to
27223 # report actual input values of CONFIG_FILES etc. instead of their
27224 # values after options handling.
27226 This file was extended by $as_me, which was
27227 generated by GNU Autoconf 2.64. Invocation command line was
27229 CONFIG_FILES = $CONFIG_FILES
27230 CONFIG_HEADERS = $CONFIG_HEADERS
27231 CONFIG_LINKS = $CONFIG_LINKS
27232 CONFIG_COMMANDS = $CONFIG_COMMANDS
27235 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27240 case $ac_config_files in *"
27241 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27244 case $ac_config_headers in *"
27245 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27250 # Files that config.status was made for.
27251 config_files="$ac_config_files"
27252 config_headers="$ac_config_headers"
27253 config_commands="$ac_config_commands"
27257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27259 \`$as_me' instantiates files and other configuration actions
27260 from templates according to the current configuration. Unless the files
27261 and actions are specified as TAGs, all are instantiated by default.
27263 Usage: $0 [OPTION]... [TAG]...
27265 -h, --help print this help, then exit
27266 -V, --version print version number and configuration settings, then exit
27267 -q, --quiet, --silent
27268 do not print progress messages
27269 -d, --debug don't remove temporary files
27270 --recheck update $as_me by reconfiguring in the same conditions
27271 --file=FILE[:TEMPLATE]
27272 instantiate the configuration file FILE
27273 --header=FILE[:TEMPLATE]
27274 instantiate the configuration header FILE
27276 Configuration files:
27279 Configuration headers:
27282 Configuration commands:
27285 Report bugs to the package provider."
27288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27291 configured by $0, generated by GNU Autoconf 2.64,
27292 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27294 Copyright (C) 2009 Free Software Foundation, Inc.
27295 This config.status script is free software; the Free Software Foundation
27296 gives unlimited permission to copy, distribute and modify it."
27301 test -n "\$AWK" || AWK=awk
27304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27305 # The default lists apply if the user does not specify any file.
27311 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27312 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27323 # Handling of the options.
27324 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27326 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27327 $as_echo "$ac_cs_version"; exit ;;
27328 --debug |
--debu |
--deb |
--de |
--d |
-d )
27330 --file |
--fil |
--fi |
--f )
27333 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27335 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27336 ac_need_defaults
=false
;;
27337 --header |
--heade |
--head |
--hea )
27340 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27342 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27343 ac_need_defaults
=false
;;
27345 # Conflict between --help and --header
27346 as_fn_error
"ambiguous option: \`$1'
27347 Try \`$0 --help' for more information.";;
27348 --help |
--hel |
-h )
27349 $as_echo "$ac_cs_usage"; exit ;;
27350 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27351 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27354 # This is an error.
27355 -*) as_fn_error
"unrecognized option: \`$1'
27356 Try \`$0 --help' for more information." ;;
27358 *) as_fn_append ac_config_targets
" $1"
27359 ac_need_defaults
=false
;;
27365 ac_configure_extra_args
=
27367 if $ac_cs_silent; then
27369 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27374 if \$ac_cs_recheck; then
27375 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27377 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27378 CONFIG_SHELL='$SHELL'
27379 export CONFIG_SHELL
27384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27389 ## Running $as_me. ##
27395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27405 # Handling of arguments.
27406 for ac_config_target
in $ac_config_targets
27408 case $ac_config_target in
27409 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
27410 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
27411 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27412 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
27413 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
27414 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27416 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27421 # If the user did not use the arguments to specify the items to instantiate,
27422 # then the envvar interface is used. Set only those that are not.
27423 # We use the long form for the default assignment because of an extremely
27424 # bizarre bug on SunOS 4.1.3.
27425 if $ac_need_defaults; then
27426 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27427 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27428 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27431 # Have a temporary directory for convenience. Make it in the build tree
27432 # simply because there is no reason against having it here, and in addition,
27433 # creating and moving files from /tmp can sometimes cause problems.
27434 # Hook for its removal unless debugging.
27435 # Note that there is a small window in which the directory will not be cleaned:
27436 # after its creation but before its name has been assigned to `$tmp'.
27440 trap 'exit_status=$?
27441 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27443 trap 'as_fn_exit 1' 1 2 13 15
27445 # Create a (secure) tmp directory for tmp files.
27448 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27449 test -n "$tmp" && test -d "$tmp"
27452 tmp
=.
/conf$$
-$RANDOM
27453 (umask 077 && mkdir
"$tmp")
27454 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
27456 # Set up the scripts for CONFIG_FILES section.
27457 # No need to generate them if there are no CONFIG_FILES.
27458 # This happens for instance with `./config.status config.h'.
27459 if test -n "$CONFIG_FILES"; then
27461 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27462 ac_cs_awk_getline
=:
27463 ac_cs_awk_pipe_init
=
27464 ac_cs_awk_read_file
='
27465 while ((getline aline < (F[key])) > 0)
27468 ac_cs_awk_pipe_fini
=
27470 ac_cs_awk_getline
=false
27471 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27472 ac_cs_awk_read_file
='
27474 print "cat " F[key] " &&"
27475 '$ac_cs_awk_pipe_init
27476 # The final `:' finishes the AND list.
27477 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27479 ac_cr
=`echo X | tr X '\015'`
27480 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27481 # But we know of no other shell where ac_cr would be empty at this
27482 # point, so we can use a bashism as a fallback.
27483 if test "x$ac_cr" = x
; then
27484 eval ac_cr
=\$
\'\\r
\'
27486 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27487 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27490 ac_cs_awk_cr
=$ac_cr
27493 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27496 # Create commands to substitute file output variables.
27498 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27499 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27500 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27503 } >conf$
$files.sh
&&
27504 . .
/conf$
$files.sh ||
27505 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
27506 rm -f conf$
$files.sh
27509 echo "cat >conf$$subs.awk <<_ACEOF" &&
27510 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27512 } >conf$$subs.sh ||
27513 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27514 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27516 for ac_last_try in false false false false false :; do
27517 . ./conf$$subs.sh ||
27518 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27520 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27521 if test $ac_delim_n = $ac_delim_num; then
27523 elif $ac_last_try; then
27524 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27526 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27529 rm -f conf$$subs.sh
27531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27532 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27536 s/^/S["/; s
/!.
*/"]=/
27546 s/\(.\{148\}\).*/\1/
27548 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27553 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27560 s/\(.\{148\}\).*/\1/
27562 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27566 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27571 ' <conf$$subs.awk | sed '
27576 ' >>$CONFIG_STATUS || ac_write_fail=1
27577 rm -f conf$$subs.awk
27578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27580 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27581 for (key in S) S_is_set[key] = 1
27583 \$ac_cs_awk_pipe_init
27587 nfields = split(line, field, "@
")
27589 len = length(field[1])
27590 for (i = 2; i < nfields; i++) {
27592 keylen = length(key)
27593 if (S_is_set[key]) {
27595 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27596 len += length(value) + length(field[++i])
27601 if (nfields == 3 && !substed) {
27603 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27604 \$ac_cs_awk_read_file
27610 \$ac_cs_awk_pipe_fini
27613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27614 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27615 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27618 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27619 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
27622 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27623 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27624 # trailing colons and then remove the whole line if VPATH becomes empty
27625 # (actually we leave an empty line to preserve line numbers).
27626 if test "x
$srcdir" = x.; then
27627 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27628 s/:*\$(srcdir):*/:/
27629 s/:*\${srcdir}:*/:/
27631 s/^\([^=]*=[ ]*\):*/\1/
27637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27638 fi # test -n "$CONFIG_FILES"
27640 # Set up the scripts for CONFIG_HEADERS section.
27641 # No need to generate them if there are no CONFIG_HEADERS.
27642 # This happens for instance with `./config.status Makefile'.
27643 if test -n "$CONFIG_HEADERS"; then
27644 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27648 # Transform confdefs.h into an awk script `defines.awk', embedded as
27649 # here-document in config.status, that substitutes the proper values into
27650 # config.h.in to produce config.h.
27652 # Create a delimiter string that does not exist in confdefs.h, to ease
27653 # handling of long lines.
27655 for ac_last_try in false false :; do
27656 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27657 if test -z "$ac_t"; then
27659 elif $ac_last_try; then
27660 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
27662 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27666 # For the awk script, D is an array of macro values keyed by name,
27667 # likewise P contains macro parameters if any. Preserve backslash
27668 # newline sequences.
27670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27672 s/.\{148\}/&'"$ac_delim"'/g
27675 s/^[ ]*#[ ]*define[ ][ ]*/ /
27682 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27684 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27689 D["\
1"]=" \
3\\\\\\n
"\\/p
27691 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27696 s/.\{148\}/&'"$ac_delim"'/g
27701 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27704 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27706 ' <confdefs.h | sed '
27707 s/'"$ac_delim"'/"\\\
27708 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27711 for (key in D) D_is_set[key] = 1
27714 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27716 split(line, arg, " ")
27717 if (arg[1] == "#") {
27721 defundef
= substr
(arg
[1], 2)
27724 split(mac1
, mac2
, "(") #)
27726 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27727 if (D_is_set
[macro
]) {
27728 # Preserve the white space surrounding the "#".
27729 print prefix
"define", macro P
[macro
] D
[macro
]
27732 # Replace #undef with comments. This is necessary, for example,
27733 # in the case of _POSIX_SOURCE, which is predefined and required
27734 # on some systems where configure will not decide to define it.
27735 if (defundef
== "undef") {
27736 print
"/*", prefix defundef
, macro
, "*/"
27744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27745 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
27746 fi # test -n "$CONFIG_HEADERS"
27749 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27754 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27756 case $ac_mode$ac_tag in
27758 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
27759 :[FH
]-) ac_tag
=-:-;;
27760 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27777 -) ac_f
="$tmp/stdin";;
27778 *) # Look for the file first in the build tree, then in the source tree
27779 # (if the path is not absolute). The absolute path cannot be DOS-style,
27780 # because $ac_f cannot contain `:'.
27784 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27786 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
27788 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27789 as_fn_append ac_file_inputs
" '$ac_f'"
27792 # Let's still pretend it is `configure' which instantiates (i.e., don't
27793 # use $as_me), people would be surprised to read:
27794 # /* config.h. Generated by config.status. */
27795 configure_input
='Generated from '`
27796 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27798 if test x
"$ac_file" != x-
; then
27799 configure_input
="$ac_file. $configure_input"
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27801 $as_echo "$as_me: creating $ac_file" >&6;}
27803 # Neutralize special characters interpreted by sed in replacement strings.
27804 case $configure_input in #(
27805 *\
&* |
*\|
* |
*\\* )
27806 ac_sed_conf_input
=`$as_echo "$configure_input" |
27807 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27808 *) ac_sed_conf_input
=$configure_input;;
27812 *:-:* |
*:-) cat >"$tmp/stdin" \
27813 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
27818 ac_dir
=`$as_dirname -- "$ac_file" ||
27819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27820 X"$ac_file" : 'X\(//\)[^/]' \| \
27821 X"$ac_file" : 'X\(//\)$' \| \
27822 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27823 $as_echo X"$ac_file" |
27824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27828 /^X\(\/\/\)[^/].*/{
27841 as_dir
="$ac_dir"; as_fn_mkdir_p
27845 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27847 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27848 # A ".." for each directory in $ac_dir_suffix.
27849 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27850 case $ac_top_builddir_sub in
27851 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27852 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27855 ac_abs_top_builddir
=$ac_pwd
27856 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27857 # for backward compatibility:
27858 ac_top_builddir
=$ac_top_build_prefix
27861 .
) # We are building in place.
27863 ac_top_srcdir
=$ac_top_builddir_sub
27864 ac_abs_top_srcdir
=$ac_pwd ;;
27865 [\\/]* | ?
:[\\/]* ) # Absolute name.
27866 ac_srcdir
=$srcdir$ac_dir_suffix;
27867 ac_top_srcdir
=$srcdir
27868 ac_abs_top_srcdir
=$srcdir ;;
27869 *) # Relative name.
27870 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27871 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27872 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27874 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27886 # If the template does not know about datarootdir, expand it.
27887 # FIXME: This hack should be removed a few years after 2.60.
27888 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27899 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27900 *datarootdir
*) ac_datarootdir_seen
=yes;;
27901 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27903 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27906 ac_datarootdir_hack='
27907 s&@datadir@&$datadir&g
27908 s&@docdir@&$docdir&g
27909 s&@infodir@&$infodir&g
27910 s&@localedir@&$localedir&g
27911 s&@mandir@&$mandir&g
27912 s&\\\${datarootdir}&$datarootdir&g' ;;
27916 # Neutralize VPATH when `$srcdir' = `.'.
27917 # Shell code in configure.ac might set extrasub.
27918 # FIXME: do we really want to maintain this feature?
27919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27920 ac_sed_extra="$ac_vpsub
27923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27925 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27926 s|@configure_input@|
$ac_sed_conf_input|
;t t
27927 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27928 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27929 s
&@srcdir@
&$ac_srcdir&;t t
27930 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27931 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27932 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27933 s
&@builddir@
&$ac_builddir&;t t
27934 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27935 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27936 $ac_datarootdir_hack
27938 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27939 if $ac_cs_awk_getline; then
27940 $AWK -f "$tmp/subs.
awk"
27942 $AWK -f "$tmp/subs.
awk" | $SHELL
27944 || as_fn_error "could not create
$ac_file" "$LINENO" 5
27946 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27947 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27948 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27950 which seems to be undefined. Please make sure it is defined." >&5
27951 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27952 which seems to be undefined. Please make sure it is defined." >&2;}
27956 -) cat "$tmp/out" && rm -f "$tmp/out";;
27957 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27959 || as_fn_error "could not create $ac_file" "$LINENO" 5
27965 if test x"$ac_file" != x-; then
27967 $as_echo "/* $configure_input */" \
27968 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27969 } >"$tmp/config.h" \
27970 || as_fn_error "could not create $ac_file" "$LINENO" 5
27971 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27973 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27976 mv "$tmp/config.h" "$ac_file" \
27977 || as_fn_error "could not create $ac_file" "$LINENO" 5
27980 $as_echo "/* $configure_input */" \
27981 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27982 || as_fn_error "could not create -" "$LINENO" 5
27986 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27987 $as_echo "$as_me: executing $ac_file commands" >&6;}
27992 case $ac_file$ac_mode in
27993 "as":F) chmod +x as ;;
27994 "collect-ld":F) chmod +x collect-ld ;;
27995 "nm":F) chmod +x nm ;;
27997 case ${CONFIG_HEADERS} in
27998 *auto-host.h:config.in*)
28001 # Make sure all the subdirs exist.
28002 for d in $subdirs doc build c-family
28004 test -d $d || mkdir $d
28014 ac_clean_files=$ac_clean_files_save
28016 test $ac_write_fail = 0 ||
28017 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28020 # configure is writing to config.log, and then calls config.status.
28021 # config.status does its own redirection, appending to config.log.
28022 # Unfortunately, on DOS this fails, as config.log is still kept open
28023 # by configure, so config.status won't be able to
write to it
; its
28024 # output is simply discarded. So we exec the FD to /dev/null,
28025 # effectively closing config.log, so it can be properly (re)opened and
28026 # appended to by config.status. When coming back to configure, we
28027 # need to make the FD available again.
28028 if test "$no_create" != yes; then
28030 ac_config_status_args
=
28031 test "$silent" = yes &&
28032 ac_config_status_args
="$ac_config_status_args --quiet"
28034 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28037 # would make configure fail if this is the last instruction.
28038 $ac_cs_success || as_fn_exit $?
28040 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28042 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}