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
626 common_out_object_file
642 gcc_gxx_include_dir_add_sysroot
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
652 TM_MULTILIB_EXCEPTIONS_CONFIG
661 build_xm_include_list
663 build_install_headers_dir
665 all_selected_languages
683 ORIGINAL_NM_FOR_TARGET
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 ORIGINAL_AS_FOR_TARGET
730 NATIVE_SYSTEM_HEADER_DIR
766 CROSS_SYSTEM_HEADER_DIR
767 TARGET_SYSTEM_ROOT_DEFINE
769 SYSROOT_CFLAGS_FOR_TARGET
779 valgrind_path_defines
852 program_transform_name
863 ac_subst_files
='option_includes
866 enable_option_checking
871 enable_generated_files_in_srcdir
878 enable_build_format_warnings
882 enable_gather_detailed_mem_stats
894 with_native_system_header_dir
904 enable_sjlj_exceptions
906 enable_leading_mingw64_underscores
909 enable_win32_registry
915 enable_gnu_indirect_function
916 enable_initfini_array
918 enable_gnu_unique_object
919 enable_linker_build_id
923 enable_maintainer_mode
925 enable_version_specific_runtime_libs
928 enable_libquadmath_support
929 with_linker_hash_style
931 ac_precious_vars
='build_alias
952 # Initialize some variables set by options.
954 ac_init_version
=false
955 ac_unrecognized_opts
=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
966 program_transform_name
=s
,x
,x
,
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir
='${exec_prefix}/bin'
981 sbindir
='${exec_prefix}/sbin'
982 libexecdir
='${exec_prefix}/libexec'
983 datarootdir
='${prefix}/share'
984 datadir
='${datarootdir}'
985 sysconfdir
='${prefix}/etc'
986 sharedstatedir
='${prefix}/com'
987 localstatedir
='${prefix}/var'
988 includedir
='${prefix}/include'
989 oldincludedir
='/usr/include'
990 docdir
='${datarootdir}/doc/${PACKAGE}'
991 infodir
='${datarootdir}/info'
996 libdir
='${exec_prefix}/lib'
997 localedir
='${datarootdir}/locale'
998 mandir
='${datarootdir}/man'
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\
$ac_option
1012 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016 # Accept the important Cygnus configure options, so we can diagnose typos.
1018 case $ac_dashdash$ac_option in
1022 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1024 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1025 bindir
=$ac_optarg ;;
1027 -build |
--build |
--buil |
--bui |
--bu)
1028 ac_prev
=build_alias
;;
1029 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1030 build_alias
=$ac_optarg ;;
1032 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1033 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1034 ac_prev
=cache_file
;;
1035 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1036 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1037 cache_file
=$ac_optarg ;;
1039 --config-cache |
-C)
1040 cache_file
=config.cache
;;
1042 -datadir |
--datadir |
--datadi |
--datad)
1044 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1045 datadir
=$ac_optarg ;;
1047 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1048 |
--dataroo |
--dataro |
--datar)
1049 ac_prev
=datarootdir
;;
1050 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1051 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1052 datarootdir
=$ac_optarg ;;
1054 -disable-* |
--disable-*)
1055 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1058 as_fn_error
"invalid feature name: $ac_useropt"
1059 ac_useropt_orig
=$ac_useropt
1060 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_
$ac_useropt"
1065 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066 ac_unrecognized_sep
=', ';;
1068 eval enable_
$ac_useropt=no
;;
1070 -docdir |
--docdir |
--docdi |
--doc |
--do)
1072 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1073 docdir
=$ac_optarg ;;
1075 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1077 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1078 dvidir
=$ac_optarg ;;
1080 -enable-* |
--enable-*)
1081 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1084 as_fn_error
"invalid feature name: $ac_useropt"
1085 ac_useropt_orig
=$ac_useropt
1086 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1089 "enable_
$ac_useropt"
1091 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092 ac_unrecognized_sep
=', ';;
1094 eval enable_
$ac_useropt=\
$ac_optarg ;;
1096 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1097 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1098 |
--exec |
--exe |
--ex)
1099 ac_prev
=exec_prefix
;;
1100 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1101 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1102 |
--exec=* |
--exe=* |
--ex=*)
1103 exec_prefix
=$ac_optarg ;;
1105 -gas |
--gas |
--ga |
--g)
1106 # Obsolete; use --with-gas.
1109 -help |
--help |
--hel |
--he |
-h)
1110 ac_init_help
=long
;;
1111 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1112 ac_init_help
=recursive
;;
1113 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1114 ac_init_help
=short
;;
1116 -host |
--host |
--hos |
--ho)
1117 ac_prev
=host_alias
;;
1118 -host=* |
--host=* |
--hos=* |
--ho=*)
1119 host_alias
=$ac_optarg ;;
1121 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1123 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1125 htmldir
=$ac_optarg ;;
1127 -includedir |
--includedir |
--includedi |
--included |
--include \
1128 |
--includ |
--inclu |
--incl |
--inc)
1129 ac_prev
=includedir
;;
1130 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1131 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1132 includedir
=$ac_optarg ;;
1134 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1136 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1137 infodir
=$ac_optarg ;;
1139 -libdir |
--libdir |
--libdi |
--libd)
1141 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1142 libdir
=$ac_optarg ;;
1144 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1145 |
--libexe |
--libex |
--libe)
1146 ac_prev
=libexecdir
;;
1147 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1148 |
--libexe=* |
--libex=* |
--libe=*)
1149 libexecdir
=$ac_optarg ;;
1151 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1152 ac_prev
=localedir
;;
1153 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1154 localedir
=$ac_optarg ;;
1156 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1157 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1158 ac_prev
=localstatedir
;;
1159 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1160 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1161 localstatedir
=$ac_optarg ;;
1163 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1165 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1166 mandir
=$ac_optarg ;;
1168 -nfp |
--nfp |
--nf)
1169 # Obsolete; use --without-fp.
1172 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1173 |
--no-cr |
--no-c |
-n)
1176 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1177 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1180 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1181 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1182 |
--oldin |
--oldi |
--old |
--ol |
--o)
1183 ac_prev
=oldincludedir
;;
1184 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1185 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1186 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1187 oldincludedir
=$ac_optarg ;;
1189 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1191 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1192 prefix
=$ac_optarg ;;
1194 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1195 |
--program-pre |
--program-pr |
--program-p)
1196 ac_prev
=program_prefix
;;
1197 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1198 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1199 program_prefix
=$ac_optarg ;;
1201 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1202 |
--program-suf |
--program-su |
--program-s)
1203 ac_prev
=program_suffix
;;
1204 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1205 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1206 program_suffix
=$ac_optarg ;;
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 ac_prev
=program_transform_name
;;
1216 -program-transform-name=* |
--program-transform-name=* \
1217 |
--program-transform-nam=* |
--program-transform-na=* \
1218 |
--program-transform-n=* |
--program-transform-=* \
1219 |
--program-transform=* |
--program-transfor=* \
1220 |
--program-transfo=* |
--program-transf=* \
1221 |
--program-trans=* |
--program-tran=* \
1222 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1223 program_transform_name
=$ac_optarg ;;
1225 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1227 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1228 pdfdir
=$ac_optarg ;;
1230 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1232 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1235 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1236 |
-silent |
--silent |
--silen |
--sile |
--sil)
1239 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1241 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1243 sbindir
=$ac_optarg ;;
1245 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1246 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1247 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1249 ac_prev
=sharedstatedir
;;
1250 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1251 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1252 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1254 sharedstatedir
=$ac_optarg ;;
1256 -site |
--site |
--sit)
1258 -site=* |
--site=* |
--sit=*)
1261 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1263 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1264 srcdir
=$ac_optarg ;;
1266 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1267 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1268 ac_prev
=sysconfdir
;;
1269 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1270 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1271 sysconfdir
=$ac_optarg ;;
1273 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1274 ac_prev
=target_alias
;;
1275 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1276 target_alias
=$ac_optarg ;;
1278 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1281 -version |
--version |
--versio |
--versi |
--vers |
-V)
1282 ac_init_version
=: ;;
1285 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1288 as_fn_error
"invalid package name: $ac_useropt"
1289 ac_useropt_orig
=$ac_useropt
1290 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1295 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296 ac_unrecognized_sep
=', ';;
1298 eval with_
$ac_useropt=\
$ac_optarg ;;
1300 -without-* |
--without-*)
1301 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1304 as_fn_error
"invalid package name: $ac_useropt"
1305 ac_useropt_orig
=$ac_useropt
1306 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1311 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312 ac_unrecognized_sep
=', ';;
1314 eval with_
$ac_useropt=no
;;
1317 # Obsolete; use --with-x.
1320 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1321 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1322 ac_prev
=x_includes
;;
1323 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1324 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1325 x_includes
=$ac_optarg ;;
1327 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1328 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1329 ac_prev
=x_libraries
;;
1330 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1331 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1332 x_libraries
=$ac_optarg ;;
1334 -*) as_fn_error
"unrecognized option: \`$ac_option'
1335 Try \`$0 --help' for more information."
1339 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1340 # Reject names that are not valid shell variable names.
1341 case $ac_envvar in #(
1342 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1343 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1345 eval $ac_envvar=\
$ac_optarg
1346 export $ac_envvar ;;
1349 # FIXME: should be removed in autoconf 3.0.
1350 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1352 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1359 if test -n "$ac_prev"; then
1360 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1361 as_fn_error
"missing argument to $ac_option"
1364 if test -n "$ac_unrecognized_opts"; then
1365 case $enable_option_checking in
1367 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1368 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372 # Check all directory arguments for consistency.
1373 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374 datadir sysconfdir sharedstatedir localstatedir includedir \
1375 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376 libdir localedir mandir
1378 eval ac_val
=\$
$ac_var
1379 # Remove trailing slashes.
1382 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383 eval $ac_var=\
$ac_val;;
1385 # Be sure to have absolute directory names.
1387 [\\/$
]* | ?
:[\\/]* ) continue;;
1388 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1390 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1393 # There might be people who depend on the old broken behavior: `$host'
1394 # used to hold the argument of --host etc.
1395 # FIXME: To remove some day.
1398 target
=$target_alias
1400 # FIXME: To remove some day.
1401 if test "x$host_alias" != x
; then
1402 if test "x$build_alias" = x
; then
1403 cross_compiling
=maybe
1404 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1405 If a cross compiler is detected then cross compile mode will be used." >&2
1406 elif test "x$build_alias" != "x$host_alias"; then
1412 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1414 test "$silent" = yes && exec 6>/dev
/null
1417 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1418 ac_ls_di
=`ls -di .` &&
1419 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1420 as_fn_error
"working directory cannot be determined"
1421 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1422 as_fn_error
"pwd does not report name of working directory"
1425 # Find the source files, if location was not specified.
1426 if test -z "$srcdir"; then
1427 ac_srcdir_defaulted
=yes
1428 # Try the directory containing this script, then the parent directory.
1429 ac_confdir
=`$as_dirname -- "$as_myself" ||
1430 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1431 X"$as_myself" : 'X\(//\)[^/]' \| \
1432 X"$as_myself" : 'X\(//\)$' \| \
1433 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1434 $as_echo X"$as_myself" |
1435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1457 ac_srcdir_defaulted
=no
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1461 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1463 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1467 # When building in place, set srcdir=.
1468 if test "$ac_abs_confdir" = "$ac_pwd"; then
1471 # Remove unnecessary trailing slashes from srcdir.
1472 # Double slashes in file names in object file debugging info
1473 # mess up M-x gdb in Emacs.
1475 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 for ac_var
in $ac_precious_vars; do
1478 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1479 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1480 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1481 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1485 # Report the --help message.
1487 if test "$ac_init_help" = "long"; then
1488 # Omit some internal or obsolete options to make the list less imposing.
1489 # This message is too long to be a string in the A/UX 3.1 sh.
1491 \`configure' configures this package to adapt to many kinds of systems.
1493 Usage: $0 [OPTION]... [VAR=VALUE]...
1495 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496 VAR=VALUE. See below for descriptions of some of the useful variables.
1498 Defaults for the options are specified in brackets.
1501 -h, --help display this help and exit
1502 --help=short display options specific to this package
1503 --help=recursive display the short help of all the included packages
1504 -V, --version display version information and exit
1505 -q, --quiet, --silent do not print \`checking...' messages
1506 --cache-file=FILE cache test results in FILE [disabled]
1507 -C, --config-cache alias for \`--cache-file=config.cache'
1508 -n, --no-create do not create output files
1509 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511 Installation directories:
1512 --prefix=PREFIX install architecture-independent files in PREFIX
1513 [$ac_default_prefix]
1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1517 By default, \`make install' will install all the files in
1518 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1519 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520 for instance \`--prefix=\$HOME'.
1522 For better control, use the options below.
1524 Fine tuning of the installation directories:
1525 --bindir=DIR user executables [EPREFIX/bin]
1526 --sbindir=DIR system admin executables [EPREFIX/sbin]
1527 --libexecdir=DIR program executables [EPREFIX/libexec]
1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1531 --libdir=DIR object code libraries [EPREFIX/lib]
1532 --includedir=DIR C header files [PREFIX/include]
1533 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1534 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1535 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1536 --infodir=DIR info documentation [DATAROOTDIR/info]
1537 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1538 --mandir=DIR man documentation [DATAROOTDIR/man]
1539 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1540 --htmldir=DIR html documentation [DOCDIR]
1541 --dvidir=DIR dvi documentation [DOCDIR]
1542 --pdfdir=DIR pdf documentation [DOCDIR]
1543 --psdir=DIR ps documentation [DOCDIR]
1549 --program-prefix=PREFIX prepend PREFIX to installed program names
1550 --program-suffix=SUFFIX append SUFFIX to installed program names
1551 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1554 --build=BUILD configure
for building on BUILD
[guessed
]
1555 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1556 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1560 if test -n "$ac_init_help"; then
1565 --disable-option-checking ignore unrecognized
--enable/--with options
1566 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1567 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1568 --enable-generated-files-in-srcdir
1569 put copies of generated files
in source dir intended
1570 for creating
source tarballs
for users without
1571 texinfo bison or flex
1572 --disable-largefile omit support
for large files
1573 --disable-build-format-warnings
1574 don
't use -Wformat while building GCC
1575 --enable-werror-always enable -Werror despite compiler version
1576 --enable-checking[=LIST]
1577 enable expensive run-time checks. With LIST, enable
1578 only specific categories of checks. Categories are:
1579 yes,no,all,none,release. Flags are:
1580 assert,df,fold,gc,gcac,gimple,misc,
1581 rtlflag,rtl,runtime,tree,valgrind,types
1582 --enable-coverage[=LEVEL]
1583 enable compiler's code coverage collection. Use to
1584 measure compiler performance and
locate unused parts
1585 of the compiler. With LEVEL
, specify optimization.
1586 Values are opt
, noopt
, default is noopt
1587 --enable-gather-detailed-mem-stats
1588 enable detailed memory allocation stats gathering
1589 --enable-multilib enable library support
for multiple ABIs
1590 --enable-multiarch enable support
for multiarch paths
1591 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1592 --enable-decimal-float={no
,yes,bid
,dpd
}
1593 enable decimal float extension to C. Selecting
'bid'
1594 or
'dpd' choses
which decimal floating point format
1596 --enable-fixed-point enable fixed-point arithmetic extension to C
1597 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1599 --enable-tls enable or disable generation of tls code overriding
1600 the assembler check
for tls support
1601 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1602 GNU Objective-C runtime
1603 --disable-shared don't provide a shared libgcc
1604 --enable-languages=LIST specify
which front-ends to build
1605 --disable-rpath do not hardcode runtime library paths
1606 --enable-sjlj-exceptions
1607 arrange to use setjmp
/longjmp exception handling
1608 --enable-secureplt enable -msecure-plt by default
for PowerPC
1609 --enable-leading-mingw64-underscores
1610 enable leading underscores on
64 bit mingw targets
1611 --enable-cld enable -mcld by default
for 32bit x86
1612 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1614 --disable-win32-registry
1615 disable lookup of installation paths
in the Registry
1617 --enable-win32-registry enable registry lookup
(default
)
1618 --enable-win32-registry=KEY
1619 use KEY instead of GCC version as the last portion
1621 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1622 --enable-static[=PKGS
] build static libraries
[default
=yes]
1623 --enable-fast-install[=PKGS
]
1624 optimize
for fast installation
[default
=yes]
1625 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1626 --enable-gnu-indirect-function
1627 enable the use of the @gnu_indirect_function to
1629 --enable-initfini-array use .init_array
/.fini_array sections
1630 --enable-comdat enable COMDAT group support
1631 --enable-gnu-unique-object
1632 enable the use of the @gnu_unique_object ELF
1633 extension on glibc systems
1634 --enable-linker-build-id
1635 compiler will always pass
--build-id to linker
1636 --enable-maintainer-mode
1637 enable make rules and dependencies not useful
(and
1638 sometimes confusing
) to the casual installer
1639 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1640 thrashing on the build machine
1641 --enable-version-specific-runtime-libs
1642 specify that runtime libraries should be installed
1643 in a compiler-specific directory
1644 --enable-plugin enable plugin support
1645 --enable-host-shared build
host code as shared libraries
1646 --disable-libquadmath-support
1647 disable libquadmath support
for Fortran
1650 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1651 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1652 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1653 --with-local-prefix=DIR specifies directory to put
local include
1654 --with-gxx-include-dir=DIR
1655 specifies directory to put g
++ header files
1656 --with-cpp-install-dir=DIR
1657 install the user visible C preprocessor
in DIR
1658 (relative to PREFIX
) as well as PREFIX
/bin
1659 --with-gnu-ld arrange to work with GNU ld
1660 --with-ld arrange to use the specified ld
(full pathname
)
1661 --with-demangler-in-ld try to use demangler
in GNU ld
1662 --with-gnu-as arrange to work with GNU as
1663 --with-as arrange to use the specified as
(full pathname
)
1664 --with-stabs arrange to use stabs instead of
host debug format
1665 --with-dwarf2 force the default debug format to be DWARF
2
1666 --with-native-system-header-dir=dir
1667 use dir as the directory to
look for standard
1668 system header files
in. Defaults to
/usr
/include.
1669 --with-build-sysroot=sysroot
1670 use sysroot as the system root during the build
1671 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1672 --with-specs=SPECS add SPECS to driver command-line processing
1673 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1674 --with-bugurl=URL Direct users to URL to report a bug
1675 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1676 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1677 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1678 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1679 --with-pic try to use only PIC/non-PIC objects [default=use
1681 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1682 --with-plugin-ld=[ARG] specify the plugin linker
1683 --with-long-double-128 use 128-bit long double by default
1684 --with-gc={page,zone} this option is not supported anymore. It used to
1685 choose the garbage collection mechanism to use with
1687 --with-system-zlib use installed libz
1688 --with-linker-hash-style={sysv,gnu,both}
1689 specify the linker hash style
1691 Some influential environment variables:
1692 CC C compiler command
1693 CFLAGS C compiler flags
1694 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1695 nonstandard directory <lib dir>
1696 LIBS libraries to pass to the linker, e.g. -l<library>
1697 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1698 you have headers in a nonstandard directory <include dir>
1699 CXX C++ compiler command
1700 CXXFLAGS C++ compiler flags
1702 CXXCPP C++ preprocessor
1703 GMPLIBS How to link GMP
1704 GMPINC How to find GMP include files
1705 ISLLIBS How to link ISL
1706 ISLINC How to find ISL include files
1707 CLOOGLIBS How to link CLOOG
1708 CLOOGINC How to find CLOOG include files
1710 Use these variables to override the choices made by `configure' or to
help
1711 it to
find libraries and programs with nonstandard names
/locations.
1713 Report bugs to the package provider.
1718 if test "$ac_init_help" = "recursive"; then
1719 # If there are subdirs, report their specific --help.
1720 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1721 test -d "$ac_dir" ||
1722 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1727 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1729 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1730 # A ".." for each directory in $ac_dir_suffix.
1731 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1732 case $ac_top_builddir_sub in
1733 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1734 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1737 ac_abs_top_builddir
=$ac_pwd
1738 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1739 # for backward compatibility:
1740 ac_top_builddir
=$ac_top_build_prefix
1743 .
) # We are building in place.
1745 ac_top_srcdir
=$ac_top_builddir_sub
1746 ac_abs_top_srcdir
=$ac_pwd ;;
1747 [\\/]* | ?
:[\\/]* ) # Absolute name.
1748 ac_srcdir
=$srcdir$ac_dir_suffix;
1749 ac_top_srcdir
=$srcdir
1750 ac_abs_top_srcdir
=$srcdir ;;
1752 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1754 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1756 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1758 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1759 # Check for guested configure.
1760 if test -f "$ac_srcdir/configure.gnu"; then
1762 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763 elif test -f "$ac_srcdir/configure"; then
1765 $SHELL "$ac_srcdir/configure" --help=recursive
1767 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1773 test -n "$ac_init_help" && exit $ac_status
1774 if $ac_init_version; then
1777 generated by GNU Autoconf
2.64
1779 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1780 This configure
script is free software
; the Free Software Foundation
1781 gives unlimited permission to copy
, distribute and modify it.
1786 ## ------------------------ ##
1787 ## Autoconf initialization. ##
1788 ## ------------------------ ##
1790 # ac_fn_c_try_compile LINENO
1791 # --------------------------
1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_compile
()
1795 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1796 rm -f conftest.
$ac_objext
1797 if { { ac_try
="$ac_compile"
1799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_compile") 2>conftest.err
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest.$ac_objext; then :
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 } # ac_fn_c_try_compile
1828 # ac_fn_cxx_try_compile LINENO
1829 # ----------------------------
1830 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_cxx_try_compile ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext
1835 if { { ac_try="$ac_compile"
1837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1838 *) ac_try_echo
=$ac_try;;
1840 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_compile") 2>conftest.err
1844 if test -s conftest.err
; then
1845 grep -v '^ *+' conftest.err
>conftest.er1
1846 cat conftest.er1
>&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_cxx_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest.
$ac_objext; then :
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.
$ac_ext >&5
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1864 } # ac_fn_cxx_try_compile
1866 # ac_fn_c_try_cpp LINENO
1867 # ----------------------
1868 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1871 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1872 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } >/dev/null && {
1888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1906 # the include files in INCLUDES and setting the cache variable VAR
1908 ac_fn_c_check_header_mongrel ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1921 # Is the header compilable?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1923 $as_echo_n "checking $2 usability... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 ac_header_compiler=yes
1932 ac_header_compiler=no
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1936 $as_echo "$ac_header_compiler" >&6; }
1938 # Is the header present?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1940 $as_echo_n "checking $2 presence... " >&6; }
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1945 if ac_fn_c_try_cpp "$LINENO"; then :
1946 ac_header_preproc=yes
1948 ac_header_preproc=no
1950 rm -f conftest.err conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1952 $as_echo "$ac_header_preproc" >&6; }
1954 # So? What about this header?
1955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1958 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1964 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1966 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1968 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1970 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978 $as_echo_n "(cached) " >&6
1980 eval "$3=\$ac_header_compiler"
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988 } # ac_fn_c_check_header_mongrel
1990 # ac_fn_c_try_run LINENO
1991 # ----------------------
1992 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1993 # that executables *can* be run.
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 if { { ac_try="$ac_link"
1999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2000 *) ac_try_echo
=$ac_try;;
2002 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004 (eval "$ac_link") 2>&5
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2008 { { case "(($ac_try" in
2009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_try") 2>&5
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; }; }; then :
2020 $as_echo "$as_me: program exited with status $ac_status" >&5
2021 $as_echo "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.$ac_ext >&5
2024 ac_retval=$ac_status
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2033 # -------------------------------------------------------
2034 # Tests whether HEADER exists and can be compiled using the include files in
2035 # INCLUDES, setting the cache variable VAR accordingly.
2036 ac_fn_c_check_header_compile ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 $as_echo_n "(cached) " >&6
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2049 if ac_fn_c_try_compile "$LINENO"; then :
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061 } # ac_fn_c_check_header_compile
2063 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2064 # --------------------------------------------
2065 # Tries to find the compile-time value of EXPR in a program that includes
2066 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2068 ac_fn_c_compute_int ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if test "$cross_compiling" = yes; then
2072 # Depending upon the size, compute the lo and hi bounds.
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2079 static int test_array [1 - 2 * !(($2) >= 0)];
2086 if ac_fn_c_try_compile "$LINENO"; then :
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_hi=$ac_mid; break
2105 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2106 if test $ac_lo -le $ac_mid; then
2110 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) < 0)];
2128 if ac_fn_c_try_compile "$LINENO"; then :
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2137 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 ac_lo=$ac_mid; break
2147 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2148 if test $ac_mid -le $ac_hi; then
2152 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 # Binary search between lo and hi bounds.
2163 while test "x$ac_lo" != "x$ac_hi"; do
2164 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2171 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2178 if ac_fn_c_try_compile "$LINENO"; then :
2181 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2193 static long int longval () { return $2; }
2194 static unsigned long int ulongval () { return $2; }
2201 FILE *f = fopen ("conftest.val", "w");
2206 long int i = longval ();
2209 fprintf (f, "%ld", i);
2213 unsigned long int i = ulongval ();
2216 fprintf (f, "%lu", i);
2218 /* Do not output a trailing newline, as this causes \r\n confusion
2219 on some platforms. */
2220 return ferror (f) || fclose (f) != 0;
2226 if ac_fn_c_try_run "$LINENO"; then :
2227 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2232 conftest.$ac_objext conftest.beam conftest.$ac_ext
2236 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2239 } # ac_fn_c_compute_int
2241 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2242 # -------------------------------------------
2243 # Tests whether TYPE exists after having included INCLUDES, setting cache
2244 # variable VAR accordingly.
2245 ac_fn_c_check_type ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2251 $as_echo_n "(cached) " >&6
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2279 if ac_fn_c_try_compile "$LINENO"; then :
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2293 } # ac_fn_c_check_type
2295 # ac_fn_c_find_intX_t LINENO BITS VAR
2296 # -----------------------------------
2297 # Finds a signed integer type with width BITS, setting cache variable VAR
2299 ac_fn_c_find_intX_t ()
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2303 $as_echo_n "checking for int$2_t... " >&6; }
2304 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 $as_echo_n "(cached) " >&6
2308 for ac_type in int$2_t 'int' 'long int' \
2309 'long long int' 'short int' 'signed char'; do
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $ac_includes_default
2316 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2326 $ac_includes_default
2330 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2331 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2338 if ac_fn_c_try_compile "$LINENO"; then :
2345 eval "$3=\$ac_type" ;;
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 if test "x$as_val" = x""no; then :
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364 } # ac_fn_c_find_intX_t
2366 # ac_fn_c_try_link LINENO
2367 # -----------------------
2368 # Try to link conftest.$ac_ext, and return whether this succeeded.
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 rm -f conftest.$ac_objext conftest$ac_exeext
2373 if { { ac_try="$ac_link"
2375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2376 *) ac_try_echo
=$ac_try;;
2378 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_link") 2>conftest.err
2382 if test -s conftest.err
; then
2383 grep -v '^ *+' conftest.err
>conftest.er1
2384 cat conftest.er1
>&5
2385 mv -f conftest.er1 conftest.err
2387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388 test $ac_status = 0; } && {
2389 test -z "$ac_c_werror_flag" ||
2390 test ! -s conftest.err
2391 } && test -s conftest
$ac_exeext && {
2392 test "$cross_compiling" = yes ||
2393 $as_test_x conftest
$ac_exeext
2397 $as_echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.
$ac_ext >&5
2402 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2403 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2404 # interfere with the next link command; also delete a directory that is
2405 # left behind by Apple's compiler. We do this before executing the actions.
2406 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2407 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2410 } # ac_fn_c_try_link
2412 # ac_fn_c_find_uintX_t LINENO BITS VAR
2413 # ------------------------------------
2414 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2416 ac_fn_c_find_uintX_t
()
2418 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2420 $as_echo_n "checking for uint$2_t... " >&6; }
2421 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2422 $as_echo_n "(cached) " >&6
2425 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2426 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $ac_includes_default
2433 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2440 if ac_fn_c_try_compile
"$LINENO"; then :
2445 eval "$3=\$ac_type" ;;
2448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2450 if test "x$as_val" = x
""no
; then :
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2462 } # ac_fn_c_find_uintX_t
2464 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2465 # ----------------------------------------------
2466 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2467 ac_fn_c_check_header_preproc
()
2469 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2473 $as_echo_n "(cached) " >&6
2475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2479 if ac_fn_c_try_cpp
"$LINENO"; then :
2484 rm -f conftest.err conftest.
$ac_ext
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2491 } # ac_fn_c_check_header_preproc
2493 # ac_fn_cxx_try_cpp LINENO
2494 # ------------------------
2495 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2496 ac_fn_cxx_try_cpp
()
2498 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2499 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2508 if test -s conftest.err; then
2509 grep -v '^ *+' conftest.err >conftest.er1
2510 cat conftest.er1 >&5
2511 mv -f conftest.er1 conftest.err
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; } >/dev/null && {
2515 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2516 test ! -s conftest.err
2520 $as_echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2525 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2528 } # ac_fn_cxx_try_cpp
2530 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2531 # ------------------------------------------------
2532 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2533 ac_fn_cxx_check_header_preproc ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2537 $as_echo_n "checking for $2... " >&6; }
2538 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2539 $as_echo_n "(cached) " >&6
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2545 if ac_fn_cxx_try_cpp "$LINENO"; then :
2550 rm -f conftest.err conftest.$ac_ext
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557 } # ac_fn_cxx_check_header_preproc
2559 # ac_fn_c_check_func LINENO FUNC VAR
2560 # ----------------------------------
2561 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2562 ac_fn_c_check_func ()
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2566 $as_echo_n "checking for $2... " >&6; }
2567 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2568 $as_echo_n "(cached) " >&6
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2572 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2574 #define $2 innocuous_$2
2576 /* System header to define __stub macros and hopefully few prototypes,
2577 which can conflict with char $2 (); below.
2578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2579 <limits.h> exists even on freestanding compilers. */
2582 # include <limits.h>
2584 # include <assert.h>
2589 /* Override any GCC internal prototype to avoid an error.
2590 Use char because int might match the return type of a GCC
2591 builtin and then its argument prototype would still apply. */
2596 /* The GNU C library defines this for functions which it implements
2597 to always fail with ENOSYS. Some functions are actually named
2598 something starting with __ and the normal name is an alias. */
2599 #if defined __stub_$2 || defined __stub___$2
2611 if ac_fn_c_try_link "$LINENO"; then :
2616 rm -f core conftest.err conftest.$ac_objext \
2617 conftest$ac_exeext conftest.$ac_ext
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2624 } # ac_fn_c_check_func
2626 # ac_fn_cxx_try_link LINENO
2627 # -------------------------
2628 # Try to link conftest.$ac_ext, and return whether this succeeded.
2629 ac_fn_cxx_try_link ()
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 rm -f conftest.$ac_objext conftest$ac_exeext
2633 if { { ac_try="$ac_link"
2635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2636 *) ac_try_echo
=$ac_try;;
2638 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639 $as_echo "$ac_try_echo"; } >&5
2640 (eval "$ac_link") 2>conftest.err
2642 if test -s conftest.err
; then
2643 grep -v '^ *+' conftest.err
>conftest.er1
2644 cat conftest.er1
>&5
2645 mv -f conftest.er1 conftest.err
2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648 test $ac_status = 0; } && {
2649 test -z "$ac_cxx_werror_flag" ||
2650 test ! -s conftest.err
2651 } && test -s conftest
$ac_exeext && {
2652 test "$cross_compiling" = yes ||
2653 $as_test_x conftest
$ac_exeext
2657 $as_echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.
$ac_ext >&5
2662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2664 # interfere with the next link command; also delete a directory that is
2665 # left behind by Apple's compiler. We do this before executing the actions.
2666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2667 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2670 } # ac_fn_cxx_try_link
2671 cat >config.log
<<_ACEOF
2672 This file contains any messages produced by compilers while
2673 running configure, to aid debugging if configure makes a mistake.
2675 It was created by $as_me, which was
2676 generated by GNU Autoconf 2.64. Invocation command line was
2688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir
=.
2712 $as_echo "PATH: $as_dir"
2728 # Keep a trace of the command line.
2729 # Strip out --no-create and --no-recursion so they do not pile up.
2730 # Strip out --silent because we don't want to record it for future runs.
2731 # Also quote any args containing shell meta-characters.
2732 # Make two passes to allow for proper duplicate-argument suppression.
2736 ac_must_keep_next
=false
2742 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2743 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2744 |
-silent |
--silent |
--silen |
--sile |
--sil)
2747 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2750 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2752 as_fn_append ac_configure_args1
" '$ac_arg'"
2753 if test $ac_must_keep_next = true
; then
2754 ac_must_keep_next
=false
# Got value, back to normal.
2757 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2758 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2759 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2760 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2761 case "$ac_configure_args0 " in
2762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2765 -* ) ac_must_keep_next
=true
;;
2768 as_fn_append ac_configure_args
" '$ac_arg'"
2773 { ac_configure_args0
=; unset ac_configure_args0
;}
2774 { ac_configure_args1
=; unset ac_configure_args1
;}
2776 # When interrupted or exit'd, cleanup temporary files, and complete
2777 # config.log. We remove comments because anyway the quotes in there
2778 # would cause problems or look ugly.
2779 # WARNING: Use '\'' to represent an apostrophe within the trap.
2780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2781 trap 'exit_status=$?
2782 # Save into config.log some information that might help in debugging.
2787 ## ---------------- ##
2788 ## Cache variables. ##
2789 ## ---------------- ##
2792 # The following way of writing the cache mishandles newlines in values,
2794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2795 eval ac_val=\$$ac_var
2799 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2800 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2803 _ | IFS | as_nl) ;; #(
2804 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2805 *) { eval $ac_var=; unset $ac_var;} ;;
2810 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2811 *${as_nl}ac_space=\ *)
2813 "s/'\''/'\''\\\\'\'''\''/g;
2814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2825 ## ----------------- ##
2826 ## Output variables. ##
2827 ## ----------------- ##
2830 for ac_var in $ac_subst_vars
2832 eval ac_val=\$$ac_var
2834 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836 $as_echo "$ac_var='\''$ac_val'\''"
2840 if test -n "$ac_subst_files"; then
2842 ## ------------------- ##
2843 ## File substitutions. ##
2844 ## ------------------- ##
2847 for ac_var
in $ac_subst_files
2849 eval ac_val
=\$
$ac_var
2851 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2853 $as_echo "$ac_var='\''$ac_val'\''"
2858 if test -s confdefs.h; then
2868 test "$ac_signal" != 0 &&
2869 $as_echo "$as_me: caught signal $ac_signal"
2870 $as_echo "$as_me: exit $exit_status"
2872 rm -f core *.core core.conftest.* &&
2873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2876 for ac_signal
in 1 2 13 15; do
2877 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2882 rm -f -r conftest
* confdefs.h
2884 $as_echo "/* confdefs.h */" > confdefs.h
2886 # Predefined preprocessor variables.
2888 cat >>confdefs.h
<<_ACEOF
2889 #define PACKAGE_NAME "$PACKAGE_NAME"
2892 cat >>confdefs.h
<<_ACEOF
2893 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2896 cat >>confdefs.h
<<_ACEOF
2897 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2900 cat >>confdefs.h
<<_ACEOF
2901 #define PACKAGE_STRING "$PACKAGE_STRING"
2904 cat >>confdefs.h
<<_ACEOF
2905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2908 cat >>confdefs.h
<<_ACEOF
2909 #define PACKAGE_URL "$PACKAGE_URL"
2913 # Let the site file select an alternate cache file if it wants to.
2914 # Prefer an explicitly selected file to automatically selected ones.
2917 if test -n "$CONFIG_SITE"; then
2918 ac_site_file1
=$CONFIG_SITE
2919 elif test "x$prefix" != xNONE
; then
2920 ac_site_file1
=$prefix/share
/config.site
2921 ac_site_file2
=$prefix/etc
/config.site
2923 ac_site_file1
=$ac_default_prefix/share
/config.site
2924 ac_site_file2
=$ac_default_prefix/etc
/config.site
2926 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2928 test "x$ac_site_file" = xNONE
&& continue
2929 if test -r "$ac_site_file"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2931 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2932 sed 's/^/| /' "$ac_site_file" >&5
2937 if test -r "$cache_file"; then
2938 # Some versions of bash will fail to source /dev/null (special
2939 # files actually), so we avoid doing that.
2940 if test -f "$cache_file"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2942 $as_echo "$as_me: loading cache $cache_file" >&6;}
2944 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2945 *) .
"./$cache_file";;
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2950 $as_echo "$as_me: creating cache $cache_file" >&6;}
2954 # Check that the precious variables saved in the cache have kept the same
2956 ac_cache_corrupted
=false
2957 for ac_var
in $ac_precious_vars; do
2958 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2959 eval ac_new_set
=\
$ac_env_${ac_var}_set
2960 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2961 eval ac_new_val
=\
$ac_env_${ac_var}_value
2962 case $ac_old_set,$ac_new_set in
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2965 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2966 ac_cache_corrupted
=: ;;
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2969 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2970 ac_cache_corrupted
=: ;;
2973 if test "x$ac_old_val" != "x$ac_new_val"; then
2974 # differences in whitespace do not lead to failure.
2975 ac_old_val_w
=`echo x $ac_old_val`
2976 ac_new_val_w
=`echo x $ac_new_val`
2977 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2979 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2980 ac_cache_corrupted
=:
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2983 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2984 eval $ac_var=\
$ac_old_val
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2987 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2989 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2992 # Pass precious variables to config.status.
2993 if test "$ac_new_set" = set; then
2995 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2996 *) ac_arg
=$ac_var=$ac_new_val ;;
2998 case " $ac_configure_args " in
2999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3000 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3004 if $ac_cache_corrupted; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3008 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3009 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3011 ## -------------------- ##
3012 ## Main body of script. ##
3013 ## -------------------- ##
3016 ac_cpp
='$CPP $CPPFLAGS'
3017 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3026 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3029 gcc_version
=`cat $srcdir/BASE-VER`
3031 # Determine the host, build, and target systems
3033 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3034 for ac_t
in install-sh
install.sh shtool
; do
3035 if test -f "$ac_dir/$ac_t"; then
3037 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3042 if test -z "$ac_aux_dir"; then
3043 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3046 # These three variables are undocumented and unsupported,
3047 # and are intended to be withdrawn in a future Autoconf release.
3048 # They can cause serious problems if a builder's source tree is in a directory
3049 # whose full name contains unusual characters.
3050 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3051 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3052 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3055 # Make sure we can run config.sub.
3056 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3057 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3060 $as_echo_n "checking build system type... " >&6; }
3061 if test "${ac_cv_build+set}" = set; then :
3062 $as_echo_n "(cached) " >&6
3064 ac_build_alias
=$build_alias
3065 test "x$ac_build_alias" = x
&&
3066 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3067 test "x$ac_build_alias" = x
&&
3068 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3069 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3070 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3074 $as_echo "$ac_cv_build" >&6; }
3075 case $ac_cv_build in
3077 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3080 ac_save_IFS
=$IFS; IFS
='-'
3086 # Remember, the first character of IFS is used to create $*,
3087 # except with old shells:
3090 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3094 $as_echo_n "checking host system type... " >&6; }
3095 if test "${ac_cv_host+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
3098 if test "x$host_alias" = x
; then
3099 ac_cv_host
=$ac_cv_build
3101 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3102 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3107 $as_echo "$ac_cv_host" >&6; }
3110 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3113 ac_save_IFS
=$IFS; IFS
='-'
3119 # Remember, the first character of IFS is used to create $*,
3120 # except with old shells:
3123 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3127 $as_echo_n "checking target system type... " >&6; }
3128 if test "${ac_cv_target+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3131 if test "x$target_alias" = x
; then
3132 ac_cv_target
=$ac_cv_host
3134 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3135 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3140 $as_echo "$ac_cv_target" >&6; }
3141 case $ac_cv_target in
3143 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3145 target
=$ac_cv_target
3146 ac_save_IFS
=$IFS; IFS
='-'
3152 # Remember, the first character of IFS is used to create $*,
3153 # except with old shells:
3156 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3159 # The aliases save the names the user supplied, while $host etc.
3160 # will get canonicalized.
3161 test -n "$target_alias" &&
3162 test "$program_prefix$program_suffix$program_transform_name" = \
3164 program_prefix
=${target_alias}-
3166 # Determine the noncanonical target name, for directory use.
3167 case ${build_alias} in
3168 "") build_noncanonical
=${build} ;;
3169 *) build_noncanonical
=${build_alias} ;;
3172 case ${host_alias} in
3173 "") host_noncanonical
=${build_noncanonical} ;;
3174 *) host_noncanonical
=${host_alias} ;;
3177 case ${target_alias} in
3178 "") target_noncanonical
=${host_noncanonical} ;;
3179 *) target_noncanonical
=${target_alias} ;;
3185 # Determine the target- and build-specific subdirectories
3187 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3188 # have matching libraries, they should use host libraries: Makefile.tpl
3189 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3190 # However, they still use the build modules, because the corresponding
3191 # host modules (e.g. bison) are only built for the host when bootstrap
3193 # - build_subdir is where we find build modules, and never changes.
3194 # - build_libsubdir is where we find build libraries, and can be overridden.
3196 # Prefix 'build-' so this never conflicts with target_subdir.
3197 build_subdir
="build-${build_noncanonical}"
3199 # Check whether --with-build-libsubdir was given.
3200 if test "${with_build_libsubdir+set}" = set; then :
3201 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3203 build_libsubdir
="$build_subdir"
3206 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3207 if ( test $srcdir = .
&& test -d gcc
) \
3208 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3209 host_subdir
="host-${host_noncanonical}"
3214 target_subdir
=${target_noncanonical}
3217 # Set program_transform_name
3218 test "$program_prefix" != NONE
&&
3219 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3220 # Use a double $ so make ignores it.
3221 test "$program_suffix" != NONE
&&
3222 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3223 # Double any \ or $.
3224 # By default was `s,x,x', remove it if useless.
3225 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3226 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3229 # Check for bogus environment variables.
3230 # Test if LIBRARY_PATH contains the notation for the current directory
3231 # since this would lead to problems installing/building glibc.
3232 # LIBRARY_PATH contains the current directory if one of the following
3234 # - one of the terminals (":" and ";") is the first or last sign
3235 # - two terminals occur directly after each other
3236 # - the path contains an element with a dot in it
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3238 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3239 case ${LIBRARY_PATH} in
3240 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3241 library_path_setting
="contains current directory"
3244 library_path_setting
="ok"
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3248 $as_echo "$library_path_setting" >&6; }
3249 if test "$library_path_setting" != "ok"; then
3251 *** LIBRARY_PATH shouldn't contain the current directory when
3252 *** building gcc. Please change the environment variable
3253 *** and run configure again." "$LINENO" 5
3256 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3257 # since this would lead to problems installing/building glibc.
3258 # GCC_EXEC_PREFIX contains the current directory if one of the following
3260 # - one of the terminals (":" and ";") is the first or last sign
3261 # - two terminals occur directly after each other
3262 # - the path contains an element with a dot in it
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3264 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3265 case ${GCC_EXEC_PREFIX} in
3266 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3267 gcc_exec_prefix_setting
="contains current directory"
3270 gcc_exec_prefix_setting
="ok"
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3274 $as_echo "$gcc_exec_prefix_setting" >&6; }
3275 if test "$gcc_exec_prefix_setting" != "ok"; then
3277 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3278 *** building gcc. Please change the environment variable
3279 *** and run configure again." "$LINENO" 5
3286 # Specify the local prefix
3289 # Check whether --with-local-prefix was given.
3290 if test "${with_local_prefix+set}" = set; then :
3291 withval
=$with_local_prefix; case "${withval}" in
3292 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3294 *) local_prefix
=$with_local_prefix ;;
3299 # Default local prefix if it is empty
3300 if test x
$local_prefix = x
; then
3301 local_prefix
=/usr
/local
3304 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3305 # passed in by the toplevel make and thus we'd get different behavior
3306 # depending on where we built the sources.
3307 gcc_gxx_include_dir
=
3308 # Specify the g++ header file directory
3310 # Check whether --with-gxx-include-dir was given.
3311 if test "${with_gxx_include_dir+set}" = set; then :
3312 withval
=$with_gxx_include_dir; case "${withval}" in
3313 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3315 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3320 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3321 if test x
${gcc_gxx_include_dir} = x
; then
3322 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3323 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3325 libstdcxx_incdir
='include/c++/$(version)'
3326 if test x
$host != x
$target; then
3327 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3329 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3333 gcc_gxx_include_dir_add_sysroot
=0
3334 if test "${with_sysroot+set}" = set; then
3335 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3336 if test "${gcc_gxx_without_sysroot}"; then
3337 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3338 gcc_gxx_include_dir_add_sysroot
=1
3343 # Check whether --with-cpp_install_dir was given.
3344 if test "${with_cpp_install_dir+set}" = set; then :
3345 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3346 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3347 elif test x
$withval != xno
; then
3348 cpp_install_dir
=$withval
3353 # We would like to our source tree to be readonly. However when releases or
3354 # pre-releases are generated, the flex/bison generated files as well as the
3355 # various formats of manuals need to be included along with the rest of the
3356 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3360 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3361 # Check whether --enable-generated-files-in-srcdir was given.
3362 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3363 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3365 generated_files_in_srcdir
=no
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3370 $as_echo "$generated_files_in_srcdir" >&6; }
3372 if test "$generated_files_in_srcdir" = "yes"; then
3379 # -------------------
3380 # Find default linker
3381 # -------------------
3385 # Check whether --with-gnu-ld was given.
3386 if test "${with_gnu_ld+set}" = set; then :
3387 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3393 # With pre-defined ld
3395 # Check whether --with-ld was given.
3396 if test "${with_ld+set}" = set; then :
3397 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3400 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3401 if test ! -x "$DEFAULT_LINKER"; then
3402 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3403 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3407 cat >>confdefs.h
<<_ACEOF
3408 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3414 $as_echo_n "checking whether a default linker was specified... " >&6; }
3415 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3416 if test x
"$gnu_ld_flag" = x
"no"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3418 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3421 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3428 # With demangler in GNU ld
3430 # Check whether --with-demangler-in-ld was given.
3431 if test "${with_demangler_in_ld+set}" = set; then :
3432 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3438 # ----------------------
3439 # Find default assembler
3440 # ----------------------
3444 # Check whether --with-gnu-as was given.
3445 if test "${with_gnu_as+set}" = set; then :
3446 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3453 # Check whether --with-as was given.
3454 if test "${with_as+set}" = set; then :
3455 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3458 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3459 if test ! -x "$DEFAULT_ASSEMBLER"; then
3460 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3461 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3465 cat >>confdefs.h
<<_ACEOF
3466 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3472 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3473 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3474 if test x
"$gas_flag" = x
"no"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3479 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3490 # If a non-executable a.out is present (e.g. created by GNU as above even if
3491 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3492 # file, even when creating an executable, so an execution test fails.
3493 # Remove possible default executable files to avoid this.
3495 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3496 # Autoconf includes it.
3497 rm -f a.out a.exe b.out
3499 # Find the native compiler
3501 ac_cpp
='$CPP $CPPFLAGS'
3502 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3507 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_CC+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC
="$CC" # Let the user override the test.
3516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir
=.
3521 for ac_exec_ext
in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 if test -n "$CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536 $as_echo "$CC" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3544 if test -z "$ac_cv_prog_CC"; then
3546 # Extract the first word of "gcc", so it can be a program name with args.
3547 set dummy gcc
; ac_word
=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3553 if test -n "$ac_ct_CC"; then
3554 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir
=.
3561 for ac_exec_ext
in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_ac_ct_CC
="gcc"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3574 if test -n "$ac_ct_CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3576 $as_echo "$ac_ct_CC" >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3582 if test "x$ac_ct_CC" = x
; then
3585 case $cross_compiling:$ac_tool_warned in
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned
=yes ;;
3597 if test -z "$CC"; then
3598 if test -n "$ac_tool_prefix"; then
3599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3600 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if test "${ac_cv_prog_CC+set}" = set; then :
3604 $as_echo_n "(cached) " >&6
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC
="$CC" # Let the user override the test.
3609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3613 test -z "$as_dir" && as_dir
=.
3614 for ac_exec_ext
in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 if test -n "$CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629 $as_echo "$CC" >&6; }
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3638 if test -z "$CC"; then
3639 # Extract the first word of "cc", so it can be a program name with args.
3640 set dummy cc
; ac_word
=$2
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 $as_echo_n "checking for $ac_word... " >&6; }
3643 if test "${ac_cv_prog_CC+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC
="$CC" # Let the user override the test.
3650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3654 test -z "$as_dir" && as_dir
=.
3655 for ac_exec_ext
in '' $ac_executable_extensions; do
3656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3658 ac_prog_rejected
=yes
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 if test $ac_prog_rejected = yes; then
3670 # We found a bogon in the path, so make sure we never use it.
3671 set dummy
$ac_cv_prog_CC
3673 if test $# != 0; then
3674 # We chose a different compiler from the bogus one.
3675 # However, it has the same basename, so the bogon will be chosen
3676 # first if we set CC to just the basename; use the full file name.
3678 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3684 if test -n "$CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686 $as_echo "$CC" >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3694 if test -z "$CC"; then
3695 if test -n "$ac_tool_prefix"; then
3696 for ac_prog
in cl.exe
3698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if test "${ac_cv_prog_CC+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3705 if test -n "$CC"; then
3706 ac_cv_prog_CC
="$CC" # Let the user override the test.
3708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3712 test -z "$as_dir" && as_dir
=.
3713 for ac_exec_ext
in '' $ac_executable_extensions; do
3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3735 test -n "$CC" && break
3738 if test -z "$CC"; then
3740 for ac_prog
in cl.exe
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy
$ac_prog; ac_word
=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3749 if test -n "$ac_ct_CC"; then
3750 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir
=.
3757 for ac_exec_ext
in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_ac_ct_CC
="$ac_prog"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3770 if test -n "$ac_ct_CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3772 $as_echo "$ac_ct_CC" >&6; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3779 test -n "$ac_ct_CC" && break
3782 if test "x$ac_ct_CC" = x
; then
3785 case $cross_compiling:$ac_tool_warned in
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789 ac_tool_warned
=yes ;;
3798 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error
"no acceptable C compiler found in \$PATH
3801 See \`config.log' for more details." "$LINENO" 5; }
3803 # Provide some information about the compiler.
3804 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3807 for ac_option
in --version -v -V -qversion; do
3808 { { ac_try
="$ac_compiler $ac_option >&5"
3810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3817 if test -s conftest.err; then
3819 ... rest of stderr output deleted ...
3820 10q' conftest.err >conftest.er1
3821 cat conftest.er1 >&5
3822 rm -f conftest.er1 conftest.err
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3839 ac_clean_files_save=$ac_clean_files
3840 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3841 # Try to create an executable without -o first, disregard a.out.
3842 # It will help us diagnose broken compilers, and finding out an intuition
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3845 $as_echo_n "checking for C compiler default output file name... " >&6; }
3846 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3848 # The possible output files:
3849 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3852 for ac_file in $ac_files
3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3856 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3861 if { { ac_try="$ac_link_default"
3863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3864 *) ac_try_echo
=$ac_try;;
3866 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_link_default") 2>&5
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }; then :
3872 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3873 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3874 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3875 # so that the user can short-circuit this test for compilers unknown to
3877 for ac_file
in $ac_files ''
3879 test -f "$ac_file" ||
continue
3881 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3884 # We found the default executable, but exeext='' is most
3888 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3890 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3892 # We set ac_cv_exeext here because the later test for it is not
3893 # safe: cross compilers may not add the suffix if given an `-o'
3894 # argument, so we may need to know it at that point already.
3895 # Even if this section looks crufty: it has the advantage of
3902 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3908 $as_echo "$ac_file" >&6; }
3909 if test -z "$ac_file"; then :
3910 $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.
$ac_ext >&5
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 { as_fn_set_status
77
3916 as_fn_error
"C compiler cannot create executables
3917 See \`config.log' for more details." "$LINENO" 5; }; }
3919 ac_exeext
=$ac_cv_exeext
3921 # Check that the compiler produces executables we can run. If not, either
3922 # the compiler is broken, or we cross compile.
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3924 $as_echo_n "checking whether the C compiler works... " >&6; }
3925 # If not cross compiling, check that we can run a simple program.
3926 if test "$cross_compiling" != yes; then
3927 if { ac_try
='./$ac_file'
3928 { { case "(($ac_try" in
3929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 $as_echo "$ac_try_echo"; } >&5
3934 (eval "$ac_try") 2>&5
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }; }; then
3940 if test "$cross_compiling" = maybe; then
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error "cannot run C compiled programs.
3946 If you meant to cross compile
, use \
`--host'.
3947 See \`config.log
' for more details." "$LINENO" 5; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3952 $as_echo "yes" >&6; }
3954 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3955 ac_clean_files=$ac_clean_files_save
3956 # Check that the compiler produces executables we can run. If not, either
3957 # the compiler is broken, or we cross compile.
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3959 $as_echo_n "checking whether we are cross compiling... " >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3961 $as_echo "$cross_compiling" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3964 $as_echo_n "checking for suffix of executables... " >&6; }
3965 if { { ac_try="$ac_link"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_link") 2>&5
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3977 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3978 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3980 for ac_file
in conftest.exe conftest conftest.
*; do
3981 test -f "$ac_file" ||
continue
3983 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3984 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3993 See \`config.log' for more details." "$LINENO" 5; }
3995 rm -f conftest
$ac_cv_exeext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3997 $as_echo "$ac_cv_exeext" >&6; }
3999 rm -f conftest.
$ac_ext
4000 EXEEXT
=$ac_cv_exeext
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4003 $as_echo_n "checking for suffix of object files... " >&6; }
4004 if test "${ac_cv_objext+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4018 rm -f conftest.o conftest.obj
4019 if { { ac_try
="$ac_compile"
4021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_compile") 2>&5
4028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }; then :
4030 for ac_file in conftest.o conftest.obj conftest.*; do
4031 test -f "$ac_file" || continue;
4033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4039 $as_echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error "cannot compute suffix of object files
: cannot compile
4045 See \
`config.log' for more details." "$LINENO" 5; }
4047 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4050 $as_echo "$ac_cv_objext" >&6; }
4051 OBJEXT=$ac_cv_objext
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4054 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4055 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4056 $as_echo_n "(cached) " >&6
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4072 if ac_fn_c_try_compile "$LINENO"; then :
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4082 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4083 if test $ac_compiler_gnu = yes; then
4088 ac_test_CFLAGS=${CFLAGS+set}
4089 ac_save_CFLAGS=$CFLAGS
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4091 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4092 if test "${ac_cv_prog_cc_g+set}" = set; then :
4093 $as_echo_n "(cached) " >&6
4095 ac_save_c_werror_flag=$ac_c_werror_flag
4096 ac_c_werror_flag=yes
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4110 if ac_fn_c_try_compile "$LINENO"; then :
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4125 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_c_werror_flag=$ac_save_c_werror_flag
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4141 if ac_fn_c_try_compile "$LINENO"; then :
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4152 $as_echo "$ac_cv_prog_cc_g" >&6; }
4153 if test "$ac_test_CFLAGS" = set; then
4154 CFLAGS=$ac_save_CFLAGS
4155 elif test $ac_cv_prog_cc_g = yes; then
4156 if test "$GCC" = yes; then
4162 if test "$GCC" = yes; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4169 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4170 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4173 ac_cv_prog_cc_c89=no
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4179 #include <sys/types.h>
4180 #include <sys/stat.h>
4181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4182 struct buf { int x; };
4183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4184 static char *e (p, i)
4190 static char *f (char * (*g) (char **, int), char **p, ...)
4195 s = g (p, va_arg (v,int));
4200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4201 function prototypes and stuff, but not '\xHH' hex character constants.
4202 These don't provoke an error unfortunately, instead are silently treated
4203 as 'x'. The following induces an error, until -std is added to get
4204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4205 array size at least. It's necessary to write '\x00'==0 to get something
4206 that's true only with -std. */
4207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4209 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4210 inside strings and character constants. */
4212 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4214 int test (int i, double x);
4215 struct s1 {int (*f) (int a);};
4216 struct s2 {int (*f) (double a);};
4217 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4228 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4231 CC="$ac_save_CC $ac_arg"
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_prog_cc_c89=$ac_arg
4235 rm -f core conftest.err conftest.$ac_objext
4236 test "x$ac_cv_prog_cc_c89" != "xno" && break
4238 rm -f conftest.$ac_ext
4243 case "x$ac_cv_prog_cc_c89" in
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4246 $as_echo "none needed" >&6; } ;;
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4249 $as_echo "unsupported" >&6; } ;;
4251 CC="$CC $ac_cv_prog_cc_c89"
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4253 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4255 if test "x$ac_cv_prog_cc_c89" != xno; then :
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266 ac_cpp='$CXXCPP $CPPFLAGS'
4267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4270 if test -z "$CXX"; then
4271 if test -n "$CCC"; then
4274 if test -n "$ac_tool_prefix"; then
4275 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if test "${ac_cv_prog_CXX+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
4284 if test -n "$CXX"; then
4285 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 if test -n "$CXX"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4307 $as_echo "$CXX" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4314 test -n "$CXX" && break
4317 if test -z "$CXX"; then
4319 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4321 # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy $ac_prog; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4328 if test -n "$ac_ct_CXX"; then
4329 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_prog_ac_ct_CXX="$ac_prog"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4349 if test -n "$ac_ct_CXX"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4351 $as_echo "$ac_ct_CXX" >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4358 test -n "$ac_ct_CXX" && break
4361 if test "x$ac_ct_CXX" = x; then
4364 case $cross_compiling:$ac_tool_warned in
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4368 ac_tool_warned=yes ;;
4376 # Provide some information about the compiler.
4377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4380 for ac_option in --version -v -V -qversion; do
4381 { { ac_try="$ac_compiler $ac_option >&5"
4383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4384 *) ac_try_echo
=$ac_try;;
4386 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4390 if test -s conftest.err
; then
4392 ... rest of stderr output deleted ...
4393 10q' conftest.err
>conftest.er1
4394 cat conftest.er1
>&5
4395 rm -f conftest.er1 conftest.err
4397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398 test $ac_status = 0; }
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4402 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4403 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4420 if ac_fn_cxx_try_compile
"$LINENO"; then :
4425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4426 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4430 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4431 if test $ac_compiler_gnu = yes; then
4436 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4437 ac_save_CXXFLAGS
=$CXXFLAGS
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4439 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4440 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4443 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4444 ac_cxx_werror_flag
=yes
4447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4458 if ac_fn_cxx_try_compile
"$LINENO"; then :
4459 ac_cv_prog_cxx_g
=yes
4462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4473 if ac_fn_cxx_try_compile
"$LINENO"; then :
4476 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4489 if ac_fn_cxx_try_compile
"$LINENO"; then :
4490 ac_cv_prog_cxx_g
=yes
4492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4497 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4500 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4501 if test "$ac_test_CXXFLAGS" = set; then
4502 CXXFLAGS
=$ac_save_CXXFLAGS
4503 elif test $ac_cv_prog_cxx_g = yes; then
4504 if test "$GXX" = yes; then
4510 if test "$GXX" = yes; then
4517 ac_cpp
='$CPP $CPPFLAGS'
4518 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4525 if test -n "$ac_tool_prefix"; then
4526 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4527 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4533 if test -n "$GNATBIND"; then
4534 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir
=.
4541 for ac_exec_ext
in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 GNATBIND
=$ac_cv_prog_GNATBIND
4554 if test -n "$GNATBIND"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4556 $as_echo "$GNATBIND" >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4564 if test -z "$ac_cv_prog_GNATBIND"; then
4565 ac_ct_GNATBIND
=$GNATBIND
4566 # Extract the first word of "gnatbind", so it can be a program name with args.
4567 set dummy gnatbind
; ac_word
=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4573 if test -n "$ac_ct_GNATBIND"; then
4574 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir
=.
4581 for ac_exec_ext
in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4594 if test -n "$ac_ct_GNATBIND"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4596 $as_echo "$ac_ct_GNATBIND" >&6; }
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4602 if test "x$ac_ct_GNATBIND" = x
; then
4605 case $cross_compiling:$ac_tool_warned in
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned
=yes ;;
4611 GNATBIND
=$ac_ct_GNATBIND
4614 GNATBIND
="$ac_cv_prog_GNATBIND"
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4619 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4625 if test -n "$GNATMAKE"; then
4626 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir
=.
4633 for ac_exec_ext
in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 GNATMAKE
=$ac_cv_prog_GNATMAKE
4646 if test -n "$GNATMAKE"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4648 $as_echo "$GNATMAKE" >&6; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4656 if test -z "$ac_cv_prog_GNATMAKE"; then
4657 ac_ct_GNATMAKE
=$GNATMAKE
4658 # Extract the first word of "gnatmake", so it can be a program name with args.
4659 set dummy gnatmake
; ac_word
=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4665 if test -n "$ac_ct_GNATMAKE"; then
4666 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir
=.
4673 for ac_exec_ext
in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4686 if test -n "$ac_ct_GNATMAKE"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4688 $as_echo "$ac_ct_GNATMAKE" >&6; }
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4694 if test "x$ac_ct_GNATMAKE" = x
; then
4697 case $cross_compiling:$ac_tool_warned in
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned
=yes ;;
4703 GNATMAKE
=$ac_ct_GNATMAKE
4706 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4710 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4711 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
4714 cat >conftest.adb
<<EOF
4715 procedure conftest is begin null; end conftest;
4717 acx_cv_cc_gcc_supports_ada
=no
4718 # There is a bug in old released versions of GCC which causes the
4719 # driver to exit successfully when the appropriate language module
4720 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4721 # Therefore we must check for the error message as well as an
4722 # unsuccessful exit.
4723 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4724 # given a .adb file, but produce no object file. So we must check
4725 # if an object file was really produced to guard against this.
4726 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4727 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4728 acx_cv_cc_gcc_supports_ada
=yes
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4733 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4735 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4742 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4743 # optimizations to be activated explicitly by the toplevel.
4745 */prev-gcc
/xgcc
*) ;;
4746 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4747 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4752 # Determine PICFLAG for target gnatlib.
4758 # PIC is the default on some targets or must not be used.
4760 # PIC is the default on this platform
4761 # Common symbols not allowed in MH_DYLIB files
4762 PICFLAG_FOR_TARGET
=-fno-common
4765 # PIC is the default.
4768 # PIC is the default for 64-bit PA HP-UX.
4770 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4772 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4774 i
[34567]86-*-interix[3-9]*)
4775 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4776 # Instead, we relocate shared libraries at runtime.
4778 i
[34567]86-*-nto-qnx*)
4779 # QNX uses GNU C++, but need to define -shared option too, otherwise
4781 PICFLAG_FOR_TARGET
='-fPIC -shared'
4783 i
[34567]86-pc-msdosdjgpp*)
4784 # DJGPP does not support shared libraries at all.
4787 # On IA64 HP-UX, PIC is the default but the pic flag
4788 # sets the default TLS model and affects inlining.
4789 PICFLAG_FOR_TARGET
=-fPIC
4792 # PIC is the default.
4794 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4795 # All AIX code is PIC.
4798 # Some targets support both -fPIC and -fpic, but prefer the latter.
4800 i
[34567]86-*-* | x86_64-
*-*)
4801 PICFLAG_FOR_TARGET
=-fpic
4804 PICFLAG_FOR_TARGET
=-fpic
4806 # FIXME: Override -fPIC default in libgcc only?
4807 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4808 PICFLAG_FOR_TARGET
=-fpic
4810 # FIXME: Simplify to sh*-*-netbsd*?
4811 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4812 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4813 PICFLAG_FOR_TARGET
=-fpic
4815 # Default to -fPIC unless specified otherwise.
4817 PICFLAG_FOR_TARGET
=-fPIC
4821 # If the user explicitly uses -fpic/-fPIC, keep that.
4822 case "${CFLAGS_FOR_TARGET}" in
4824 PICFLAG_FOR_TARGET
=-fpic
4827 PICFLAG_FOR_TARGET
=-fPIC
4833 # -------------------------
4834 # Check C compiler features
4835 # -------------------------
4839 ac_cpp
='$CPP $CPPFLAGS'
4840 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4844 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4845 # On Suns, sometimes $CPP names a directory.
4846 if test -n "$CPP" && test -d "$CPP"; then
4849 if test -z "$CPP"; then
4850 if test "${ac_cv_prog_CPP+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4853 # Double quotes because CPP needs to be expanded
4854 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4857 for ac_c_preproc_warn_flag
in '' yes
4859 # Use a header file that comes with gcc, so configuring glibc
4860 # with a fresh cross-compiler works.
4861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862 # <limits.h> exists even on freestanding compilers.
4863 # On the NeXT, cc -E runs the code through the compiler's parser,
4864 # not just through cpp. "Syntax error" is here to catch this case.
4865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4868 # include <limits.h>
4870 # include <assert.h>
4874 if ac_fn_c_try_cpp
"$LINENO"; then :
4877 # Broken: fails on valid input.
4880 rm -f conftest.err conftest.
$ac_ext
4882 # OK, works on sane cases. Now check whether nonexistent headers
4883 # can be detected and how.
4884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886 #include <ac_nonexistent.h>
4888 if ac_fn_c_try_cpp
"$LINENO"; then :
4889 # Broken: success on invalid input.
4892 # Passes both tests.
4896 rm -f conftest.err conftest.
$ac_ext
4899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900 rm -f conftest.err conftest.
$ac_ext
4901 if $ac_preproc_ok; then :
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4914 $as_echo "$CPP" >&6; }
4916 for ac_c_preproc_warn_flag
in '' yes
4918 # Use a header file that comes with gcc, so configuring glibc
4919 # with a fresh cross-compiler works.
4920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921 # <limits.h> exists even on freestanding compilers.
4922 # On the NeXT, cc -E runs the code through the compiler's parser,
4923 # not just through cpp. "Syntax error" is here to catch this case.
4924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4927 # include <limits.h>
4929 # include <assert.h>
4933 if ac_fn_c_try_cpp
"$LINENO"; then :
4936 # Broken: fails on valid input.
4939 rm -f conftest.err conftest.
$ac_ext
4941 # OK, works on sane cases. Now check whether nonexistent headers
4942 # can be detected and how.
4943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 #include <ac_nonexistent.h>
4947 if ac_fn_c_try_cpp
"$LINENO"; then :
4948 # Broken: success on invalid input.
4951 # Passes both tests.
4955 rm -f conftest.err conftest.
$ac_ext
4958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959 rm -f conftest.err conftest.
$ac_ext
4960 if $ac_preproc_ok; then :
4963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4965 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4966 See \`config.log' for more details." "$LINENO" 5; }
4970 ac_cpp
='$CPP $CPPFLAGS'
4971 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4977 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4978 if test "${ac_cv_path_GREP+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4981 if test -z "$GREP"; then
4982 ac_path_GREP_found
=false
4983 # Loop through the user's path and test for each of PROGNAME-LIST
4984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4985 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4988 test -z "$as_dir" && as_dir
=.
4989 for ac_prog
in grep ggrep
; do
4990 for ac_exec_ext
in '' $ac_executable_extensions; do
4991 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4992 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4993 # Check for GNU ac_path_GREP and select it if it is found.
4994 # Check for GNU $ac_path_GREP
4995 case `"$ac_path_GREP" --version 2>&1` in
4997 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5000 $as_echo_n 0123456789 >"conftest.in"
5003 cat "conftest.in" "conftest.in" >"conftest.tmp"
5004 mv "conftest.tmp" "conftest.in"
5005 cp "conftest.in" "conftest.nl"
5006 $as_echo 'GREP' >> "conftest.nl"
5007 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5008 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5009 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5010 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5011 # Best one so far, save it but keep looking for a better one
5012 ac_cv_path_GREP
="$ac_path_GREP"
5013 ac_path_GREP_max
=$ac_count
5015 # 10*(2^10) chars as input seems more than enough
5016 test $ac_count -gt 10 && break
5018 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5021 $ac_path_GREP_found && break 3
5026 if test -z "$ac_cv_path_GREP"; then
5027 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5030 ac_cv_path_GREP
=$GREP
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5035 $as_echo "$ac_cv_path_GREP" >&6; }
5036 GREP
="$ac_cv_path_GREP"
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5040 $as_echo_n "checking for egrep... " >&6; }
5041 if test "${ac_cv_path_EGREP+set}" = set; then :
5042 $as_echo_n "(cached) " >&6
5044 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5045 then ac_cv_path_EGREP
="$GREP -E"
5047 if test -z "$EGREP"; then
5048 ac_path_EGREP_found
=false
5049 # Loop through the user's path and test for each of PROGNAME-LIST
5050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5051 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5054 test -z "$as_dir" && as_dir
=.
5055 for ac_prog
in egrep; do
5056 for ac_exec_ext
in '' $ac_executable_extensions; do
5057 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5058 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5059 # Check for GNU ac_path_EGREP and select it if it is found.
5060 # Check for GNU $ac_path_EGREP
5061 case `"$ac_path_EGREP" --version 2>&1` in
5063 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5066 $as_echo_n 0123456789 >"conftest.in"
5069 cat "conftest.in" "conftest.in" >"conftest.tmp"
5070 mv "conftest.tmp" "conftest.in"
5071 cp "conftest.in" "conftest.nl"
5072 $as_echo 'EGREP' >> "conftest.nl"
5073 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5074 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5075 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5076 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5077 # Best one so far, save it but keep looking for a better one
5078 ac_cv_path_EGREP
="$ac_path_EGREP"
5079 ac_path_EGREP_max
=$ac_count
5081 # 10*(2^10) chars as input seems more than enough
5082 test $ac_count -gt 10 && break
5084 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5087 $ac_path_EGREP_found && break 3
5092 if test -z "$ac_cv_path_EGREP"; then
5093 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5096 ac_cv_path_EGREP
=$EGREP
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5102 $as_echo "$ac_cv_path_EGREP" >&6; }
5103 EGREP
="$ac_cv_path_EGREP"
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5107 $as_echo_n "checking for ANSI C header files... " >&6; }
5108 if test "${ac_cv_header_stdc+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5126 if ac_fn_c_try_compile
"$LINENO"; then :
5127 ac_cv_header_stdc
=yes
5129 ac_cv_header_stdc
=no
5131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5133 if test $ac_cv_header_stdc = yes; then
5134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5141 $EGREP "memchr" >/dev
/null
2>&1; then :
5144 ac_cv_header_stdc
=no
5150 if test $ac_cv_header_stdc = yes; then
5151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158 $EGREP "free" >/dev
/null
2>&1; then :
5161 ac_cv_header_stdc
=no
5167 if test $ac_cv_header_stdc = yes; then
5168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5169 if test "$cross_compiling" = yes; then :
5172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5176 #if ((' ' & 0x0FF) == 0x020)
5177 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5178 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5180 # define ISLOWER(c) \
5181 (('a' <= (c) && (c) <= 'i') \
5182 || ('j' <= (c) && (c) <= 'r') \
5183 || ('s' <= (c) && (c) <= 'z'))
5184 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5187 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5192 for (i = 0; i < 256; i++)
5193 if (XOR (islower (i), ISLOWER (i))
5194 || toupper (i) != TOUPPER (i))
5199 if ac_fn_c_try_run
"$LINENO"; then :
5202 ac_cv_header_stdc
=no
5204 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5205 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5211 $as_echo "$ac_cv_header_stdc" >&6; }
5212 if test $ac_cv_header_stdc = yes; then
5214 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5219 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5220 inttypes.h stdint.h unistd.h
5222 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5223 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5225 eval as_val
=\$
$as_ac_Header
5226 if test "x$as_val" = x
""yes; then :
5227 cat >>confdefs.h
<<_ACEOF
5228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5237 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5238 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5245 if test "$MINIX" = yes; then
5247 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5250 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5253 $as_echo "#define _MINIX 1" >>confdefs.h
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5259 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5260 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5266 # define __EXTENSIONS__ 1
5267 $ac_includes_default
5276 if ac_fn_c_try_compile
"$LINENO"; then :
5277 ac_cv_safe_to_define___extensions__
=yes
5279 ac_cv_safe_to_define___extensions__
=no
5281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5284 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5285 test $ac_cv_safe_to_define___extensions__ = yes &&
5286 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5288 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5290 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5292 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5294 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5298 ac_cpp
='$CPP $CPPFLAGS'
5299 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5300 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5301 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5303 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5304 # On Suns, sometimes $CPP names a directory.
5305 if test -n "$CPP" && test -d "$CPP"; then
5308 if test -z "$CPP"; then
5309 if test "${ac_cv_prog_CPP+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5312 # Double quotes because CPP needs to be expanded
5313 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5316 for ac_c_preproc_warn_flag
in '' yes
5318 # Use a header file that comes with gcc, so configuring glibc
5319 # with a fresh cross-compiler works.
5320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5321 # <limits.h> exists even on freestanding compilers.
5322 # On the NeXT, cc -E runs the code through the compiler's parser,
5323 # not just through cpp. "Syntax error" is here to catch this case.
5324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5327 # include <limits.h>
5329 # include <assert.h>
5333 if ac_fn_c_try_cpp
"$LINENO"; then :
5336 # Broken: fails on valid input.
5339 rm -f conftest.err conftest.
$ac_ext
5341 # OK, works on sane cases. Now check whether nonexistent headers
5342 # can be detected and how.
5343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 #include <ac_nonexistent.h>
5347 if ac_fn_c_try_cpp
"$LINENO"; then :
5348 # Broken: success on invalid input.
5351 # Passes both tests.
5355 rm -f conftest.err conftest.
$ac_ext
5358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5359 rm -f conftest.err conftest.
$ac_ext
5360 if $ac_preproc_ok; then :
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5373 $as_echo "$CPP" >&6; }
5375 for ac_c_preproc_warn_flag
in '' yes
5377 # Use a header file that comes with gcc, so configuring glibc
5378 # with a fresh cross-compiler works.
5379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5380 # <limits.h> exists even on freestanding compilers.
5381 # On the NeXT, cc -E runs the code through the compiler's parser,
5382 # not just through cpp. "Syntax error" is here to catch this case.
5383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5386 # include <limits.h>
5388 # include <assert.h>
5392 if ac_fn_c_try_cpp
"$LINENO"; then :
5395 # Broken: fails on valid input.
5398 rm -f conftest.err conftest.
$ac_ext
5400 # OK, works on sane cases. Now check whether nonexistent headers
5401 # can be detected and how.
5402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <ac_nonexistent.h>
5406 if ac_fn_c_try_cpp
"$LINENO"; then :
5407 # Broken: success on invalid input.
5410 # Passes both tests.
5414 rm -f conftest.err conftest.
$ac_ext
5417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5418 rm -f conftest.err conftest.
$ac_ext
5419 if $ac_preproc_ok; then :
5422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5424 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5425 See \`config.log' for more details." "$LINENO" 5; }
5429 ac_cpp
='$CPP $CPPFLAGS'
5430 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5435 $as_echo_n "checking for inline... " >&6; }
5436 if test "${ac_cv_c_inline+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
5440 for ac_kw
in inline __inline__ __inline
; do
5441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5445 static $ac_kw foo_t static_foo () {return 0; }
5446 $ac_kw foo_t foo () {return 0; }
5450 if ac_fn_c_try_compile
"$LINENO"; then :
5451 ac_cv_c_inline
=$ac_kw
5453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5454 test "$ac_cv_c_inline" != no
&& break
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5459 $as_echo "$ac_cv_c_inline" >&6; }
5461 case $ac_cv_c_inline in
5464 case $ac_cv_c_inline in
5466 *) ac_val
=$ac_cv_c_inline;;
5468 cat >>confdefs.h
<<_ACEOF
5470 #define inline $ac_val
5477 # Check whether --enable-largefile was given.
5478 if test "${enable_largefile+set}" = set; then :
5479 enableval
=$enable_largefile;
5482 if test "$enable_largefile" != no
; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5485 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5486 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5489 ac_cv_sys_largefile_CC
=no
5490 if test "$GCC" != yes; then
5493 # IRIX 6.2 and later do not support large files by default,
5494 # so use the C compiler's -n32 option if that helps.
5495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497 #include <sys/types.h>
5498 /* Check that off_t can represent 2**63 - 1 correctly.
5499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5500 since some C++ compilers masquerading as C compilers
5501 incorrectly reject 9223372036854775807. */
5502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5504 && LARGE_OFF_T % 2147483647 == 1)
5514 if ac_fn_c_try_compile
"$LINENO"; then :
5517 rm -f core conftest.err conftest.
$ac_objext
5519 if ac_fn_c_try_compile
"$LINENO"; then :
5520 ac_cv_sys_largefile_CC
=' -n32'; break
5522 rm -f core conftest.err conftest.
$ac_objext
5526 rm -f conftest.
$ac_ext
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5530 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5531 if test "$ac_cv_sys_largefile_CC" != no
; then
5532 CC
=$CC$ac_cv_sys_largefile_CC
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5536 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5537 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 #include <sys/types.h>
5544 /* Check that off_t can represent 2**63 - 1 correctly.
5545 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5546 since some C++ compilers masquerading as C compilers
5547 incorrectly reject 9223372036854775807. */
5548 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5549 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5550 && LARGE_OFF_T % 2147483647 == 1)
5560 if ac_fn_c_try_compile
"$LINENO"; then :
5561 ac_cv_sys_file_offset_bits
=no
; break
5563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #define _FILE_OFFSET_BITS 64
5567 #include <sys/types.h>
5568 /* Check that off_t can represent 2**63 - 1 correctly.
5569 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5570 since some C++ compilers masquerading as C compilers
5571 incorrectly reject 9223372036854775807. */
5572 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5574 && LARGE_OFF_T % 2147483647 == 1)
5584 if ac_fn_c_try_compile
"$LINENO"; then :
5585 ac_cv_sys_file_offset_bits
=64; break
5587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5588 ac_cv_sys_file_offset_bits
=unknown
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5593 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5594 case $ac_cv_sys_file_offset_bits in #(
5597 cat >>confdefs.h
<<_ACEOF
5598 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5603 if test $ac_cv_sys_file_offset_bits = unknown
; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5605 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5606 if test "${ac_cv_sys_large_files+set}" = set; then :
5607 $as_echo_n "(cached) " >&6
5610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <sys/types.h>
5613 /* Check that off_t can represent 2**63 - 1 correctly.
5614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5615 since some C++ compilers masquerading as C compilers
5616 incorrectly reject 9223372036854775807. */
5617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5619 && LARGE_OFF_T % 2147483647 == 1)
5629 if ac_fn_c_try_compile
"$LINENO"; then :
5630 ac_cv_sys_large_files
=no
; break
5632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #define _LARGE_FILES 1
5636 #include <sys/types.h>
5637 /* Check that off_t can represent 2**63 - 1 correctly.
5638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5639 since some C++ compilers masquerading as C compilers
5640 incorrectly reject 9223372036854775807. */
5641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5643 && LARGE_OFF_T % 2147483647 == 1)
5653 if ac_fn_c_try_compile
"$LINENO"; then :
5654 ac_cv_sys_large_files
=1; break
5656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5657 ac_cv_sys_large_files
=unknown
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5662 $as_echo "$ac_cv_sys_large_files" >&6; }
5663 case $ac_cv_sys_large_files in #(
5666 cat >>confdefs.h
<<_ACEOF
5667 #define _LARGE_FILES $ac_cv_sys_large_files
5676 # sizeof(char) is 1 by definition.
5677 # The cast to long int works around a bug in the HP C Compiler
5678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5680 # This bug is HP SR number 8606223364.
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5682 $as_echo_n "checking size of void *... " >&6; }
5683 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5686 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5689 if test "$ac_cv_type_void_p" = yes; then
5690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5692 { as_fn_set_status
77
5693 as_fn_error
"cannot compute sizeof (void *)
5694 See \`config.log' for more details." "$LINENO" 5; }; }
5696 ac_cv_sizeof_void_p
=0
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5702 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5706 cat >>confdefs.h
<<_ACEOF
5707 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5711 # The cast to long int works around a bug in the HP C Compiler
5712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5714 # This bug is HP SR number 8606223364.
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5716 $as_echo_n "checking size of short... " >&6; }
5717 if test "${ac_cv_sizeof_short+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5720 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5723 if test "$ac_cv_type_short" = yes; then
5724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5726 { as_fn_set_status
77
5727 as_fn_error
"cannot compute sizeof (short)
5728 See \`config.log' for more details." "$LINENO" 5; }; }
5730 ac_cv_sizeof_short
=0
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5736 $as_echo "$ac_cv_sizeof_short" >&6; }
5740 cat >>confdefs.h
<<_ACEOF
5741 #define SIZEOF_SHORT $ac_cv_sizeof_short
5745 # The cast to long int works around a bug in the HP C Compiler
5746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5748 # This bug is HP SR number 8606223364.
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5750 $as_echo_n "checking size of int... " >&6; }
5751 if test "${ac_cv_sizeof_int+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5754 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5757 if test "$ac_cv_type_int" = yes; then
5758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5760 { as_fn_set_status
77
5761 as_fn_error
"cannot compute sizeof (int)
5762 See \`config.log' for more details." "$LINENO" 5; }; }
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5770 $as_echo "$ac_cv_sizeof_int" >&6; }
5774 cat >>confdefs.h
<<_ACEOF
5775 #define SIZEOF_INT $ac_cv_sizeof_int
5779 # The cast to long int works around a bug in the HP C Compiler
5780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5782 # This bug is HP SR number 8606223364.
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5784 $as_echo_n "checking size of long... " >&6; }
5785 if test "${ac_cv_sizeof_long+set}" = set; then :
5786 $as_echo_n "(cached) " >&6
5788 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5791 if test "$ac_cv_type_long" = yes; then
5792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5794 { as_fn_set_status
77
5795 as_fn_error
"cannot compute sizeof (long)
5796 See \`config.log' for more details." "$LINENO" 5; }; }
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5804 $as_echo "$ac_cv_sizeof_long" >&6; }
5808 cat >>confdefs.h
<<_ACEOF
5809 #define SIZEOF_LONG $ac_cv_sizeof_long
5813 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5814 if test "x$ac_cv_type_long_long" = x
""yes; then :
5816 cat >>confdefs.h
<<_ACEOF
5817 #define HAVE_LONG_LONG 1
5820 # The cast to long int works around a bug in the HP C Compiler
5821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5823 # This bug is HP SR number 8606223364.
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5825 $as_echo_n "checking size of long long... " >&6; }
5826 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5829 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5832 if test "$ac_cv_type_long_long" = yes; then
5833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5835 { as_fn_set_status
77
5836 as_fn_error
"cannot compute sizeof (long long)
5837 See \`config.log' for more details." "$LINENO" 5; }; }
5839 ac_cv_sizeof_long_long
=0
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5845 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5849 cat >>confdefs.h
<<_ACEOF
5850 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5856 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5857 if test "x$ac_cv_type___int64" = x
""yes; then :
5859 cat >>confdefs.h
<<_ACEOF
5860 #define HAVE___INT64 1
5863 # The cast to long int works around a bug in the HP C Compiler
5864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5866 # This bug is HP SR number 8606223364.
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5868 $as_echo_n "checking size of __int64... " >&6; }
5869 if test "${ac_cv_sizeof___int64+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5872 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5875 if test "$ac_cv_type___int64" = yes; then
5876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5878 { as_fn_set_status
77
5879 as_fn_error
"cannot compute sizeof (__int64)
5880 See \`config.log' for more details." "$LINENO" 5; }; }
5882 ac_cv_sizeof___int64
=0
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5888 $as_echo "$ac_cv_sizeof___int64" >&6; }
5892 cat >>confdefs.h
<<_ACEOF
5893 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5899 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5900 case $ac_cv_c_int8_t in #(
5904 cat >>confdefs.h
<<_ACEOF
5905 #define int8_t $ac_cv_c_int8_t
5910 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5911 case $ac_cv_c_int16_t in #(
5915 cat >>confdefs.h
<<_ACEOF
5916 #define int16_t $ac_cv_c_int16_t
5921 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5922 case $ac_cv_c_int32_t in #(
5926 cat >>confdefs.h
<<_ACEOF
5927 #define int32_t $ac_cv_c_int32_t
5932 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5933 case $ac_cv_c_int64_t in #(
5937 cat >>confdefs.h
<<_ACEOF
5938 #define int64_t $ac_cv_c_int64_t
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5945 $as_echo_n "checking for long long int... " >&6; }
5946 if test "${ac_cv_type_long_long_int+set}" = set; then :
5947 $as_echo_n "(cached) " >&6
5949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5952 /* For now, do not test the preprocessor; as of 2007 there are too many
5953 implementations with broken preprocessors. Perhaps this can
5954 be revisited in 2012. In the meantime, code should not expect
5955 #if to work with literals wider than 32 bits. */
5956 /* Test literals. */
5957 long long int ll = 9223372036854775807ll;
5958 long long int nll = -9223372036854775807LL;
5959 unsigned long long int ull = 18446744073709551615ULL;
5960 /* Test constant expressions. */
5961 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5963 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5969 /* Test availability of runtime routines for shift and division. */
5970 long long int llmax = 9223372036854775807ll;
5971 unsigned long long int ullmax = 18446744073709551615ull;
5972 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5973 | (llmax / ll) | (llmax % ll)
5974 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5975 | (ullmax / ull) | (ullmax % ull));
5981 if ac_fn_c_try_link
"$LINENO"; then :
5982 if test "$cross_compiling" = yes; then :
5983 ac_cv_type_long_long_int
=yes
5985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5990 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5991 # define LLONG_MAX (HALF - 1 + HALF)
5996 long long int n = 1;
6000 long long int m = n << i;
6003 if (LLONG_MAX / 2 < m)
6011 if ac_fn_c_try_run
"$LINENO"; then :
6012 ac_cv_type_long_long_int
=yes
6014 ac_cv_type_long_long_int
=no
6016 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6017 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6021 ac_cv_type_long_long_int
=no
6023 rm -f core conftest.err conftest.
$ac_objext \
6024 conftest
$ac_exeext conftest.
$ac_ext
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6027 $as_echo "$ac_cv_type_long_long_int" >&6; }
6028 if test $ac_cv_type_long_long_int = yes; then
6030 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6036 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6037 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6039 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6042 test $ac_cv_type_long_long_int = yes \
6043 && ac_type
='long long int' \
6044 || ac_type
='long int'
6046 cat >>confdefs.h
<<_ACEOF
6047 #define intmax_t $ac_type
6054 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6055 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6057 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6060 for ac_type
in 'int' 'long int' 'long long int'; do
6061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063 $ac_includes_default
6067 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6074 if ac_fn_c_try_compile
"$LINENO"; then :
6076 cat >>confdefs.h
<<_ACEOF
6077 #define intptr_t $ac_type
6082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6083 test -z "$ac_type" && break
6088 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6089 case $ac_cv_c_uint8_t in #(
6093 $as_echo "#define _UINT8_T 1" >>confdefs.h
6096 cat >>confdefs.h
<<_ACEOF
6097 #define uint8_t $ac_cv_c_uint8_t
6102 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6103 case $ac_cv_c_uint16_t in #(
6108 cat >>confdefs.h
<<_ACEOF
6109 #define uint16_t $ac_cv_c_uint16_t
6114 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6115 case $ac_cv_c_uint32_t in #(
6119 $as_echo "#define _UINT32_T 1" >>confdefs.h
6122 cat >>confdefs.h
<<_ACEOF
6123 #define uint32_t $ac_cv_c_uint32_t
6128 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6129 case $ac_cv_c_uint64_t in #(
6133 $as_echo "#define _UINT64_T 1" >>confdefs.h
6136 cat >>confdefs.h
<<_ACEOF
6137 #define uint64_t $ac_cv_c_uint64_t
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6144 $as_echo_n "checking for unsigned long long int... " >&6; }
6145 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6151 /* For now, do not test the preprocessor; as of 2007 there are too many
6152 implementations with broken preprocessors. Perhaps this can
6153 be revisited in 2012. In the meantime, code should not expect
6154 #if to work with literals wider than 32 bits. */
6155 /* Test literals. */
6156 long long int ll = 9223372036854775807ll;
6157 long long int nll = -9223372036854775807LL;
6158 unsigned long long int ull = 18446744073709551615ULL;
6159 /* Test constant expressions. */
6160 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6162 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6168 /* Test availability of runtime routines for shift and division. */
6169 long long int llmax = 9223372036854775807ll;
6170 unsigned long long int ullmax = 18446744073709551615ull;
6171 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6172 | (llmax / ll) | (llmax % ll)
6173 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6174 | (ullmax / ull) | (ullmax % ull));
6180 if ac_fn_c_try_link
"$LINENO"; then :
6181 ac_cv_type_unsigned_long_long_int
=yes
6183 ac_cv_type_unsigned_long_long_int
=no
6185 rm -f core conftest.err conftest.
$ac_objext \
6186 conftest
$ac_exeext conftest.
$ac_ext
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6189 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6190 if test $ac_cv_type_unsigned_long_long_int = yes; then
6192 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6198 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6199 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6201 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6204 test $ac_cv_type_unsigned_long_long_int = yes \
6205 && ac_type
='unsigned long long int' \
6206 || ac_type
='unsigned long int'
6208 cat >>confdefs.h
<<_ACEOF
6209 #define uintmax_t $ac_type
6216 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6217 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6219 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6222 for ac_type
in 'unsigned int' 'unsigned long int' \
6223 'unsigned long long int'; do
6224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 $ac_includes_default
6230 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6237 if ac_fn_c_try_compile
"$LINENO"; then :
6239 cat >>confdefs.h
<<_ACEOF
6240 #define uintptr_t $ac_type
6245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6246 test -z "$ac_type" && break
6264 # ---------------------
6265 # Warnings and checking
6266 # ---------------------
6268 # Check $CC warning features (if it's GCC).
6269 # We want to use -pedantic, but we don't want warnings about
6272 # * overlong strings
6273 # * C++11 narrowing conversions in { }
6274 # So, we only use -pedantic if we can disable those warnings.
6276 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6277 # Check whether --enable-build-format-warnings was given.
6278 if test "${enable_build_format_warnings+set}" = set; then :
6279 enableval
=$enable_build_format_warnings;
6281 enable_build_format_warnings
=yes
6284 if test $enable_build_format_warnings = no
; then :
6290 save_CFLAGS
="$CFLAGS"
6291 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6292 # Do the check with the no- prefix removed since gcc silently
6293 # accepts any -Wno-* option on purpose
6294 case $real_option in
6295 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6296 *) option
=$real_option ;;
6298 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6301 $as_echo_n "checking whether $CC supports $option... " >&6; }
6302 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6303 $as_echo_n "(cached) " >&6
6306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6317 if ac_fn_c_try_compile
"$LINENO"; then :
6318 eval "$as_acx_Woption=yes"
6320 eval "$as_acx_Woption=no"
6322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6325 eval ac_res
=\$
$as_acx_Woption
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6327 $as_echo "$ac_res" >&6; }
6328 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6329 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6332 CFLAGS
="$save_CFLAGS"
6335 save_CFLAGS
="$CFLAGS"
6336 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6337 # Do the check with the no- prefix removed since gcc silently
6338 # accepts any -Wno-* option on purpose
6339 case $real_option in
6340 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6341 *) option
=$real_option ;;
6343 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6346 $as_echo_n "checking whether $CC supports $option... " >&6; }
6347 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6348 $as_echo_n "(cached) " >&6
6351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6362 if ac_fn_c_try_compile
"$LINENO"; then :
6363 eval "$as_acx_Woption=yes"
6365 eval "$as_acx_Woption=no"
6367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6370 eval ac_res
=\$
$as_acx_Woption
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6372 $as_echo "$ac_res" >&6; }
6373 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6374 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6377 CFLAGS
="$save_CFLAGS"
6380 save_CFLAGS
="$CFLAGS"
6381 for real_option
in -Wmissing-format-attribute; do
6382 # Do the check with the no- prefix removed since gcc silently
6383 # accepts any -Wno-* option on purpose
6384 case $real_option in
6385 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6386 *) option
=$real_option ;;
6388 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6391 $as_echo_n "checking whether $CC supports $option... " >&6; }
6392 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6393 $as_echo_n "(cached) " >&6
6396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6407 if ac_fn_c_try_compile
"$LINENO"; then :
6408 eval "$as_acx_Woption=yes"
6410 eval "$as_acx_Woption=no"
6412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6415 eval ac_res
=\$
$as_acx_Woption
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6417 $as_echo "$ac_res" >&6; }
6418 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6419 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6422 CFLAGS
="$save_CFLAGS"
6425 save_CFLAGS
="$CFLAGS"
6426 for real_option
in -Wold-style-definition -Wc++-compat; do
6427 # Do the check with the no- prefix removed since gcc silently
6428 # accepts any -Wno-* option on purpose
6429 case $real_option in
6430 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6431 *) option
=$real_option ;;
6433 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6436 $as_echo_n "checking whether $CC supports $option... " >&6; }
6437 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6438 $as_echo_n "(cached) " >&6
6441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6452 if ac_fn_c_try_compile
"$LINENO"; then :
6453 eval "$as_acx_Woption=yes"
6455 eval "$as_acx_Woption=no"
6457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6460 eval ac_res
=\$
$as_acx_Woption
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6462 $as_echo "$ac_res" >&6; }
6463 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6464 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6467 CFLAGS
="$save_CFLAGS"
6469 # Do the check with the no- prefix removed from the warning options
6470 # since gcc silently accepts any -Wno-* option on purpose
6471 if test "$GCC" = yes; then :
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6473 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6474 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6477 save_CFLAGS
="$CFLAGS"
6478 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6490 if ac_fn_c_try_compile
"$LINENO"; then :
6491 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6493 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6496 CFLAGS
="$save_CFLAGS"
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6499 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6500 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6501 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6506 # Check whether --enable-werror-always was given.
6507 if test "${enable_werror_always+set}" = set; then :
6508 enableval
=$enable_werror_always;
6510 enable_werror_always
=no
6513 if test $enable_werror_always = yes; then :
6514 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6519 # The above macros do nothing if the compiler is not GCC. However, the
6520 # Makefile has more goo to add other flags, so these variables are used
6521 # to enable warnings only for GCC.
6524 if test "x$GCC" = "xyes"; then
6525 warn_cflags
='$(GCC_WARN_CFLAGS)'
6526 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6531 # Disable exceptions and RTTI if building with g++
6533 save_CFLAGS
="$CFLAGS"
6534 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6535 # Do the check with the no- prefix removed since gcc silently
6536 # accepts any -Wno-* option on purpose
6537 case $real_option in
6538 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6539 *) option
=$real_option ;;
6541 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6544 $as_echo_n "checking whether $CC supports $option... " >&6; }
6545 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6546 $as_echo_n "(cached) " >&6
6549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6560 if ac_fn_c_try_compile
"$LINENO"; then :
6561 eval "$as_acx_Woption=yes"
6563 eval "$as_acx_Woption=no"
6565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6568 eval ac_res
=\$
$as_acx_Woption
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6570 $as_echo "$ac_res" >&6; }
6571 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6572 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6575 CFLAGS
="$save_CFLAGS"
6578 # Enable expensive internal checks
6580 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6584 # Check whether --enable-checking was given.
6585 if test "${enable_checking+set}" = set; then :
6586 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6589 # Determine the default checks.
6590 if test x
$is_release = x
; then
6591 ac_checking_flags
=yes
6593 ac_checking_flags
=release
6597 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6598 for check
in release
$ac_checking_flags
6601 # these set all the flags to specific states
6602 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6603 ac_fold_checking
= ; ac_gc_checking
=1 ;
6604 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6605 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6606 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6607 ac_types_checking
=1 ;;
6608 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6609 ac_fold_checking
= ; ac_gc_checking
= ;
6610 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6611 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6612 ac_tree_checking
= ; ac_valgrind_checking
= ;
6613 ac_types_checking
= ;;
6614 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6615 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6616 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6617 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6618 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6619 ac_types_checking
=1 ;;
6620 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6621 ac_fold_checking
= ; ac_gc_checking
= ;
6622 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6623 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6624 ac_tree_checking
= ; ac_valgrind_checking
= ;
6625 ac_types_checking
= ;;
6626 # these enable particular checks
6627 assert
) ac_assert_checking
=1 ;;
6628 df
) ac_df_checking
=1 ;;
6629 fold) ac_fold_checking
=1 ;;
6630 gc
) ac_gc_checking
=1 ;;
6631 gcac
) ac_gc_always_collect
=1 ;;
6632 gimple
) ac_gimple_checking
=1 ;;
6633 misc
) ac_checking
=1 ;;
6634 rtl
) ac_rtl_checking
=1 ;;
6635 rtlflag
) ac_rtlflag_checking
=1 ;;
6636 runtime
) ac_runtime_checking
=1 ;;
6637 tree
) ac_tree_checking
=1 ;;
6638 types
) ac_types_checking
=1 ;;
6639 valgrind
) ac_valgrind_checking
=1 ;;
6640 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6646 if test x
$ac_checking != x
; then
6648 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6650 nocommon_flag
=-fno-common
6653 if test x
$ac_df_checking != x
; then
6655 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6658 if test x
$ac_assert_checking != x
; then
6660 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6663 if test x
$ac_gimple_checking != x
; then
6665 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6669 if test x
$ac_runtime_checking != x
; then
6671 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6674 if test x
$ac_tree_checking != x
; then
6676 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6678 TREEBROWSER
=tree-browser.o
6681 if test x
$ac_types_checking != x
; then
6683 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6688 if test x
$ac_rtl_checking != x
; then
6690 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6693 if test x
$ac_rtlflag_checking != x
; then
6695 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6698 if test x
$ac_gc_checking != x
; then
6700 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6703 if test x
$ac_gc_always_collect != x
; then
6705 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6708 if test x
$ac_fold_checking != x
; then
6710 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6713 valgrind_path_defines
=
6716 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6717 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6725 if test x
$ac_valgrind_checking != x
; then
6726 # It is certainly possible that there's valgrind but no valgrind.h.
6727 # GCC relies on making annotations so we must have both.
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6729 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6732 #include <valgrind/memcheck.h>
6733 #ifndef VALGRIND_DISCARD
6734 #error VALGRIND_DISCARD not defined
6737 if ac_fn_c_try_cpp
"$LINENO"; then :
6738 gcc_cv_header_valgrind_memcheck_h
=yes
6740 gcc_cv_header_valgrind_memcheck_h
=no
6742 rm -f conftest.err conftest.
$ac_ext
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6744 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6746 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 #include <memcheck.h>
6750 #ifndef VALGRIND_DISCARD
6751 #error VALGRIND_DISCARD not defined
6754 if ac_fn_c_try_cpp
"$LINENO"; then :
6755 gcc_cv_header_memcheck_h
=yes
6757 gcc_cv_header_memcheck_h
=no
6759 rm -f conftest.err conftest.
$ac_ext
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6761 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6763 # Prepare PATH_SEPARATOR.
6764 # The user is always right.
6765 if test "${PATH_SEPARATOR+set}" != set; then
6766 echo "#! /bin/sh" >conf$$.sh
6767 echo "exit 0" >>conf$$.sh
6769 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6777 # Find out how to test for executable files. Don't use a zero-byte file,
6778 # as systems may use methods other than mode bits to determine executability.
6779 cat >conf$$.
file <<_ASEOF
6783 chmod +x conf$$.
file
6784 if test -x conf$$.
file >/dev
/null
2>&1; then
6785 ac_executable_p
="test -x"
6787 ac_executable_p
="test -f"
6791 # Extract the first word of "valgrind", so it can be a program name with args.
6792 set dummy valgrind
; ac_word
=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6798 case "$valgrind_path" in
6800 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6803 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6804 for ac_dir
in $PATH; do
6806 test -z "$ac_dir" && ac_dir
=.
6807 for ac_exec_ext
in '' $ac_executable_extensions; do
6808 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6809 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6810 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6820 valgrind_path
="$ac_cv_path_valgrind_path"
6821 if test -n "$valgrind_path"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6823 $as_echo "$valgrind_path" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6829 if test "x$valgrind_path" = "x" \
6830 ||
(test $have_valgrind_h = no \
6831 && test $gcc_cv_header_memcheck_h = no \
6832 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6833 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6835 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6836 valgrind_command
="$valgrind_path -q"
6838 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6840 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6842 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6845 if test $gcc_cv_header_memcheck_h = yes; then
6847 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6854 # Enable code coverage collection
6855 # Check whether --enable-coverage was given.
6856 if test "${enable_coverage+set}" = set; then :
6857 enableval
=$enable_coverage; case "${enableval}" in
6859 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6862 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6865 # a.k.a. --disable-coverage
6869 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6878 # Check whether --enable-gather-detailed-mem-stats was given.
6879 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6880 enableval
=$enable_gather_detailed_mem_stats;
6882 enable_gather_detailed_mem_stats
=no
6885 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6887 cat >>confdefs.h
<<_ACEOF
6888 #define GATHER_STATISTICS $gather_stats
6892 # -------------------------------
6893 # Miscenalleous configure options
6894 # -------------------------------
6898 # Check whether --with-stabs was given.
6899 if test "${with_stabs+set}" = set; then :
6900 withval
=$with_stabs; stabs
="$with_stabs"
6906 # Determine whether or not multilibs are enabled.
6907 # Check whether --enable-multilib was given.
6908 if test "${enable_multilib+set}" = set; then :
6909 enableval
=$enable_multilib;
6916 # Determine whether or not multiarch is enabled.
6917 # Check whether --enable-multiarch was given.
6918 if test "${enable_multiarch+set}" = set; then :
6919 enableval
=$enable_multiarch; case "${enableval}" in
6920 yes|no|auto
) enable_multiarch
=$enableval;;
6921 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6924 enable_multiarch
=auto
6927 if test x
${enable_multiarch} = xauto
; then
6928 if test x
${with_native_system_header_dir} != x
; then
6929 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
6932 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
6933 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6938 $as_echo_n "checking for multiarch configuration... " >&6; }
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6941 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6943 # needed for setting the multiarch name for soft-float/hard-float ABIs
6947 # Enable __cxa_atexit for C++.
6948 # Check whether --enable-__cxa_atexit was given.
6949 if test "${enable___cxa_atexit+set}" = set; then :
6950 enableval
=$enable___cxa_atexit;
6954 # Enable C extension for decimal float if target supports it.
6956 # Check whether --enable-decimal-float was given.
6957 if test "${enable_decimal_float+set}" = set; then :
6958 enableval
=$enable_decimal_float;
6959 case $enable_decimal_float in
6960 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6961 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6962 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6968 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6970 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6971 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
6972 enable_decimal_float
=yes
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6976 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6977 enable_decimal_float
=no
6984 # x86's use BID format instead of DPD
6985 case x
$enable_decimal_float in
6988 i?
86*-*-* | x86_64
*-*-*)
6989 enable_decimal_float
=bid
6992 enable_decimal_float
=dpd
6995 default_decimal_float
=$enable_decimal_float
6998 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6999 # dependency on libdecnumber.
7000 default_decimal_float
=dpd
7007 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7009 cat >>confdefs.h
<<_ACEOF
7010 #define ENABLE_DECIMAL_FLOAT $dfp
7014 # Use default_decimal_float for dependency.
7015 enable_decimal_float
=$default_decimal_float
7017 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7019 cat >>confdefs.h
<<_ACEOF
7020 #define ENABLE_DECIMAL_BID_FORMAT $bid
7024 # Enable C extension for fixed-point arithmetic.
7025 # Check whether --enable-fixed-point was given.
7026 if test "${enable_fixed_point+set}" = set; then :
7027 enableval
=$enable_fixed_point;
7032 enable_fixed_point
=yes
7036 enable_fixed_point
=yes
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7040 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7041 enable_fixed_point
=no
7049 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7051 cat >>confdefs.h
<<_ACEOF
7052 #define ENABLE_FIXED_POINT $fixedpoint
7057 # Pass with no value to take the default
7058 # Pass with a value to specify a thread package
7059 # Check whether --enable-threads was given.
7060 if test "${enable_threads+set}" = set; then :
7061 enableval
=$enable_threads;
7067 # Check whether --enable-tls was given.
7068 if test "${enable_tls+set}" = set; then :
7069 enableval
=$enable_tls;
7072 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7073 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7081 # Check whether --enable-objc-gc was given.
7082 if test "${enable_objc_gc+set}" = set; then :
7083 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7094 # Check whether --with-dwarf2 was given.
7095 if test "${with_dwarf2+set}" = set; then :
7096 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7102 # Check whether --enable-shared was given.
7103 if test "${enable_shared+set}" = set; then :
7104 enableval
=$enable_shared;
7105 case $enable_shared in
7109 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7110 for pkg
in $enableval; do
7111 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7126 # Check whether --with-native-system-header-dir was given.
7127 if test "${with_native_system_header_dir+set}" = set; then :
7128 withval
=$with_native_system_header_dir;
7129 case ${with_native_system_header_dir} in
7130 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7131 /* |
[A-Za-z
]:[\\/]*) ;;
7132 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7134 configured_native_system_header_dir
="${withval}"
7137 configured_native_system_header_dir
=
7142 # Check whether --with-build-sysroot was given.
7143 if test "${with_build_sysroot+set}" = set; then :
7144 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7145 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7148 SYSROOT_CFLAGS_FOR_TARGET
=
7153 if test "x$prefix" = xNONE
; then
7154 test_prefix
=/usr
/local
7158 if test "x$exec_prefix" = xNONE
; then
7159 test_exec_prefix
=$test_prefix
7161 test_exec_prefix
=$exec_prefix
7165 # Check whether --with-sysroot was given.
7166 if test "${with_sysroot+set}" = set; then :
7167 withval
=$with_sysroot;
7168 case ${with_sysroot} in
7169 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7170 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7173 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7174 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7176 case ${TARGET_SYSTEM_ROOT} in
7177 "${test_prefix}"|
"${test_prefix}/"*|\
7178 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7179 '${prefix}'|
'${prefix}/'*|\
7180 '${exec_prefix}'|
'${exec_prefix}/'*)
7181 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7182 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7189 TARGET_SYSTEM_ROOT_DEFINE
=
7190 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7199 # Check whether --with-specs was given.
7200 if test "${with_specs+set}" = set; then :
7201 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7211 # Check whether --with-pkgversion was given.
7212 if test "${with_pkgversion+set}" = set; then :
7213 withval
=$with_pkgversion; case "$withval" in
7214 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7216 *) PKGVERSION
="($withval) " ;;
7227 # Check whether --with-bugurl was given.
7228 if test "${with_bugurl+set}" = set; then :
7229 withval
=$with_bugurl; case "$withval" in
7230 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7233 *) BUGURL
="$withval"
7237 BUGURL
="http://gcc.gnu.org/bugs.html"
7247 REPORT_BUGS_TO
="<$BUGURL>"
7248 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7255 # Sanity check enable_languages in case someone does not run the toplevel
7256 # configure # script.
7257 # Check whether --enable-languages was given.
7258 if test "${enable_languages+set}" = set; then :
7259 enableval
=$enable_languages; case ,${enable_languages}, in
7261 # go safe -- we cannot be much sure without the toplevel
7263 # analysis of which target libs are present and usable
7267 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7272 enable_languages
=c
,${enable_languages}
7281 # Check whether --with-multilib-list was given.
7282 if test "${with_multilib_list+set}" = set; then :
7283 withval
=$with_multilib_list; :
7285 with_multilib_list
=default
7289 # -------------------------
7290 # Checks for other programs
7291 # -------------------------
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7294 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7296 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7297 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7298 $as_echo_n "(cached) " >&6
7300 cat >conftest.
make <<\_ACEOF
7303 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7305 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7306 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7308 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7310 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7314 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7316 $as_echo "yes" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 SET_MAKE
="MAKE=${MAKE-make}"
7325 # Find some useful tools
7326 for ac_prog
in gawk mawk nawk
awk
7328 # Extract the first word of "$ac_prog", so it can be a program name with args.
7329 set dummy
$ac_prog; ac_word
=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if test "${ac_cv_prog_AWK+set}" = set; then :
7333 $as_echo_n "(cached) " >&6
7335 if test -n "$AWK"; then
7336 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir
=.
7343 for ac_exec_ext
in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_prog_AWK
="$ac_prog"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 if test -n "$AWK"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7358 $as_echo "$AWK" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7365 test -n "$AWK" && break
7368 # We need awk to create options.c and options.h.
7369 # Bail out if it's missing.
7371 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7375 $as_echo_n "checking whether ln -s works... " >&6; }
7376 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7377 $as_echo_n "(cached) " >&6
7379 rm -f conftestdata_t
7380 echo >conftestdata_f
7381 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7383 gcc_cv_prog_LN_S
="ln -s"
7385 if ln conftestdata_f conftestdata_t
2>/dev
/null
7389 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7391 gcc_cv_prog_LN_S
="cp -p"
7397 rm -f conftestdata_f conftestdata_t
7400 LN_S
="$gcc_cv_prog_LN_S"
7401 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7403 $as_echo "yes" >&6; }
7405 if test "$gcc_cv_prog_LN_S" = "ln"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7407 $as_echo "no, using ln" >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7410 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7415 $as_echo_n "checking whether ln works... " >&6; }
7416 if test "${acx_cv_prog_LN+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7419 rm -f conftestdata_t
7420 echo >conftestdata_f
7421 if ln conftestdata_f conftestdata_t
2>/dev
/null
7427 rm -f conftestdata_f conftestdata_t
7430 if test $acx_cv_prog_LN = no
; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7433 $as_echo "no, using $LN" >&6; }
7435 LN
="$acx_cv_prog_LN"
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7437 $as_echo "yes" >&6; }
7440 if test -n "$ac_tool_prefix"; then
7441 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7442 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7448 if test -n "$RANLIB"; then
7449 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir
=.
7456 for ac_exec_ext
in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 RANLIB
=$ac_cv_prog_RANLIB
7469 if test -n "$RANLIB"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7471 $as_echo "$RANLIB" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7479 if test -z "$ac_cv_prog_RANLIB"; then
7480 ac_ct_RANLIB
=$RANLIB
7481 # Extract the first word of "ranlib", so it can be a program name with args.
7482 set dummy ranlib
; ac_word
=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7488 if test -n "$ac_ct_RANLIB"; then
7489 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir
=.
7496 for ac_exec_ext
in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7509 if test -n "$ac_ct_RANLIB"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7511 $as_echo "$ac_ct_RANLIB" >&6; }
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7517 if test "x$ac_ct_RANLIB" = x
; then
7520 case $cross_compiling:$ac_tool_warned in
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524 ac_tool_warned
=yes ;;
7526 RANLIB
=$ac_ct_RANLIB
7529 RANLIB
="$ac_cv_prog_RANLIB"
7535 # Find a good install program. We prefer a C program (faster),
7536 # so one script is as good as another. But avoid the broken or
7537 # incompatible versions:
7538 # SysV /etc/install, /usr/sbin/install
7539 # SunOS /usr/etc/install
7540 # IRIX /sbin/install
7542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7544 # ./install, which can be erroneously created by make from ./install.sh.
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7546 $as_echo_n "checking for a BSD compatible install... " >&6; }
7547 if test -z "$INSTALL"; then
7548 if test "${ac_cv_path_install+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7551 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7552 for ac_dir
in $PATH; do
7553 # Account for people who put trailing slashes in PATH elements.
7555 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7557 # OSF1 and SCO ODT 3.0 have their own names for install.
7558 for ac_prog
in ginstall scoinst
install; do
7559 if test -f $ac_dir/$ac_prog; then
7560 if test $ac_prog = install &&
7561 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7562 # AIX install. It has an incompatible calling convention.
7563 # OSF/1 installbsd also uses dspmsg, but is usable.
7566 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7577 if test "${ac_cv_path_install+set}" = set; then
7578 INSTALL
="$ac_cv_path_install"
7580 # As a last resort, use the slow shell script. We don't cache a
7581 # path for INSTALL within a source directory, because that will
7582 # break other packages using the cache if that directory is
7583 # removed, or if the path is relative.
7584 INSTALL
="$ac_install_sh"
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7588 $as_echo "$INSTALL" >&6; }
7590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7591 # It thinks the first close brace ends the variable substitution.
7592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7594 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7597 # See if cmp has --ignore-initial.
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7599 $as_echo_n "checking for cmp's capabilities... " >&6; }
7600 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7601 $as_echo_n "(cached) " >&6
7605 gcc_cv_prog_cmp_skip
=slowcompare
7606 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7607 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7610 gcc_cv_prog_cmp_skip
=gnucompare
7613 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7614 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7615 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7618 gcc_cv_prog_cmp_skip
=fastcompare
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7626 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7627 make_compare_target
=$gcc_cv_prog_cmp_skip
7631 # See if we have the mktemp command.
7632 # Extract the first word of "mktemp", so it can be a program name with args.
7633 set dummy mktemp
; ac_word
=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7639 if test -n "$have_mktemp_command"; then
7640 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir
=.
7647 for ac_exec_ext
in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_prog_have_mktemp_command
="yes"
7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7660 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7661 if test -n "$have_mktemp_command"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7663 $as_echo "$have_mktemp_command" >&6; }
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7671 # See if makeinfo has been installed and is modern enough
7672 # that we can use it.
7674 # Extract the first word of "makeinfo", so it can be a program name with args.
7675 set dummy makeinfo
; ac_word
=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7681 if test -n "$MAKEINFO"; then
7682 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7688 test -z "$as_dir" && as_dir
=.
7689 for ac_exec_ext
in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 ac_cv_prog_MAKEINFO
="makeinfo"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 MAKEINFO
=$ac_cv_prog_MAKEINFO
7702 if test -n "$MAKEINFO"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7704 $as_echo "$MAKEINFO" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7711 if test -n "$MAKEINFO"; then
7712 # Found it, now check the version.
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7714 $as_echo_n "checking for modern makeinfo... " >&6; }
7715 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7716 $as_echo_n "(cached) " >&6
7718 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7719 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7721 case $ac_prog_version in
7722 '') gcc_cv_prog_makeinfo_modern
=no
;;
7723 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7724 *) gcc_cv_prog_makeinfo_modern
=no
;;
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7729 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7731 gcc_cv_prog_makeinfo_modern
=no
7733 if test $gcc_cv_prog_makeinfo_modern = no
; then
7734 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7737 if test $gcc_cv_prog_makeinfo_modern = no
; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7739 *** Makeinfo is missing or too old.
7740 *** Info documentation will not be built." >&5
7741 $as_echo "$as_me: WARNING:
7742 *** Makeinfo is missing or too old.
7743 *** Info documentation will not be built." >&2;}
7750 # Is pod2man recent enough to regenerate manpages?
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7752 $as_echo_n "checking for recent Pod::Man... " >&6; }
7753 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7755 $as_echo "yes" >&6; }
7756 GENERATED_MANPAGES
=generated-manpages
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7764 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7769 # Extract the first word of "$ac_prog", so it can be a program name with args.
7770 set dummy
$ac_prog; ac_word
=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if test "${ac_cv_prog_FLEX+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7776 if test -n "$FLEX"; then
7777 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir
=.
7784 for ac_exec_ext
in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7786 ac_cv_prog_FLEX
="$ac_prog"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 FLEX
=$ac_cv_prog_FLEX
7797 if test -n "$FLEX"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7799 $as_echo "$FLEX" >&6; }
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7806 test -n "$FLEX" && break
7808 test -n "$FLEX" || FLEX
="$MISSING flex"
7812 for ac_prog
in bison
7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
7815 set dummy
$ac_prog; ac_word
=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if test "${ac_cv_prog_BISON+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7821 if test -n "$BISON"; then
7822 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir
=.
7829 for ac_exec_ext
in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_prog_BISON
="$ac_prog"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 BISON
=$ac_cv_prog_BISON
7842 if test -n "$BISON"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7844 $as_echo "$BISON" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7851 test -n "$BISON" && break
7853 test -n "$BISON" || BISON
="$MISSING bison"
7856 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7857 # check for build == host before using them.
7860 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7861 && test -d ..
/binutils
; then
7862 NM
='${objdir}/../binutils/nm-new'
7864 # Extract the first word of "nm", so it can be a program name with args.
7865 set dummy nm
; ac_word
=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if test "${ac_cv_prog_NM+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7871 if test -n "$NM"; then
7872 ac_cv_prog_NM
="$NM" # Let the user override the test.
7874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7878 test -z "$as_dir" && as_dir
=.
7879 for ac_exec_ext
in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7893 if test -n "$NM"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7895 $as_echo "$NM" >&6; }
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7905 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7906 && test -d ..
/binutils
; then
7907 AR
='${objdir}/../binutils/ar'
7909 # Extract the first word of "ar", so it can be a program name with args.
7910 set dummy
ar; ac_word
=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if test "${ac_cv_prog_AR+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7916 if test -n "$AR"; then
7917 ac_cv_prog_AR
="$AR" # Let the user override the test.
7919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7923 test -z "$as_dir" && as_dir
=.
7924 for ac_exec_ext
in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7938 if test -n "$AR"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7940 $as_echo "$AR" >&6; }
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7950 # --------------------
7951 # Checks for C headers
7952 # --------------------
7954 # Need to reject headers which give warnings, so that the -Werror bootstrap
7955 # works later. *sigh* This needs to come before all header checks.
7957 ac_c_preproc_warn_flag
=yes
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7960 $as_echo_n "checking for ANSI C header files... " >&6; }
7961 if test "${ac_cv_header_stdc+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7979 if ac_fn_c_try_compile
"$LINENO"; then :
7980 ac_cv_header_stdc
=yes
7982 ac_cv_header_stdc
=no
7984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7986 if test $ac_cv_header_stdc = yes; then
7987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7994 $EGREP "memchr" >/dev
/null
2>&1; then :
7997 ac_cv_header_stdc
=no
8003 if test $ac_cv_header_stdc = yes; then
8004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8011 $EGREP "free" >/dev
/null
2>&1; then :
8014 ac_cv_header_stdc
=no
8020 if test $ac_cv_header_stdc = yes; then
8021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8022 if test "$cross_compiling" = yes; then :
8025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8029 #if ((' ' & 0x0FF) == 0x020)
8030 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8031 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8033 # define ISLOWER(c) \
8034 (('a' <= (c) && (c) <= 'i') \
8035 || ('j' <= (c) && (c) <= 'r') \
8036 || ('s' <= (c) && (c) <= 'z'))
8037 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8040 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8045 for (i = 0; i < 256; i++)
8046 if (XOR (islower (i), ISLOWER (i))
8047 || toupper (i) != TOUPPER (i))
8052 if ac_fn_c_try_run
"$LINENO"; then :
8055 ac_cv_header_stdc
=no
8057 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8058 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8064 $as_echo "$ac_cv_header_stdc" >&6; }
8065 if test $ac_cv_header_stdc = yes; then
8067 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8072 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8073 if test "${ac_cv_header_time+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
8076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8078 #include <sys/types.h>
8079 #include <sys/time.h>
8085 if ((struct tm *) 0)
8091 if ac_fn_c_try_compile
"$LINENO"; then :
8092 ac_cv_header_time
=yes
8094 ac_cv_header_time
=no
8096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8099 $as_echo "$ac_cv_header_time" >&6; }
8100 if test $ac_cv_header_time = yes; then
8102 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8107 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8108 if test "${gcc_cv_header_string+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8114 #include <strings.h>
8123 if ac_fn_c_try_compile
"$LINENO"; then :
8124 gcc_cv_header_string
=yes
8126 gcc_cv_header_string
=no
8128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8131 $as_echo "$gcc_cv_header_string" >&6; }
8132 if test $gcc_cv_header_string = yes; then
8134 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8139 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8140 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8141 $as_echo_n "(cached) " >&6
8143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145 #include <sys/types.h>
8146 #include <sys/wait.h>
8148 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8151 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8159 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8164 if ac_fn_c_try_compile
"$LINENO"; then :
8165 ac_cv_header_sys_wait_h
=yes
8167 ac_cv_header_sys_wait_h
=no
8169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8172 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8173 if test $ac_cv_header_sys_wait_h = yes; then
8175 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8180 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8181 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8182 $as_echo_n "(cached) " >&6
8184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186 #include <sys/types.h>
8187 #include <termios.h>
8193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8194 $EGREP "yes" >/dev
/null
2>&1; then :
8195 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8197 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8203 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8205 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8207 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8208 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h. */
8213 #include <sys/types.h>
8214 #include <sys/ioctl.h>
8220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8221 $EGREP "yes" >/dev
/null
2>&1; then :
8222 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8224 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8230 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8232 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8234 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8239 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8240 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8241 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8242 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8244 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8245 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8246 eval as_val
=\$
$as_ac_Header
8247 if test "x$as_val" = x
""yes; then :
8248 cat >>confdefs.h
<<_ACEOF
8249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8256 # Check for thread headers.
8257 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8258 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8264 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8265 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8272 # These tests can't be done till we know if we have limits.h.
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8274 $as_echo_n "checking for CHAR_BIT... " >&6; }
8275 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 #ifdef HAVE_LIMITS_H
8287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8288 $EGREP "found" >/dev
/null
2>&1; then :
8289 gcc_cv_decl_char_bit
=yes
8291 gcc_cv_decl_char_bit
=no
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8298 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8299 if test $gcc_cv_decl_char_bit = no
; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8301 $as_echo_n "checking number of bits in a byte... " >&6; }
8302 if test "${gcc_cv_c_nbby+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8307 while test $i -lt 65; do
8308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8315 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8316 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8322 if ac_fn_c_try_compile
"$LINENO"; then :
8323 gcc_cv_c_nbby
=$i; break
8325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8328 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8332 $as_echo "$gcc_cv_c_nbby" >&6; }
8333 if test $gcc_cv_c_nbby = failed
; then
8334 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8337 cat >>confdefs.h
<<_ACEOF
8338 #define CHAR_BIT $gcc_cv_c_nbby
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8344 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8345 if test "${ac_cv_c_bigendian+set}" = set; then :
8346 $as_echo_n "(cached) " >&6
8348 ac_cv_c_bigendian
=unknown
8349 # See if we're dealing with a universal compiler.
8350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 #ifndef __APPLE_CC__
8353 not a universal capable compiler
8358 if ac_fn_c_try_compile
"$LINENO"; then :
8360 # Check for potential -arch flags. It is not universal unless
8361 # there are at least two -arch flags with different values.
8364 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8365 if test -n "$ac_prev"; then
8367 i?
86 | x86_64 | ppc | ppc64
)
8368 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8371 ac_cv_c_bigendian
=universal
8377 elif test "x$ac_word" = "x-arch"; then
8382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8383 if test $ac_cv_c_bigendian = unknown
; then
8384 # See if sys/param.h defines the BYTE_ORDER macro.
8385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8387 #include <sys/types.h>
8388 #include <sys/param.h>
8393 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8394 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8403 if ac_fn_c_try_compile
"$LINENO"; then :
8404 # It does; now see whether it defined to BIG_ENDIAN or not.
8405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8407 #include <sys/types.h>
8408 #include <sys/param.h>
8413 #if BYTE_ORDER != BIG_ENDIAN
8421 if ac_fn_c_try_compile
"$LINENO"; then :
8422 ac_cv_c_bigendian
=yes
8424 ac_cv_c_bigendian
=no
8426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8430 if test $ac_cv_c_bigendian = unknown
; then
8431 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8439 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8447 if ac_fn_c_try_compile
"$LINENO"; then :
8448 # It does; now see whether it defined to _BIG_ENDIAN or not.
8449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8450 /* end confdefs.h. */
8464 if ac_fn_c_try_compile
"$LINENO"; then :
8465 ac_cv_c_bigendian
=yes
8467 ac_cv_c_bigendian
=no
8469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8473 if test $ac_cv_c_bigendian = unknown
; then
8474 # Compile a test program.
8475 if test "$cross_compiling" = yes; then :
8476 # Try to guess by grepping values from an object file.
8477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479 short int ascii_mm[] =
8480 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8481 short int ascii_ii[] =
8482 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8483 int use_ascii (int i) {
8484 return ascii_mm[i] + ascii_ii[i];
8486 short int ebcdic_ii[] =
8487 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8488 short int ebcdic_mm[] =
8489 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8490 int use_ebcdic (int i) {
8491 return ebcdic_mm[i] + ebcdic_ii[i];
8498 return use_ascii (foo) == use_ebcdic (foo);
8503 if ac_fn_c_try_compile
"$LINENO"; then :
8504 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8505 ac_cv_c_bigendian
=yes
8507 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8508 if test "$ac_cv_c_bigendian" = unknown
; then
8509 ac_cv_c_bigendian
=no
8511 # finding both strings is unlikely to happen, but who knows?
8512 ac_cv_c_bigendian
=unknown
8516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8520 $ac_includes_default
8525 /* Are we little or big endian? From Harbison&Steele. */
8529 char c[sizeof (long int)];
8532 return u.c[sizeof (long int) - 1] == 1;
8538 if ac_fn_c_try_run
"$LINENO"; then :
8539 ac_cv_c_bigendian
=no
8541 ac_cv_c_bigendian
=yes
8543 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8544 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8550 $as_echo "$ac_cv_c_bigendian" >&6; }
8551 case $ac_cv_c_bigendian in #(
8553 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8559 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8563 as_fn_error
"unknown endianness
8564 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8568 # ----------------------
8569 # Checks for C++ headers
8570 # ----------------------
8573 ac_cpp
='$CXXCPP $CPPFLAGS'
8574 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8575 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8576 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8578 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8579 if test -z "$CXXCPP"; then
8580 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8583 # Double quotes because CXXCPP needs to be expanded
8584 for CXXCPP
in "$CXX -E" "/lib/cpp"
8587 for ac_cxx_preproc_warn_flag
in '' yes
8589 # Use a header file that comes with gcc, so configuring glibc
8590 # with a fresh cross-compiler works.
8591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8592 # <limits.h> exists even on freestanding compilers.
8593 # On the NeXT, cc -E runs the code through the compiler's parser,
8594 # not just through cpp. "Syntax error" is here to catch this case.
8595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8598 # include <limits.h>
8600 # include <assert.h>
8604 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8607 # Broken: fails on valid input.
8610 rm -f conftest.err conftest.
$ac_ext
8612 # OK, works on sane cases. Now check whether nonexistent headers
8613 # can be detected and how.
8614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 #include <ac_nonexistent.h>
8618 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8619 # Broken: success on invalid input.
8622 # Passes both tests.
8626 rm -f conftest.err conftest.
$ac_ext
8629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8630 rm -f conftest.err conftest.
$ac_ext
8631 if $ac_preproc_ok; then :
8636 ac_cv_prog_CXXCPP
=$CXXCPP
8639 CXXCPP
=$ac_cv_prog_CXXCPP
8641 ac_cv_prog_CXXCPP
=$CXXCPP
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8644 $as_echo "$CXXCPP" >&6; }
8646 for ac_cxx_preproc_warn_flag
in '' yes
8648 # Use a header file that comes with gcc, so configuring glibc
8649 # with a fresh cross-compiler works.
8650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8651 # <limits.h> exists even on freestanding compilers.
8652 # On the NeXT, cc -E runs the code through the compiler's parser,
8653 # not just through cpp. "Syntax error" is here to catch this case.
8654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8657 # include <limits.h>
8659 # include <assert.h>
8663 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8666 # Broken: fails on valid input.
8669 rm -f conftest.err conftest.
$ac_ext
8671 # OK, works on sane cases. Now check whether nonexistent headers
8672 # can be detected and how.
8673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8675 #include <ac_nonexistent.h>
8677 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8678 # Broken: success on invalid input.
8681 # Passes both tests.
8685 rm -f conftest.err conftest.
$ac_ext
8688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8689 rm -f conftest.err conftest.
$ac_ext
8690 if $ac_preproc_ok; then :
8693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8696 See \`config.log' for more details." >&5
8697 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8698 See \`config.log' for more details." >&2;}; }
8702 ac_cpp
='$CPP $CPPFLAGS'
8703 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8704 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8705 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8709 ac_cpp
='$CXXCPP $CPPFLAGS'
8710 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8711 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8712 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8717 for ac_header
in unordered_map
8719 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8720 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8721 cat >>confdefs.h
<<_ACEOF
8722 #define HAVE_UNORDERED_MAP 1
8728 for ac_header
in tr1/unordered_map
8730 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8731 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8732 cat >>confdefs.h
<<_ACEOF
8733 #define HAVE_TR1_UNORDERED_MAP 1
8739 for ac_header
in ext
/hash_map
8741 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8742 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8743 cat >>confdefs.h
<<_ACEOF
8744 #define HAVE_EXT_HASH_MAP 1
8752 ac_cpp
='$CPP $CPPFLAGS'
8753 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8759 # Dependency checking.
8763 ac_cpp
='$CXXCPP $CPPFLAGS'
8764 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8765 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8766 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8768 rm -rf .tst
2>/dev
/null
8769 mkdir .tst
2>/dev
/null
8770 if test -d .tst
; then
8775 rmdir .tst
2>/dev
/null
8777 DEPDIR
="${am__leading_dot}deps"
8779 ac_config_commands
="$ac_config_commands depdir"
8782 ac_config_commands
="$ac_config_commands gccdepdir"
8785 depcc
="$CXX" am_compiler_list
=
8787 am_depcomp
=$ac_aux_dir/depcomp
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8789 $as_echo_n "checking dependency style of $depcc... " >&6; }
8790 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
8793 if test -f "$am_depcomp"; then
8794 # We make a subdir and do the tests there. Otherwise we can end up
8795 # making bogus files that we don't know about and never remove. For
8796 # instance it was reported that on HP-UX the gcc test will end up
8797 # making a dummy file named `D' -- because `-MD' means `put the output
8800 # Copy depcomp to subdir because otherwise we won't find it if we're
8801 # using a relative directory.
8802 cp "$am_depcomp" conftest.dir
8804 # We will build objects and dependencies in a subdirectory because
8805 # it helps to detect inapplicable dependency modes. For instance
8806 # both Tru64's cc and ICC support -MD to output dependencies as a
8807 # side effect of compilation, but ICC will put the dependencies in
8808 # the current directory while Tru64 will put them in the object
8812 am_cv_CXX_dependencies_compiler_type
=none
8813 if test "$am_compiler_list" = ""; then
8814 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8816 for depmode
in $am_compiler_list; do
8817 if test $depmode = none
; then break; fi
8819 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8820 # Setup a source with many dependencies, because some compilers
8821 # like to wrap large dependency lists on column 80 (with \), and
8822 # we should not choose a depcomp mode which is confused by this.
8824 # We need to recreate these files for each test, as the compiler may
8825 # overwrite some of them when testing with obscure command lines.
8826 # This happens at least with the AIX C compiler.
8828 for i
in 1 2 3 4 5 6; do
8829 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
8830 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8831 # Solaris 8's {/usr,}/bin/sh.
8832 touch sub
/conftst
$i.h
8834 echo "include sub/conftest.Po" > confmf
8836 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8837 # mode. It turns out that the SunPro C++ compiler does not properly
8838 # handle `-M -o', and we need to detect this.
8839 depcmd
="depmode=$depmode \
8840 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8841 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8842 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8843 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
8844 if env
$depcmd > conftest.err
2>&1 &&
8845 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
8846 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
8847 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
8848 # icc doesn't choke on unknown options, it will just issue warnings
8849 # or remarks (even with -Werror). So we grep stderr for any message
8850 # that says an option was ignored or not supported.
8851 # When given -MP, icc 7.0 and 7.1 complain thusly:
8852 # icc: Command line warning: ignoring option '-M'; no argument required
8853 # The diagnosis changed in icc 8.0:
8854 # icc: Command line remark: option '-MP' not supported
8855 if (grep 'ignoring option' conftest.err ||
8856 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
8857 am_cv_CXX_dependencies_compiler_type
=$depmode
8858 $as_echo "$as_me:$LINENO: success" >&5
8862 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8863 sed -e 's/^/| /' < conftest.err
>&5
8869 am_cv_CXX_dependencies_compiler_type
=none
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8874 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8875 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
8876 then as_fn_error
"no usable dependency style found" "$LINENO" 5
8877 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
8882 ac_cpp
='$CPP $CPPFLAGS'
8883 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8893 # These libraries may be used by collect2.
8894 # We may need a special search path to get them linked.
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8896 $as_echo_n "checking for collect2 libraries... " >&6; }
8897 if test "${gcc_cv_collect2_libs+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8901 for libs
in '' -lld -lmld \
8902 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8903 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8909 /* Override any GCC internal prototype to avoid an error.
8910 Use char because int might match the return type of a GCC
8911 builtin and then its argument prototype would still apply. */
8924 if ac_fn_c_try_link
"$LINENO"; then :
8925 gcc_cv_collect2_libs
="$libs"; break
8927 rm -f core conftest.err conftest.
$ac_objext \
8928 conftest
$ac_exeext conftest.
$ac_ext
8931 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8934 $as_echo "$gcc_cv_collect2_libs" >&6; }
8935 case $gcc_cv_collect2_libs in
8937 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8941 # When building Ada code on Alpha, we need exc_resume which is usually in
8942 # -lexc. So test for it.
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8946 $as_echo_n "checking for library containing exc_resume... " >&6; }
8947 if test "${ac_cv_search_exc_resume+set}" = set; then :
8948 $as_echo_n "(cached) " >&6
8950 ac_func_search_save_LIBS
=$LIBS
8951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8954 /* Override any GCC internal prototype to avoid an error.
8955 Use char because int might match the return type of a GCC
8956 builtin and then its argument prototype would still apply. */
8964 return exc_resume ();
8969 for ac_lib
in '' exc
; do
8970 if test -z "$ac_lib"; then
8971 ac_res
="none required"
8974 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8976 if ac_fn_c_try_link
"$LINENO"; then :
8977 ac_cv_search_exc_resume
=$ac_res
8979 rm -f core conftest.err conftest.
$ac_objext \
8981 if test "${ac_cv_search_exc_resume+set}" = set; then :
8985 if test "${ac_cv_search_exc_resume+set}" = set; then :
8988 ac_cv_search_exc_resume
=no
8991 LIBS
=$ac_func_search_save_LIBS
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8994 $as_echo "$ac_cv_search_exc_resume" >&6; }
8995 ac_res
=$ac_cv_search_exc_resume
8996 if test "$ac_res" != no
; then :
8997 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9005 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9009 $as_echo_n "checking for library containing kstat_open... " >&6; }
9010 if test "${ac_cv_search_kstat_open+set}" = set; then :
9011 $as_echo_n "(cached) " >&6
9013 ac_func_search_save_LIBS
=$LIBS
9014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9017 /* Override any GCC internal prototype to avoid an error.
9018 Use char because int might match the return type of a GCC
9019 builtin and then its argument prototype would still apply. */
9027 return kstat_open ();
9032 for ac_lib
in '' kstat
; do
9033 if test -z "$ac_lib"; then
9034 ac_res
="none required"
9037 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9039 if ac_fn_c_try_link
"$LINENO"; then :
9040 ac_cv_search_kstat_open
=$ac_res
9042 rm -f core conftest.err conftest.
$ac_objext \
9044 if test "${ac_cv_search_kstat_open+set}" = set; then :
9048 if test "${ac_cv_search_kstat_open+set}" = set; then :
9051 ac_cv_search_kstat_open
=no
9054 LIBS
=$ac_func_search_save_LIBS
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9057 $as_echo "$ac_cv_search_kstat_open" >&6; }
9058 ac_res
=$ac_cv_search_kstat_open
9059 if test "$ac_res" != no
; then :
9060 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9064 EXTRA_GCC_LIBS
="$LIBS"
9068 # Some systems put ldexp and frexp in libm instead of libc; assume
9069 # they're both in the same place. jcf-dump needs them.
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9073 $as_echo_n "checking for library containing ldexp... " >&6; }
9074 if test "${ac_cv_search_ldexp+set}" = set; then :
9075 $as_echo_n "(cached) " >&6
9077 ac_func_search_save_LIBS
=$LIBS
9078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9081 /* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9096 for ac_lib
in '' m
; do
9097 if test -z "$ac_lib"; then
9098 ac_res
="none required"
9101 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9103 if ac_fn_c_try_link
"$LINENO"; then :
9104 ac_cv_search_ldexp
=$ac_res
9106 rm -f core conftest.err conftest.
$ac_objext \
9108 if test "${ac_cv_search_ldexp+set}" = set; then :
9112 if test "${ac_cv_search_ldexp+set}" = set; then :
9115 ac_cv_search_ldexp
=no
9118 LIBS
=$ac_func_search_save_LIBS
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9121 $as_echo "$ac_cv_search_ldexp" >&6; }
9122 ac_res
=$ac_cv_search_ldexp
9123 if test "$ac_res" != no
; then :
9124 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9132 # Use <inttypes.h> only if it exists,
9133 # doesn't clash with <sys/types.h>, and declares intmax_t.
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9135 $as_echo_n "checking for inttypes.h... " >&6; }
9136 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9137 $as_echo_n "(cached) " >&6
9139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9141 #include <sys/types.h>
9142 #include <inttypes.h>
9151 if ac_fn_c_try_compile
"$LINENO"; then :
9152 gcc_cv_header_inttypes_h
=yes
9154 gcc_cv_header_inttypes_h
=no
9156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9160 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9161 if test $gcc_cv_header_inttypes_h = yes; then
9163 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9169 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9170 sysconf strsignal getrusage nl_langinfo \
9171 gettimeofday mbstowcs wcswidth mmap setlocale \
9172 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9174 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9175 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9176 eval as_val
=\$
$as_ac_var
9177 if test "x$as_val" = x
""yes; then :
9178 cat >>confdefs.h
<<_ACEOF
9179 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9186 if test x
$ac_cv_func_mbstowcs = xyes
; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9188 $as_echo_n "checking whether mbstowcs works... " >&6; }
9189 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9190 $as_echo_n "(cached) " >&6
9192 if test "$cross_compiling" = yes; then :
9193 gcc_cv_func_mbstowcs_works
=yes
9195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9204 if ac_fn_c_try_run
"$LINENO"; then :
9205 gcc_cv_func_mbstowcs_works
=yes
9207 gcc_cv_func_mbstowcs_works
=no
9209 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9210 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9215 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9216 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9218 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9223 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9224 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9228 cat >>confdefs.h
<<_ACEOF
9234 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9235 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9239 cat >>confdefs.h
<<_ACEOF
9240 #define caddr_t char *
9247 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9248 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9249 gcc_header_sys_mman_h
=yes
9251 gcc_header_sys_mman_h
=no
9254 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9255 if test "x$ac_cv_func_mmap" = x
""yes; then :
9261 if test "$gcc_header_sys_mman_h" != yes \
9262 ||
test "$gcc_func_mmap" != yes; then
9263 gcc_cv_func_mmap_file
=no
9264 gcc_cv_func_mmap_dev_zero
=no
9265 gcc_cv_func_mmap_anon
=no
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9268 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9269 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9270 $as_echo_n "(cached) " >&6
9272 # Add a system to this blacklist if
9273 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9274 # memory area containing the same data that you'd get if you applied
9275 # read() to the same fd. The only system known to have a problem here
9276 # is VMS, where text files have record structure.
9279 gcc_cv_func_mmap_file
=no
;;
9281 gcc_cv_func_mmap_file
=yes;;
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9285 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9287 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9288 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9289 $as_echo_n "(cached) " >&6
9291 # Add a system to this blacklist if it has mmap() but /dev/zero
9292 # does not exist, or if mmapping /dev/zero does not give anonymous
9293 # zeroed pages with both the following properties:
9294 # 1. If you map N consecutive pages in with one call, and then
9295 # unmap any subset of those pages, the pages that were not
9296 # explicitly unmapped remain accessible.
9297 # 2. If you map two adjacent blocks of memory and then unmap them
9298 # both at once, they must both go away.
9299 # Systems known to be in this category are Windows (all variants),
9302 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9303 gcc_cv_func_mmap_dev_zero
=no
;;
9305 gcc_cv_func_mmap_dev_zero
=yes;;
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9309 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9311 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9313 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9314 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9315 $as_echo_n "(cached) " >&6
9317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319 #include <sys/types.h>
9320 #include <sys/mman.h>
9323 #ifndef MAP_ANONYMOUS
9324 #define MAP_ANONYMOUS MAP_ANON
9330 int n = MAP_ANONYMOUS;
9335 if ac_fn_c_try_compile
"$LINENO"; then :
9336 gcc_cv_decl_map_anon
=yes
9338 gcc_cv_decl_map_anon
=no
9340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9343 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9345 if test $gcc_cv_decl_map_anon = no
; then
9346 gcc_cv_func_mmap_anon
=no
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9349 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9350 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9351 $as_echo_n "(cached) " >&6
9353 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9354 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9355 # doesn't give anonymous zeroed pages with the same properties listed
9356 # above for use of /dev/zero.
9357 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9359 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9360 gcc_cv_func_mmap_anon
=no
;;
9362 gcc_cv_func_mmap_anon
=yes;;
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9366 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9370 if test $gcc_cv_func_mmap_file = yes; then
9372 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9375 if test $gcc_cv_func_mmap_dev_zero = yes; then
9377 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9380 if test $gcc_cv_func_mmap_anon = yes; then
9382 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9389 # Under VMS, vfork works very differently than on Unix. The standard test
9390 # won't work, and it isn't easily adaptable. It makes more sense to
9392 ac_cv_func_vfork_works
=yes
9395 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9396 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9400 cat >>confdefs.h
<<_ACEOF
9406 for ac_header
in vfork.h
9408 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9409 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9410 cat >>confdefs.h
<<_ACEOF
9411 #define HAVE_VFORK_H 1
9417 for ac_func
in fork vfork
9419 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9420 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9421 eval as_val
=\$
$as_ac_var
9422 if test "x$as_val" = x
""yes; then :
9423 cat >>confdefs.h
<<_ACEOF
9424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9430 if test "x$ac_cv_func_fork" = xyes
; then
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9432 $as_echo_n "checking for working fork... " >&6; }
9433 if test "${ac_cv_func_fork_works+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9436 if test "$cross_compiling" = yes; then :
9437 ac_cv_func_fork_works
=cross
9439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 $ac_includes_default
9446 /* By Ruediger Kuhlmann. */
9453 if ac_fn_c_try_run
"$LINENO"; then :
9454 ac_cv_func_fork_works
=yes
9456 ac_cv_func_fork_works
=no
9458 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9459 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9464 $as_echo "$ac_cv_func_fork_works" >&6; }
9467 ac_cv_func_fork_works
=$ac_cv_func_fork
9469 if test "x$ac_cv_func_fork_works" = xcross
; then
9471 *-*-amigaos* |
*-*-msdosdjgpp*)
9472 # Override, as these systems have only a dummy fork() stub
9473 ac_cv_func_fork_works
=no
9476 ac_cv_func_fork_works
=yes
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9480 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9482 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9483 if test "x$ac_cv_func_vfork" = xyes
; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9485 $as_echo_n "checking for working vfork... " >&6; }
9486 if test "${ac_cv_func_vfork_works+set}" = set; then :
9487 $as_echo_n "(cached) " >&6
9489 if test "$cross_compiling" = yes; then :
9490 ac_cv_func_vfork_works
=cross
9492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9494 /* Thanks to Paul Eggert for this test. */
9495 $ac_includes_default
9496 #include <sys/wait.h>
9500 /* On some sparc systems, changes by the child to local and incoming
9501 argument registers are propagated back to the parent. The compiler
9502 is told about this with #include <vfork.h>, but some compilers
9503 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9504 static variable whose address is put into a register that is
9505 clobbered by the vfork. */
9508 sparc_address_test (int arg)
9510 sparc_address_test (arg) int arg;
9531 pid_t parent = getpid ();
9534 sparc_address_test (0);
9539 /* Here is another test for sparc vfork register problems. This
9540 test uses lots of local variables, at least as many local
9541 variables as main has allocated so far including compiler
9542 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9543 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9544 reuse the register of parent for one of the local variables,
9545 since it will think that parent can't possibly be used any more
9546 in this routine. Assigning to the local variable will thus
9547 munge parent in the parent process. */
9549 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9550 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9551 /* Convince the compiler that p..p7 are live; otherwise, it might
9552 use the same hardware register for all 8 local variables. */
9553 if (p != p1 || p != p2 || p != p3 || p != p4
9554 || p != p5 || p != p6 || p != p7)
9557 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9558 from child file descriptors. If the child closes a descriptor
9559 before it execs or exits, this munges the parent's descriptor
9560 as well. Test for this by closing stdout in the child. */
9561 _exit(close(fileno(stdout)) != 0);
9566 while (wait(&status) != child)
9569 /* Was there some problem with vforking? */
9572 /* Did the child fail? (This shouldn't happen.) */
9575 /* Did the vfork/compiler bug occur? */
9576 || parent != getpid()
9578 /* Did the file descriptor bug occur? */
9579 || fstat(fileno(stdout), &st) != 0
9584 if ac_fn_c_try_run
"$LINENO"; then :
9585 ac_cv_func_vfork_works
=yes
9587 ac_cv_func_vfork_works
=no
9589 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9590 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9595 $as_echo "$ac_cv_func_vfork_works" >&6; }
9598 if test "x$ac_cv_func_fork_works" = xcross
; then
9599 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9601 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9604 if test "x$ac_cv_func_vfork_works" = xyes
; then
9606 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9610 $as_echo "#define vfork fork" >>confdefs.h
9613 if test "x$ac_cv_func_fork_works" = xyes
; then
9615 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9620 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9621 # iconv() prototype.
9623 ac_cpp
='$CXXCPP $CPPFLAGS'
9624 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9625 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9626 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9629 if test "X$prefix" = "XNONE"; then
9630 acl_final_prefix
="$ac_default_prefix"
9632 acl_final_prefix
="$prefix"
9634 if test "X$exec_prefix" = "XNONE"; then
9635 acl_final_exec_prefix
='${prefix}'
9637 acl_final_exec_prefix
="$exec_prefix"
9639 acl_save_prefix
="$prefix"
9640 prefix
="$acl_final_prefix"
9641 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9642 prefix
="$acl_save_prefix"
9645 # Check whether --with-gnu-ld was given.
9646 if test "${with_gnu_ld+set}" = set; then :
9647 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9652 # Prepare PATH_SEPARATOR.
9653 # The user is always right.
9654 if test "${PATH_SEPARATOR+set}" != set; then
9655 echo "#! /bin/sh" >conf$$.sh
9656 echo "exit 0" >>conf$$.sh
9658 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9666 if test "$GCC" = yes; then
9667 # Check if gcc -print-prog-name=ld gives a path.
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9669 $as_echo_n "checking for ld used by GCC... " >&6; }
9672 # gcc leaves a trailing carriage return which upsets mingw
9673 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9675 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9678 # Accept absolute paths.
9679 [\\/]* |
[A-Za-z
]:[\\/]*)
9680 re_direlt
='/[^/][^/]*/\.\./'
9681 # Canonicalize the path of ld
9682 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9683 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9684 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9686 test -z "$LD" && LD
="$ac_prog"
9689 # If it fails, then pretend we aren't using GCC.
9693 # If it is relative, then search for the first ld in PATH.
9697 elif test "$with_gnu_ld" = yes; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9699 $as_echo_n "checking for GNU ld... " >&6; }
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9702 $as_echo_n "checking for non-GNU ld... " >&6; }
9704 if test "${acl_cv_path_LD+set}" = set; then :
9705 $as_echo_n "(cached) " >&6
9707 if test -z "$LD"; then
9708 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9709 for ac_dir
in $PATH; do
9710 test -z "$ac_dir" && ac_dir
=.
9711 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9712 acl_cv_path_LD
="$ac_dir/$ac_prog"
9713 # Check to see if the program is GNU ld. I'd rather use --version,
9714 # but apparently some GNU ld's only accept -v.
9715 # Break only if it was the GNU/non-GNU ld that we prefer.
9716 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9717 test "$with_gnu_ld" != no
&& break
9719 test "$with_gnu_ld" != yes && break
9725 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9729 LD
="$acl_cv_path_LD"
9730 if test -n "$LD"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9732 $as_echo "$LD" >&6; }
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9737 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9739 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9740 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9741 $as_echo_n "(cached) " >&6
9743 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9744 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9745 acl_cv_prog_gnu_ld
=yes
9747 acl_cv_prog_gnu_ld
=no
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9751 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9752 with_gnu_ld
=$acl_cv_prog_gnu_ld
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9757 $as_echo_n "checking for shared library run path origin... " >&6; }
9758 if test "${acl_cv_rpath+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9762 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9763 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9770 $as_echo "$acl_cv_rpath" >&6; }
9772 libext
="$acl_cv_libext"
9773 shlibext
="$acl_cv_shlibext"
9774 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9775 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9776 hardcode_direct
="$acl_cv_hardcode_direct"
9777 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9778 # Check whether --enable-rpath was given.
9779 if test "${enable_rpath+set}" = set; then :
9780 enableval
=$enable_rpath; :
9794 acl_save_prefix
="$prefix"
9795 prefix
="$acl_final_prefix"
9796 acl_save_exec_prefix
="$exec_prefix"
9797 exec_prefix
="$acl_final_exec_prefix"
9799 eval additional_includedir
=\"$includedir\"
9800 eval additional_libdir
=\"$libdir\"
9802 exec_prefix
="$acl_save_exec_prefix"
9803 prefix
="$acl_save_prefix"
9806 # Check whether --with-libiconv-prefix was given.
9807 if test "${with_libiconv_prefix+set}" = set; then :
9808 withval
=$with_libiconv_prefix;
9809 if test "X$withval" = "Xno"; then
9812 if test "X$withval" = "X"; then
9814 acl_save_prefix
="$prefix"
9815 prefix
="$acl_final_prefix"
9816 acl_save_exec_prefix
="$exec_prefix"
9817 exec_prefix
="$acl_final_exec_prefix"
9819 eval additional_includedir
=\"$includedir\"
9820 eval additional_libdir
=\"$libdir\"
9822 exec_prefix
="$acl_save_exec_prefix"
9823 prefix
="$acl_save_prefix"
9826 additional_includedir
="$withval/include"
9827 additional_libdir
="$withval/lib"
9838 names_already_handled
=
9839 names_next_round
='iconv '
9840 while test -n "$names_next_round"; do
9841 names_this_round
="$names_next_round"
9843 for name
in $names_this_round; do
9845 for n
in $names_already_handled; do
9846 if test "$n" = "$name"; then
9851 if test -z "$already_handled"; then
9852 names_already_handled
="$names_already_handled $name"
9853 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9854 eval value
=\"\
$HAVE_LIB$uppername\"
9855 if test -n "$value"; then
9856 if test "$value" = yes; then
9857 eval value
=\"\
$LIB$uppername\"
9858 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9859 eval value
=\"\
$LTLIB$uppername\"
9860 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9869 if test $use_additional = yes; then
9870 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9871 found_dir
="$additional_libdir"
9872 found_so
="$additional_libdir/lib$name.$shlibext"
9873 if test -f "$additional_libdir/lib$name.la"; then
9874 found_la
="$additional_libdir/lib$name.la"
9877 if test -f "$additional_libdir/lib$name.$libext"; then
9878 found_dir
="$additional_libdir"
9879 found_a
="$additional_libdir/lib$name.$libext"
9880 if test -f "$additional_libdir/lib$name.la"; then
9881 found_la
="$additional_libdir/lib$name.la"
9886 if test "X$found_dir" = "X"; then
9887 for x
in $LDFLAGS $LTLIBICONV; do
9889 acl_save_prefix
="$prefix"
9890 prefix
="$acl_final_prefix"
9891 acl_save_exec_prefix
="$exec_prefix"
9892 exec_prefix
="$acl_final_exec_prefix"
9894 exec_prefix
="$acl_save_exec_prefix"
9895 prefix
="$acl_save_prefix"
9899 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9900 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9902 found_so
="$dir/lib$name.$shlibext"
9903 if test -f "$dir/lib$name.la"; then
9904 found_la
="$dir/lib$name.la"
9907 if test -f "$dir/lib$name.$libext"; then
9909 found_a
="$dir/lib$name.$libext"
9910 if test -f "$dir/lib$name.la"; then
9911 found_la
="$dir/lib$name.la"
9917 if test "X$found_dir" != "X"; then
9922 if test "X$found_dir" != "X"; then
9923 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9924 if test "X$found_so" != "X"; then
9925 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9926 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9929 for x
in $ltrpathdirs; do
9930 if test "X$x" = "X$found_dir"; then
9935 if test -z "$haveit"; then
9936 ltrpathdirs
="$ltrpathdirs $found_dir"
9938 if test "$hardcode_direct" = yes; then
9939 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9941 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9942 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9944 for x
in $rpathdirs; do
9945 if test "X$x" = "X$found_dir"; then
9950 if test -z "$haveit"; then
9951 rpathdirs
="$rpathdirs $found_dir"
9955 for x
in $LDFLAGS $LIBICONV; do
9957 acl_save_prefix
="$prefix"
9958 prefix
="$acl_final_prefix"
9959 acl_save_exec_prefix
="$exec_prefix"
9960 exec_prefix
="$acl_final_exec_prefix"
9962 exec_prefix
="$acl_save_exec_prefix"
9963 prefix
="$acl_save_prefix"
9965 if test "X$x" = "X-L$found_dir"; then
9970 if test -z "$haveit"; then
9971 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9973 if test "$hardcode_minus_L" != no
; then
9974 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9976 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9982 if test "X$found_a" != "X"; then
9983 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9985 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9988 additional_includedir
=
9989 case "$found_dir" in
9991 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9992 additional_includedir
="$basedir/include"
9995 if test "X$additional_includedir" != "X"; then
9996 if test "X$additional_includedir" != "X/usr/include"; then
9998 if test "X$additional_includedir" = "X/usr/local/include"; then
9999 if test -n "$GCC"; then
10001 linux
*) haveit
=yes;;
10005 if test -z "$haveit"; then
10006 for x
in $CPPFLAGS $INCICONV; do
10008 acl_save_prefix
="$prefix"
10009 prefix
="$acl_final_prefix"
10010 acl_save_exec_prefix
="$exec_prefix"
10011 exec_prefix
="$acl_final_exec_prefix"
10013 exec_prefix
="$acl_save_exec_prefix"
10014 prefix
="$acl_save_prefix"
10016 if test "X$x" = "X-I$additional_includedir"; then
10021 if test -z "$haveit"; then
10022 if test -d "$additional_includedir"; then
10023 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10029 if test -n "$found_la"; then
10030 save_libdir
="$libdir"
10031 case "$found_la" in
10032 */* |
*\\*) .
"$found_la" ;;
10033 *) .
"./$found_la" ;;
10035 libdir
="$save_libdir"
10036 for dep
in $dependency_libs; do
10039 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10040 if test "X$additional_libdir" != "X/usr/lib"; then
10042 if test "X$additional_libdir" = "X/usr/local/lib"; then
10043 if test -n "$GCC"; then
10045 linux
*) haveit
=yes;;
10049 if test -z "$haveit"; then
10051 for x
in $LDFLAGS $LIBICONV; do
10053 acl_save_prefix
="$prefix"
10054 prefix
="$acl_final_prefix"
10055 acl_save_exec_prefix
="$exec_prefix"
10056 exec_prefix
="$acl_final_exec_prefix"
10058 exec_prefix
="$acl_save_exec_prefix"
10059 prefix
="$acl_save_prefix"
10061 if test "X$x" = "X-L$additional_libdir"; then
10066 if test -z "$haveit"; then
10067 if test -d "$additional_libdir"; then
10068 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10072 for x
in $LDFLAGS $LTLIBICONV; do
10074 acl_save_prefix
="$prefix"
10075 prefix
="$acl_final_prefix"
10076 acl_save_exec_prefix
="$exec_prefix"
10077 exec_prefix
="$acl_final_exec_prefix"
10079 exec_prefix
="$acl_save_exec_prefix"
10080 prefix
="$acl_save_prefix"
10082 if test "X$x" = "X-L$additional_libdir"; then
10087 if test -z "$haveit"; then
10088 if test -d "$additional_libdir"; then
10089 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10096 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10097 if test "$enable_rpath" != no
; then
10099 for x
in $rpathdirs; do
10100 if test "X$x" = "X$dir"; then
10105 if test -z "$haveit"; then
10106 rpathdirs
="$rpathdirs $dir"
10109 for x
in $ltrpathdirs; do
10110 if test "X$x" = "X$dir"; then
10115 if test -z "$haveit"; then
10116 ltrpathdirs
="$ltrpathdirs $dir"
10121 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10124 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10127 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10128 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10134 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10135 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10141 if test "X$rpathdirs" != "X"; then
10142 if test -n "$hardcode_libdir_separator"; then
10144 for found_dir
in $rpathdirs; do
10145 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10147 acl_save_libdir
="$libdir"
10149 eval flag
=\"$hardcode_libdir_flag_spec\"
10150 libdir
="$acl_save_libdir"
10151 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10153 for found_dir
in $rpathdirs; do
10154 acl_save_libdir
="$libdir"
10155 libdir
="$found_dir"
10156 eval flag
=\"$hardcode_libdir_flag_spec\"
10157 libdir
="$acl_save_libdir"
10158 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10162 if test "X$ltrpathdirs" != "X"; then
10163 for found_dir
in $ltrpathdirs; do
10164 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10174 am_save_CPPFLAGS
="$CPPFLAGS"
10176 for element
in $INCICONV; do
10178 for x
in $CPPFLAGS; do
10180 acl_save_prefix
="$prefix"
10181 prefix
="$acl_final_prefix"
10182 acl_save_exec_prefix
="$exec_prefix"
10183 exec_prefix
="$acl_final_exec_prefix"
10185 exec_prefix
="$acl_save_exec_prefix"
10186 prefix
="$acl_save_prefix"
10188 if test "X$x" = "X$element"; then
10193 if test -z "$haveit"; then
10194 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10200 $as_echo_n "checking for iconv... " >&6; }
10201 if test "${am_cv_func_iconv+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10205 am_cv_func_iconv
="no, consider installing GNU libiconv"
10207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209 #include <stdlib.h>
10214 iconv_t cd = iconv_open("","");
10215 iconv(cd,NULL,NULL,NULL,NULL);
10221 if ac_fn_cxx_try_link
"$LINENO"; then :
10222 am_cv_func_iconv
=yes
10224 rm -f core conftest.err conftest.
$ac_objext \
10225 conftest
$ac_exeext conftest.
$ac_ext
10226 if test "$am_cv_func_iconv" != yes; then
10227 am_save_LIBS
="$LIBS"
10228 LIBS
="$LIBS $LIBICONV"
10229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10231 #include <stdlib.h>
10236 iconv_t cd = iconv_open("","");
10237 iconv(cd,NULL,NULL,NULL,NULL);
10243 if ac_fn_cxx_try_link
"$LINENO"; then :
10244 am_cv_lib_iconv
=yes
10245 am_cv_func_iconv
=yes
10247 rm -f core conftest.err conftest.
$ac_objext \
10248 conftest
$ac_exeext conftest.
$ac_ext
10249 LIBS
="$am_save_LIBS"
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10254 $as_echo "$am_cv_func_iconv" >&6; }
10255 if test "$am_cv_func_iconv" = yes; then
10257 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10260 if test "$am_cv_lib_iconv" = yes; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10262 $as_echo_n "checking how to link with libiconv... " >&6; }
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10264 $as_echo "$LIBICONV" >&6; }
10266 CPPFLAGS
="$am_save_CPPFLAGS"
10273 if test "$am_cv_func_iconv" = yes; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10275 $as_echo_n "checking for iconv declaration... " >&6; }
10276 if test "${am_cv_proto_iconv+set}" = set; then :
10277 $as_echo_n "(cached) " >&6
10280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10283 #include <stdlib.h>
10289 #if defined(__STDC__) || defined(__cplusplus)
10290 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10303 if ac_fn_cxx_try_compile
"$LINENO"; then :
10304 am_cv_proto_iconv_arg1
=""
10306 am_cv_proto_iconv_arg1
="const"
10308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10309 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);"
10312 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10314 }$am_cv_proto_iconv" >&5
10316 }$am_cv_proto_iconv" >&6; }
10318 cat >>confdefs.h
<<_ACEOF
10319 #define ICONV_CONST $am_cv_proto_iconv_arg1
10325 ac_cpp
='$CPP $CPPFLAGS'
10326 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10327 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10328 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10331 # Until we have in-tree GNU iconv:
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10337 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10338 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10339 $as_echo_n "(cached) " >&6
10341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343 #include <locale.h>
10352 if ac_fn_c_try_link
"$LINENO"; then :
10353 am_cv_val_LC_MESSAGES
=yes
10355 am_cv_val_LC_MESSAGES
=no
10357 rm -f core conftest.err conftest.
$ac_objext \
10358 conftest
$ac_exeext conftest.
$ac_ext
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10361 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10362 if test $am_cv_val_LC_MESSAGES = yes; then
10364 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10371 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10372 if test "${am_cv_langinfo_codeset+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
10375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h. */
10377 #include <langinfo.h>
10381 char* cs = nl_langinfo(CODESET);
10386 if ac_fn_c_try_link
"$LINENO"; then :
10387 am_cv_langinfo_codeset
=yes
10389 am_cv_langinfo_codeset
=no
10391 rm -f core conftest.err conftest.
$ac_objext \
10392 conftest
$ac_exeext conftest.
$ac_ext
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10396 $as_echo "$am_cv_langinfo_codeset" >&6; }
10397 if test $am_cv_langinfo_codeset = yes; then
10399 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10404 # We will need to find libiberty.h and ansidecl.h
10405 saved_CFLAGS
="$CFLAGS"
10406 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10407 saved_CXXFLAGS
="$CXXFLAGS"
10408 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10409 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10410 strsignal strstr stpcpy strverscmp \
10411 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10412 free
basename getopt
clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10414 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10416 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10417 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10418 $as_echo_n "(cached) " >&6
10420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 #define $ac_tr_decl 1
10425 #include "ansidecl.h"
10426 #include "system.h"
10432 char *(*pfn) = (char *(*)) $ac_func ;
10438 if ac_fn_c_try_compile
"$LINENO"; then :
10439 eval "gcc_cv_have_decl_$ac_func=yes"
10441 eval "gcc_cv_have_decl_$ac_func=no"
10443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10446 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10448 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10449 #define $ac_tr_decl 1
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10455 #define $ac_tr_decl 0
10463 for ac_func
in getrlimit setrlimit getrusage
10465 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10467 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10468 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10469 $as_echo_n "(cached) " >&6
10471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10474 #define $ac_tr_decl 1
10476 #include "ansidecl.h"
10477 #include "system.h"
10478 #ifdef HAVE_SYS_RESOURCE_H
10479 #include <sys/resource.h>
10487 char *(*pfn) = (char *(*)) $ac_func ;
10493 if ac_fn_c_try_compile
"$LINENO"; then :
10494 eval "gcc_cv_have_decl_$ac_func=yes"
10496 eval "gcc_cv_have_decl_$ac_func=no"
10498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10501 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10503 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10504 #define $ac_tr_decl 1
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10510 #define $ac_tr_decl 0
10518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10519 /* end confdefs.h. */
10521 #include "ansidecl.h"
10522 #include "system.h"
10523 #ifdef HAVE_SYS_RESOURCE_H
10524 #include <sys/resource.h>
10535 if ac_fn_c_try_compile
"$LINENO"; then :
10539 $as_echo "#define rlim_t long" >>confdefs.h
10542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10544 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10545 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10546 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10547 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10548 for ac_func
in ldgetname
10550 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10552 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10553 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10554 $as_echo_n "(cached) " >&6
10556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10559 #define $ac_tr_decl 1
10561 #include "ansidecl.h"
10562 #include "system.h"
10563 #ifdef HAVE_LDFCN_H
10574 char *(*pfn) = (char *(*)) $ac_func ;
10580 if ac_fn_c_try_compile
"$LINENO"; then :
10581 eval "gcc_cv_have_decl_$ac_func=yes"
10583 eval "gcc_cv_have_decl_$ac_func=no"
10585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10588 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10591 #define $ac_tr_decl 1
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10597 #define $ac_tr_decl 0
10605 for ac_func
in times
10607 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10609 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10610 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10611 $as_echo_n "(cached) " >&6
10613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10616 #define $ac_tr_decl 1
10618 #include "ansidecl.h"
10619 #include "system.h"
10620 #ifdef HAVE_SYS_TIMES_H
10621 #include <sys/times.h>
10629 char *(*pfn) = (char *(*)) $ac_func ;
10635 if ac_fn_c_try_compile
"$LINENO"; then :
10636 eval "gcc_cv_have_decl_$ac_func=yes"
10638 eval "gcc_cv_have_decl_$ac_func=no"
10640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10643 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10645 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10646 #define $ac_tr_decl 1
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10652 #define $ac_tr_decl 0
10660 for ac_func
in sigaltstack
10662 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10664 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10665 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10666 $as_echo_n "(cached) " >&6
10668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10671 #define $ac_tr_decl 1
10673 #include "ansidecl.h"
10674 #include "system.h"
10675 #include <signal.h>
10682 char *(*pfn) = (char *(*)) $ac_func ;
10688 if ac_fn_c_try_compile
"$LINENO"; then :
10689 eval "gcc_cv_have_decl_$ac_func=yes"
10691 eval "gcc_cv_have_decl_$ac_func=no"
10693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10696 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10698 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10699 #define $ac_tr_decl 1
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10705 #define $ac_tr_decl 0
10713 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10716 ac_cpp
='$CXXCPP $CPPFLAGS'
10717 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10718 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10719 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10721 for ac_func
in madvise
10723 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10725 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10726 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10727 $as_echo_n "(cached) " >&6
10729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10732 #define $ac_tr_decl 1
10734 #include "ansidecl.h"
10735 #include "system.h"
10742 char *(*pfn) = (char *(*)) $ac_func ;
10748 if ac_fn_cxx_try_compile
"$LINENO"; then :
10749 eval "gcc_cv_have_decl_$ac_func=yes"
10751 eval "gcc_cv_have_decl_$ac_func=no"
10753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10756 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10758 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10759 #define $ac_tr_decl 1
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10765 #define $ac_tr_decl 0
10773 ac_cpp
='$CPP $CPPFLAGS'
10774 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10775 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10776 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10779 # More time-related stuff.
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10781 $as_echo_n "checking for struct tms... " >&6; }
10782 if test "${ac_cv_struct_tms+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
10786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10789 #include "ansidecl.h"
10790 #include "system.h"
10791 #ifdef HAVE_SYS_TIMES_H
10792 #include <sys/times.h>
10803 if ac_fn_c_try_compile
"$LINENO"; then :
10804 ac_cv_struct_tms
=yes
10806 ac_cv_struct_tms
=no
10808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10811 $as_echo "$ac_cv_struct_tms" >&6; }
10812 if test $ac_cv_struct_tms = yes; then
10814 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10818 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10819 # revisit after autoconf 2.50.
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10821 $as_echo_n "checking for clock_t... " >&6; }
10822 if test "${gcc_cv_type_clock_t+set}" = set; then :
10823 $as_echo_n "(cached) " >&6
10826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10829 #include "ansidecl.h"
10830 #include "system.h"
10840 if ac_fn_c_try_compile
"$LINENO"; then :
10841 gcc_cv_type_clock_t
=yes
10843 gcc_cv_type_clock_t
=no
10845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10848 $as_echo "$gcc_cv_type_clock_t" >&6; }
10849 if test $gcc_cv_type_clock_t = yes; then
10851 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10855 # Check if F_SETLKW is supported by fcntl.
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10857 $as_echo_n "checking for F_SETLKW... " >&6; }
10858 if test "${ac_cv_f_setlkw+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
10862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10875 return fcntl (1, F_SETLKW, &fl);
10880 if ac_fn_c_try_compile
"$LINENO"; then :
10885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10888 $as_echo "$ac_cv_f_setlkw" >&6; }
10889 if test $ac_cv_f_setlkw = yes; then
10891 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10895 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10896 CFLAGS
="$saved_CFLAGS"
10897 CXXFLAGS
="$saved_CXXFLAGS"
10899 # mkdir takes a single argument on some systems.
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10901 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10902 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10908 #include <sys/types.h>
10909 #ifdef HAVE_SYS_STAT_H
10910 # include <sys/stat.h>
10912 #ifdef HAVE_UNISTD_H
10913 # include <unistd.h>
10915 #ifdef HAVE_DIRECT_H
10916 # include <direct.h>
10926 if ac_fn_c_try_compile
"$LINENO"; then :
10927 gcc_cv_mkdir_takes_one_arg
=no
10929 gcc_cv_mkdir_takes_one_arg
=yes
10931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10934 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10935 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10937 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10948 # With Setjmp/Longjmp based exception handling.
10949 # Check whether --enable-sjlj-exceptions was given.
10950 if test "${enable_sjlj_exceptions+set}" = set; then :
10951 enableval
=$enable_sjlj_exceptions; case $target in
10953 if test $enableval != yes; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10955 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10960 force_sjlj_exceptions
=yes
10964 force_sjlj_exceptions
=yes
10968 force_sjlj_exceptions
=no
10973 if test $force_sjlj_exceptions = yes; then
10974 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10976 cat >>confdefs.h
<<_ACEOF
10977 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10982 # --------------------------------------------------------
10983 # Build, host, and target specific configuration fragments
10984 # --------------------------------------------------------
10986 # Collect build-machine-specific information.
10987 .
${srcdir}/config.build
10989 # Collect host-machine-specific information.
10990 .
${srcdir}/config.
host
10994 # Collect target-machine-specific information.
10995 .
${srcdir}/config.gcc
10997 extra_objs
="${host_extra_objs} ${extra_objs}"
10998 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11000 # Default the target-machine variables that were not explicitly set.
11001 if test x
"$tm_file" = x
11002 then tm_file
=$cpu_type/$cpu_type.h
; fi
11004 if test x
"$extra_headers" = x
11005 then extra_headers
=; fi
11007 if test x
$md_file = x
11008 then md_file
=$cpu_type/$cpu_type.md
; fi
11010 if test x
$out_file = x
11011 then out_file
=$cpu_type/$cpu_type.c
; fi
11013 if test x
"$tmake_file" = x
11014 then tmake_file
=$cpu_type/t-
$cpu_type
11017 # Support --enable-initfini-array.
11018 if test x
$enable_initfini_array != xno
; then
11019 tm_file
="${tm_file} initfini-array.h"
11022 if test x
"$dwarf2" = xyes
11023 then tm_file
="$tm_file tm-dwarf2.h"
11026 # Say what files are being used for the output code and MD file.
11027 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11028 echo "Using \`$srcdir/config/$md_file' as machine description file."
11030 # If any of the xm_file variables contain nonexistent files, warn
11031 # about them and drop them.
11034 for x
in $build_xm_file; do
11035 if test -f $srcdir/config
/$x
11037 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11038 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11041 build_xm_file
="$bx"
11044 for x
in $host_xm_file; do
11045 if test -f $srcdir/config
/$x
11047 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11048 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11054 for x
in $xm_file; do
11055 if test -f $srcdir/config
/$x
11057 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11058 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11064 for f
in $tm_file; do
11067 if test $count = ax
; then
11068 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11070 echo "Using the following target machine macro files:"
11071 for f
in $tm_file; do
11072 echo " $srcdir/config/$f"
11076 if test x
$need_64bit_hwint = xyes
; then
11078 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11082 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11084 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11088 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11090 cat >>confdefs.h
<<_ACEOF
11091 #define HAVE_GNU_LD $gnu_ld_bool
11095 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11097 cat >>confdefs.h
<<_ACEOF
11098 #define HAVE_GNU_AS $gnu_as_bool
11103 for f
in $host_xm_file; do
11106 if test $count = a
; then
11108 elif test $count = ax
; then
11109 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11111 echo "Using the following host machine macro files:"
11112 for f
in $host_xm_file; do
11113 echo " $srcdir/config/$f"
11116 echo "Using ${out_host_hook_obj} for host machine hooks."
11118 if test "$host_xm_file" != "$build_xm_file"; then
11120 for f
in $build_xm_file; do
11123 if test $count = a
; then
11125 elif test $count = ax
; then
11126 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11128 echo "Using the following build machine macro files:"
11129 for f
in $build_xm_file; do
11130 echo " $srcdir/config/$f"
11135 if test -n "$configured_native_system_header_dir"; then
11136 native_system_header_dir
=$configured_native_system_header_dir
11138 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11142 powerpc
*-*-darwin*)
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11144 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11145 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11146 $as_echo_n "(cached) " >&6
11148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11151 #include <sys/cdefs.h>
11152 #include <sys/signal.h>
11153 #include <ucontext.h>
11154 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11157 if ac_fn_c_try_compile
"$LINENO"; then :
11158 gcc_cv_mcontext_underscores
=no
11160 gcc_cv_mcontext_underscores
=yes
11162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11165 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11166 if test $gcc_cv_mcontext_underscores = yes; then
11168 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11178 # Check if a valid thread package
11179 case ${enable_threads} in
11182 target_thread_file
='single'
11186 target_thread_file
='single'
11188 aix | dce | lynx | mipssde | posix | rtems | \
11189 single | tpf | vxworks | win32
)
11190 target_thread_file
=${enable_threads}
11193 echo "${enable_threads} is an unknown thread package" 1>&2
11198 if test x
${thread_file} = x
; then
11199 # No thread file set by target-specific clauses in config.gcc,
11200 # so use file chosen by default logic above
11201 thread_file
=${target_thread_file}
11209 if test x
$enable___cxa_atexit = xyes || \
11210 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11211 if test x
$host = x
$target; then
11213 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11214 # keyed to flag_use_cxa_atexit
11222 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11223 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11226 echo "__cxa_atexit can't be enabled on this target"
11232 # We can't check for __cxa_atexit when building a cross, so assume
11236 if test x
$use_cxa_atexit = xyes
; then
11238 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11243 # Look for a file containing extra machine modes.
11244 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11245 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11248 cat >>confdefs.h
<<_ACEOF
11249 #define EXTRA_MODES_FILE "config/$extra_modes"
11254 # Convert extra_options into a form suitable for Makefile use.
11257 for f
in $extra_options; do
11258 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11259 all_opt_files
="$all_opt_files $srcdir/config/$f"
11263 # auto-host.h is the file containing items generated by autoconf and is
11264 # the first file included by config.h.
11265 # If host=build, it is correct to have bconfig include auto-host.h
11266 # as well. If host!=build, we are in error and need to do more
11267 # work to find out the build config parameters.
11268 if test x
$host = x
$build
11270 build_auto
=auto-host.h
11272 # We create a subdir, then run autoconf in the subdir.
11273 # To prevent recursion we set host and build for the new
11274 # invocation of configure to the build for this invocation
11281 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11282 *) realsrcdir
=..
/${srcdir};;
11284 saved_CFLAGS
="${CFLAGS}"
11285 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11286 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11287 ${realsrcdir}/configure \
11288 --enable-languages=${enable_languages-all} \
11289 --target=$target_alias --host=$build_alias --build=$build_alias
11290 CFLAGS
="${saved_CFLAGS}"
11292 # We just finished tests for the build machine, so rename
11293 # the file auto-build.h in the gcc directory.
11294 mv auto-host.h ..
/auto-build.h
11297 build_auto
=auto-build.h
11301 tm_file
="${tm_file} defaults.h"
11302 tm_p_file
="${tm_p_file} tm-preds.h"
11303 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11304 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11305 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11306 # put this back in temporarily.
11307 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11313 # Compile in configure arguments.
11314 if test -f configargs.h
; then
11315 # Being re-configured.
11316 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11317 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11319 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11322 # Double all backslashes and backslash all quotes to turn
11323 # gcc_config_arguments into a C string.
11324 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11325 $gcc_config_arguments
11327 gcc_config_arguments_str
=`cat conftest.out`
11330 cat > configargs.h
<<EOF
11331 /* Generated automatically. */
11332 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11333 static const char thread_model[] = "$thread_file";
11335 static const struct {
11336 const char *name, *value;
11337 } configure_default_options[] = $configure_default_options;
11340 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11341 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11342 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11343 if test -f $srcdir/REVISION
; then
11344 gcc_REVISION
=`cat $srcdir/REVISION`
11348 cat > plugin-version.h
<<EOF
11349 #include "configargs.h"
11351 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11352 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11353 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11354 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11356 static char basever[] = "$gcc_BASEVER";
11357 static char datestamp[] = "$gcc_DATESTAMP";
11358 static char devphase[] = "$gcc_DEVPHASE";
11359 static char revision[] = "$gcc_REVISION";
11361 /* FIXME plugins: We should make the version information more precise.
11362 One way to do is to add a checksum. */
11364 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11365 devphase, revision,
11366 configuration_arguments};
11369 # Internationalization
11370 # If we haven't got the data from the intl directory,
11371 # assume NLS is disabled.
11380 if test -f ..
/intl
/config.intl
; then
11381 . ..
/intl
/config.intl
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11384 $as_echo_n "checking whether NLS is requested... " >&6; }
11385 if test x
"$USE_NLS" != xyes
; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11390 $as_echo "yes" >&6; }
11392 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11396 $as_echo_n "checking for catalogs to be installed... " >&6; }
11397 # Look for .po and .gmo files in the source directory.
11400 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11401 # If there aren't any .gmo files the shell will give us the
11402 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11404 case "$cat" in *\
**)
11407 # The quadruple backslash is collapsed to a double backslash
11408 # by the backticks, then collapsed again by the double quotes,
11409 # leaving us with one backslash in the sed expression (right
11410 # before the dot that mustn't act as a wildcard).
11411 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11412 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11413 # The user is allowed to set LINGUAS to a list of languages to
11414 # install catalogs for. If it's empty that means "all of them."
11415 if test "x$LINGUAS" = x
; then
11416 CATALOGS
="$CATALOGS $cat"
11417 XLINGUAS
="$XLINGUAS $lang"
11419 case "$LINGUAS" in *$lang*)
11420 CATALOGS
="$CATALOGS $cat"
11421 XLINGUAS
="$XLINGUAS $lang"
11426 LINGUAS
="$XLINGUAS"
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11428 $as_echo "$LINGUAS" >&6; }
11441 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11442 # -liconv on the link line twice.
11443 case "$LIBINTL" in *$LIBICONV*)
11447 # Check whether --enable-secureplt was given.
11448 if test "${enable_secureplt+set}" = set; then :
11449 enableval
=$enable_secureplt;
11453 # Check whether --enable-leading-mingw64-underscores was given.
11454 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11455 enableval
=$enable_leading_mingw64_underscores;
11458 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11460 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11464 # Check whether --enable-cld was given.
11465 if test "${enable_cld+set}" = set; then :
11466 enableval
=$enable_cld;
11472 # Check whether --enable-frame-pointer was given.
11473 if test "${enable_frame_pointer+set}" = set; then :
11474 enableval
=$enable_frame_pointer;
11478 linux
* | darwin
[8912]*)
11479 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11481 enable_frame_pointer
=no
11484 enable_frame_pointer
=yes
11491 # Windows32 Registry support for specifying GCC installation paths.
11492 # Check whether --enable-win32-registry was given.
11493 if test "${enable_win32_registry+set}" = set; then :
11494 enableval
=$enable_win32_registry;
11499 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11500 if test "x$enable_win32_registry" != xno
; then
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11502 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11503 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11504 $as_echo_n "(cached) " >&6
11506 ac_func_search_save_LIBS
=$LIBS
11507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11510 /* Override any GCC internal prototype to avoid an error.
11511 Use char because int might match the return type of a GCC
11512 builtin and then its argument prototype would still apply. */
11516 char RegOpenKeyExA ();
11520 return RegOpenKeyExA ();
11525 for ac_lib
in '' advapi32
; do
11526 if test -z "$ac_lib"; then
11527 ac_res
="none required"
11530 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11532 if ac_fn_c_try_link
"$LINENO"; then :
11533 ac_cv_search_RegOpenKeyExA
=$ac_res
11535 rm -f core conftest.err conftest.
$ac_objext \
11537 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11541 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11544 ac_cv_search_RegOpenKeyExA
=no
11546 rm conftest.
$ac_ext
11547 LIBS
=$ac_func_search_save_LIBS
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11550 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11551 ac_res
=$ac_cv_search_RegOpenKeyExA
11552 if test "$ac_res" != no
; then :
11553 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11556 enable_win32_registry
=no
11561 if test "x$enable_win32_registry" != xno
; then
11563 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11566 if test "x$enable_win32_registry" != xyes \
11567 && test "x$enable_win32_registry" != x
; then
11569 cat >>confdefs.h
<<_ACEOF
11570 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11578 # Get an absolute path to the GCC top-level source directory
11579 holddir
=`${PWDCMD-pwd}`
11581 topdir
=`${PWDCMD-pwd}`
11584 # Conditionalize the makefile for this host machine.
11586 for f
in ${host_xmake_file}
11588 if test -f ${srcdir}/config
/$f
11590 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11594 # Conditionalize the makefile for this target machine.
11596 for f
in ${tmake_file}
11598 if test -f ${srcdir}/config
/$f
11600 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11603 tmake_file
="${tmake_file_}"
11605 out_object_file
=`basename $out_file .c`.o
11606 common_out_object_file
=`basename $common_out_file .c`.o
11608 tm_file_list
="options.h"
11609 tm_include_list
="options.h insn-constants.h"
11610 for f
in $tm_file; do
11613 f
=`echo $f | sed 's/^..//'`
11614 tm_file_list
="${tm_file_list} $f"
11615 tm_include_list
="${tm_include_list} $f"
11618 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11619 tm_include_list
="${tm_include_list} $f"
11622 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11623 tm_include_list
="${tm_include_list} config/$f"
11630 for f
in $tm_p_file; do
11633 tm_p_file_list
="${tm_p_file_list} $f"
11634 tm_p_include_list
="${tm_p_include_list} $f"
11637 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11638 tm_p_include_list
="${tm_p_include_list} config/$f"
11644 for f
in $xm_file; do
11647 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11648 xm_include_list
="${xm_include_list} $f"
11651 xm_file_list
="${xm_file_list} $f"
11652 xm_include_list
="${xm_include_list} $f"
11655 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11656 xm_include_list
="${xm_include_list} config/$f"
11662 host_xm_include_list
=
11663 for f
in $host_xm_file; do
11666 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11667 host_xm_include_list
="${host_xm_include_list} $f"
11670 host_xm_file_list
="${host_xm_file_list} $f"
11671 host_xm_include_list
="${host_xm_include_list} $f"
11674 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11675 host_xm_include_list
="${host_xm_include_list} config/$f"
11680 build_xm_file_list
=
11681 for f
in $build_xm_file; do
11684 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11685 build_xm_include_list
="${build_xm_include_list} $f"
11687 auto-build.h | auto-host.h
)
11688 build_xm_file_list
="${build_xm_file_list} $f"
11689 build_xm_include_list
="${build_xm_include_list} $f"
11692 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11693 build_xm_include_list
="${build_xm_include_list} config/$f"
11698 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11699 # cross-compiler which does not use the native headers and libraries.
11700 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11703 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11705 if test "x$with_build_sysroot" != x
; then
11706 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11708 # This value is used, even on a native system, because
11709 # CROSS_SYSTEM_HEADER_DIR is just
11710 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11711 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11714 if test x
$host != x
$target
11716 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11718 SYSTEM_HEADER_DIR
=$build_system_header_dir
11719 case "$host","$target" in
11720 # Darwin crosses can use the host system's libraries and headers,
11721 # because of the fat library support. Of course, it must be the
11722 # same version of Darwin on both sides. Allow the user to
11723 # just say --target=foo-darwin without a version number to mean
11724 # "the version on this system".
11725 *-*-darwin*,*-*-darwin*)
11726 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11727 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11728 if test $hostos = $targetos -o $targetos = darwin
; then
11730 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11735 i?
86-*-*,x86_64-
*-* \
11736 | powerpc
*-*-*,powerpc64
*-*-*)
11737 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11742 if test "x$with_headers" = x
; then
11749 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11750 SYSTEM_HEADER_DIR
=$build_system_header_dir
11753 # If this is a cross-compiler that does not
11754 # have its own set of headers then define
11757 # If this is using newlib, without having the headers available now,
11758 # then define inhibit_libc in LIBGCC2_CFLAGS.
11759 # This prevents libgcc2 from containing any code which requires libc
11761 : ${inhibit_libc=false}
11762 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11763 test x
$with_newlib = xyes
; } &&
11764 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11769 # When building gcc with a cross-compiler, we need to adjust things so
11770 # that the generator programs are still built with the native compiler.
11771 # Also, we cannot run fixincludes.
11773 # These are the normal (build=host) settings:
11774 CC_FOR_BUILD
='$(CC)'
11775 CXX_FOR_BUILD
='$(CXX)'
11776 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11777 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11778 BUILD_LDFLAGS
='$(LDFLAGS)'
11779 STMP_FIXINC
=stmp-fixinc
11781 # And these apply if build != host, or we are generating coverage data
11782 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11784 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11785 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11788 # Expand extra_headers to include complete path.
11789 # This substitutes for lots of t-* files.
11790 extra_headers_list
=
11791 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11792 for file in ${extra_headers} ; do
11793 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11796 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11797 if test x
"$use_gcc_tgmath" = xyes
11798 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11801 # Define collect2 in Makefile.
11802 case $host_can_use_collect2 in
11804 *) collect2
='collect2$(exeext)' ;;
11808 # Add a definition of USE_COLLECT2 if system wants one.
11809 case $use_collect2 in
11810 no
) use_collect2
= ;;
11813 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11814 xm_defines
="${xm_defines} USE_COLLECT2"
11815 case $host_can_use_collect2 in
11817 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11824 cat >>confdefs.h
<<_ACEOF
11825 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11829 # ---------------------------
11830 # Assembler & linker features
11831 # ---------------------------
11833 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11834 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11835 # However when ld-new is first executed from the build tree, libtool will
11836 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11837 # to the build tree. While doing this we need to use the previous-stage
11838 # linker, or we have an infinite loop. The presence of a shell script as
11839 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11840 # the gcc/collect-ld script. So we need to know how libtool works, or
11841 # exec-tool will fail.
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11847 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11852 macro_version
='2.2.7a'
11853 macro_revision
='1.3134'
11867 ltmain
="$ac_aux_dir/ltmain.sh"
11869 # Backslashify metacharacters that are still active within
11870 # double-quoted strings.
11871 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11873 # Same as above, but do not quote variable references.
11874 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11876 # Sed substitution to delay expansion of an escaped shell variable in a
11877 # double_quote_subst'ed string.
11878 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11880 # Sed substitution to delay expansion of an escaped single quote.
11881 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11883 # Sed substitution to avoid accidental globbing in evaled expressions
11884 no_glob_subst
='s/\*/\\\*/g'
11886 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11887 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11888 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11891 $as_echo_n "checking how to print strings... " >&6; }
11892 # Test print first, because it will be a builtin if present.
11893 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11894 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11896 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11899 # Use this function as a fallback that always works.
11900 func_fallback_echo ()
11902 eval 'cat <<_LTECHO_EOF
11906 ECHO='func_fallback_echo
'
11909 # func_echo_all arg...
11910 # Invoke $ECHO with all args, space-separated.
11917 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11918 $as_echo "printf" >&6; } ;;
11919 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11920 $as_echo "print -r" >&6; } ;;
11921 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11922 $as_echo "cat" >&6; } ;;
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11939 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11940 if test "${ac_cv_path_SED+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
11943 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11944 for ac_i in 1 2 3 4 5 6 7; do
11945 ac_script="$ac_script$as_nl$ac_script"
11947 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11948 { ac_script=; unset ac_script;}
11949 if test -z "$SED"; then
11950 ac_path_SED_found=false
11951 # Loop through the user's path and
test for each of PROGNAME-LIST
11952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11953 for as_dir
in $PATH
11956 test -z "$as_dir" && as_dir
=.
11957 for ac_prog
in sed gsed
; do
11958 for ac_exec_ext
in '' $ac_executable_extensions; do
11959 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11960 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11961 # Check for GNU ac_path_SED and select it if it is found.
11962 # Check for GNU $ac_path_SED
11963 case `"$ac_path_SED" --version 2>&1` in
11965 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11968 $as_echo_n 0123456789 >"conftest.in"
11971 cat "conftest.in" "conftest.in" >"conftest.tmp"
11972 mv "conftest.tmp" "conftest.in"
11973 cp "conftest.in" "conftest.nl"
11974 $as_echo '' >> "conftest.nl"
11975 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11976 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11977 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11978 if test $ac_count -gt ${ac_path_SED_max-0}; then
11979 # Best one so far, save it but keep looking for a better one
11980 ac_cv_path_SED
="$ac_path_SED"
11981 ac_path_SED_max
=$ac_count
11983 # 10*(2^10) chars as input seems more than enough
11984 test $ac_count -gt 10 && break
11986 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11989 $ac_path_SED_found && break 3
11994 if test -z "$ac_cv_path_SED"; then
11995 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11998 ac_cv_path_SED
=$SED
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12003 $as_echo "$ac_cv_path_SED" >&6; }
12004 SED
="$ac_cv_path_SED"
12007 test -z "$SED" && SED
=sed
12008 Xsed
="$SED -e 1s/^X//"
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12021 $as_echo_n "checking for fgrep... " >&6; }
12022 if test "${ac_cv_path_FGREP+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12025 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12026 then ac_cv_path_FGREP
="$GREP -F"
12028 if test -z "$FGREP"; then
12029 ac_path_FGREP_found
=false
12030 # Loop through the user's path and test for each of PROGNAME-LIST
12031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12032 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12035 test -z "$as_dir" && as_dir
=.
12036 for ac_prog
in fgrep
; do
12037 for ac_exec_ext
in '' $ac_executable_extensions; do
12038 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12039 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12040 # Check for GNU ac_path_FGREP and select it if it is found.
12041 # Check for GNU $ac_path_FGREP
12042 case `"$ac_path_FGREP" --version 2>&1` in
12044 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12047 $as_echo_n 0123456789 >"conftest.in"
12050 cat "conftest.in" "conftest.in" >"conftest.tmp"
12051 mv "conftest.tmp" "conftest.in"
12052 cp "conftest.in" "conftest.nl"
12053 $as_echo 'FGREP' >> "conftest.nl"
12054 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12055 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12056 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12057 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12058 # Best one so far, save it but keep looking for a better one
12059 ac_cv_path_FGREP
="$ac_path_FGREP"
12060 ac_path_FGREP_max
=$ac_count
12062 # 10*(2^10) chars as input seems more than enough
12063 test $ac_count -gt 10 && break
12065 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12068 $ac_path_FGREP_found && break 3
12073 if test -z "$ac_cv_path_FGREP"; then
12074 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12077 ac_cv_path_FGREP
=$FGREP
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12083 $as_echo "$ac_cv_path_FGREP" >&6; }
12084 FGREP
="$ac_cv_path_FGREP"
12087 test -z "$GREP" && GREP
=grep
12107 # Check whether --with-gnu-ld was given.
12108 if test "${with_gnu_ld+set}" = set; then :
12109 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12115 if test "$GCC" = yes; then
12116 # Check if gcc -print-prog-name=ld gives a path.
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12118 $as_echo_n "checking for ld used by $CC... " >&6; }
12121 # gcc leaves a trailing carriage return which upsets mingw
12122 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12124 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12127 # Accept absolute paths.
12129 re_direlt
='/[^/][^/]*/\.\./'
12130 # Canonicalize the pathname of ld
12131 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12132 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12133 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12135 test -z "$LD" && LD
="$ac_prog"
12138 # If it fails, then pretend we aren't using GCC.
12142 # If it is relative, then search for the first ld in PATH.
12143 with_gnu_ld
=unknown
12146 elif test "$with_gnu_ld" = yes; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12148 $as_echo_n "checking for GNU ld... " >&6; }
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12151 $as_echo_n "checking for non-GNU ld... " >&6; }
12153 if test "${lt_cv_path_LD+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
12156 if test -z "$LD"; then
12157 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12158 for ac_dir
in $PATH; do
12160 test -z "$ac_dir" && ac_dir
=.
12161 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12162 lt_cv_path_LD
="$ac_dir/$ac_prog"
12163 # Check to see if the program is GNU ld. I'd rather use --version,
12164 # but apparently some variants of GNU ld only accept -v.
12165 # Break only if it was the GNU/non-GNU ld that we prefer.
12166 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12167 *GNU
* |
*'with BFD'*)
12168 test "$with_gnu_ld" != no
&& break
12171 test "$with_gnu_ld" != yes && break
12178 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12182 LD
="$lt_cv_path_LD"
12183 if test -n "$LD"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12185 $as_echo "$LD" >&6; }
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12190 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12192 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12193 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12194 $as_echo_n "(cached) " >&6
12196 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12197 case `$LD -v 2>&1 </dev/null` in
12198 *GNU
* |
*'with BFD'*)
12199 lt_cv_prog_gnu_ld
=yes
12202 lt_cv_prog_gnu_ld
=no
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12207 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12208 with_gnu_ld
=$lt_cv_prog_gnu_ld
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12219 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12220 if test "${lt_cv_path_NM+set}" = set; then :
12221 $as_echo_n "(cached) " >&6
12223 if test -n "$NM"; then
12224 # Let the user override the test.
12225 lt_cv_path_NM
="$NM"
12227 lt_nm_to_check
="${ac_tool_prefix}nm"
12228 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12229 lt_nm_to_check
="$lt_nm_to_check nm"
12231 for lt_tmp_nm
in $lt_nm_to_check; do
12232 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12233 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12235 test -z "$ac_dir" && ac_dir
=.
12236 tmp_nm
="$ac_dir/$lt_tmp_nm"
12237 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12238 # Check to see if the nm accepts a BSD-compat flag.
12239 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12240 # nm: unknown option "B" ignored
12241 # Tru64's nm complains that /dev/null is an invalid object file
12242 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12243 */dev
/null
* |
*'Invalid file or object type'*)
12244 lt_cv_path_NM
="$tmp_nm -B"
12248 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12250 lt_cv_path_NM
="$tmp_nm -p"
12254 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12255 continue # so that we can try to find one that supports BSD flags
12264 : ${lt_cv_path_NM=no}
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12268 $as_echo "$lt_cv_path_NM" >&6; }
12269 if test "$lt_cv_path_NM" != "no"; then
12270 NM
="$lt_cv_path_NM"
12272 # Didn't find any BSD compatible name lister, look for dumpbin.
12273 if test -n "$DUMPBIN"; then :
12274 # Let the user override the test.
12276 if test -n "$ac_tool_prefix"; then
12277 for ac_prog
in dumpbin
"link -dump"
12279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12280 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282 $as_echo_n "checking for $ac_word... " >&6; }
12283 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12284 $as_echo_n "(cached) " >&6
12286 if test -n "$DUMPBIN"; then
12287 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12290 for as_dir
in $PATH
12293 test -z "$as_dir" && as_dir
=.
12294 for ac_exec_ext
in '' $ac_executable_extensions; do
12295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12306 DUMPBIN
=$ac_cv_prog_DUMPBIN
12307 if test -n "$DUMPBIN"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12309 $as_echo "$DUMPBIN" >&6; }
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12316 test -n "$DUMPBIN" && break
12319 if test -z "$DUMPBIN"; then
12320 ac_ct_DUMPBIN
=$DUMPBIN
12321 for ac_prog
in dumpbin
"link -dump"
12323 # Extract the first word of "$ac_prog", so it can be a program name with args.
12324 set dummy
$ac_prog; ac_word
=$2
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12326 $as_echo_n "checking for $ac_word... " >&6; }
12327 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
12330 if test -n "$ac_ct_DUMPBIN"; then
12331 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12334 for as_dir
in $PATH
12337 test -z "$as_dir" && as_dir
=.
12338 for ac_exec_ext
in '' $ac_executable_extensions; do
12339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12340 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12350 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12351 if test -n "$ac_ct_DUMPBIN"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12353 $as_echo "$ac_ct_DUMPBIN" >&6; }
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12360 test -n "$ac_ct_DUMPBIN" && break
12363 if test "x$ac_ct_DUMPBIN" = x
; then
12366 case $cross_compiling:$ac_tool_warned in
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12370 ac_tool_warned
=yes ;;
12372 DUMPBIN
=$ac_ct_DUMPBIN
12376 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12378 DUMPBIN
="$DUMPBIN -symbols"
12386 if test "$DUMPBIN" != ":"; then
12390 test -z "$NM" && NM
=nm
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12398 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12399 if test "${lt_cv_nm_interface+set}" = set; then :
12400 $as_echo_n "(cached) " >&6
12402 lt_cv_nm_interface
="BSD nm"
12403 echo "int some_variable = 0;" > conftest.
$ac_ext
12404 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12405 (eval "$ac_compile" 2>conftest.err
)
12406 cat conftest.err
>&5
12407 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12408 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12409 cat conftest.err
>&5
12410 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12411 cat conftest.out
>&5
12412 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12413 lt_cv_nm_interface
="MS dumpbin"
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12418 $as_echo "$lt_cv_nm_interface" >&6; }
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12421 $as_echo_n "checking whether ln -s works... " >&6; }
12423 if test "$LN_S" = "ln -s"; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12425 $as_echo "yes" >&6; }
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12428 $as_echo "no, using $LN_S" >&6; }
12431 # find the maximum length of command line arguments
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12433 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12434 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12442 # On DJGPP, this test can blow up pretty badly due to problems in libc
12443 # (any single argument exceeding 2000 bytes causes a buffer overrun
12444 # during glob expansion). Even if it were fixed, the result of this
12445 # check would be larger than it should be.
12446 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12450 # Under GNU Hurd, this test is not required because there is
12451 # no limit to the length of command line arguments.
12452 # Libtool will interpret -1 as no limit whatsoever
12453 lt_cv_sys_max_cmd_len
=-1;
12456 cygwin
* | mingw
* | cegcc
*)
12457 # On Win9x/ME, this test blows up -- it succeeds, but takes
12458 # about 5 minutes as the teststring grows exponentially.
12459 # Worse, since 9x/ME are not pre-emptively multitasking,
12460 # you end up with a "frozen" computer, even though with patience
12461 # the test eventually succeeds (with a max line length of 256k).
12462 # Instead, let's just punt: use the minimum linelength reported by
12463 # all of the supported platforms: 8192 (on NT/2K/XP).
12464 lt_cv_sys_max_cmd_len
=8192;
12468 # On MiNT this can take a long time and run out of memory.
12469 lt_cv_sys_max_cmd_len
=8192;
12473 # On AmigaOS with pdksh, this test takes hours, literally.
12474 # So we just punt and use a minimum line length of 8192.
12475 lt_cv_sys_max_cmd_len
=8192;
12478 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12479 # This has been around since 386BSD, at least. Likely further.
12480 if test -x /sbin
/sysctl
; then
12481 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12482 elif test -x /usr
/sbin
/sysctl
; then
12483 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12485 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12487 # And add a safety zone
12488 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12489 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12493 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12494 lt_cv_sys_max_cmd_len
=196608
12498 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12499 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12500 # nice to cause kernel panics so lets avoid the loop below.
12501 # First set a reasonable default.
12502 lt_cv_sys_max_cmd_len
=16384
12504 if test -x /sbin
/sysconfig
; then
12505 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12506 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12511 lt_cv_sys_max_cmd_len
=102400
12513 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12514 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12515 if test -n "$kargmax"; then
12516 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12518 lt_cv_sys_max_cmd_len
=32768
12522 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12523 if test -n "$lt_cv_sys_max_cmd_len"; then
12524 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12525 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12527 # Make teststring a little bigger before we do anything with it.
12528 # a 1K string should be a reasonable start.
12529 for i
in 1 2 3 4 5 6 7 8 ; do
12530 teststring
=$teststring$teststring
12532 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12533 # If test is not a shell built-in, we'll probably end up computing a
12534 # maximum length that is only half of the actual maximum length, but
12536 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12537 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12538 test $i != 17 # 1/2 MB should be enough
12541 teststring
=$teststring$teststring
12543 # Only check the string length outside the loop.
12544 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12546 # Add a significant safety factor because C++ compilers can tack on
12547 # massive amounts of additional arguments before passing them to the
12548 # linker. It appears as though 1/2 is a usable value.
12549 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12556 if test -n $lt_cv_sys_max_cmd_len ; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12558 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12561 $as_echo "none" >&6; }
12563 max_cmd_len
=$lt_cv_sys_max_cmd_len
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12575 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12576 # Try some XSI features
12578 ( _lt_dummy
="a/b/c"
12579 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12581 && eval 'test $(( 1 + 1 )) -eq 2 \
12582 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12585 $as_echo "$xsi_shell" >&6; }
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12589 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12591 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12593 && lt_shell_append=yes
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12595 $as_echo "$lt_shell_append" >&6; }
12598 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12608 # test EBCDIC or ASCII
12609 case `echo X|tr X '\101'` in
12610 A) # ASCII based system
12611 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12612 lt_SP2NL='tr \040 \012'
12613 lt_NL2SP='tr \015\012 \040\040'
12615 *) # EBCDIC based system
12616 lt_SP2NL='tr \100 \n'
12617 lt_NL2SP='tr \r\n \100\100'
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12630 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12631 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12632 $as_echo_n "(cached
) " >&6
12634 lt_cv_ld_reload_flag='-r'
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12637 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12638 reload_flag=$lt_cv_ld_reload_flag
12639 case $reload_flag in
12641 *) reload_flag=" $reload_flag" ;;
12643 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12646 if test "$GCC" = yes; then
12647 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12649 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12662 if test -n "$ac_tool_prefix"; then
12663 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12664 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12666 $as_echo_n "checking
for $ac_word...
" >&6; }
12667 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12668 $as_echo_n "(cached
) " >&6
12670 if test -n "$OBJDUMP"; then
12671 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12674 for as_dir in $PATH
12677 test -z "$as_dir" && as_dir=.
12678 for ac_exec_ext in '' $ac_executable_extensions; do
12679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12680 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12681 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12690 OBJDUMP=$ac_cv_prog_OBJDUMP
12691 if test -n "$OBJDUMP"; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12693 $as_echo "$OBJDUMP" >&6; }
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12696 $as_echo "no
" >&6; }
12701 if test -z "$ac_cv_prog_OBJDUMP"; then
12702 ac_ct_OBJDUMP=$OBJDUMP
12703 # Extract the first word of "objdump
", so it can be a program name with args.
12704 set dummy objdump; ac_word=$2
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12706 $as_echo_n "checking
for $ac_word...
" >&6; }
12707 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12708 $as_echo_n "(cached
) " >&6
12710 if test -n "$ac_ct_OBJDUMP"; then
12711 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12717 test -z "$as_dir" && as_dir=.
12718 for ac_exec_ext in '' $ac_executable_extensions; do
12719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12720 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12721 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12730 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12731 if test -n "$ac_ct_OBJDUMP"; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12733 $as_echo "$ac_ct_OBJDUMP" >&6; }
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12736 $as_echo "no
" >&6; }
12739 if test "x
$ac_ct_OBJDUMP" = x; then
12742 case $cross_compiling:$ac_tool_warned in
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12745 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12746 ac_tool_warned=yes ;;
12748 OBJDUMP=$ac_ct_OBJDUMP
12751 OBJDUMP="$ac_cv_prog_OBJDUMP"
12754 test -z "$OBJDUMP" && OBJDUMP=objdump
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12765 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12766 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12767 $as_echo_n "(cached
) " >&6
12769 lt_cv_file_magic_cmd='$MAGIC_CMD'
12770 lt_cv_file_magic_test_file=
12771 lt_cv_deplibs_check_method='unknown'
12772 # Need to set the preceding variable on all platforms that support
12773 # interlibrary dependencies.
12774 # 'none' -- dependencies not supported.
12775 # `unknown' -- same as none, but documents that we really don't know.
12776 # 'pass_all' -- all dependencies passed with no checks.
12777 # 'test_compile' -- check by making test program.
12778 # 'file_magic [[regex]]' -- check by looking for files in library path
12779 # which responds to the $file_magic_cmd with a given extended regex.
12780 # If you have `file' or equivalent on your system and you're not sure
12781 # whether `pass_all' will *always* work, you probably want this one.
12785 lt_cv_deplibs_check_method=pass_all
12789 lt_cv_deplibs_check_method=pass_all
12793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12794 lt_cv_file_magic_cmd='/usr/bin/file -L'
12795 lt_cv_file_magic_test_file=/shlib/libc.so
12799 # func_win32_libid is a shell function defined in ltmain.sh
12800 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12801 lt_cv_file_magic_cmd='func_win32_libid'
12805 # Base MSYS/MinGW do not provide the 'file' command needed by
12806 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12807 # unless we find 'file', for example because we are cross-compiling.
12808 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12809 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12810 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12811 lt_cv_file_magic_cmd='func_win32_libid'
12813 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12814 lt_cv_file_magic_cmd='$OBJDUMP -f'
12819 # use the weaker test based on 'objdump'. See mingw*.
12820 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12821 lt_cv_file_magic_cmd='$OBJDUMP -f'
12824 darwin* | rhapsody*)
12825 lt_cv_deplibs_check_method=pass_all
12828 freebsd* | dragonfly*)
12829 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12832 # Not sure whether the presence of OpenBSD here was a mistake.
12833 # Let's accept both of them until this is cleared up.
12834 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12835 lt_cv_file_magic_cmd=/usr/bin/file
12836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12840 lt_cv_deplibs_check_method=pass_all
12845 lt_cv_deplibs_check_method=pass_all
12849 lt_cv_deplibs_check_method=pass_all
12852 hpux10.20* | hpux11*)
12853 lt_cv_file_magic_cmd=/usr/bin/file
12856 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12857 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12860 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]'
12861 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12864 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12865 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12871 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12875 irix5* | irix6* | nonstopux*)
12877 *-32|*"-32 ") libmagic=32-bit;;
12878 *-n32|*"-n32 ") libmagic=N32;;
12879 *-64|*"-64 ") libmagic=64-bit;;
12880 *) libmagic=never-match;;
12882 lt_cv_deplibs_check_method=pass_all
12885 # This must be Linux ELF.
12886 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12887 lt_cv_deplibs_check_method=pass_all
12891 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12900 lt_cv_file_magic_cmd=/usr/bin/file
12901 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12905 lt_cv_deplibs_check_method=pass_all
12909 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12916 osf3* | osf4* | osf5*)
12917 lt_cv_deplibs_check_method=pass_all
12921 lt_cv_deplibs_check_method=pass_all
12925 lt_cv_deplibs_check_method=pass_all
12928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12929 lt_cv_deplibs_check_method=pass_all
12933 case $host_vendor in
12935 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]'
12936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12939 lt_cv_deplibs_check_method=pass_all
12942 lt_cv_file_magic_cmd='/bin/file'
12943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12946 lt_cv_file_magic_cmd='/bin/file'
12947 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12948 lt_cv_file_magic_test_file=/lib/libc.so
12951 lt_cv_deplibs_check_method=pass_all
12954 lt_cv_deplibs_check_method=pass_all
12960 lt_cv_deplibs_check_method=pass_all
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12966 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12967 file_magic_cmd=$lt_cv_file_magic_cmd
12968 deplibs_check_method=$lt_cv_deplibs_check_method
12969 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12982 if test -n "$ac_tool_prefix"; then
12983 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12984 set dummy ${ac_tool_prefix}ar; ac_word=$2
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12986 $as_echo_n "checking
for $ac_word...
" >&6; }
12987 if test "${ac_cv_prog_AR+set}" = set; then :
12988 $as_echo_n "(cached
) " >&6
12990 if test -n "$AR"; then
12991 ac_cv_prog_AR="$AR" # Let the user override the test.
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994 for as_dir in $PATH
12997 test -z "$as_dir" && as_dir=.
12998 for ac_exec_ext in '' $ac_executable_extensions; do
12999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13000 ac_cv_prog_AR="${ac_tool_prefix}ar"
13001 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13011 if test -n "$AR"; then
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13013 $as_echo "$AR" >&6; }
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13016 $as_echo "no
" >&6; }
13021 if test -z "$ac_cv_prog_AR"; then
13023 # Extract the first word of "ar", so it can be a program name with args.
13024 set dummy ar; ac_word=$2
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13026 $as_echo_n "checking
for $ac_word...
" >&6; }
13027 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13028 $as_echo_n "(cached
) " >&6
13030 if test -n "$ac_ct_AR"; then
13031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13034 for as_dir in $PATH
13037 test -z "$as_dir" && as_dir=.
13038 for ac_exec_ext in '' $ac_executable_extensions; do
13039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13040 ac_cv_prog_ac_ct_AR="ar"
13041 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13050 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13051 if test -n "$ac_ct_AR"; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13053 $as_echo "$ac_ct_AR" >&6; }
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13056 $as_echo "no
" >&6; }
13059 if test "x
$ac_ct_AR" = x; then
13062 case $cross_compiling:$ac_tool_warned in
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13065 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13066 ac_tool_warned=yes ;;
13071 AR="$ac_cv_prog_AR"
13074 test -z "$AR" && AR=ar
13075 test -z "$AR_FLAGS" && AR_FLAGS=cru
13087 if test -n "$ac_tool_prefix"; then
13088 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13089 set dummy ${ac_tool_prefix}strip; ac_word=$2
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13091 $as_echo_n "checking
for $ac_word...
" >&6; }
13092 if test "${ac_cv_prog_STRIP+set}" = set; then :
13093 $as_echo_n "(cached
) " >&6
13095 if test -n "$STRIP"; then
13096 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in $PATH
13102 test -z "$as_dir" && as_dir=.
13103 for ac_exec_ext in '' $ac_executable_extensions; do
13104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13105 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13106 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13115 STRIP=$ac_cv_prog_STRIP
13116 if test -n "$STRIP"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13118 $as_echo "$STRIP" >&6; }
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13121 $as_echo "no
" >&6; }
13126 if test -z "$ac_cv_prog_STRIP"; then
13128 # Extract the first word of "strip
", so it can be a program name with args.
13129 set dummy strip; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13131 $as_echo_n "checking
for $ac_word...
" >&6; }
13132 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13133 $as_echo_n "(cached
) " >&6
13135 if test -n "$ac_ct_STRIP"; then
13136 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145 ac_cv_prog_ac_ct_STRIP="strip
"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13155 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13156 if test -n "$ac_ct_STRIP"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13158 $as_echo "$ac_ct_STRIP" >&6; }
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13161 $as_echo "no
" >&6; }
13164 if test "x
$ac_ct_STRIP" = x; then
13167 case $cross_compiling:$ac_tool_warned in
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13170 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13171 ac_tool_warned=yes ;;
13176 STRIP="$ac_cv_prog_STRIP"
13179 test -z "$STRIP" && STRIP=:
13186 if test -n "$ac_tool_prefix"; then
13187 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13190 $as_echo_n "checking
for $ac_word...
" >&6; }
13191 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13192 $as_echo_n "(cached
) " >&6
13194 if test -n "$RANLIB"; then
13195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH
13201 test -z "$as_dir" && as_dir=.
13202 for ac_exec_ext in '' $ac_executable_extensions; do
13203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13204 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13214 RANLIB=$ac_cv_prog_RANLIB
13215 if test -n "$RANLIB"; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13217 $as_echo "$RANLIB" >&6; }
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13220 $as_echo "no
" >&6; }
13225 if test -z "$ac_cv_prog_RANLIB"; then
13226 ac_ct_RANLIB=$RANLIB
13227 # Extract the first word of "ranlib
", so it can be a program name with args.
13228 set dummy ranlib; ac_word=$2
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13230 $as_echo_n "checking
for $ac_word...
" >&6; }
13231 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13232 $as_echo_n "(cached
) " >&6
13234 if test -n "$ac_ct_RANLIB"; then
13235 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238 for as_dir in $PATH
13241 test -z "$as_dir" && as_dir=.
13242 for ac_exec_ext in '' $ac_executable_extensions; do
13243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13244 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13245 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13254 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13255 if test -n "$ac_ct_RANLIB"; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13257 $as_echo "$ac_ct_RANLIB" >&6; }
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13260 $as_echo "no
" >&6; }
13263 if test "x
$ac_ct_RANLIB" = x; then
13266 case $cross_compiling:$ac_tool_warned in
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13269 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13270 ac_tool_warned=yes ;;
13272 RANLIB=$ac_ct_RANLIB
13275 RANLIB="$ac_cv_prog_RANLIB"
13278 test -z "$RANLIB" && RANLIB=:
13285 # Determine commands to create old-style static archives.
13286 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13287 old_postinstall_cmds='chmod 644 $oldlib'
13288 old_postuninstall_cmds=
13290 if test -n "$RANLIB"; then
13293 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13296 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13299 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13304 lock_old_archive_extraction=yes ;;
13306 lock_old_archive_extraction=no ;;
13347 # If no C compiler was specified, use CC.
13350 # If no C compiler flags were specified, use CFLAGS.
13351 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13353 # Allow CC to be a program name with arguments.
13357 # Check for command to grab the raw symbol name followed by C symbol from nm.
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13359 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13360 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13361 $as_echo_n "(cached
) " >&6
13364 # These are sane defaults that work on at least a few old systems.
13365 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13367 # Character class describing NM global symbol codes.
13368 symcode='[BCDEGRST]'
13370 # Regexp to match symbols that can be accessed directly from C.
13371 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13373 # Define system-specific variables.
13378 cygwin* | mingw* | pw32* | cegcc*)
13379 symcode='[ABCDGISTW]'
13382 if test "$host_cpu" = ia64; then
13383 symcode='[ABCDEGRST]'
13386 irix* | nonstopux*)
13387 symcode='[BCDEGRST]'
13390 symcode='[BCDEGQRST]'
13401 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13409 # If we're using GNU nm, then use its standard symbol codes.
13410 case `$NM -V 2>&1` in
13411 *GNU* | *'with BFD'*)
13412 symcode='[ABCDGIRSTW]' ;;
13415 # Transform an extracted symbol line into a proper C declaration.
13416 # Some systems (esp. on ia64) link data and code symbols differently,
13417 # so use this general approach.
13418 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13420 # Transform an extracted symbol line into symbol name and symbol address
13421 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13422 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'"
13424 # Handle CRLF in mingw tool chain
13428 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13432 # Try without a prefix underscore, then with it.
13433 for ac_symprfx in "" "_
"; do
13435 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13436 symxfrm="\\1 $ac_symprfx\\2 \\2"
13438 # Write the raw and C identifiers.
13439 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13440 # Fake it for dumpbin and say T for any non-static function
13441 # and D for any global variable.
13442 # Also find C++ and __fastcall symbols from MSVC++,
13443 # which start with @ or ?.
13444 lt_cv_sys_global_symbol_pipe="$AWK '"\
13445 " {last_section=section; section=\$ 3};"\
13446 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13447 " \$ 0!~/External *\|/{next};"\
13448 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13449 " {if(hide[section]) next};"\
13450 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13451 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13452 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13453 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13454 " ' prfx
=^
$ac_symprfx"
13456 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13459 # Check to see that the pipe works correctly.
13463 cat > conftest.$ac_ext <<_LT_EOF
13468 void nm_test_func(void);
13469 void nm_test_func(void){}
13473 int main(){nm_test_var='a';nm_test_func();return(0);}
13476 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13477 (eval $ac_compile) 2>&5
13479 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13480 test $ac_status = 0; }; then
13481 # Now try to grab the symbols.
13483 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13484 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13486 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13487 test $ac_status = 0; } && test -s "$nlist"; then
13488 # Try sorting and uniquifying the output.
13489 if sort "$nlist" | uniq > "$nlist"T; then
13490 mv -f "$nlist"T "$nlist"
13495 # Make sure that we snagged all the symbols we need.
13496 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13497 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13498 cat <<_LT_EOF > conftest.$ac_ext
13504 # Now generate the symbol file.
13505 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13507 cat <<_LT_EOF >> conftest.$ac_ext
13509 /* The mapping between symbol names and symbols. */
13514 lt__PROGRAM__LTX_preloaded_symbols[] =
13516 { "@PROGRAM@
", (void *) 0 },
13518 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13519 cat <<\_LT_EOF >> conftest.$ac_ext
13523 /* This works around a problem in FreeBSD linker */
13524 #ifdef FREEBSD_WORKAROUND
13525 static const void *lt_preloaded_setup() {
13526 return lt__PROGRAM__LTX_preloaded_symbols;
13534 # Now try linking the two files.
13535 mv conftest.$ac_objext conftstm.$ac_objext
13536 lt_save_LIBS="$LIBS"
13537 lt_save_CFLAGS="$CFLAGS"
13538 LIBS="conftstm.
$ac_objext"
13539 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13540 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13541 (eval $ac_link) 2>&5
13543 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13544 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13547 LIBS="$lt_save_LIBS"
13548 CFLAGS="$lt_save_CFLAGS"
13550 echo "cannot
find nm_test_func
in $nlist" >&5
13553 echo "cannot
find nm_test_var
in $nlist" >&5
13556 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13559 echo "$progname: failed program was
:" >&5
13560 cat conftest.$ac_ext >&5
13562 rm -rf conftest* conftst*
13564 # Do not use the global_symbol_pipe unless it works.
13565 if test "$pipe_works" = yes; then
13568 lt_cv_sys_global_symbol_pipe=
13574 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13575 lt_cv_sys_global_symbol_to_cdecl=
13577 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13579 $as_echo "failed
" >&6; }
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13582 $as_echo "ok
" >&6; }
13606 # Check whether --enable-libtool-lock was given.
13607 if test "${enable_libtool_lock+set}" = set; then :
13608 enableval=$enable_libtool_lock;
13611 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13613 # Some flags need to be propagated to the compiler or linker for good
13617 # Find out which ABI we are using.
13618 echo 'int i;' > conftest.$ac_ext
13619 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13620 (eval $ac_compile) 2>&5
13622 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13623 test $ac_status = 0; }; then
13624 case `/usr/bin/file conftest.$ac_objext` in
13626 HPUX_IA64_MODE="32"
13629 HPUX_IA64_MODE="64"
13636 # Find out which ABI we are using.
13637 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13638 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13639 (eval $ac_compile) 2>&5
13641 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13642 test $ac_status = 0; }; then
13643 if test "$lt_cv_prog_gnu_ld" = yes; then
13644 case `/usr/bin/file conftest.$ac_objext` in
13646 LD="${LD-ld} -melf32bsmip"
13649 LD="${LD-ld} -melf32bmipn32"
13652 LD="${LD-ld} -melf64bmip"
13656 case `/usr/bin/file conftest.$ac_objext` in
13672 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13673 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13674 # Find out which ABI we are using.
13675 echo 'int i;' > conftest.$ac_ext
13676 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13677 (eval $ac_compile) 2>&5
13679 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13680 test $ac_status = 0; }; then
13681 case `/usr/bin/file conftest.o` in
13684 x86_64-*kfreebsd*-gnu)
13685 LD="${LD-ld} -m elf_i386_fbsd
"
13688 case `/usr/bin/file conftest.o` in
13690 LD="${LD-ld} -m elf32_x86_64
"
13693 LD="${LD-ld} -m elf_i386
"
13697 powerpc64le-*linux*)
13698 LD="${LD-ld} -m elf32lppclinux
"
13701 LD="${LD-ld} -m elf32ppclinux
"
13704 LD="${LD-ld} -m elf_s390
"
13707 LD="${LD-ld} -m elf32_sparc
"
13713 x86_64-*kfreebsd*-gnu)
13714 LD="${LD-ld} -m elf_x86_64_fbsd
"
13717 LD="${LD-ld} -m elf_x86_64
"
13720 LD="${LD-ld} -m elf64lppc
"
13723 LD="${LD-ld} -m elf64ppc
"
13725 s390*-*linux*|s390*-*tpf*)
13726 LD="${LD-ld} -m elf64_s390
"
13729 LD="${LD-ld} -m elf64_sparc
"
13739 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13740 SAVE_CFLAGS="$CFLAGS"
13741 CFLAGS="$CFLAGS -belf"
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13743 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13744 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13745 $as_echo_n "(cached
) " >&6
13748 ac_cpp='$CPP $CPPFLAGS'
13749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13764 if ac_fn_c_try_link "$LINENO"; then :
13765 lt_cv_cc_needs_belf=yes
13767 lt_cv_cc_needs_belf=no
13769 rm -f core conftest.err conftest.$ac_objext \
13770 conftest$ac_exeext conftest.$ac_ext
13772 ac_cpp='$CPP $CPPFLAGS'
13773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13779 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13780 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13781 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13782 CFLAGS="$SAVE_CFLAGS"
13786 # Find out which ABI we are using.
13787 echo 'int i;' > conftest.$ac_ext
13788 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13789 (eval $ac_compile) 2>&5
13791 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13792 test $ac_status = 0; }; then
13793 case `/usr/bin/file conftest.o` in
13795 case $lt_cv_prog_gnu_ld in
13796 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13798 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13810 need_locks="$enable_libtool_lock"
13814 rhapsody* | darwin*)
13815 if test -n "$ac_tool_prefix"; then
13816 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13817 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13819 $as_echo_n "checking
for $ac_word...
" >&6; }
13820 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13821 $as_echo_n "(cached
) " >&6
13823 if test -n "$DSYMUTIL"; then
13824 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13827 for as_dir in $PATH
13830 test -z "$as_dir" && as_dir=.
13831 for ac_exec_ext in '' $ac_executable_extensions; do
13832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13833 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13834 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13843 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13844 if test -n "$DSYMUTIL"; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13846 $as_echo "$DSYMUTIL" >&6; }
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13849 $as_echo "no
" >&6; }
13854 if test -z "$ac_cv_prog_DSYMUTIL"; then
13855 ac_ct_DSYMUTIL=$DSYMUTIL
13856 # Extract the first word of "dsymutil
", so it can be a program name with args.
13857 set dummy dsymutil; ac_word=$2
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13859 $as_echo_n "checking
for $ac_word...
" >&6; }
13860 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13861 $as_echo_n "(cached
) " >&6
13863 if test -n "$ac_ct_DSYMUTIL"; then
13864 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13867 for as_dir in $PATH
13870 test -z "$as_dir" && as_dir=.
13871 for ac_exec_ext in '' $ac_executable_extensions; do
13872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13873 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13874 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13883 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13884 if test -n "$ac_ct_DSYMUTIL"; then
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13886 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13889 $as_echo "no
" >&6; }
13892 if test "x
$ac_ct_DSYMUTIL" = x; then
13895 case $cross_compiling:$ac_tool_warned in
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13898 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13899 ac_tool_warned=yes ;;
13901 DSYMUTIL=$ac_ct_DSYMUTIL
13904 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13907 if test -n "$ac_tool_prefix"; then
13908 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13909 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13911 $as_echo_n "checking
for $ac_word...
" >&6; }
13912 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13913 $as_echo_n "(cached
) " >&6
13915 if test -n "$NMEDIT"; then
13916 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13919 for as_dir in $PATH
13922 test -z "$as_dir" && as_dir=.
13923 for ac_exec_ext in '' $ac_executable_extensions; do
13924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13925 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13926 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13935 NMEDIT=$ac_cv_prog_NMEDIT
13936 if test -n "$NMEDIT"; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13938 $as_echo "$NMEDIT" >&6; }
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13941 $as_echo "no
" >&6; }
13946 if test -z "$ac_cv_prog_NMEDIT"; then
13947 ac_ct_NMEDIT=$NMEDIT
13948 # Extract the first word of "nmedit
", so it can be a program name with args.
13949 set dummy nmedit; ac_word=$2
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13951 $as_echo_n "checking
for $ac_word...
" >&6; }
13952 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13953 $as_echo_n "(cached
) " >&6
13955 if test -n "$ac_ct_NMEDIT"; then
13956 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13959 for as_dir in $PATH
13962 test -z "$as_dir" && as_dir=.
13963 for ac_exec_ext in '' $ac_executable_extensions; do
13964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13965 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13966 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13975 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13976 if test -n "$ac_ct_NMEDIT"; then
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13978 $as_echo "$ac_ct_NMEDIT" >&6; }
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13981 $as_echo "no
" >&6; }
13984 if test "x
$ac_ct_NMEDIT" = x; then
13987 case $cross_compiling:$ac_tool_warned in
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13990 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13991 ac_tool_warned=yes ;;
13993 NMEDIT=$ac_ct_NMEDIT
13996 NMEDIT="$ac_cv_prog_NMEDIT"
13999 if test -n "$ac_tool_prefix"; then
14000 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14001 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14003 $as_echo_n "checking
for $ac_word...
" >&6; }
14004 if test "${ac_cv_prog_LIPO+set}" = set; then :
14005 $as_echo_n "(cached
) " >&6
14007 if test -n "$LIPO"; then
14008 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14011 for as_dir in $PATH
14014 test -z "$as_dir" && as_dir=.
14015 for ac_exec_ext in '' $ac_executable_extensions; do
14016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14017 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14018 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14027 LIPO=$ac_cv_prog_LIPO
14028 if test -n "$LIPO"; then
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14030 $as_echo "$LIPO" >&6; }
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14033 $as_echo "no
" >&6; }
14038 if test -z "$ac_cv_prog_LIPO"; then
14040 # Extract the first word of "lipo
", so it can be a program name with args.
14041 set dummy lipo; ac_word=$2
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14043 $as_echo_n "checking
for $ac_word...
" >&6; }
14044 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14045 $as_echo_n "(cached
) " >&6
14047 if test -n "$ac_ct_LIPO"; then
14048 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14051 for as_dir in $PATH
14054 test -z "$as_dir" && as_dir=.
14055 for ac_exec_ext in '' $ac_executable_extensions; do
14056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14057 ac_cv_prog_ac_ct_LIPO="lipo
"
14058 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14067 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14068 if test -n "$ac_ct_LIPO"; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14070 $as_echo "$ac_ct_LIPO" >&6; }
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14073 $as_echo "no
" >&6; }
14076 if test "x
$ac_ct_LIPO" = x; then
14079 case $cross_compiling:$ac_tool_warned in
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14082 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14083 ac_tool_warned=yes ;;
14088 LIPO="$ac_cv_prog_LIPO"
14091 if test -n "$ac_tool_prefix"; then
14092 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14093 set dummy ${ac_tool_prefix}otool; ac_word=$2
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14095 $as_echo_n "checking
for $ac_word...
" >&6; }
14096 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14097 $as_echo_n "(cached
) " >&6
14099 if test -n "$OTOOL"; then
14100 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $PATH
14106 test -z "$as_dir" && as_dir=.
14107 for ac_exec_ext in '' $ac_executable_extensions; do
14108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14109 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14110 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14119 OTOOL=$ac_cv_prog_OTOOL
14120 if test -n "$OTOOL"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14122 $as_echo "$OTOOL" >&6; }
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14125 $as_echo "no
" >&6; }
14130 if test -z "$ac_cv_prog_OTOOL"; then
14132 # Extract the first word of "otool
", so it can be a program name with args.
14133 set dummy otool; ac_word=$2
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14135 $as_echo_n "checking
for $ac_word...
" >&6; }
14136 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14137 $as_echo_n "(cached
) " >&6
14139 if test -n "$ac_ct_OTOOL"; then
14140 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14149 ac_cv_prog_ac_ct_OTOOL="otool
"
14150 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14159 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14160 if test -n "$ac_ct_OTOOL"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14162 $as_echo "$ac_ct_OTOOL" >&6; }
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14165 $as_echo "no
" >&6; }
14168 if test "x
$ac_ct_OTOOL" = x; then
14171 case $cross_compiling:$ac_tool_warned in
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14174 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14175 ac_tool_warned=yes ;;
14180 OTOOL="$ac_cv_prog_OTOOL"
14183 if test -n "$ac_tool_prefix"; then
14184 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14185 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14187 $as_echo_n "checking
for $ac_word...
" >&6; }
14188 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14189 $as_echo_n "(cached
) " >&6
14191 if test -n "$OTOOL64"; then
14192 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14195 for as_dir in $PATH
14198 test -z "$as_dir" && as_dir=.
14199 for ac_exec_ext in '' $ac_executable_extensions; do
14200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14201 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14202 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14211 OTOOL64=$ac_cv_prog_OTOOL64
14212 if test -n "$OTOOL64"; then
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14214 $as_echo "$OTOOL64" >&6; }
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14217 $as_echo "no
" >&6; }
14222 if test -z "$ac_cv_prog_OTOOL64"; then
14223 ac_ct_OTOOL64=$OTOOL64
14224 # Extract the first word of "otool64
", so it can be a program name with args.
14225 set dummy otool64; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14227 $as_echo_n "checking
for $ac_word...
" >&6; }
14228 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14229 $as_echo_n "(cached
) " >&6
14231 if test -n "$ac_ct_OTOOL64"; then
14232 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
14240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14241 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14251 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14252 if test -n "$ac_ct_OTOOL64"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14254 $as_echo "$ac_ct_OTOOL64" >&6; }
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14257 $as_echo "no
" >&6; }
14260 if test "x
$ac_ct_OTOOL64" = x; then
14263 case $cross_compiling:$ac_tool_warned in
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14266 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14267 ac_tool_warned=yes ;;
14269 OTOOL64=$ac_ct_OTOOL64
14272 OTOOL64="$ac_cv_prog_OTOOL64"
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14302 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14303 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14304 $as_echo_n "(cached
) " >&6
14306 lt_cv_apple_cc_single_mod=no
14307 if test -z "${LT_MULTI_MODULE}"; then
14308 # By default we will add the -single_module flag. You can override
14309 # by either setting the environment variable LT_MULTI_MODULE
14310 # non-empty at configure time, or by adding -multi_module to the
14312 rm -rf libconftest.dylib*
14313 echo "int foo
(void
){return 1;}" > conftest.c
14314 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14315 -dynamiclib -Wl,-single_module conftest.c
" >&5
14316 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14317 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14319 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14320 lt_cv_apple_cc_single_mod=yes
14322 cat conftest.err >&5
14324 rm -rf libconftest.dylib*
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14329 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14331 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14332 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14333 $as_echo_n "(cached
) " >&6
14335 lt_cv_ld_exported_symbols_list=no
14336 save_LDFLAGS=$LDFLAGS
14337 echo "_main
" > conftest.sym
14338 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h. */
14350 if ac_fn_c_try_link "$LINENO"; then :
14351 lt_cv_ld_exported_symbols_list=yes
14353 lt_cv_ld_exported_symbols_list=no
14355 rm -f core conftest.err conftest.$ac_objext \
14356 conftest$ac_exeext conftest.$ac_ext
14357 LDFLAGS="$save_LDFLAGS"
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14361 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14363 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14364 if test "${lt_cv_ld_force_load+set}" = set; then :
14365 $as_echo_n "(cached
) " >&6
14367 lt_cv_ld_force_load=no
14368 cat > conftest.c << _LT_EOF
14369 int forced_loaded() { return 2;}
14371 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14372 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14373 echo "$AR cru libconftest.a conftest.o
" >&5
14374 $AR cru libconftest.a conftest.o 2>&5
14375 cat > conftest.c << _LT_EOF
14376 int main() { return 0;}
14378 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14379 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14381 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14382 lt_cv_ld_force_load=yes
14384 cat conftest.err >&5
14386 rm -f conftest.err libconftest.a conftest conftest.c
14387 rm -rf conftest.dSYM
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14391 $as_echo "$lt_cv_ld_force_load" >&6; }
14393 rhapsody* | darwin1.[012])
14394 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14396 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14397 darwin*) # darwin 5.x on
14398 # if running on 10.5 or later, the deployment target defaults
14399 # to the OS version, if on x86, and 10.4, the deployment
14400 # target defaults to 10.4. Don't you love it?
14401 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14402 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14403 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14405 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14407 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14411 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14412 _lt_dar_single_mod='$single_module'
14414 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14415 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14417 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14419 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14420 _lt_dsymutil='~$DSYMUTIL $lib || :'
14427 for ac_header in dlfcn.h
14429 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14430 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14431 cat >>confdefs.h <<_ACEOF
14432 #define HAVE_DLFCN_H 1
14449 enable_win32_dll=no
14452 # Check whether --enable-shared was given.
14453 if test "${enable_shared+set}" = set; then :
14454 enableval=$enable_shared; p=${PACKAGE-default}
14456 yes) enable_shared=yes ;;
14457 no) enable_shared=no ;;
14460 # Look at the argument we got. We use all the common list separators.
14461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14462 for pkg in $enableval; do
14464 if test "X
$pkg" = "X
$p"; then
14483 # Check whether --enable-static was given.
14484 if test "${enable_static+set}" = set; then :
14485 enableval=$enable_static; p=${PACKAGE-default}
14487 yes) enable_static=yes ;;
14488 no) enable_static=no ;;
14491 # Look at the argument we got. We use all the common list separators.
14492 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14493 for pkg in $enableval; do
14495 if test "X
$pkg" = "X
$p"; then
14515 # Check whether --with-pic was given.
14516 if test "${with_pic+set}" = set; then :
14517 withval=$with_pic; pic_mode="$withval"
14523 test -z "$pic_mode" && pic_mode=default
14531 # Check whether --enable-fast-install was given.
14532 if test "${enable_fast_install+set}" = set; then :
14533 enableval=$enable_fast_install; p=${PACKAGE-default}
14535 yes) enable_fast_install=yes ;;
14536 no) enable_fast_install=no ;;
14538 enable_fast_install=no
14539 # Look at the argument we got. We use all the common list separators.
14540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14541 for pkg in $enableval; do
14543 if test "X
$pkg" = "X
$p"; then
14544 enable_fast_install=yes
14551 enable_fast_install=yes
14564 # This can be used to rebuild libtool when needed
14565 LIBTOOL_DEPS="$ltmain"
14567 # Always use our own libtool.
14568 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14595 test -z "$LN_S" && LN_S="ln -s"
14610 if test -n "${ZSH_VERSION+set}" ; then
14611 setopt NO_GLOB_SUBST
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14615 $as_echo_n "checking
for objdir...
" >&6; }
14616 if test "${lt_cv_objdir+set}" = set; then :
14617 $as_echo_n "(cached
) " >&6
14619 rm -f .libs 2>/dev/null
14620 mkdir .libs 2>/dev/null
14621 if test -d .libs; then
14624 # MS-DOS does not allow filenames that begin with a dot.
14627 rmdir .libs 2>/dev/null
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14630 $as_echo "$lt_cv_objdir" >&6; }
14631 objdir=$lt_cv_objdir
14637 cat >>confdefs.h <<_ACEOF
14638 #define LT_OBJDIR "$lt_cv_objdir/"
14646 # AIX sometimes has problems with the GCC collect2 program. For some
14647 # reason, if we set the COLLECT_NAMES environment variable, the problems
14648 # vanish in a puff of smoke.
14649 if test "X
${COLLECT_NAMES+set}" != Xset; then
14651 export COLLECT_NAMES
14656 # Global variables:
14658 can_build_shared=yes
14660 # All known linkers require a `.a' archive for static linking (except MSVC,
14661 # which needs '.lib').
14664 with_gnu_ld="$lt_cv_prog_gnu_ld"
14667 old_CFLAGS="$CFLAGS"
14669 # Set sane defaults for various variables
14670 test -z "$CC" && CC=cc
14671 test -z "$LTCC" && LTCC=$CC
14672 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14673 test -z "$LD" && LD=ld
14674 test -z "$ac_objext" && ac_objext=o
14676 for cc_temp in $compiler""; do
14678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14684 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14687 # Only perform the check for file, if the check method requires it
14688 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14689 case $deplibs_check_method in
14691 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14693 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14694 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14695 $as_echo_n "(cached
) " >&6
14699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14702 lt_save_MAGIC_CMD="$MAGIC_CMD"
14703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14704 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14705 for ac_dir in $ac_dummy; do
14707 test -z "$ac_dir" && ac_dir=.
14708 if test -f $ac_dir/${ac_tool_prefix}file; then
14709 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14710 if test -n "$file_magic_test_file"; then
14711 case $deplibs_check_method in
14713 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14716 $EGREP "$file_magic_regex" > /dev/null; then
14721 *** Warning: the command libtool uses to detect shared libraries,
14722 *** $file_magic_cmd, produces output that libtool cannot recognize.
14723 *** The result is that libtool may fail to recognize shared libraries
14724 *** as such. This will affect the creation of libtool libraries that
14725 *** depend on shared libraries, but programs linked with such libtool
14726 *** libraries will work regardless of this problem. Nevertheless, you
14727 *** may want to report the problem to your system manager and/or to
14728 *** bug-libtool@gnu.org
14738 MAGIC_CMD="$lt_save_MAGIC_CMD"
14743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14744 if test -n "$MAGIC_CMD"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14746 $as_echo "$MAGIC_CMD" >&6; }
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14749 $as_echo "no
" >&6; }
14756 if test -z "$lt_cv_path_MAGIC_CMD"; then
14757 if test -n "$ac_tool_prefix"; then
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14759 $as_echo_n "checking
for file...
" >&6; }
14760 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14761 $as_echo_n "(cached
) " >&6
14765 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14768 lt_save_MAGIC_CMD="$MAGIC_CMD"
14769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14770 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14771 for ac_dir in $ac_dummy; do
14773 test -z "$ac_dir" && ac_dir=.
14774 if test -f $ac_dir/file; then
14775 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14776 if test -n "$file_magic_test_file"; then
14777 case $deplibs_check_method in
14779 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14780 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14781 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14782 $EGREP "$file_magic_regex" > /dev/null; then
14787 *** Warning: the command libtool uses to detect shared libraries,
14788 *** $file_magic_cmd, produces output that libtool cannot recognize.
14789 *** The result is that libtool may fail to recognize shared libraries
14790 *** as such. This will affect the creation of libtool libraries that
14791 *** depend on shared libraries, but programs linked with such libtool
14792 *** libraries will work regardless of this problem. Nevertheless, you
14793 *** may want to report the problem to your system manager and/or to
14794 *** bug-libtool@gnu.org
14804 MAGIC_CMD="$lt_save_MAGIC_CMD"
14809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14810 if test -n "$MAGIC_CMD"; then
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14812 $as_echo "$MAGIC_CMD" >&6; }
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14815 $as_echo "no
" >&6; }
14828 # Use C for the default configuration in the libtool script
14832 ac_cpp='$CPP $CPPFLAGS'
14833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14838 # Source file extension for C test sources.
14841 # Object file extension for compiled C test sources.
14845 # Code to be used in simple compile tests
14846 lt_simple_compile_test_code="int some_variable
= 0;"
14848 # Code to be used in simple link tests
14849 lt_simple_link_test_code='int main(){return(0);}'
14857 # If no C compiler was specified, use CC.
14860 # If no C compiler flags were specified, use CFLAGS.
14861 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14863 # Allow CC to be a program name with arguments.
14866 # Save the default compiler, since it gets overwritten when the other
14867 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14868 compiler_DEFAULT=$CC
14870 # save warnings/boilerplate of simple test code
14871 ac_outfile=conftest.$ac_objext
14872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14874 _lt_compiler_boilerplate=`cat conftest.err`
14877 ac_outfile=conftest.$ac_objext
14878 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14880 _lt_linker_boilerplate=`cat conftest.err`
14885 ## There is no encapsulation within the following macros, do not change
14886 ## the running order or otherwise move them around unless you know exactly
14887 ## what you are doing...
14888 if test -n "$compiler"; then
14890 lt_prog_compiler_no_builtin_flag=
14892 if test "$GCC" = yes; then
14893 case $cc_basename in
14895 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14897 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14901 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14902 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14903 $as_echo_n "(cached
) " >&6
14905 lt_cv_prog_compiler_rtti_exceptions=no
14906 ac_outfile=conftest.$ac_objext
14907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14908 lt_compiler_flag="-fno-rtti -fno-exceptions"
14909 # Insert the option either (1) after the last *FLAGS variable, or
14910 # (2) before a word containing "conftest.
", or (3) at the end.
14911 # Note that $ac_compile itself does not contain backslashes and begins
14912 # with a dollar sign (not a hyphen), so the echo should work correctly.
14913 # The option is referenced via a variable to avoid confusing sed.
14914 lt_compile=`echo "$ac_compile" | $SED \
14915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14917 -e 's:$: $lt_compiler_flag:'`
14918 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14919 (eval "$lt_compile" 2>conftest.err)
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14923 if (exit $ac_status) && test -s "$ac_outfile"; then
14924 # The compiler can only warn and ignore the option if not recognized
14925 # So say no if there are warnings other than the usual output.
14926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14928 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14929 lt_cv_prog_compiler_rtti_exceptions=yes
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14936 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14938 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14939 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14951 lt_prog_compiler_wl=
14952 lt_prog_compiler_pic=
14953 lt_prog_compiler_static=
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14956 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14958 if test "$GCC" = yes; then
14959 lt_prog_compiler_wl='-Wl,'
14960 lt_prog_compiler_static='-static'
14964 # All AIX code is PIC.
14965 if test "$host_cpu" = ia64; then
14966 # AIX 5 now supports IA64 processor
14967 lt_prog_compiler_static='-Bstatic'
14969 lt_prog_compiler_pic='-fPIC'
14975 # see comment about AmigaOS4 .so support
14976 lt_prog_compiler_pic='-fPIC'
14979 # FIXME: we need at least 68020 code to build shared libraries, but
14980 # adding the `-m68020' flag to GCC prevents building anything better,
14982 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14987 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14988 # PIC is the default for these OSes.
14991 mingw* | cygwin* | pw32* | os2* | cegcc*)
14992 # This hack is so that the source file can tell whether it is being
14993 # built for inclusion in a dll (and should export symbols for example).
14994 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14995 # (--disable-auto-import) libraries
14996 lt_prog_compiler_pic='-DDLL_EXPORT'
14999 darwin* | rhapsody*)
15000 # PIC is the default on this platform
15001 # Common symbols not allowed in MH_DYLIB files
15002 lt_prog_compiler_pic='-fno-common'
15006 # PIC is the default for Haiku.
15007 # The "-static" flag exists, but is broken.
15008 lt_prog_compiler_static=
15012 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15013 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15014 # sets the default TLS model and affects inlining.
15020 lt_prog_compiler_pic='-fPIC'
15026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15027 # Instead, we relocate shared libraries at runtime.
15031 # Just because we use GCC doesn't mean we suddenly get shared libraries
15032 # on systems that don't support them.
15033 lt_prog_compiler_can_build_shared=no
15038 # QNX uses GNU C++, but need to define -shared option too, otherwise
15039 # it will coredump.
15040 lt_prog_compiler_pic='-fPIC -shared'
15044 if test -d /usr/nec; then
15045 lt_prog_compiler_pic=-Kconform_pic
15050 lt_prog_compiler_pic='-fPIC'
15054 case $cc_basename in
15055 nvcc*) # Cuda Compiler Driver 2.2
15056 lt_prog_compiler_wl='-Xlinker '
15057 lt_prog_compiler_pic='-Xcompiler -fPIC'
15061 # PORTME Check for flag to pass linker flags through the system compiler.
15064 lt_prog_compiler_wl='-Wl,'
15065 if test "$host_cpu" = ia64; then
15066 # AIX 5 now supports IA64 processor
15067 lt_prog_compiler_static='-Bstatic'
15069 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15073 mingw* | cygwin* | pw32* | os2* | cegcc*)
15074 # This hack is so that the source file can tell whether it is being
15075 # built for inclusion in a dll (and should export symbols for example).
15076 lt_prog_compiler_pic='-DDLL_EXPORT'
15079 hpux9* | hpux10* | hpux11*)
15080 lt_prog_compiler_wl='-Wl,'
15081 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15082 # not for PA HP-UX.
15088 lt_prog_compiler_pic='+Z'
15091 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15092 lt_prog_compiler_static='${wl}-a ${wl}archive'
15095 irix5* | irix6* | nonstopux*)
15096 lt_prog_compiler_wl='-Wl,'
15097 # PIC (with -KPIC) is the default.
15098 lt_prog_compiler_static='-non_shared'
15101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15102 case $cc_basename in
15103 # old Intel for x86_64 which still supported -KPIC.
15105 lt_prog_compiler_wl='-Wl,'
15106 lt_prog_compiler_pic='-KPIC'
15107 lt_prog_compiler_static='-static'
15109 # icc used to be incompatible with GCC.
15110 # ICC 10 doesn't accept -KPIC any more.
15112 lt_prog_compiler_wl='-Wl,'
15113 lt_prog_compiler_pic='-fPIC'
15114 lt_prog_compiler_static='-static'
15116 # Lahey Fortran 8.1.
15118 lt_prog_compiler_wl='-Wl,'
15119 lt_prog_compiler_pic='--shared'
15120 lt_prog_compiler_static='--static'
15122 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15123 # Portland Group compilers (*not* the Pentium gcc compiler,
15124 # which looks to be a dead project)
15125 lt_prog_compiler_wl='-Wl,'
15126 lt_prog_compiler_pic='-fpic'
15127 lt_prog_compiler_static='-Bstatic'
15130 lt_prog_compiler_wl='-Wl,'
15131 # All Alpha code is PIC.
15132 lt_prog_compiler_static='-non_shared'
15134 xl* | bgxl* | bgf* | mpixl*)
15135 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15136 lt_prog_compiler_wl='-Wl,'
15137 lt_prog_compiler_pic='-qpic'
15138 lt_prog_compiler_static='-qstaticlink'
15141 case `$CC -V 2>&1 | sed 5q` in
15142 *Sun\ F* | *Sun*Fortran*)
15143 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15144 lt_prog_compiler_pic='-KPIC'
15145 lt_prog_compiler_static='-Bstatic'
15146 lt_prog_compiler_wl=''
15150 lt_prog_compiler_pic='-KPIC'
15151 lt_prog_compiler_static='-Bstatic'
15152 lt_prog_compiler_wl='-Wl,'
15160 lt_prog_compiler_pic='-KPIC'
15161 lt_prog_compiler_static='-Bstatic'
15165 # QNX uses GNU C++, but need to define -shared option too, otherwise
15166 # it will coredump.
15167 lt_prog_compiler_pic='-fPIC -shared'
15170 osf3* | osf4* | osf5*)
15171 lt_prog_compiler_wl='-Wl,'
15172 # All OSF/1 code is PIC.
15173 lt_prog_compiler_static='-non_shared'
15177 lt_prog_compiler_static='-non_shared'
15181 lt_prog_compiler_pic='-KPIC'
15182 lt_prog_compiler_static='-Bstatic'
15183 case $cc_basename in
15184 f77* | f90* | f95*)
15185 lt_prog_compiler_wl='-Qoption ld ';;
15187 lt_prog_compiler_wl='-Wl,';;
15192 lt_prog_compiler_wl='-Qoption ld '
15193 lt_prog_compiler_pic='-PIC'
15194 lt_prog_compiler_static='-Bstatic'
15197 sysv4 | sysv4.2uw2* | sysv4.3*)
15198 lt_prog_compiler_wl='-Wl,'
15199 lt_prog_compiler_pic='-KPIC'
15200 lt_prog_compiler_static='-Bstatic'
15204 if test -d /usr/nec ;then
15205 lt_prog_compiler_pic='-Kconform_pic'
15206 lt_prog_compiler_static='-Bstatic'
15210 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15211 lt_prog_compiler_wl='-Wl,'
15212 lt_prog_compiler_pic='-KPIC'
15213 lt_prog_compiler_static='-Bstatic'
15217 lt_prog_compiler_wl='-Wl,'
15218 lt_prog_compiler_can_build_shared=no
15222 lt_prog_compiler_pic='-pic'
15223 lt_prog_compiler_static='-Bstatic'
15227 lt_prog_compiler_can_build_shared=no
15233 # For platforms which do not support PIC, -DPIC is meaningless:
15235 lt_prog_compiler_pic=
15238 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15242 $as_echo "$lt_prog_compiler_pic" >&6; }
15250 # Check to make sure the PIC flag actually works.
15252 if test -n "$lt_prog_compiler_pic"; then
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15254 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15255 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15256 $as_echo_n "(cached
) " >&6
15258 lt_cv_prog_compiler_pic_works=no
15259 ac_outfile=conftest.$ac_objext
15260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15261 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15262 # Insert the option either (1) after the last *FLAGS variable, or
15263 # (2) before a word containing "conftest.
", or (3) at the end.
15264 # Note that $ac_compile itself does not contain backslashes and begins
15265 # with a dollar sign (not a hyphen), so the echo should work correctly.
15266 # The option is referenced via a variable to avoid confusing sed.
15267 lt_compile=`echo "$ac_compile" | $SED \
15268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15270 -e 's:$: $lt_compiler_flag:'`
15271 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15272 (eval "$lt_compile" 2>conftest.err)
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15276 if (exit $ac_status) && test -s "$ac_outfile"; then
15277 # The compiler can only warn and ignore the option if not recognized
15278 # So say no if there are warnings other than the usual output.
15279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15282 lt_cv_prog_compiler_pic_works=yes
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15289 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15291 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15292 case $lt_prog_compiler_pic in
15294 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15297 lt_prog_compiler_pic=
15298 lt_prog_compiler_can_build_shared=no
15309 # Check to make sure the static flag actually works.
15311 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15313 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15314 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15315 $as_echo_n "(cached
) " >&6
15317 lt_cv_prog_compiler_static_works=no
15318 save_LDFLAGS="$LDFLAGS"
15319 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15320 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15322 # The linker can only warn and ignore the option if not recognized
15323 # So say no if there are warnings
15324 if test -s conftest.err; then
15325 # Append any errors to the config.log.
15326 cat conftest.err 1>&5
15327 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15329 if diff conftest.exp conftest.er2 >/dev/null; then
15330 lt_cv_prog_compiler_static_works=yes
15333 lt_cv_prog_compiler_static_works=yes
15337 LDFLAGS="$save_LDFLAGS"
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15341 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15343 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15346 lt_prog_compiler_static=
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15356 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15357 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15358 $as_echo_n "(cached
) " >&6
15360 lt_cv_prog_compiler_c_o=no
15361 $RM -r conftest 2>/dev/null
15365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15367 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15368 # Insert the option either (1) after the last *FLAGS variable, or
15369 # (2) before a word containing "conftest.
", or (3) at the end.
15370 # Note that $ac_compile itself does not contain backslashes and begins
15371 # with a dollar sign (not a hyphen), so the echo should work correctly.
15372 lt_compile=`echo "$ac_compile" | $SED \
15373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15375 -e 's:$: $lt_compiler_flag:'`
15376 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15377 (eval "$lt_compile" 2>out/conftest.err)
15379 cat out/conftest.err >&5
15380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15383 # The compiler can only warn and ignore the option if not recognized
15384 # So say no if there are warnings
15385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15388 lt_cv_prog_compiler_c_o=yes
15393 # SGI C++ compiler will create directory out/ii_files/ for
15394 # template instantiation
15395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15396 $RM out/* && rmdir out
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15403 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15411 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15412 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15413 $as_echo_n "(cached
) " >&6
15415 lt_cv_prog_compiler_c_o=no
15416 $RM -r conftest 2>/dev/null
15420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15422 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15423 # Insert the option either (1) after the last *FLAGS variable, or
15424 # (2) before a word containing "conftest.
", or (3) at the end.
15425 # Note that $ac_compile itself does not contain backslashes and begins
15426 # with a dollar sign (not a hyphen), so the echo should work correctly.
15427 lt_compile=`echo "$ac_compile" | $SED \
15428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15430 -e 's:$: $lt_compiler_flag:'`
15431 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15432 (eval "$lt_compile" 2>out/conftest.err)
15434 cat out/conftest.err >&5
15435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15438 # The compiler can only warn and ignore the option if not recognized
15439 # So say no if there are warnings
15440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15443 lt_cv_prog_compiler_c_o=yes
15448 # SGI C++ compiler will create directory out/ii_files/ for
15449 # template instantiation
15450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15451 $RM out/* && rmdir out
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15463 hard_links="nottested
"
15464 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15465 # do not overwrite the value of need_locks provided by the user
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15467 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15472 ln conftest.a conftest.b 2>&5 || hard_links=no
15473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15475 $as_echo "$hard_links" >&6; }
15476 if test "$hard_links" = no; then
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15478 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15491 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15494 allow_undefined_flag=
15495 always_export_symbols=no
15497 archive_expsym_cmds=
15498 compiler_needs_object=no
15499 enable_shared_with_static_runtimes=no
15500 export_dynamic_flag_spec=
15501 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15502 hardcode_automatic=no
15504 hardcode_direct_absolute=no
15505 hardcode_libdir_flag_spec=
15506 hardcode_libdir_flag_spec_ld=
15507 hardcode_libdir_separator=
15508 hardcode_minus_L=no
15509 hardcode_shlibpath_var=unsupported
15511 link_all_deplibs=unknown
15513 module_expsym_cmds=
15514 old_archive_from_new_cmds=
15515 old_archive_from_expsyms_cmds=
15516 thread_safe_flag_spec=
15517 whole_archive_flag_spec=
15518 # include_expsyms should be a list of space-separated symbols to be *always*
15519 # included in the symbol list
15521 # exclude_expsyms can be an extended regexp of symbols to exclude
15522 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15523 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15524 # as well as any symbol that contains `d'.
15525 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15526 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15527 # platforms (ab)use it in PIC code, but their linkers get confused if
15528 # the symbol is explicitly referenced. Since portable code cannot
15529 # rely on this symbol name, it's probably fine to never include it in
15530 # preloaded symbol tables.
15531 # Exclude shared library initialization/finalization symbols.
15532 extract_expsyms_cmds=
15535 cygwin* | mingw* | pw32* | cegcc*)
15536 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15537 # When not using gcc, we currently assume that we are using
15538 # Microsoft Visual C++.
15539 if test "$GCC" != yes; then
15544 # we just hope/assume this is gcc and not c89 (= MSVC++)
15554 # On some targets, GNU ld is compatible enough with the native linker
15555 # that we're better off using the native interface for both.
15556 lt_use_gnu_ld_interface=no
15557 if test "$with_gnu_ld" = yes; then
15560 # The AIX port of GNU ld has always aspired to compatibility
15561 # with the native linker. However, as the warning in the GNU ld
15562 # block says, versions before 2.19.5* couldn't really create working
15563 # shared libraries, regardless of the interface used.
15564 case `$LD -v 2>&1` in
15565 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15566 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15567 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15569 lt_use_gnu_ld_interface=yes
15574 lt_use_gnu_ld_interface=yes
15579 if test "$lt_use_gnu_ld_interface" = yes; then
15580 # If archive_cmds runs LD, not CC, wlarc should be empty
15583 # Set some defaults for GNU ld with shared library support. These
15584 # are reset later if shared libraries are not supported. Putting them
15585 # here allows them to be overridden if necessary.
15586 runpath_var=LD_RUN_PATH
15587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15588 export_dynamic_flag_spec='${wl}--export-dynamic'
15589 # ancient GNU ld didn't support --whole-archive et. al.
15590 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15591 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15593 whole_archive_flag_spec=
15595 supports_anon_versioning=no
15596 case `$LD -v 2>&1` in
15597 *GNU\ gold*) supports_anon_versioning=yes ;;
15598 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15599 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15600 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15601 *\ 2.11.*) ;; # other 2.11 versions
15602 *) supports_anon_versioning=yes ;;
15605 # See if GNU ld supports shared libraries.
15608 # On AIX/PPC, the GNU linker is very broken
15609 if test "$host_cpu" != ia64; then
15613 *** Warning: the GNU linker, at least up to release 2.19, is reported
15614 *** to be unable to reliably create shared libraries on AIX.
15615 *** Therefore, libtool is disabling shared libraries support. If you
15616 *** really care for shared libraries, you may want to install binutils
15617 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15618 *** You will then need to restart the configuration process.
15627 # see comment about AmigaOS4 .so support
15628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629 archive_expsym_cmds=''
15632 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)'
15633 hardcode_libdir_flag_spec
='-L$libdir'
15634 hardcode_minus_L
=yes
15640 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15641 allow_undefined_flag
=unsupported
15642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15643 # support --undefined. This deserves some investigation. FIXME
15644 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15650 cygwin
* | mingw
* | pw32
* | cegcc
*)
15651 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15652 # as there is no search path for DLLs.
15653 hardcode_libdir_flag_spec
='-L$libdir'
15654 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15655 allow_undefined_flag
=unsupported
15656 always_export_symbols
=no
15657 enable_shared_with_static_runtimes
=yes
15658 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15660 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15661 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15662 # If the export-symbols file already is a .def file (1st line
15663 # is EXPORTS), use it as is; otherwise, prepend...
15664 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15665 cp $export_symbols $output_objdir/$soname.def;
15667 echo EXPORTS > $output_objdir/$soname.def;
15668 cat $export_symbols >> $output_objdir/$soname.def;
15670 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15677 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15678 link_all_deplibs
=yes
15683 hardcode_shlibpath_var
=no
15684 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15685 export_dynamic_flag_spec
='${wl}-E'
15686 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15687 # Instead, shared libraries are loaded at an image base (0x10000000 by
15688 # default) and relocated if they conflict, which is a slow very memory
15689 # consuming and fragmenting process. To avoid this, we pick a random,
15690 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15691 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15692 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15693 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'
15696 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15698 if test "$host_os" = linux-dietlibc
; then
15699 case $cc_basename in
15700 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15703 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15704 && test "$tmp_diet" = no
15707 tmp_sharedflag
='-shared'
15708 case $cc_basename,$host_cpu in
15709 pgcc
*) # Portland Group C compiler
15710 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'
15711 tmp_addflag
=' $pic_flag'
15713 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15714 # Portland Group f77 and f90 compilers
15715 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'
15716 tmp_addflag
=' $pic_flag -Mnomain' ;;
15717 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15718 tmp_addflag
=' -i_dynamic' ;;
15719 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15720 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15721 ifc
* | ifort
*) # Intel Fortran compiler
15722 tmp_addflag
=' -nofor_main' ;;
15723 lf95
*) # Lahey Fortran 8.1
15724 whole_archive_flag_spec
=
15725 tmp_sharedflag
='--shared' ;;
15726 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15727 tmp_sharedflag
='-qmkshrobj'
15729 nvcc
*) # Cuda Compiler Driver 2.2
15730 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'
15731 compiler_needs_object
=yes
15734 case `$CC -V 2>&1 | sed 5q` in
15735 *Sun\ C
*) # Sun C 5.9
15736 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'
15737 compiler_needs_object
=yes
15738 tmp_sharedflag
='-G' ;;
15739 *Sun\ F
*) # Sun Fortran 8.3
15740 tmp_sharedflag
='-G' ;;
15742 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15744 if test "x$supports_anon_versioning" = xyes
; then
15745 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15747 echo "local: *; };" >> $output_objdir/$libname.ver~
15748 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15751 case $cc_basename in
15752 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15753 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15754 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15755 hardcode_libdir_flag_spec
=
15756 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15757 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15758 if test "x$supports_anon_versioning" = xyes
; then
15759 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15761 echo "local: *; };" >> $output_objdir/$libname.ver~
15762 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15772 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15773 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15776 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15782 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15786 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15787 *** create shared libraries on Solaris systems. Therefore, libtool
15788 *** is disabling shared libraries support. We urge you to upgrade GNU
15789 *** binutils to release 2.9.1 or newer. Another option is to modify
15790 *** your PATH or compiler configuration so that the native linker is
15791 *** used, and then restart.
15794 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15795 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15802 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15803 case `$LD -v 2>&1` in
15804 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15808 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15809 *** reliably create shared libraries on SCO systems. Therefore, libtool
15810 *** is disabling shared libraries support. We urge you to upgrade GNU
15811 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15812 *** your PATH or compiler configuration so that the native linker is
15813 *** used, and then restart.
15818 # For security reasons, it is highly recommended that you always
15819 # use absolute paths for naming shared libraries, and exclude the
15820 # DT_RUNPATH tag from executables and libraries. But doing so
15821 # requires that you compile everything twice, which is a pain.
15822 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15823 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15824 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15825 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15834 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15836 hardcode_direct
=yes
15837 hardcode_shlibpath_var
=no
15841 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15842 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15843 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15850 if test "$ld_shlibs" = no
; then
15852 hardcode_libdir_flag_spec
=
15853 export_dynamic_flag_spec
=
15854 whole_archive_flag_spec
=
15857 # PORTME fill in a description of your system's linker (not GNU ld)
15860 allow_undefined_flag
=unsupported
15861 always_export_symbols
=yes
15862 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'
15863 # Note: this linker hardcodes the directories in LIBPATH if there
15864 # are no directories specified by -L.
15865 hardcode_minus_L
=yes
15866 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15867 # Neither direct hardcoding nor static linking is supported with a
15869 hardcode_direct
=unsupported
15874 if test "$host_cpu" = ia64
; then
15875 # On IA64, the linker does run time linking by default, so we don't
15876 # have to do anything special.
15877 aix_use_runtimelinking
=no
15878 exp_sym_flag
='-Bexport'
15881 # If we're using GNU nm, then we don't want the "-C" option.
15882 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15883 # Also, AIX nm treats weak defined symbols like other global
15884 # defined symbols, whereas GNU nm marks them as "W".
15885 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15886 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'
15888 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'
15890 aix_use_runtimelinking
=no
15892 # Test if we are trying to use run time linking or normal
15893 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15894 # need to do runtime linking.
15895 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15896 for ld_flag
in $LDFLAGS; do
15897 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15898 aix_use_runtimelinking
=yes
15905 exp_sym_flag
='-bexport'
15906 no_entry_flag
='-bnoentry'
15909 # When large executables or shared objects are built, AIX ld can
15910 # have problems creating the table of contents. If linking a library
15911 # or program results in "error TOC overflow" add -mminimal-toc to
15912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15916 hardcode_direct
=yes
15917 hardcode_direct_absolute
=yes
15918 hardcode_libdir_separator
=':'
15919 link_all_deplibs
=yes
15920 file_list_spec
='${wl}-f,'
15922 if test "$GCC" = yes; then
15923 case $host_os in aix4.
[012]|aix4.
[012].
*)
15924 # We only want to do this on AIX 4.2 and lower, the check
15925 # below for broken collect2 doesn't work under 4.3+
15926 collect2name
=`${CC} -print-prog-name=collect2`
15927 if test -f "$collect2name" &&
15928 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15930 # We have reworked collect2
15933 # We have old collect2
15934 hardcode_direct
=unsupported
15935 # It fails to find uninstalled libraries when the uninstalled
15936 # path is not listed in the libpath. Setting hardcode_minus_L
15937 # to unsupported forces relinking
15938 hardcode_minus_L
=yes
15939 hardcode_libdir_flag_spec
='-L$libdir'
15940 hardcode_libdir_separator
=
15944 shared_flag
='-shared'
15945 if test "$aix_use_runtimelinking" = yes; then
15946 shared_flag
="$shared_flag "'${wl}-G'
15950 if test "$host_cpu" = ia64
; then
15951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15952 # chokes on -Wl,-G. The following line is correct:
15955 if test "$aix_use_runtimelinking" = yes; then
15956 shared_flag
='${wl}-G'
15958 shared_flag
='${wl}-bM:SRE'
15963 export_dynamic_flag_spec
='${wl}-bexpall'
15964 # It seems that -bexpall does not export symbols beginning with
15965 # underscore (_), so it is better to generate a list of symbols to export.
15966 always_export_symbols
=yes
15967 if test "$aix_use_runtimelinking" = yes; then
15968 # Warning - without using the other runtime loading flags (-brtl),
15969 # -berok will link without error, but may produce a broken library.
15970 allow_undefined_flag
='-berok'
15971 # Determine the default libpath from the value encoded in an
15972 # empty executable.
15973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15984 if ac_fn_c_try_link
"$LINENO"; then :
15986 lt_aix_libpath_sed
='
15987 /Import File Strings/,/^$/ {
15993 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15994 # Check for a 64-bit object if we didn't find anything.
15995 if test -z "$aix_libpath"; then
15996 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15999 rm -f core conftest.err conftest.
$ac_objext \
16000 conftest
$ac_exeext conftest.
$ac_ext
16001 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16003 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16004 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"
16006 if test "$host_cpu" = ia64
; then
16007 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16008 allow_undefined_flag
="-z nodefs"
16009 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"
16011 # Determine the default libpath from the value encoded in an
16012 # empty executable.
16013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16024 if ac_fn_c_try_link
"$LINENO"; then :
16026 lt_aix_libpath_sed
='
16027 /Import File Strings/,/^$/ {
16033 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16034 # Check for a 64-bit object if we didn't find anything.
16035 if test -z "$aix_libpath"; then
16036 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16039 rm -f core conftest.err conftest.
$ac_objext \
16040 conftest
$ac_exeext conftest.
$ac_ext
16041 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16043 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16044 # Warning - without using the other run time loading flags,
16045 # -berok will link without error, but may produce a broken library.
16046 no_undefined_flag
=' ${wl}-bernotok'
16047 allow_undefined_flag
=' ${wl}-berok'
16048 if test "$with_gnu_ld" = yes; then
16049 # We only use this code for GNU lds that support --whole-archive.
16050 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16052 # Exported symbols can be pulled into shared objects from archives
16053 whole_archive_flag_spec
='$convenience'
16055 archive_cmds_need_lc
=yes
16056 # This is similar to how AIX traditionally builds its shared libraries.
16057 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'
16065 # see comment about AmigaOS4 .so support
16066 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_expsym_cmds
=''
16070 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)'
16071 hardcode_libdir_flag_spec
='-L$libdir'
16072 hardcode_minus_L
=yes
16078 export_dynamic_flag_spec
=-rdynamic
16081 cygwin
* | mingw
* | pw32
* | cegcc
*)
16082 # When not using gcc, we currently assume that we are using
16083 # Microsoft Visual C++.
16084 # hardcode_libdir_flag_spec is actually meaningless, as there is
16085 # no search path for DLLs.
16086 hardcode_libdir_flag_spec
=' '
16087 allow_undefined_flag
=unsupported
16088 # Tell ltmain to make .lib files, not .a files.
16090 # Tell ltmain to make .dll files, not .so files.
16092 # FIXME: Setting linknames here is a bad hack.
16093 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16094 # The linker will automatically build a .lib file if we build a DLL.
16095 old_archive_from_new_cmds
='true'
16096 # FIXME: Should let the user specify the lib program.
16097 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16098 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16099 enable_shared_with_static_runtimes
=yes
16102 darwin
* | rhapsody
*)
16105 archive_cmds_need_lc
=no
16107 hardcode_automatic
=yes
16108 hardcode_shlibpath_var
=unsupported
16109 if test "$lt_cv_ld_force_load" = "yes"; then
16110 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\"`'
16112 whole_archive_flag_spec
=''
16114 link_all_deplibs
=yes
16115 allow_undefined_flag
="$_lt_dar_allow_undefined"
16116 case $cc_basename in
16117 ifort
*) _lt_dar_can_shared
=yes ;;
16118 *) _lt_dar_can_shared
=$GCC ;;
16120 if test "$_lt_dar_can_shared" = "yes"; then
16121 output_verbose_link_cmd
=func_echo_all
16122 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16123 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16124 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}"
16125 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}"
16134 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_libdir_flag_spec
='-L$libdir'
16136 hardcode_shlibpath_var
=no
16139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16140 # support. Future versions do this automatically, but an explicit c++rt0.o
16141 # does not break anything, and helps significantly (at the cost of a little
16144 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16145 hardcode_libdir_flag_spec
='-R$libdir'
16146 hardcode_direct
=yes
16147 hardcode_shlibpath_var
=no
16150 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16152 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16153 hardcode_direct
=yes
16154 hardcode_minus_L
=yes
16155 hardcode_shlibpath_var
=no
16158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16159 freebsd
* | dragonfly
*)
16160 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16161 hardcode_libdir_flag_spec
='-R$libdir'
16162 hardcode_direct
=yes
16163 hardcode_shlibpath_var
=no
16167 if test "$GCC" = yes; then
16168 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'
16170 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'
16172 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16173 hardcode_libdir_separator
=:
16174 hardcode_direct
=yes
16176 # hardcode_minus_L: Not really in the search PATH,
16177 # but as the default location of the library.
16178 hardcode_minus_L
=yes
16179 export_dynamic_flag_spec
='${wl}-E'
16183 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16184 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16186 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16188 if test "$with_gnu_ld" = no
; then
16189 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16190 hardcode_libdir_flag_spec_ld
='+b $libdir'
16191 hardcode_libdir_separator
=:
16192 hardcode_direct
=yes
16193 hardcode_direct_absolute
=yes
16194 export_dynamic_flag_spec
='${wl}-E'
16195 # hardcode_minus_L: Not really in the search PATH,
16196 # but as the default location of the library.
16197 hardcode_minus_L
=yes
16202 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16205 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16208 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16211 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16217 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16220 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16224 # Older versions of the 11.00 compiler do not understand -b yet
16225 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16227 $as_echo_n "checking if $CC understands -b... " >&6; }
16228 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16229 $as_echo_n "(cached) " >&6
16231 lt_cv_prog_compiler__b
=no
16232 save_LDFLAGS
="$LDFLAGS"
16233 LDFLAGS
="$LDFLAGS -b"
16234 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16235 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16236 # The linker can only warn and ignore the option if not recognized
16237 # So say no if there are warnings
16238 if test -s conftest.err
; then
16239 # Append any errors to the config.log.
16240 cat conftest.err
1>&5
16241 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16242 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16243 if diff conftest.exp conftest.er2
>/dev
/null
; then
16244 lt_cv_prog_compiler__b
=yes
16247 lt_cv_prog_compiler__b
=yes
16251 LDFLAGS
="$save_LDFLAGS"
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16255 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16257 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16258 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16260 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16266 if test "$with_gnu_ld" = no
; then
16267 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16268 hardcode_libdir_separator
=:
16273 hardcode_shlibpath_var
=no
16276 hardcode_direct
=yes
16277 hardcode_direct_absolute
=yes
16278 export_dynamic_flag_spec
='${wl}-E'
16280 # hardcode_minus_L: Not really in the search PATH,
16281 # but as the default location of the library.
16282 hardcode_minus_L
=yes
16288 irix5
* | irix6
* | nonstopux
*)
16289 if test "$GCC" = yes; then
16290 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'
16291 # Try to use the -exported_symbol ld option, if it does not
16292 # work, assume that -exports_file does not work either and
16293 # implicitly export all symbols.
16294 save_LDFLAGS
="$LDFLAGS"
16295 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16300 if ac_fn_c_try_link
"$LINENO"; then :
16301 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'
16304 rm -f core conftest.err conftest.
$ac_objext \
16305 conftest
$ac_exeext conftest.
$ac_ext
16306 LDFLAGS
="$save_LDFLAGS"
16308 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'
16309 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'
16311 archive_cmds_need_lc
='no'
16312 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16313 hardcode_libdir_separator
=:
16315 link_all_deplibs
=yes
16319 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16320 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16322 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16324 hardcode_libdir_flag_spec
='-R$libdir'
16325 hardcode_direct
=yes
16326 hardcode_shlibpath_var
=no
16330 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16331 hardcode_direct
=yes
16332 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16333 hardcode_libdir_separator
=:
16334 hardcode_shlibpath_var
=no
16341 if test -f /usr
/libexec
/ld.so
; then
16342 hardcode_direct
=yes
16343 hardcode_shlibpath_var
=no
16344 hardcode_direct_absolute
=yes
16345 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16346 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16347 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16348 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16349 export_dynamic_flag_spec
='${wl}-E'
16352 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16353 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16354 hardcode_libdir_flag_spec
='-R$libdir'
16357 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16358 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16368 hardcode_libdir_flag_spec
='-L$libdir'
16369 hardcode_minus_L
=yes
16370 allow_undefined_flag
=unsupported
16371 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'
16372 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16376 if test "$GCC" = yes; then
16377 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16378 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'
16380 allow_undefined_flag
=' -expect_unresolved \*'
16381 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'
16383 archive_cmds_need_lc
='no'
16384 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16385 hardcode_libdir_separator
=:
16388 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16389 if test "$GCC" = yes; then
16390 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16391 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'
16392 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16394 allow_undefined_flag
=' -expect_unresolved \*'
16395 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'
16396 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~
16397 $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'
16399 # Both c and cxx compiler support -rpath directly
16400 hardcode_libdir_flag_spec
='-rpath $libdir'
16402 archive_cmds_need_lc
='no'
16403 hardcode_libdir_separator
=:
16407 no_undefined_flag
=' -z defs'
16408 if test "$GCC" = yes; then
16410 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16411 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16412 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16414 case `$CC -V 2>&1` in
16417 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16418 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16419 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16423 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16424 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16425 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16429 hardcode_libdir_flag_spec
='-R$libdir'
16430 hardcode_shlibpath_var
=no
16432 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16434 # The compiler driver will combine and reorder linker options,
16435 # but understands `-z linker_flag'. GCC discards it without `$wl',
16436 # but is careful enough not to reorder.
16437 # Supported since Solaris 2.6 (maybe 2.5.1?)
16438 if test "$GCC" = yes; then
16439 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16441 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16445 link_all_deplibs
=yes
16449 if test "x$host_vendor" = xsequent
; then
16450 # Use $CC to link under sequent, because it throws in some extra .o
16451 # files that make .init and .fini sections work.
16452 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16454 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16456 hardcode_libdir_flag_spec
='-L$libdir'
16457 hardcode_direct
=yes
16458 hardcode_minus_L
=yes
16459 hardcode_shlibpath_var
=no
16463 case $host_vendor in
16465 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16466 hardcode_direct
=yes # is this really true???
16469 ## LD is ld it makes a PLAMLIB
16470 ## CC just makes a GrossModule.
16471 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16472 reload_cmds
='$CC -r -o $output$reload_objs'
16476 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16480 runpath_var
='LD_RUN_PATH'
16481 hardcode_shlibpath_var
=no
16485 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486 hardcode_shlibpath_var
=no
16487 export_dynamic_flag_spec
='-Bexport'
16491 if test -d /usr
/nec
; then
16492 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16493 hardcode_shlibpath_var
=no
16494 runpath_var
=LD_RUN_PATH
16495 hardcode_runpath_var
=yes
16500 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16501 no_undefined_flag
='${wl}-z,text'
16502 archive_cmds_need_lc
=no
16503 hardcode_shlibpath_var
=no
16504 runpath_var
='LD_RUN_PATH'
16506 if test "$GCC" = yes; then
16507 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16508 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16510 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16511 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16515 sysv5
* | sco3.2v5
* | sco5v6
*)
16516 # Note: We can NOT use -z defs as we might desire, because we do not
16517 # link with -lc, and that would cause any symbols used from libc to
16518 # always be unresolved, which means just about no library would
16519 # ever link correctly. If we're not using GNU ld we use -z text
16520 # though, which does catch some bad symbols but isn't as heavy-handed
16522 no_undefined_flag
='${wl}-z,text'
16523 allow_undefined_flag
='${wl}-z,nodefs'
16524 archive_cmds_need_lc
=no
16525 hardcode_shlibpath_var
=no
16526 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16527 hardcode_libdir_separator
=':'
16528 link_all_deplibs
=yes
16529 export_dynamic_flag_spec
='${wl}-Bexport'
16530 runpath_var
='LD_RUN_PATH'
16532 if test "$GCC" = yes; then
16533 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16534 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16536 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16537 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16542 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543 hardcode_libdir_flag_spec
='-L$libdir'
16544 hardcode_shlibpath_var
=no
16552 if test x
$host_vendor = xsni
; then
16554 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16555 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16562 $as_echo "$ld_shlibs" >&6; }
16563 test "$ld_shlibs" = no
&& can_build_shared
=no
16565 with_gnu_ld
=$with_gnu_ld
16582 # Do we need to explicitly link libc?
16584 case "x$archive_cmds_need_lc" in
16586 # Assume -lc should be added
16587 archive_cmds_need_lc
=yes
16589 if test "$enable_shared" = yes && test "$GCC" = yes; then
16590 case $archive_cmds in
16592 # FIXME: we may have to deal with multi-command sequences.
16595 # Test whether the compiler implicitly links with -lc since on some
16596 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16597 # to ld, don't add -lc before -lgcc.
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16599 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16600 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16601 $as_echo_n "(cached) " >&6
16604 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16607 (eval $ac_compile) 2>&5
16609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16610 test $ac_status = 0; } 2>conftest.err
; then
16613 libobjs
=conftest.
$ac_objext
16615 wl
=$lt_prog_compiler_wl
16616 pic_flag
=$lt_prog_compiler_pic
16622 lt_save_allow_undefined_flag
=$allow_undefined_flag
16623 allow_undefined_flag
=
16624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16625 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16628 test $ac_status = 0; }
16630 lt_cv_archive_cmds_need_lc
=no
16632 lt_cv_archive_cmds_need_lc
=yes
16634 allow_undefined_flag
=$lt_save_allow_undefined_flag
16636 cat conftest.err
1>&5
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16642 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16643 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16807 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16809 if test "$GCC" = yes; then
16811 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16812 *) lt_awk_arg
="/^libraries:/" ;;
16815 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16816 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16818 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16819 case $lt_search_path_spec in
16821 # if the path contains ";" then we assume it to be the separator
16822 # otherwise default to the standard path separator (i.e. ":") - it is
16823 # assumed that no part of a normal pathname contains ";" but that should
16824 # okay in the real world where ";" in dirpaths is itself problematic.
16825 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16828 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16831 # Ok, now we have the path, separated by spaces, we can step through it
16832 # and add multilib dir if necessary.
16833 lt_tmp_lt_search_path_spec
=
16834 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16835 for lt_sys_path
in $lt_search_path_spec; do
16836 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16837 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16839 test -d "$lt_sys_path" && \
16840 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16843 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16844 BEGIN {RS=" "; FS="/|\n";} {
16847 for (lt_i = NF; lt_i > 0; lt_i--) {
16848 if ($lt_i != "" && $lt_i != ".") {
16849 if ($lt_i == "..") {
16852 if (lt_count == 0) {
16853 lt_foo="/" $lt_i lt_foo;
16860 if (lt_foo != "") { lt_freq[lt_foo]++; }
16861 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16863 # AWK program above erroneously prepends '/' to C:/dos/paths
16866 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16867 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16869 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16871 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16873 library_names_spec
=
16874 libname_spec
='lib$name'
16878 postuninstall_cmds
=
16882 shlibpath_overrides_runpath
=unknown
16884 dynamic_linker
="$host_os ld.so"
16885 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16886 need_lib_prefix
=unknown
16887 hardcode_into_libs
=no
16889 # when you set need_version to no, make sure it does not cause -set_version
16890 # flags to be left without arguments
16891 need_version
=unknown
16896 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16897 shlibpath_var
=LIBPATH
16899 # AIX 3 has no versioning support, so we append a major version to the name.
16900 soname_spec
='${libname}${release}${shared_ext}$major'
16907 hardcode_into_libs
=yes
16908 if test "$host_cpu" = ia64
; then
16909 # AIX 5 supports IA64
16910 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16911 shlibpath_var
=LD_LIBRARY_PATH
16913 # With GCC up to 2.95.x, collect2 would create an import file
16914 # for dependence libraries. The import file would start with
16915 # the line `#! .'. This would cause the generated library to
16916 # depend on `.', always an invalid library. This was fixed in
16917 # development snapshots of GCC prior to 3.0.
16919 aix4 | aix4.
[01] | aix4.
[01].
*)
16920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16922 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16925 can_build_shared
=no
16929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16930 # soname into executable. Probably we can add versioning support to
16931 # collect2, so additional links can be useful in future.
16932 if test "$aix_use_runtimelinking" = yes; then
16933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16934 # instead of lib<name>.a to let people know that these are not
16935 # typical AIX shared libraries.
16936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938 # We preserve .a as extension for shared libraries through AIX4.2
16939 # and later when we are not doing run time linking.
16940 library_names_spec
='${libname}${release}.a $libname.a'
16941 soname_spec
='${libname}${release}${shared_ext}$major'
16943 shlibpath_var
=LIBPATH
16950 # Since July 2007 AmigaOS4 officially supports .so libraries.
16951 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16955 library_names_spec
='$libname.ixlibrary $libname.a'
16956 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16957 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'
16963 library_names_spec
='${libname}${shared_ext}'
16964 dynamic_linker
="$host_os ld.so"
16965 shlibpath_var
=LIBRARY_PATH
16971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16972 soname_spec
='${libname}${release}${shared_ext}$major'
16973 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16974 shlibpath_var
=LD_LIBRARY_PATH
16975 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16976 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16977 # the default ld.so.conf also contains /usr/contrib/lib and
16978 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16979 # libtool to hard-code these into programs
16982 cygwin
* | mingw
* | pw32
* | cegcc
*)
16983 version_type
=windows
16988 case $GCC,$host_os in
16989 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16990 library_names_spec
='$libname.dll.a'
16991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16992 postinstall_cmds
='base_file=`basename \${file}`~
16993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16994 dldir=$destdir/`dirname \$dlpath`~
16995 test -d \$dldir || mkdir -p \$dldir~
16996 $install_prog $dir/$dlname \$dldir/$dlname~
16997 chmod a+x \$dldir/$dlname~
16998 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16999 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17001 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17002 dlpath=$dir/\$dldll~
17004 shlibpath_overrides_runpath
=yes
17008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17009 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17011 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17014 # MinGW DLLs use traditional 'lib' prefix
17015 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17018 # pw32 DLLs use 'pw' prefix rather than 'lib'
17019 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17025 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17028 dynamic_linker
='Win32 ld.exe'
17029 # FIXME: first we should search . and the directory the executable is in
17033 darwin
* | rhapsody
*)
17034 dynamic_linker
="$host_os dyld"
17035 version_type
=darwin
17038 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039 soname_spec
='${libname}${release}${major}$shared_ext'
17040 shlibpath_overrides_runpath
=yes
17041 shlibpath_var
=DYLD_LIBRARY_PATH
17042 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17044 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17045 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17053 soname_spec
='${libname}${release}${shared_ext}$major'
17054 shlibpath_var
=LD_LIBRARY_PATH
17057 freebsd
* | dragonfly
*)
17058 # DragonFly does not have aout. When/if they implement a new
17059 # versioning mechanism, adjust this.
17060 if test -x /usr
/bin
/objformat
; then
17061 objformat
=`/usr/bin/objformat`
17064 freebsd
[23].
*) objformat
=aout
;;
17065 *) objformat
=elf
;;
17068 version_type
=freebsd-
$objformat
17069 case $version_type in
17071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17076 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17080 shlibpath_var
=LD_LIBRARY_PATH
17083 shlibpath_overrides_runpath
=yes
17085 freebsd3.
[01]* | freebsdelf3.
[01]*)
17086 shlibpath_overrides_runpath
=yes
17087 hardcode_into_libs
=yes
17089 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17090 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17091 shlibpath_overrides_runpath
=no
17092 hardcode_into_libs
=yes
17094 *) # from 4.6 on, and DragonFly
17095 shlibpath_overrides_runpath
=yes
17096 hardcode_into_libs
=yes
17105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17106 soname_spec
='${libname}${release}${shared_ext}$major'
17107 shlibpath_var
=LD_LIBRARY_PATH
17108 hardcode_into_libs
=yes
17115 dynamic_linker
="$host_os runtime_loader"
17116 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17117 soname_spec
='${libname}${release}${shared_ext}$major'
17118 shlibpath_var
=LIBRARY_PATH
17119 shlibpath_overrides_runpath
=yes
17120 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17121 hardcode_into_libs
=yes
17124 hpux9
* | hpux10
* | hpux11
*)
17125 # Give a soname corresponding to the major version so that dld.sl refuses to
17126 # link against other versions.
17133 hardcode_into_libs
=yes
17134 dynamic_linker
="$host_os dld.so"
17135 shlibpath_var
=LD_LIBRARY_PATH
17136 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17137 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138 soname_spec
='${libname}${release}${shared_ext}$major'
17139 if test "X$HPUX_IA64_MODE" = X32
; then
17140 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17142 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17144 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17148 hardcode_into_libs
=yes
17149 dynamic_linker
="$host_os dld.sl"
17150 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17151 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17152 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec
='${libname}${release}${shared_ext}$major'
17154 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17155 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17159 dynamic_linker
="$host_os dld.sl"
17160 shlibpath_var
=SHLIB_PATH
17161 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
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'
17166 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17167 postinstall_cmds
='chmod 555 $lib'
17168 # or fails outright, so override atomically:
17169 install_override_mode
=555
17176 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17177 soname_spec
='${libname}${release}${shared_ext}$major'
17178 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17179 shlibpath_var
=LD_LIBRARY_PATH
17180 shlibpath_overrides_runpath
=no
17181 hardcode_into_libs
=yes
17184 irix5
* | irix6
* | nonstopux
*)
17186 nonstopux
*) version_type
=nonstopux
;;
17188 if test "$lt_cv_prog_gnu_ld" = yes; then
17196 soname_spec
='${libname}${release}${shared_ext}$major'
17197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17199 irix5
* | nonstopux
*)
17200 libsuff
= shlibsuff
=
17203 case $LD in # libtool.m4 will add one of these switches to LD
17204 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17205 libsuff
= shlibsuff
= libmagic
=32-bit;;
17206 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17207 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17208 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17209 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17210 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17214 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17215 shlibpath_overrides_runpath
=no
17216 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17217 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17218 hardcode_into_libs
=yes
17221 # No shared lib support for Linux oldld, aout, or coff.
17222 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17226 # This must be Linux ELF.
17227 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17231 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 soname_spec
='${libname}${release}${shared_ext}$major'
17233 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17234 shlibpath_var
=LD_LIBRARY_PATH
17235 shlibpath_overrides_runpath
=no
17237 # Some binutils ld are patched to set DT_RUNPATH
17238 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17239 $as_echo_n "(cached) " >&6
17241 lt_cv_shlibpath_overrides_runpath
=no
17242 save_LDFLAGS
=$LDFLAGS
17243 save_libdir
=$libdir
17244 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17245 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17257 if ac_fn_c_try_link
"$LINENO"; then :
17258 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17259 lt_cv_shlibpath_overrides_runpath
=yes
17262 rm -f core conftest.err conftest.
$ac_objext \
17263 conftest
$ac_exeext conftest.
$ac_ext
17264 LDFLAGS
=$save_LDFLAGS
17265 libdir
=$save_libdir
17269 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17271 # This implies no fast_install, which is unacceptable.
17272 # Some rework will be needed to allow for fast_install
17273 # before this can be enabled.
17274 hardcode_into_libs
=yes
17276 # Append ld.so.conf contents to the search path
17277 if test -f /etc
/ld.so.conf
; then
17278 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' ' '`
17279 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17282 # We used to test for /lib/ld.so.1 and disable shared libraries on
17283 # powerpc, because MkLinux only supported shared libraries with the
17284 # GNU dynamic linker. Since this was broken with cross compilers,
17285 # most powerpc-linux boxes support dynamic linking these days and
17286 # people can always --disable-shared, the test was removed, and we
17287 # assume the GNU/Linux dynamic linker is in use.
17288 dynamic_linker
='GNU/Linux ld.so'
17295 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17296 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17297 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17298 dynamic_linker
='NetBSD (a.out) ld.so'
17300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17301 soname_spec
='${libname}${release}${shared_ext}$major'
17302 dynamic_linker
='NetBSD ld.elf_so'
17304 shlibpath_var
=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath
=yes
17306 hardcode_into_libs
=yes
17311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 shlibpath_var
=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath
=yes
17320 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321 soname_spec
='${libname}${release}${shared_ext}$major'
17322 shlibpath_var
=LD_LIBRARY_PATH
17323 shlibpath_overrides_runpath
=no
17324 hardcode_into_libs
=yes
17325 dynamic_linker
='ldqnx.so'
17330 sys_lib_dlsearch_path_spec
="/usr/lib"
17332 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17334 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17335 *) need_version
=no
;;
17337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17338 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17339 shlibpath_var
=LD_LIBRARY_PATH
17340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17342 openbsd2.
[89] | openbsd2.
[89].
*)
17343 shlibpath_overrides_runpath
=no
17346 shlibpath_overrides_runpath
=yes
17350 shlibpath_overrides_runpath
=yes
17355 libname_spec
='$name'
17358 library_names_spec
='$libname${shared_ext} $libname.a'
17359 dynamic_linker
='OS/2 ld.exe'
17360 shlibpath_var
=LIBPATH
17363 osf3
* | osf4
* | osf5
*)
17367 soname_spec
='${libname}${release}${shared_ext}$major'
17368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 shlibpath_var
=LD_LIBRARY_PATH
17370 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17371 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17382 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383 soname_spec
='${libname}${release}${shared_ext}$major'
17384 shlibpath_var
=LD_LIBRARY_PATH
17385 shlibpath_overrides_runpath
=yes
17386 hardcode_into_libs
=yes
17387 # ldd complains unless libraries are executable
17388 postinstall_cmds
='chmod +x $lib'
17393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17394 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17395 shlibpath_var
=LD_LIBRARY_PATH
17396 shlibpath_overrides_runpath
=yes
17397 if test "$with_gnu_ld" = yes; then
17405 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406 soname_spec
='${libname}${release}${shared_ext}$major'
17407 shlibpath_var
=LD_LIBRARY_PATH
17408 case $host_vendor in
17410 shlibpath_overrides_runpath
=no
17412 runpath_var
=LD_RUN_PATH
17420 shlibpath_overrides_runpath
=no
17421 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17427 if test -d /usr
/nec
;then
17429 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17430 soname_spec
='$libname${shared_ext}.$major'
17431 shlibpath_var
=LD_LIBRARY_PATH
17435 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17436 version_type
=freebsd-elf
17439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17440 soname_spec
='${libname}${release}${shared_ext}$major'
17441 shlibpath_var
=LD_LIBRARY_PATH
17442 shlibpath_overrides_runpath
=yes
17443 hardcode_into_libs
=yes
17444 if test "$with_gnu_ld" = yes; then
17445 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17447 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17450 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17454 sys_lib_dlsearch_path_spec
='/usr/lib'
17458 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17462 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17463 shlibpath_var
=LD_LIBRARY_PATH
17464 shlibpath_overrides_runpath
=no
17465 hardcode_into_libs
=yes
17470 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 soname_spec
='${libname}${release}${shared_ext}$major'
17472 shlibpath_var
=LD_LIBRARY_PATH
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17480 $as_echo "$dynamic_linker" >&6; }
17481 test "$dynamic_linker" = no
&& can_build_shared
=no
17483 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17484 if test "$GCC" = yes; then
17485 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17488 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17489 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17491 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17492 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17587 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17589 if test -n "$hardcode_libdir_flag_spec" ||
17590 test -n "$runpath_var" ||
17591 test "X$hardcode_automatic" = "Xyes" ; then
17593 # We can hardcode non-existent directories.
17594 if test "$hardcode_direct" != no
&&
17595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17596 # have to relink, otherwise we might link with an installed library
17597 # when we should be linking with a yet-to-be-installed one
17598 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17599 test "$hardcode_minus_L" != no
; then
17600 # Linking always hardcodes the temporary library directory.
17601 hardcode_action
=relink
17603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17604 hardcode_action
=immediate
17607 # We cannot hardcode anything, or else we can only hardcode existing
17609 hardcode_action
=unsupported
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17612 $as_echo "$hardcode_action" >&6; }
17614 if test "$hardcode_action" = relink ||
17615 test "$inherit_rpath" = yes; then
17616 # Fast installation is not supported
17617 enable_fast_install
=no
17618 elif test "$shlibpath_overrides_runpath" = yes ||
17619 test "$enable_shared" = no
; then
17620 # Fast installation is not necessary
17621 enable_fast_install
=needless
17629 if test "x$enable_dlopen" != xyes
; then
17630 enable_dlopen
=unknown
17631 enable_dlopen_self
=unknown
17632 enable_dlopen_self_static
=unknown
17639 lt_cv_dlopen
="load_add_on"
17641 lt_cv_dlopen_self
=yes
17644 mingw
* | pw32
* | cegcc
*)
17645 lt_cv_dlopen
="LoadLibrary"
17650 lt_cv_dlopen
="dlopen"
17655 # if libdl is installed we need to link against it
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17657 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17658 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17659 $as_echo_n "(cached) " >&6
17661 ac_check_lib_save_LIBS
=$LIBS
17663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17664 /* end confdefs.h. */
17666 /* Override any GCC internal prototype to avoid an error.
17667 Use char because int might match the return type of a GCC
17668 builtin and then its argument prototype would still apply. */
17681 if ac_fn_c_try_link
"$LINENO"; then :
17682 ac_cv_lib_dl_dlopen
=yes
17684 ac_cv_lib_dl_dlopen
=no
17686 rm -f core conftest.err conftest.
$ac_objext \
17687 conftest
$ac_exeext conftest.
$ac_ext
17688 LIBS
=$ac_check_lib_save_LIBS
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17691 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17692 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17693 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17696 lt_cv_dlopen
="dyld"
17698 lt_cv_dlopen_self
=yes
17705 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17706 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17707 lt_cv_dlopen
="shl_load"
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17710 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17711 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17712 $as_echo_n "(cached) " >&6
17714 ac_check_lib_save_LIBS
=$LIBS
17716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h. */
17719 /* Override any GCC internal prototype to avoid an error.
17720 Use char because int might match the return type of a GCC
17721 builtin and then its argument prototype would still apply. */
17729 return shl_load ();
17734 if ac_fn_c_try_link
"$LINENO"; then :
17735 ac_cv_lib_dld_shl_load
=yes
17737 ac_cv_lib_dld_shl_load
=no
17739 rm -f core conftest.err conftest.
$ac_objext \
17740 conftest
$ac_exeext conftest.
$ac_ext
17741 LIBS
=$ac_check_lib_save_LIBS
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17744 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17745 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17746 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17748 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17749 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17750 lt_cv_dlopen
="dlopen"
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17753 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17754 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17755 $as_echo_n "(cached) " >&6
17757 ac_check_lib_save_LIBS
=$LIBS
17759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17762 /* Override any GCC internal prototype to avoid an error.
17763 Use char because int might match the return type of a GCC
17764 builtin and then its argument prototype would still apply. */
17777 if ac_fn_c_try_link
"$LINENO"; then :
17778 ac_cv_lib_dl_dlopen
=yes
17780 ac_cv_lib_dl_dlopen
=no
17782 rm -f core conftest.err conftest.
$ac_objext \
17783 conftest
$ac_exeext conftest.
$ac_ext
17784 LIBS
=$ac_check_lib_save_LIBS
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17787 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17788 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17789 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17792 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17793 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17794 $as_echo_n "(cached) " >&6
17796 ac_check_lib_save_LIBS
=$LIBS
17797 LIBS
="-lsvld $LIBS"
17798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17801 /* Override any GCC internal prototype to avoid an error.
17802 Use char because int might match the return type of a GCC
17803 builtin and then its argument prototype would still apply. */
17816 if ac_fn_c_try_link
"$LINENO"; then :
17817 ac_cv_lib_svld_dlopen
=yes
17819 ac_cv_lib_svld_dlopen
=no
17821 rm -f core conftest.err conftest.
$ac_objext \
17822 conftest
$ac_exeext conftest.
$ac_ext
17823 LIBS
=$ac_check_lib_save_LIBS
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17826 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17827 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17828 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17831 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17832 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17833 $as_echo_n "(cached) " >&6
17835 ac_check_lib_save_LIBS
=$LIBS
17837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17840 /* Override any GCC internal prototype to avoid an error.
17841 Use char because int might match the return type of a GCC
17842 builtin and then its argument prototype would still apply. */
17850 return dld_link ();
17855 if ac_fn_c_try_link
"$LINENO"; then :
17856 ac_cv_lib_dld_dld_link
=yes
17858 ac_cv_lib_dld_dld_link
=no
17860 rm -f core conftest.err conftest.
$ac_objext \
17861 conftest
$ac_exeext conftest.
$ac_ext
17862 LIBS
=$ac_check_lib_save_LIBS
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17865 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17866 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17867 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17888 if test "x$lt_cv_dlopen" != xno
; then
17894 case $lt_cv_dlopen in
17896 save_CPPFLAGS
="$CPPFLAGS"
17897 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17899 save_LDFLAGS
="$LDFLAGS"
17900 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17903 LIBS
="$lt_cv_dlopen_libs $LIBS"
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17906 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17907 if test "${lt_cv_dlopen_self+set}" = set; then :
17908 $as_echo_n "(cached) " >&6
17910 if test "$cross_compiling" = yes; then :
17911 lt_cv_dlopen_self
=cross
17913 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17914 lt_status
=$lt_dlunknown
17915 cat > conftest.
$ac_ext <<_LT_EOF
17916 #line 17916 "configure"
17917 #include "confdefs.h"
17926 # define LT_DLGLOBAL RTLD_GLOBAL
17929 # define LT_DLGLOBAL DL_GLOBAL
17931 # define LT_DLGLOBAL 0
17935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17936 find out it does not work in some platform. */
17937 #ifndef LT_DLLAZY_OR_NOW
17939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17942 # define LT_DLLAZY_OR_NOW DL_LAZY
17945 # define LT_DLLAZY_OR_NOW RTLD_NOW
17948 # define LT_DLLAZY_OR_NOW DL_NOW
17950 # define LT_DLLAZY_OR_NOW 0
17957 /* When -fvisbility=hidden is used, assume the code has been annotated
17958 correspondingly for the symbols needed. */
17959 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17960 void fnord () __attribute__((visibility("default")));
17963 void fnord () { int i=42; }
17966 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17967 int status = $lt_dlunknown;
17971 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17974 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17975 else puts (dlerror ());
17977 /* dlclose (self); */
17985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17986 (eval $ac_link) 2>&5
17988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17989 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17990 (.
/conftest
; exit; ) >&5 2>/dev
/null
17992 case x
$lt_status in
17993 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17994 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17995 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17998 # compilation failed
17999 lt_cv_dlopen_self
=no
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18007 $as_echo "$lt_cv_dlopen_self" >&6; }
18009 if test "x$lt_cv_dlopen_self" = xyes
; then
18010 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18012 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18013 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18014 $as_echo_n "(cached) " >&6
18016 if test "$cross_compiling" = yes; then :
18017 lt_cv_dlopen_self_static
=cross
18019 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18020 lt_status
=$lt_dlunknown
18021 cat > conftest.
$ac_ext <<_LT_EOF
18022 #line 18022 "configure"
18023 #include "confdefs.h"
18032 # define LT_DLGLOBAL RTLD_GLOBAL
18035 # define LT_DLGLOBAL DL_GLOBAL
18037 # define LT_DLGLOBAL 0
18041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18042 find out it does not work in some platform. */
18043 #ifndef LT_DLLAZY_OR_NOW
18045 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18048 # define LT_DLLAZY_OR_NOW DL_LAZY
18051 # define LT_DLLAZY_OR_NOW RTLD_NOW
18054 # define LT_DLLAZY_OR_NOW DL_NOW
18056 # define LT_DLLAZY_OR_NOW 0
18063 /* When -fvisbility=hidden is used, assume the code has been annotated
18064 correspondingly for the symbols needed. */
18065 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18066 void fnord () __attribute__((visibility("default")));
18069 void fnord () { int i=42; }
18072 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18073 int status = $lt_dlunknown;
18077 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18080 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18081 else puts (dlerror ());
18083 /* dlclose (self); */
18091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18092 (eval $ac_link) 2>&5
18094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18095 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18096 (.
/conftest
; exit; ) >&5 2>/dev
/null
18098 case x
$lt_status in
18099 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18100 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18101 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18104 # compilation failed
18105 lt_cv_dlopen_self_static
=no
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18113 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18116 CPPFLAGS
="$save_CPPFLAGS"
18117 LDFLAGS
="$save_LDFLAGS"
18122 case $lt_cv_dlopen_self in
18123 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18124 *) enable_dlopen_self
=unknown
;;
18127 case $lt_cv_dlopen_self_static in
18128 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18129 *) enable_dlopen_self_static
=unknown
;;
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18152 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18153 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18154 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18155 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18157 $as_echo "yes" >&6; }
18159 # FIXME - insert some real tests, host_os isn't really good enough
18162 if test -n "$STRIP" ; then
18163 striplib
="$STRIP -x"
18164 old_striplib
="$STRIP -S"
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18166 $as_echo "yes" >&6; }
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18169 $as_echo "no" >&6; }
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18174 $as_echo "no" >&6; }
18190 # Report which library types will actually be built
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18192 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18194 $as_echo "$can_build_shared" >&6; }
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18197 $as_echo_n "checking whether to build shared libraries... " >&6; }
18198 test "$can_build_shared" = "no" && enable_shared
=no
18200 # On AIX, shared libraries and static libraries use the same namespace, and
18201 # are all built from PIC.
18204 test "$enable_shared" = yes && enable_static
=no
18205 if test -n "$RANLIB"; then
18206 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18207 postinstall_cmds
='$RANLIB $lib'
18212 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18213 test "$enable_shared" = yes && enable_static
=no
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18218 $as_echo "$enable_shared" >&6; }
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18221 $as_echo_n "checking whether to build static libraries... " >&6; }
18222 # Make sure either enable_shared or enable_static is yes.
18223 test "$enable_shared" = yes || enable_static
=yes
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18225 $as_echo "$enable_static" >&6; }
18232 ac_cpp
='$CPP $CPPFLAGS'
18233 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18234 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18235 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18239 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18240 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18241 (test "X$CXX" != "Xg++"))) ; then
18243 ac_cpp
='$CXXCPP $CPPFLAGS'
18244 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18245 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18246 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18248 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18249 if test -z "$CXXCPP"; then
18250 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18251 $as_echo_n "(cached) " >&6
18253 # Double quotes because CXXCPP needs to be expanded
18254 for CXXCPP
in "$CXX -E" "/lib/cpp"
18256 ac_preproc_ok
=false
18257 for ac_cxx_preproc_warn_flag
in '' yes
18259 # Use a header file that comes with gcc, so configuring glibc
18260 # with a fresh cross-compiler works.
18261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18262 # <limits.h> exists even on freestanding compilers.
18263 # On the NeXT, cc -E runs the code through the compiler's parser,
18264 # not just through cpp. "Syntax error" is here to catch this case.
18265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18268 # include <limits.h>
18270 # include <assert.h>
18274 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18277 # Broken: fails on valid input.
18280 rm -f conftest.err conftest.
$ac_ext
18282 # OK, works on sane cases. Now check whether nonexistent headers
18283 # can be detected and how.
18284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18285 /* end confdefs.h. */
18286 #include <ac_nonexistent.h>
18288 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18289 # Broken: success on invalid input.
18292 # Passes both tests.
18296 rm -f conftest.err conftest.
$ac_ext
18299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18300 rm -f conftest.err conftest.
$ac_ext
18301 if $ac_preproc_ok; then :
18306 ac_cv_prog_CXXCPP
=$CXXCPP
18309 CXXCPP
=$ac_cv_prog_CXXCPP
18311 ac_cv_prog_CXXCPP
=$CXXCPP
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18314 $as_echo "$CXXCPP" >&6; }
18315 ac_preproc_ok
=false
18316 for ac_cxx_preproc_warn_flag
in '' yes
18318 # Use a header file that comes with gcc, so configuring glibc
18319 # with a fresh cross-compiler works.
18320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18321 # <limits.h> exists even on freestanding compilers.
18322 # On the NeXT, cc -E runs the code through the compiler's parser,
18323 # not just through cpp. "Syntax error" is here to catch this case.
18324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18327 # include <limits.h>
18329 # include <assert.h>
18333 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18336 # Broken: fails on valid input.
18339 rm -f conftest.err conftest.
$ac_ext
18341 # OK, works on sane cases. Now check whether nonexistent headers
18342 # can be detected and how.
18343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18345 #include <ac_nonexistent.h>
18347 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18348 # Broken: success on invalid input.
18351 # Passes both tests.
18355 rm -f conftest.err conftest.
$ac_ext
18358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18359 rm -f conftest.err conftest.
$ac_ext
18360 if $ac_preproc_ok; then :
18363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18365 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18366 See \`config.log' for more details." "$LINENO" 5; }
18370 ac_cpp
='$CPP $CPPFLAGS'
18371 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18372 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18373 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18376 _lt_caught_CXX_error
=yes
18380 ac_cpp
='$CXXCPP $CPPFLAGS'
18381 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18385 archive_cmds_need_lc_CXX
=no
18386 allow_undefined_flag_CXX
=
18387 always_export_symbols_CXX
=no
18388 archive_expsym_cmds_CXX
=
18389 compiler_needs_object_CXX
=no
18390 export_dynamic_flag_spec_CXX
=
18391 hardcode_direct_CXX
=no
18392 hardcode_direct_absolute_CXX
=no
18393 hardcode_libdir_flag_spec_CXX
=
18394 hardcode_libdir_flag_spec_ld_CXX
=
18395 hardcode_libdir_separator_CXX
=
18396 hardcode_minus_L_CXX
=no
18397 hardcode_shlibpath_var_CXX
=unsupported
18398 hardcode_automatic_CXX
=no
18399 inherit_rpath_CXX
=no
18401 module_expsym_cmds_CXX
=
18402 link_all_deplibs_CXX
=unknown
18403 old_archive_cmds_CXX
=$old_archive_cmds
18404 reload_flag_CXX
=$reload_flag
18405 reload_cmds_CXX
=$reload_cmds
18406 no_undefined_flag_CXX
=
18407 whole_archive_flag_spec_CXX
=
18408 enable_shared_with_static_runtimes_CXX
=no
18410 # Source file extension for C++ test sources.
18413 # Object file extension for compiled C++ test sources.
18417 # No sense in running all these tests if we already determined that
18418 # the CXX compiler isn't working. Some variables (like enable_shared)
18419 # are currently assumed to apply to all compilers on this platform,
18420 # and will be corrupted by setting them based on a non-working compiler.
18421 if test "$_lt_caught_CXX_error" != yes; then
18422 # Code to be used in simple compile tests
18423 lt_simple_compile_test_code
="int some_variable = 0;"
18425 # Code to be used in simple link tests
18426 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18428 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18435 # If no C compiler was specified, use CC.
18438 # If no C compiler flags were specified, use CFLAGS.
18439 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18441 # Allow CC to be a program name with arguments.
18445 # save warnings/boilerplate of simple test code
18446 ac_outfile
=conftest.
$ac_objext
18447 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18448 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18449 _lt_compiler_boilerplate
=`cat conftest.err`
18452 ac_outfile
=conftest.
$ac_objext
18453 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18454 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18455 _lt_linker_boilerplate
=`cat conftest.err`
18459 # Allow CC to be a program name with arguments.
18464 lt_save_with_gnu_ld
=$with_gnu_ld
18465 lt_save_path_LD
=$lt_cv_path_LD
18466 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18467 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18469 $as_unset lt_cv_prog_gnu_ld
18471 if test -n "${lt_cv_path_LDCXX+set}"; then
18472 lt_cv_path_LD
=$lt_cv_path_LDCXX
18474 $as_unset lt_cv_path_LD
18476 test -z "${LDCXX+set}" || LD
=$LDCXX
18480 for cc_temp
in $compiler""; do
18482 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18483 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18488 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18491 if test -n "$compiler"; then
18492 # We don't want -fno-exception when compiling C++ code, so set the
18493 # no_builtin_flag separately
18494 if test "$GXX" = yes; then
18495 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18497 lt_prog_compiler_no_builtin_flag_CXX
=
18500 if test "$GXX" = yes; then
18501 # Set up default GNU C++ configuration
18505 # Check whether --with-gnu-ld was given.
18506 if test "${with_gnu_ld+set}" = set; then :
18507 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18513 if test "$GCC" = yes; then
18514 # Check if gcc -print-prog-name=ld gives a path.
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18516 $as_echo_n "checking for ld used by $CC... " >&6; }
18519 # gcc leaves a trailing carriage return which upsets mingw
18520 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18522 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18525 # Accept absolute paths.
18527 re_direlt
='/[^/][^/]*/\.\./'
18528 # Canonicalize the pathname of ld
18529 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18530 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18531 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18533 test -z "$LD" && LD
="$ac_prog"
18536 # If it fails, then pretend we aren't using GCC.
18540 # If it is relative, then search for the first ld in PATH.
18541 with_gnu_ld
=unknown
18544 elif test "$with_gnu_ld" = yes; then
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18546 $as_echo_n "checking for GNU ld... " >&6; }
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18549 $as_echo_n "checking for non-GNU ld... " >&6; }
18551 if test "${lt_cv_path_LD+set}" = set; then :
18552 $as_echo_n "(cached) " >&6
18554 if test -z "$LD"; then
18555 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18556 for ac_dir
in $PATH; do
18558 test -z "$ac_dir" && ac_dir
=.
18559 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18560 lt_cv_path_LD
="$ac_dir/$ac_prog"
18561 # Check to see if the program is GNU ld. I'd rather use --version,
18562 # but apparently some variants of GNU ld only accept -v.
18563 # Break only if it was the GNU/non-GNU ld that we prefer.
18564 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18565 *GNU
* |
*'with BFD'*)
18566 test "$with_gnu_ld" != no
&& break
18569 test "$with_gnu_ld" != yes && break
18576 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18580 LD
="$lt_cv_path_LD"
18581 if test -n "$LD"; then
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18583 $as_echo "$LD" >&6; }
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18586 $as_echo "no" >&6; }
18588 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18590 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18591 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18592 $as_echo_n "(cached) " >&6
18594 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18595 case `$LD -v 2>&1 </dev/null` in
18596 *GNU
* |
*'with BFD'*)
18597 lt_cv_prog_gnu_ld
=yes
18600 lt_cv_prog_gnu_ld
=no
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18605 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18606 with_gnu_ld
=$lt_cv_prog_gnu_ld
18614 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18615 # archiving commands below assume that GNU ld is being used.
18616 if test "$with_gnu_ld" = yes; then
18617 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18618 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'
18620 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18621 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18623 # If archive_cmds runs LD, not CC, wlarc should be empty
18624 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18625 # investigate it a little bit more. (MM)
18628 # ancient GNU ld didn't support --whole-archive et. al.
18629 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18630 $GREP 'no-whole-archive' > /dev
/null
; then
18631 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18633 whole_archive_flag_spec_CXX
=
18639 # A generic and very simple default shared library creation
18640 # command for GNU C++ for the case where it uses the native
18641 # linker, instead of GNU ld. If possible, this setting should
18642 # overridden to take advantage of the native linker features on
18643 # the platform it is being used on.
18644 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18647 # Commands to make compiler produce verbose output that lists
18648 # what "hidden" libraries, object files and flags are used when
18649 # linking a shared library.
18650 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18658 # PORTME: fill in a description of your system's C++ link characteristics
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18660 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18664 # FIXME: insert proper C++ library support
18668 if test "$host_cpu" = ia64
; then
18669 # On IA64, the linker does run time linking by default, so we don't
18670 # have to do anything special.
18671 aix_use_runtimelinking
=no
18672 exp_sym_flag
='-Bexport'
18675 aix_use_runtimelinking
=no
18677 # Test if we are trying to use run time linking or normal
18678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18679 # need to do runtime linking.
18680 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18681 for ld_flag
in $LDFLAGS; do
18684 aix_use_runtimelinking
=yes
18692 exp_sym_flag
='-bexport'
18693 no_entry_flag
='-bnoentry'
18696 # When large executables or shared objects are built, AIX ld can
18697 # have problems creating the table of contents. If linking a library
18698 # or program results in "error TOC overflow" add -mminimal-toc to
18699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18702 archive_cmds_CXX
=''
18703 hardcode_direct_CXX
=yes
18704 hardcode_direct_absolute_CXX
=yes
18705 hardcode_libdir_separator_CXX
=':'
18706 link_all_deplibs_CXX
=yes
18707 file_list_spec_CXX
='${wl}-f,'
18709 if test "$GXX" = yes; then
18710 case $host_os in aix4.
[012]|aix4.
[012].
*)
18711 # We only want to do this on AIX 4.2 and lower, the check
18712 # below for broken collect2 doesn't work under 4.3+
18713 collect2name
=`${CC} -print-prog-name=collect2`
18714 if test -f "$collect2name" &&
18715 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18717 # We have reworked collect2
18720 # We have old collect2
18721 hardcode_direct_CXX
=unsupported
18722 # It fails to find uninstalled libraries when the uninstalled
18723 # path is not listed in the libpath. Setting hardcode_minus_L
18724 # to unsupported forces relinking
18725 hardcode_minus_L_CXX
=yes
18726 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18727 hardcode_libdir_separator_CXX
=
18730 shared_flag
='-shared'
18731 if test "$aix_use_runtimelinking" = yes; then
18732 shared_flag
="$shared_flag "'${wl}-G'
18736 if test "$host_cpu" = ia64
; then
18737 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18738 # chokes on -Wl,-G. The following line is correct:
18741 if test "$aix_use_runtimelinking" = yes; then
18742 shared_flag
='${wl}-G'
18744 shared_flag
='${wl}-bM:SRE'
18749 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18750 # It seems that -bexpall does not export symbols beginning with
18751 # underscore (_), so it is better to generate a list of symbols to
18753 always_export_symbols_CXX
=yes
18754 if test "$aix_use_runtimelinking" = yes; then
18755 # Warning - without using the other runtime loading flags (-brtl),
18756 # -berok will link without error, but may produce a broken library.
18757 allow_undefined_flag_CXX
='-berok'
18758 # Determine the default libpath from the value encoded in an empty
18760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18771 if ac_fn_cxx_try_link
"$LINENO"; then :
18773 lt_aix_libpath_sed
='
18774 /Import File Strings/,/^$/ {
18780 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18781 # Check for a 64-bit object if we didn't find anything.
18782 if test -z "$aix_libpath"; then
18783 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18786 rm -f core conftest.err conftest.
$ac_objext \
18787 conftest
$ac_exeext conftest.
$ac_ext
18788 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18790 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18792 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"
18794 if test "$host_cpu" = ia64
; then
18795 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18796 allow_undefined_flag_CXX
="-z nodefs"
18797 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"
18799 # Determine the default libpath from the value encoded in an
18800 # empty executable.
18801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18802 /* end confdefs.h. */
18812 if ac_fn_cxx_try_link
"$LINENO"; then :
18814 lt_aix_libpath_sed
='
18815 /Import File Strings/,/^$/ {
18821 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18822 # Check for a 64-bit object if we didn't find anything.
18823 if test -z "$aix_libpath"; then
18824 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18827 rm -f core conftest.err conftest.
$ac_objext \
18828 conftest
$ac_exeext conftest.
$ac_ext
18829 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18831 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18832 # Warning - without using the other run time loading flags,
18833 # -berok will link without error, but may produce a broken library.
18834 no_undefined_flag_CXX
=' ${wl}-bernotok'
18835 allow_undefined_flag_CXX
=' ${wl}-berok'
18836 if test "$with_gnu_ld" = yes; then
18837 # We only use this code for GNU lds that support --whole-archive.
18838 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18840 # Exported symbols can be pulled into shared objects from archives
18841 whole_archive_flag_spec_CXX
='$convenience'
18843 archive_cmds_need_lc_CXX
=yes
18844 # This is similar to how AIX traditionally builds its shared
18846 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'
18852 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18853 allow_undefined_flag_CXX
=unsupported
18854 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18855 # support --undefined. This deserves some investigation. FIXME
18856 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18863 case $cc_basename in
18865 # FIXME: insert proper C++ library support
18871 cygwin
* | mingw
* | pw32
* | cegcc
*)
18872 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18873 # as there is no search path for DLLs.
18874 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18875 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18876 allow_undefined_flag_CXX
=unsupported
18877 always_export_symbols_CXX
=no
18878 enable_shared_with_static_runtimes_CXX
=yes
18880 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18881 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'
18882 # If the export-symbols file already is a .def file (1st line
18883 # is EXPORTS), use it as is; otherwise, prepend...
18884 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18885 cp $export_symbols $output_objdir/$soname.def;
18887 echo EXPORTS > $output_objdir/$soname.def;
18888 cat $export_symbols >> $output_objdir/$soname.def;
18890 $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'
18895 darwin
* | rhapsody
*)
18898 archive_cmds_need_lc_CXX
=no
18899 hardcode_direct_CXX
=no
18900 hardcode_automatic_CXX
=yes
18901 hardcode_shlibpath_var_CXX
=unsupported
18902 if test "$lt_cv_ld_force_load" = "yes"; then
18903 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\"`'
18905 whole_archive_flag_spec_CXX
=''
18907 link_all_deplibs_CXX
=yes
18908 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18909 case $cc_basename in
18910 ifort
*) _lt_dar_can_shared
=yes ;;
18911 *) _lt_dar_can_shared
=$GCC ;;
18913 if test "$_lt_dar_can_shared" = "yes"; then
18914 output_verbose_link_cmd
=func_echo_all
18915 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}"
18916 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18917 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}"
18918 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}"
18919 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18920 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}"
18921 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}"
18931 case $cc_basename in
18933 # FIXME: insert proper C++ library support
18937 # Green Hills C++ Compiler
18938 # FIXME: insert proper C++ library support
18942 # FIXME: insert proper C++ library support
18949 # C++ shared libraries reported to be fairly broken before
18955 archive_cmds_need_lc_CXX
=no
18958 freebsd
* | dragonfly
*)
18959 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18968 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18969 link_all_deplibs_CXX
=yes
18973 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18974 hardcode_libdir_separator_CXX
=:
18975 export_dynamic_flag_spec_CXX
='${wl}-E'
18976 hardcode_direct_CXX
=yes
18977 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18978 # but as the default
18979 # location of the library.
18981 case $cc_basename in
18983 # FIXME: insert proper C++ library support
18987 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'
18988 # Commands to make compiler produce verbose output that lists
18989 # what "hidden" libraries, object files and flags are used when
18990 # linking a shared library.
18992 # There doesn't appear to be a way to prevent this compiler from
18993 # explicitly linking system object files so we need to strip them
18994 # from the output so that they don't get included in the library
18996 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"'
18999 if test "$GXX" = yes; then
19000 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'
19002 # FIXME: insert proper C++ library support
19010 if test $with_gnu_ld = no
; then
19011 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19012 hardcode_libdir_separator_CXX
=:
19018 export_dynamic_flag_spec_CXX
='${wl}-E'
19024 hardcode_direct_CXX
=no
19025 hardcode_shlibpath_var_CXX
=no
19028 hardcode_direct_CXX
=yes
19029 hardcode_direct_absolute_CXX
=yes
19030 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19031 # but as the default
19032 # location of the library.
19036 case $cc_basename in
19038 # FIXME: insert proper C++ library support
19044 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19047 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19050 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19053 # Commands to make compiler produce verbose output that lists
19054 # what "hidden" libraries, object files and flags are used when
19055 # linking a shared library.
19057 # There doesn't appear to be a way to prevent this compiler from
19058 # explicitly linking system object files so we need to strip them
19059 # from the output so that they don't get included in the library
19061 output_verbose_link_cmd
='templist=`($CC -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"'
19064 if test "$GXX" = yes; then
19065 if test $with_gnu_ld = no
; then
19068 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19071 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074 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'
19079 # FIXME: insert proper C++ library support
19087 hardcode_direct_CXX
=no
19088 hardcode_shlibpath_var_CXX
=no
19089 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19090 export_dynamic_flag_spec_CXX
='${wl}-E'
19091 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19092 # Instead, shared libraries are loaded at an image base (0x10000000 by
19093 # default) and relocated if they conflict, which is a slow very memory
19094 # consuming and fragmenting process. To avoid this, we pick a random,
19095 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19096 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19097 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'
19098 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'
19101 case $cc_basename in
19104 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'
19106 # Archives containing C++ object files must be created using
19107 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19108 # necessary to make sure instantiated templates are included
19110 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19113 if test "$GXX" = yes; then
19114 if test "$with_gnu_ld" = no
; then
19115 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'
19117 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'
19120 link_all_deplibs_CXX
=yes
19123 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19124 hardcode_libdir_separator_CXX
=:
19125 inherit_rpath_CXX
=yes
19128 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19129 case $cc_basename in
19131 # Kuck and Associates, Inc. (KAI) C++ Compiler
19133 # KCC will only create a shared library if the output file
19134 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19135 # to its proper name (with version) after linking.
19136 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'
19137 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'
19138 # Commands to make compiler produce verbose output that lists
19139 # what "hidden" libraries, object files and flags are used when
19140 # linking a shared library.
19142 # There doesn't appear to be a way to prevent this compiler from
19143 # explicitly linking system object files so we need to strip them
19144 # from the output so that they don't get included in the library
19146 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"'
19148 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19149 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19151 # Archives containing C++ object files must be created using
19152 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19153 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19158 # version 8.0 and above of icpc choke on multiply defined symbols
19159 # if we add $predep_objects and $postdep_objects, however 7.1 and
19160 # earlier do not add the objects themselves.
19161 case `$CC -V 2>&1` in
19163 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19164 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'
19166 *) # Version 8.0 or newer
19169 ia64
*) tmp_idyn
=' -i_dynamic';;
19171 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172 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'
19175 archive_cmds_need_lc_CXX
=no
19176 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19177 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19178 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19181 # Portland Group C++ compiler
19183 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19184 prelink_cmds_CXX
='tpldir=Template.dir~
19186 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19187 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19188 old_archive_cmds_CXX
='tpldir=Template.dir~
19190 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19191 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19193 archive_cmds_CXX
='tpldir=Template.dir~
19195 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19196 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19197 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19199 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19200 $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'
19202 *) # Version 6 and above use weak symbols
19203 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19204 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'
19208 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19209 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19210 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'
19214 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19215 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'
19217 runpath_var
=LD_RUN_PATH
19218 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19219 hardcode_libdir_separator_CXX
=:
19221 # Commands to make compiler produce verbose output that lists
19222 # what "hidden" libraries, object files and flags are used when
19223 # linking a shared library.
19225 # There doesn't appear to be a way to prevent this compiler from
19226 # explicitly linking system object files so we need to strip them
19227 # from the output so that they don't get included in the library
19229 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'
19231 xl
* | mpixl
* | bgxl
*)
19232 # IBM XL 8.0 on PPC, with GNU ld
19233 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19234 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19235 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19236 if test "x$supports_anon_versioning" = xyes
; then
19237 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19238 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19239 echo "local: *; };" >> $output_objdir/$libname.ver~
19240 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19244 case `$CC -V 2>&1 | sed 5q` in
19247 no_undefined_flag_CXX
=' -zdefs'
19248 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19249 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'
19250 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19251 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'
19252 compiler_needs_object_CXX
=yes
19254 # Not sure whether something based on
19255 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19257 output_verbose_link_cmd
='func_echo_all'
19259 # Archives containing C++ object files must be created using
19260 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19261 # necessary to make sure instantiated templates are included
19263 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19271 # FIXME: insert proper C++ library support
19276 # FIXME: insert proper C++ library support
19281 case $cc_basename in
19283 # FIXME: insert proper C++ library support
19287 # FIXME: insert proper C++ library support
19294 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19295 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19297 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19298 hardcode_direct_CXX
=yes
19299 hardcode_shlibpath_var_CXX
=no
19301 # Workaround some broken pre-1.5 toolchains
19302 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19310 # C++ shared libraries are fairly broken
19315 if test -f /usr
/libexec
/ld.so
; then
19316 hardcode_direct_CXX
=yes
19317 hardcode_shlibpath_var_CXX
=no
19318 hardcode_direct_absolute_CXX
=yes
19319 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19320 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19322 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19323 export_dynamic_flag_spec_CXX
='${wl}-E'
19324 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19326 output_verbose_link_cmd
=func_echo_all
19332 osf3
* | osf4
* | osf5
*)
19333 case $cc_basename in
19335 # Kuck and Associates, Inc. (KAI) C++ Compiler
19337 # KCC will only create a shared library if the output file
19338 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19339 # to its proper name (with version) after linking.
19340 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'
19342 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19343 hardcode_libdir_separator_CXX
=:
19345 # Archives containing C++ object files must be created using
19346 # the KAI C++ compiler.
19348 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19349 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19353 # Rational C++ 2.4.1
19354 # FIXME: insert proper C++ library support
19360 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19361 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'
19362 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19365 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19366 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'
19367 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19368 echo "-hidden">> $lib.exp~
19369 $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~
19371 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19375 hardcode_libdir_separator_CXX
=:
19377 # Commands to make compiler produce verbose output that lists
19378 # what "hidden" libraries, object files and flags are used when
19379 # linking a shared library.
19381 # There doesn't appear to be a way to prevent this compiler from
19382 # explicitly linking system object files so we need to strip them
19383 # from the output so that they don't get included in the library
19385 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"'
19388 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19389 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19392 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'
19395 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'
19399 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19400 hardcode_libdir_separator_CXX
=:
19402 # Commands to make compiler produce verbose output that lists
19403 # what "hidden" libraries, object files and flags are used when
19404 # linking a shared library.
19405 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19408 # FIXME: insert proper C++ library support
19416 # FIXME: insert proper C++ library support
19421 case $cc_basename in
19424 # FIXME: insert proper C++ library support
19429 # FIXME: insert proper C++ library support
19433 # FIXME: insert proper C++ library support
19440 case $cc_basename in
19442 # Sun C++ 4.2, 5.x and Centerline C++
19443 archive_cmds_need_lc_CXX
=yes
19444 no_undefined_flag_CXX
=' -zdefs'
19445 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19446 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19447 $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'
19449 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19450 hardcode_shlibpath_var_CXX
=no
19452 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19454 # The compiler driver will combine and reorder linker options,
19455 # but understands `-z linker_flag'.
19456 # Supported since Solaris 2.6 (maybe 2.5.1?)
19457 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19460 link_all_deplibs_CXX
=yes
19462 output_verbose_link_cmd
='func_echo_all'
19464 # Archives containing C++ object files must be created using
19465 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19466 # necessary to make sure instantiated templates are included
19468 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19471 # Green Hills C++ Compiler
19472 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19474 # The C++ compiler must be used to create the archive.
19475 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19478 # GNU C++ compiler with Solaris linker
19479 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19480 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19481 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19482 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19483 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19484 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19486 # Commands to make compiler produce verbose output that lists
19487 # what "hidden" libraries, object files and flags are used when
19488 # linking a shared library.
19489 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19491 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19493 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19494 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19495 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19497 # Commands to make compiler produce verbose output that lists
19498 # what "hidden" libraries, object files and flags are used when
19499 # linking a shared library.
19500 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19503 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19505 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19507 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19515 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19516 no_undefined_flag_CXX
='${wl}-z,text'
19517 archive_cmds_need_lc_CXX
=no
19518 hardcode_shlibpath_var_CXX
=no
19519 runpath_var
='LD_RUN_PATH'
19521 case $cc_basename in
19523 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19524 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19527 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19528 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19533 sysv5
* | sco3.2v5
* | sco5v6
*)
19534 # Note: We can NOT use -z defs as we might desire, because we do not
19535 # link with -lc, and that would cause any symbols used from libc to
19536 # always be unresolved, which means just about no library would
19537 # ever link correctly. If we're not using GNU ld we use -z text
19538 # though, which does catch some bad symbols but isn't as heavy-handed
19540 no_undefined_flag_CXX
='${wl}-z,text'
19541 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19542 archive_cmds_need_lc_CXX
=no
19543 hardcode_shlibpath_var_CXX
=no
19544 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19545 hardcode_libdir_separator_CXX
=':'
19546 link_all_deplibs_CXX
=yes
19547 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19548 runpath_var
='LD_RUN_PATH'
19550 case $cc_basename in
19552 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19553 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19554 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19555 '"$old_archive_cmds_CXX"
19556 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19557 '"$reload_cmds_CXX"
19560 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19567 case $cc_basename in
19569 # NonStop-UX NCC 3.20
19570 # FIXME: insert proper C++ library support
19574 # FIXME: insert proper C++ library support
19581 # FIXME: insert proper C++ library support
19586 # FIXME: insert proper C++ library support
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19592 $as_echo "$ld_shlibs_CXX" >&6; }
19593 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19599 ## There is no encapsulation within the following macros, do not change
19600 ## the running order or otherwise move them around unless you know exactly
19601 ## what you are doing...
19602 # Dependencies to place before and after the object being linked:
19603 predep_objects_CXX
=
19604 postdep_objects_CXX
=
19607 compiler_lib_search_path_CXX
=
19609 cat > conftest.
$ac_ext <<_LT_EOF
19613 Foo (void) { a = 0; }
19619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19620 (eval $ac_compile) 2>&5
19622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19623 test $ac_status = 0; }; then
19624 # Parse the compiler output and extract the necessary
19625 # objects, libraries and library flags.
19627 # Sentinel used to keep track of whether or not we are before
19628 # the conftest object file.
19629 pre_test_object_deps_done
=no
19631 for p
in `eval "$output_verbose_link_cmd"`; do
19635 # Some compilers place space between "-{L,R}" and the path.
19636 # Remove the space.
19637 if test $p = "-L" ||
19638 test $p = "-R"; then
19645 if test "$pre_test_object_deps_done" = no
; then
19648 # Internal compiler library paths should come after those
19649 # provided the user. The postdeps already come after the
19650 # user supplied libs so there is no need to process them.
19651 if test -z "$compiler_lib_search_path_CXX"; then
19652 compiler_lib_search_path_CXX
="${prev}${p}"
19654 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19657 # The "-l" case would never come before the object being
19658 # linked, so don't bother handling this case.
19661 if test -z "$postdeps_CXX"; then
19662 postdeps_CXX
="${prev}${p}"
19664 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19670 # This assumes that the test object file only shows up
19671 # once in the compiler output.
19672 if test "$p" = "conftest.$objext"; then
19673 pre_test_object_deps_done
=yes
19677 if test "$pre_test_object_deps_done" = no
; then
19678 if test -z "$predep_objects_CXX"; then
19679 predep_objects_CXX
="$p"
19681 predep_objects_CXX
="$predep_objects_CXX $p"
19684 if test -z "$postdep_objects_CXX"; then
19685 postdep_objects_CXX
="$p"
19687 postdep_objects_CXX
="$postdep_objects_CXX $p"
19692 *) ;; # Ignore the rest.
19700 echo "libtool.m4: error: problem compiling CXX test program"
19703 $RM -f confest.
$objext
19705 # PORTME: override above test on systems where it is broken
19708 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19709 # hack all around it, let's just trust "g++" to DTRT.
19710 predep_objects_CXX
=
19711 postdep_objects_CXX
=
19716 case `$CC -V 2>&1 | sed 5q` in
19720 # The more standards-conforming stlport4 library is
19721 # incompatible with the Cstd library. Avoid specifying
19722 # it if it's in CXXFLAGS. Ignore libCrun as
19723 # -library=stlport4 depends on it.
19724 case " $CXX $CXXFLAGS " in
19725 *" -library=stlport4 "*)
19726 solaris_use_stlport4
=yes
19730 if test "$solaris_use_stlport4" != yes; then
19731 postdeps_CXX
='-library=Cstd -library=Crun'
19738 case $cc_basename in
19740 # The more standards-conforming stlport4 library is
19741 # incompatible with the Cstd library. Avoid specifying
19742 # it if it's in CXXFLAGS. Ignore libCrun as
19743 # -library=stlport4 depends on it.
19744 case " $CXX $CXXFLAGS " in
19745 *" -library=stlport4 "*)
19746 solaris_use_stlport4
=yes
19750 # Adding this requires a known-good setup of shared libraries for
19751 # Sun compiler versions before 5.6, else PIC objects from an old
19752 # archive will be linked into the output, leading to subtle bugs.
19753 if test "$solaris_use_stlport4" != yes; then
19754 postdeps_CXX
='-library=Cstd -library=Crun'
19762 case " $postdeps_CXX " in
19763 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19765 compiler_lib_search_dirs_CXX
=
19766 if test -n "${compiler_lib_search_path_CXX}"; then
19767 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19800 lt_prog_compiler_wl_CXX
=
19801 lt_prog_compiler_pic_CXX
=
19802 lt_prog_compiler_static_CXX
=
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19805 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19807 # C++ specific cases for pic, static, wl, etc.
19808 if test "$GXX" = yes; then
19809 lt_prog_compiler_wl_CXX
='-Wl,'
19810 lt_prog_compiler_static_CXX
='-static'
19814 # All AIX code is PIC.
19815 if test "$host_cpu" = ia64
; then
19816 # AIX 5 now supports IA64 processor
19817 lt_prog_compiler_static_CXX
='-Bstatic'
19819 lt_prog_compiler_pic_CXX
='-fPIC'
19825 # see comment about AmigaOS4 .so support
19826 lt_prog_compiler_pic_CXX
='-fPIC'
19829 # FIXME: we need at least 68020 code to build shared libraries, but
19830 # adding the `-m68020' flag to GCC prevents building anything better,
19832 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19837 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19838 # PIC is the default for these OSes.
19840 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19841 # This hack is so that the source file can tell whether it is being
19842 # built for inclusion in a dll (and should export symbols for example).
19843 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19844 # (--disable-auto-import) libraries
19845 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19847 darwin
* | rhapsody
*)
19848 # PIC is the default on this platform
19849 # Common symbols not allowed in MH_DYLIB files
19850 lt_prog_compiler_pic_CXX
='-fno-common'
19853 # DJGPP does not support shared libraries at all
19854 lt_prog_compiler_pic_CXX
=
19857 # PIC is the default for Haiku.
19858 # The "-static" flag exists, but is broken.
19859 lt_prog_compiler_static_CXX
=
19862 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19863 # Instead, we relocate shared libraries at runtime.
19866 if test -d /usr
/nec
; then
19867 lt_prog_compiler_pic_CXX
=-Kconform_pic
19871 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19872 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19873 # sets the default TLS model and affects inlining.
19878 lt_prog_compiler_pic_CXX
='-fPIC'
19883 # QNX uses GNU C++, but need to define -shared option too, otherwise
19884 # it will coredump.
19885 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19888 lt_prog_compiler_pic_CXX
='-fPIC'
19894 # All AIX code is PIC.
19895 if test "$host_cpu" = ia64
; then
19896 # AIX 5 now supports IA64 processor
19897 lt_prog_compiler_static_CXX
='-Bstatic'
19899 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19903 case $cc_basename in
19905 # Green Hills C++ Compiler
19906 # _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"
19911 case $cc_basename in
19913 lt_prog_compiler_pic_CXX
='-KPIC'
19916 # Green Hills C++ Compiler
19917 lt_prog_compiler_pic_CXX
='-pic'
19923 freebsd
* | dragonfly
*)
19924 # FreeBSD uses GNU C++
19926 hpux9
* | hpux10
* | hpux11
*)
19927 case $cc_basename in
19929 lt_prog_compiler_wl_CXX
='-Wl,'
19930 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19931 if test "$host_cpu" != ia64
; then
19932 lt_prog_compiler_pic_CXX
='+Z'
19936 lt_prog_compiler_wl_CXX
='-Wl,'
19937 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19943 lt_prog_compiler_pic_CXX
='+Z'
19952 # This is c89, which is MS Visual C++ (no shared libs)
19953 # Anyone wants to do a port?
19955 irix5
* | irix6
* | nonstopux
*)
19956 case $cc_basename in
19958 lt_prog_compiler_wl_CXX
='-Wl,'
19959 lt_prog_compiler_static_CXX
='-non_shared'
19960 # CC pic flag -KPIC is the default.
19966 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19967 case $cc_basename in
19970 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19971 lt_prog_compiler_pic_CXX
='-fPIC'
19974 # old Intel C++ for x86_64 which still supported -KPIC.
19975 lt_prog_compiler_wl_CXX
='-Wl,'
19976 lt_prog_compiler_pic_CXX
='-KPIC'
19977 lt_prog_compiler_static_CXX
='-static'
19980 # Intel C++, used to be incompatible with GCC.
19981 # ICC 10 doesn't accept -KPIC any more.
19982 lt_prog_compiler_wl_CXX
='-Wl,'
19983 lt_prog_compiler_pic_CXX
='-fPIC'
19984 lt_prog_compiler_static_CXX
='-static'
19987 # Portland Group C++ compiler
19988 lt_prog_compiler_wl_CXX
='-Wl,'
19989 lt_prog_compiler_pic_CXX
='-fpic'
19990 lt_prog_compiler_static_CXX
='-Bstatic'
19994 # Make sure the PIC flag is empty. It appears that all Alpha
19995 # Linux and Compaq Tru64 Unix objects are PIC.
19996 lt_prog_compiler_pic_CXX
=
19997 lt_prog_compiler_static_CXX
='-non_shared'
19999 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20000 # IBM XL 8.0, 9.0 on PPC and BlueGene
20001 lt_prog_compiler_wl_CXX
='-Wl,'
20002 lt_prog_compiler_pic_CXX
='-qpic'
20003 lt_prog_compiler_static_CXX
='-qstaticlink'
20006 case `$CC -V 2>&1 | sed 5q` in
20009 lt_prog_compiler_pic_CXX
='-KPIC'
20010 lt_prog_compiler_static_CXX
='-Bstatic'
20011 lt_prog_compiler_wl_CXX
='-Qoption ld '
20022 case $cc_basename in
20024 lt_prog_compiler_pic_CXX
='-W c,exportall'
20033 # QNX uses GNU C++, but need to define -shared option too, otherwise
20034 # it will coredump.
20035 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20037 osf3
* | osf4
* | osf5
*)
20038 case $cc_basename in
20040 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20043 # Rational C++ 2.4.1
20044 lt_prog_compiler_pic_CXX
='-pic'
20047 # Digital/Compaq C++
20048 lt_prog_compiler_wl_CXX
='-Wl,'
20049 # Make sure the PIC flag is empty. It appears that all Alpha
20050 # Linux and Compaq Tru64 Unix objects are PIC.
20051 lt_prog_compiler_pic_CXX
=
20052 lt_prog_compiler_static_CXX
='-non_shared'
20061 case $cc_basename in
20063 # Sun C++ 4.2, 5.x and Centerline C++
20064 lt_prog_compiler_pic_CXX
='-KPIC'
20065 lt_prog_compiler_static_CXX
='-Bstatic'
20066 lt_prog_compiler_wl_CXX
='-Qoption ld '
20069 # Green Hills C++ Compiler
20070 lt_prog_compiler_pic_CXX
='-PIC'
20077 case $cc_basename in
20080 lt_prog_compiler_pic_CXX
='-pic'
20081 lt_prog_compiler_static_CXX
='-Bstatic'
20085 lt_prog_compiler_pic_CXX
='-pic'
20091 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20092 case $cc_basename in
20094 lt_prog_compiler_wl_CXX
='-Wl,'
20095 lt_prog_compiler_pic_CXX
='-KPIC'
20096 lt_prog_compiler_static_CXX
='-Bstatic'
20101 case $cc_basename in
20103 # NonStop-UX NCC 3.20
20104 lt_prog_compiler_pic_CXX
='-KPIC'
20113 lt_prog_compiler_can_build_shared_CXX
=no
20119 # For platforms which do not support PIC, -DPIC is meaningless:
20121 lt_prog_compiler_pic_CXX
=
20124 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20128 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20133 # Check to make sure the PIC flag actually works.
20135 if test -n "$lt_prog_compiler_pic_CXX"; then
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20137 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20138 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20139 $as_echo_n "(cached) " >&6
20141 lt_cv_prog_compiler_pic_works_CXX
=no
20142 ac_outfile
=conftest.
$ac_objext
20143 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20144 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20145 # Insert the option either (1) after the last *FLAGS variable, or
20146 # (2) before a word containing "conftest.", or (3) at the end.
20147 # Note that $ac_compile itself does not contain backslashes and begins
20148 # with a dollar sign (not a hyphen), so the echo should work correctly.
20149 # The option is referenced via a variable to avoid confusing sed.
20150 lt_compile
=`echo "$ac_compile" | $SED \
20151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20153 -e 's:$: $lt_compiler_flag:'`
20154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20155 (eval "$lt_compile" 2>conftest.err
)
20157 cat conftest.err
>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 if (exit $ac_status) && test -s "$ac_outfile"; then
20160 # The compiler can only warn and ignore the option if not recognized
20161 # So say no if there are warnings other than the usual output.
20162 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20163 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20164 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20165 lt_cv_prog_compiler_pic_works_CXX
=yes
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20172 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20174 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20175 case $lt_prog_compiler_pic_CXX in
20177 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20180 lt_prog_compiler_pic_CXX
=
20181 lt_prog_compiler_can_build_shared_CXX
=no
20189 # Check to make sure the static flag actually works.
20191 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20193 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20194 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20195 $as_echo_n "(cached) " >&6
20197 lt_cv_prog_compiler_static_works_CXX
=no
20198 save_LDFLAGS
="$LDFLAGS"
20199 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20200 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20201 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20202 # The linker can only warn and ignore the option if not recognized
20203 # So say no if there are warnings
20204 if test -s conftest.err
; then
20205 # Append any errors to the config.log.
20206 cat conftest.err
1>&5
20207 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20208 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20209 if diff conftest.exp conftest.er2
>/dev
/null
; then
20210 lt_cv_prog_compiler_static_works_CXX
=yes
20213 lt_cv_prog_compiler_static_works_CXX
=yes
20217 LDFLAGS
="$save_LDFLAGS"
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20221 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20223 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20226 lt_prog_compiler_static_CXX
=
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20233 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20234 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20235 $as_echo_n "(cached) " >&6
20237 lt_cv_prog_compiler_c_o_CXX
=no
20238 $RM -r conftest
2>/dev
/null
20242 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20244 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20245 # Insert the option either (1) after the last *FLAGS variable, or
20246 # (2) before a word containing "conftest.", or (3) at the end.
20247 # Note that $ac_compile itself does not contain backslashes and begins
20248 # with a dollar sign (not a hyphen), so the echo should work correctly.
20249 lt_compile
=`echo "$ac_compile" | $SED \
20250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20252 -e 's:$: $lt_compiler_flag:'`
20253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20254 (eval "$lt_compile" 2>out
/conftest.err
)
20256 cat out
/conftest.err
>&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20260 # The compiler can only warn and ignore the option if not recognized
20261 # So say no if there are warnings
20262 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20263 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20264 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20265 lt_cv_prog_compiler_c_o_CXX
=yes
20270 # SGI C++ compiler will create directory out/ii_files/ for
20271 # template instantiation
20272 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20273 $RM out
/* && rmdir out
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20280 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20285 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20286 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20287 $as_echo_n "(cached) " >&6
20289 lt_cv_prog_compiler_c_o_CXX
=no
20290 $RM -r conftest
2>/dev
/null
20294 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20296 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20297 # Insert the option either (1) after the last *FLAGS variable, or
20298 # (2) before a word containing "conftest.", or (3) at the end.
20299 # Note that $ac_compile itself does not contain backslashes and begins
20300 # with a dollar sign (not a hyphen), so the echo should work correctly.
20301 lt_compile
=`echo "$ac_compile" | $SED \
20302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20304 -e 's:$: $lt_compiler_flag:'`
20305 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20306 (eval "$lt_compile" 2>out
/conftest.err
)
20308 cat out
/conftest.err
>&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20312 # The compiler can only warn and ignore the option if not recognized
20313 # So say no if there are warnings
20314 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20315 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20316 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20317 lt_cv_prog_compiler_c_o_CXX
=yes
20322 # SGI C++ compiler will create directory out/ii_files/ for
20323 # template instantiation
20324 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20325 $RM out
/* && rmdir out
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20332 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20337 hard_links
="nottested"
20338 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20339 # do not overwrite the value of need_locks provided by the user
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20341 $as_echo_n "checking if we can lock with hard links... " >&6; }
20344 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20346 ln conftest.a conftest.b
2>&5 || hard_links
=no
20347 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20349 $as_echo "$hard_links" >&6; }
20350 if test "$hard_links" = no
; then
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20352 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20362 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20364 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20367 # If we're using GNU nm, then we don't want the "-C" option.
20368 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20369 # Also, AIX nm treats weak defined symbols like other global defined
20370 # symbols, whereas GNU nm marks them as "W".
20371 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20372 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'
20374 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'
20378 export_symbols_cmds_CXX
="$ltdll_cmds"
20380 cygwin
* | mingw
* | cegcc
*)
20381 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'
20384 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20387 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20390 $as_echo "$ld_shlibs_CXX" >&6; }
20391 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20393 with_gnu_ld_CXX
=$with_gnu_ld
20401 # Do we need to explicitly link libc?
20403 case "x$archive_cmds_need_lc_CXX" in
20405 # Assume -lc should be added
20406 archive_cmds_need_lc_CXX
=yes
20408 if test "$enable_shared" = yes && test "$GCC" = yes; then
20409 case $archive_cmds_CXX in
20411 # FIXME: we may have to deal with multi-command sequences.
20414 # Test whether the compiler implicitly links with -lc since on some
20415 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20416 # to ld, don't add -lc before -lgcc.
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20418 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20419 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20420 $as_echo_n "(cached) " >&6
20423 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20426 (eval $ac_compile) 2>&5
20428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20429 test $ac_status = 0; } 2>conftest.err
; then
20432 libobjs
=conftest.
$ac_objext
20434 wl
=$lt_prog_compiler_wl_CXX
20435 pic_flag
=$lt_prog_compiler_pic_CXX
20441 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20442 allow_undefined_flag_CXX
=
20443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20444 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20447 test $ac_status = 0; }
20449 lt_cv_archive_cmds_need_lc_CXX
=no
20451 lt_cv_archive_cmds_need_lc_CXX
=yes
20453 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20455 cat conftest.err
1>&5
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20461 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20462 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20533 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20535 library_names_spec
=
20536 libname_spec
='lib$name'
20540 postuninstall_cmds
=
20544 shlibpath_overrides_runpath
=unknown
20546 dynamic_linker
="$host_os ld.so"
20547 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20548 need_lib_prefix
=unknown
20549 hardcode_into_libs
=no
20551 # when you set need_version to no, make sure it does not cause -set_version
20552 # flags to be left without arguments
20553 need_version
=unknown
20558 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20559 shlibpath_var
=LIBPATH
20561 # AIX 3 has no versioning support, so we append a major version to the name.
20562 soname_spec
='${libname}${release}${shared_ext}$major'
20569 hardcode_into_libs
=yes
20570 if test "$host_cpu" = ia64
; then
20571 # AIX 5 supports IA64
20572 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20573 shlibpath_var
=LD_LIBRARY_PATH
20575 # With GCC up to 2.95.x, collect2 would create an import file
20576 # for dependence libraries. The import file would start with
20577 # the line `#! .'. This would cause the generated library to
20578 # depend on `.', always an invalid library. This was fixed in
20579 # development snapshots of GCC prior to 3.0.
20581 aix4 | aix4.
[01] | aix4.
[01].
*)
20582 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20584 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20587 can_build_shared
=no
20591 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20592 # soname into executable. Probably we can add versioning support to
20593 # collect2, so additional links can be useful in future.
20594 if test "$aix_use_runtimelinking" = yes; then
20595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20596 # instead of lib<name>.a to let people know that these are not
20597 # typical AIX shared libraries.
20598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20600 # We preserve .a as extension for shared libraries through AIX4.2
20601 # and later when we are not doing run time linking.
20602 library_names_spec
='${libname}${release}.a $libname.a'
20603 soname_spec
='${libname}${release}${shared_ext}$major'
20605 shlibpath_var
=LIBPATH
20612 # Since July 2007 AmigaOS4 officially supports .so libraries.
20613 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20617 library_names_spec
='$libname.ixlibrary $libname.a'
20618 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20619 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'
20625 library_names_spec
='${libname}${shared_ext}'
20626 dynamic_linker
="$host_os ld.so"
20627 shlibpath_var
=LIBRARY_PATH
20633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20634 soname_spec
='${libname}${release}${shared_ext}$major'
20635 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20636 shlibpath_var
=LD_LIBRARY_PATH
20637 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20638 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20639 # the default ld.so.conf also contains /usr/contrib/lib and
20640 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20641 # libtool to hard-code these into programs
20644 cygwin
* | mingw
* | pw32
* | cegcc
*)
20645 version_type
=windows
20650 case $GCC,$host_os in
20651 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20652 library_names_spec
='$libname.dll.a'
20653 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20654 postinstall_cmds
='base_file=`basename \${file}`~
20655 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20656 dldir=$destdir/`dirname \$dlpath`~
20657 test -d \$dldir || mkdir -p \$dldir~
20658 $install_prog $dir/$dlname \$dldir/$dlname~
20659 chmod a+x \$dldir/$dlname~
20660 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20661 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20663 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20664 dlpath=$dir/\$dldll~
20666 shlibpath_overrides_runpath
=yes
20670 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20671 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20675 # MinGW DLLs use traditional 'lib' prefix
20676 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20679 # pw32 DLLs use 'pw' prefix rather than 'lib'
20680 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20686 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20689 dynamic_linker
='Win32 ld.exe'
20690 # FIXME: first we should search . and the directory the executable is in
20694 darwin
* | rhapsody
*)
20695 dynamic_linker
="$host_os dyld"
20696 version_type
=darwin
20699 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20700 soname_spec
='${libname}${release}${major}$shared_ext'
20701 shlibpath_overrides_runpath
=yes
20702 shlibpath_var
=DYLD_LIBRARY_PATH
20703 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20705 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20713 soname_spec
='${libname}${release}${shared_ext}$major'
20714 shlibpath_var
=LD_LIBRARY_PATH
20717 freebsd
* | dragonfly
*)
20718 # DragonFly does not have aout. When/if they implement a new
20719 # versioning mechanism, adjust this.
20720 if test -x /usr
/bin
/objformat
; then
20721 objformat
=`/usr/bin/objformat`
20724 freebsd
[23].
*) objformat
=aout
;;
20725 *) objformat
=elf
;;
20728 version_type
=freebsd-
$objformat
20729 case $version_type in
20731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20736 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20740 shlibpath_var
=LD_LIBRARY_PATH
20743 shlibpath_overrides_runpath
=yes
20745 freebsd3.
[01]* | freebsdelf3.
[01]*)
20746 shlibpath_overrides_runpath
=yes
20747 hardcode_into_libs
=yes
20749 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20750 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20751 shlibpath_overrides_runpath
=no
20752 hardcode_into_libs
=yes
20754 *) # from 4.6 on, and DragonFly
20755 shlibpath_overrides_runpath
=yes
20756 hardcode_into_libs
=yes
20765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20766 soname_spec
='${libname}${release}${shared_ext}$major'
20767 shlibpath_var
=LD_LIBRARY_PATH
20768 hardcode_into_libs
=yes
20775 dynamic_linker
="$host_os runtime_loader"
20776 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20777 soname_spec
='${libname}${release}${shared_ext}$major'
20778 shlibpath_var
=LIBRARY_PATH
20779 shlibpath_overrides_runpath
=yes
20780 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20781 hardcode_into_libs
=yes
20784 hpux9
* | hpux10
* | hpux11
*)
20785 # Give a soname corresponding to the major version so that dld.sl refuses to
20786 # link against other versions.
20793 hardcode_into_libs
=yes
20794 dynamic_linker
="$host_os dld.so"
20795 shlibpath_var
=LD_LIBRARY_PATH
20796 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20798 soname_spec
='${libname}${release}${shared_ext}$major'
20799 if test "X$HPUX_IA64_MODE" = X32
; then
20800 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20802 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20804 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20808 hardcode_into_libs
=yes
20809 dynamic_linker
="$host_os dld.sl"
20810 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20811 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20812 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813 soname_spec
='${libname}${release}${shared_ext}$major'
20814 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20815 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20819 dynamic_linker
="$host_os dld.sl"
20820 shlibpath_var
=SHLIB_PATH
20821 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20822 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20823 soname_spec
='${libname}${release}${shared_ext}$major'
20826 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20827 postinstall_cmds
='chmod 555 $lib'
20828 # or fails outright, so override atomically:
20829 install_override_mode
=555
20836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20837 soname_spec
='${libname}${release}${shared_ext}$major'
20838 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20839 shlibpath_var
=LD_LIBRARY_PATH
20840 shlibpath_overrides_runpath
=no
20841 hardcode_into_libs
=yes
20844 irix5
* | irix6
* | nonstopux
*)
20846 nonstopux
*) version_type
=nonstopux
;;
20848 if test "$lt_cv_prog_gnu_ld" = yes; then
20856 soname_spec
='${libname}${release}${shared_ext}$major'
20857 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20859 irix5
* | nonstopux
*)
20860 libsuff
= shlibsuff
=
20863 case $LD in # libtool.m4 will add one of these switches to LD
20864 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20865 libsuff
= shlibsuff
= libmagic
=32-bit;;
20866 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20867 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20868 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20869 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20870 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20874 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20875 shlibpath_overrides_runpath
=no
20876 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20877 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20878 hardcode_into_libs
=yes
20881 # No shared lib support for Linux oldld, aout, or coff.
20882 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20886 # This must be Linux ELF.
20887 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20892 soname_spec
='${libname}${release}${shared_ext}$major'
20893 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20894 shlibpath_var
=LD_LIBRARY_PATH
20895 shlibpath_overrides_runpath
=no
20897 # Some binutils ld are patched to set DT_RUNPATH
20898 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20899 $as_echo_n "(cached) " >&6
20901 lt_cv_shlibpath_overrides_runpath
=no
20902 save_LDFLAGS
=$LDFLAGS
20903 save_libdir
=$libdir
20904 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20905 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20907 /* end confdefs.h. */
20917 if ac_fn_cxx_try_link
"$LINENO"; then :
20918 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20919 lt_cv_shlibpath_overrides_runpath
=yes
20922 rm -f core conftest.err conftest.
$ac_objext \
20923 conftest
$ac_exeext conftest.
$ac_ext
20924 LDFLAGS
=$save_LDFLAGS
20925 libdir
=$save_libdir
20929 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20931 # This implies no fast_install, which is unacceptable.
20932 # Some rework will be needed to allow for fast_install
20933 # before this can be enabled.
20934 hardcode_into_libs
=yes
20936 # Append ld.so.conf contents to the search path
20937 if test -f /etc
/ld.so.conf
; then
20938 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' ' '`
20939 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20942 # We used to test for /lib/ld.so.1 and disable shared libraries on
20943 # powerpc, because MkLinux only supported shared libraries with the
20944 # GNU dynamic linker. Since this was broken with cross compilers,
20945 # most powerpc-linux boxes support dynamic linking these days and
20946 # people can always --disable-shared, the test was removed, and we
20947 # assume the GNU/Linux dynamic linker is in use.
20948 dynamic_linker
='GNU/Linux ld.so'
20955 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20957 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20958 dynamic_linker
='NetBSD (a.out) ld.so'
20960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20961 soname_spec
='${libname}${release}${shared_ext}$major'
20962 dynamic_linker
='NetBSD ld.elf_so'
20964 shlibpath_var
=LD_LIBRARY_PATH
20965 shlibpath_overrides_runpath
=yes
20966 hardcode_into_libs
=yes
20971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20972 shlibpath_var
=LD_LIBRARY_PATH
20973 shlibpath_overrides_runpath
=yes
20980 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20981 soname_spec
='${libname}${release}${shared_ext}$major'
20982 shlibpath_var
=LD_LIBRARY_PATH
20983 shlibpath_overrides_runpath
=no
20984 hardcode_into_libs
=yes
20985 dynamic_linker
='ldqnx.so'
20990 sys_lib_dlsearch_path_spec
="/usr/lib"
20992 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20994 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20995 *) need_version
=no
;;
20997 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20998 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20999 shlibpath_var
=LD_LIBRARY_PATH
21000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21002 openbsd2.
[89] | openbsd2.
[89].
*)
21003 shlibpath_overrides_runpath
=no
21006 shlibpath_overrides_runpath
=yes
21010 shlibpath_overrides_runpath
=yes
21015 libname_spec
='$name'
21018 library_names_spec
='$libname${shared_ext} $libname.a'
21019 dynamic_linker
='OS/2 ld.exe'
21020 shlibpath_var
=LIBPATH
21023 osf3
* | osf4
* | osf5
*)
21027 soname_spec
='${libname}${release}${shared_ext}$major'
21028 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21029 shlibpath_var
=LD_LIBRARY_PATH
21030 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21031 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21043 soname_spec
='${libname}${release}${shared_ext}$major'
21044 shlibpath_var
=LD_LIBRARY_PATH
21045 shlibpath_overrides_runpath
=yes
21046 hardcode_into_libs
=yes
21047 # ldd complains unless libraries are executable
21048 postinstall_cmds
='chmod +x $lib'
21053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21054 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21055 shlibpath_var
=LD_LIBRARY_PATH
21056 shlibpath_overrides_runpath
=yes
21057 if test "$with_gnu_ld" = yes; then
21065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21066 soname_spec
='${libname}${release}${shared_ext}$major'
21067 shlibpath_var
=LD_LIBRARY_PATH
21068 case $host_vendor in
21070 shlibpath_overrides_runpath
=no
21072 runpath_var
=LD_RUN_PATH
21080 shlibpath_overrides_runpath
=no
21081 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21087 if test -d /usr
/nec
;then
21089 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21090 soname_spec
='$libname${shared_ext}.$major'
21091 shlibpath_var
=LD_LIBRARY_PATH
21095 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21096 version_type
=freebsd-elf
21099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21100 soname_spec
='${libname}${release}${shared_ext}$major'
21101 shlibpath_var
=LD_LIBRARY_PATH
21102 shlibpath_overrides_runpath
=yes
21103 hardcode_into_libs
=yes
21104 if test "$with_gnu_ld" = yes; then
21105 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21107 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21110 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21114 sys_lib_dlsearch_path_spec
='/usr/lib'
21118 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21122 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21123 shlibpath_var
=LD_LIBRARY_PATH
21124 shlibpath_overrides_runpath
=no
21125 hardcode_into_libs
=yes
21130 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21131 soname_spec
='${libname}${release}${shared_ext}$major'
21132 shlibpath_var
=LD_LIBRARY_PATH
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21140 $as_echo "$dynamic_linker" >&6; }
21141 test "$dynamic_linker" = no
&& can_build_shared
=no
21143 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21144 if test "$GCC" = yes; then
21145 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21148 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21149 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21151 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21152 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21193 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21194 hardcode_action_CXX
=
21195 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21196 test -n "$runpath_var_CXX" ||
21197 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21199 # We can hardcode non-existent directories.
21200 if test "$hardcode_direct_CXX" != no
&&
21201 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21202 # have to relink, otherwise we might link with an installed library
21203 # when we should be linking with a yet-to-be-installed one
21204 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21205 test "$hardcode_minus_L_CXX" != no
; then
21206 # Linking always hardcodes the temporary library directory.
21207 hardcode_action_CXX
=relink
21209 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21210 hardcode_action_CXX
=immediate
21213 # We cannot hardcode anything, or else we can only hardcode existing
21215 hardcode_action_CXX
=unsupported
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21218 $as_echo "$hardcode_action_CXX" >&6; }
21220 if test "$hardcode_action_CXX" = relink ||
21221 test "$inherit_rpath_CXX" = yes; then
21222 # Fast installation is not supported
21223 enable_fast_install
=no
21224 elif test "$shlibpath_overrides_runpath" = yes ||
21225 test "$enable_shared" = no
; then
21226 # Fast installation is not necessary
21227 enable_fast_install
=needless
21236 fi # test -n "$compiler"
21242 with_gnu_ld
=$lt_save_with_gnu_ld
21243 lt_cv_path_LDCXX
=$lt_cv_path_LD
21244 lt_cv_path_LD
=$lt_save_path_LD
21245 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21246 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21247 fi # test "$_lt_caught_CXX_error" != yes
21250 ac_cpp
='$CPP $CPPFLAGS'
21251 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21252 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21253 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21270 # Only expand once:
21276 # Identify the assembler which will work hand-in-glove with the newly
21277 # built GCC, so that we can examine its features. This is the assembler
21278 # which will be driven by the driver program.
21280 # If build != host, and we aren't building gas in-tree, we identify a
21281 # build->target assembler and hope that it will have the same features
21282 # as the host->target assembler we'll be using.
21283 gcc_cv_gas_major_version
=
21284 gcc_cv_gas_minor_version
=
21285 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21287 if test "${gcc_cv_as+set}" = set; then :
21291 if test -x "$DEFAULT_ASSEMBLER"; then
21292 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21293 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21294 && test -f ..
/gas
/Makefile \
21295 && test x
$build = x
$host; then
21296 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21297 elif test -x as
$build_exeext; then
21298 # Build using assembler in the current directory.
21299 gcc_cv_as
=.
/as
$build_exeext
21300 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21301 gcc_cv_as
="$AS_FOR_TARGET"
21303 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21304 set dummy
$AS_FOR_TARGET; ac_word
=$2
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21306 $as_echo_n "checking for $ac_word... " >&6; }
21307 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21308 $as_echo_n "(cached) " >&6
21312 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21316 for as_dir
in $PATH
21319 test -z "$as_dir" && as_dir
=.
21320 for ac_exec_ext
in '' $ac_executable_extensions; do
21321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21322 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21333 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21334 if test -n "$gcc_cv_as"; then
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21336 $as_echo "$gcc_cv_as" >&6; }
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21339 $as_echo "no" >&6; }
21346 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21348 case "$ORIGINAL_AS_FOR_TARGET" in
21349 .
/as | .
/as
$build_exeext) ;;
21350 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21355 $as_echo_n "checking what assembler to use... " >&6; }
21356 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21357 # Single tree build which includes gas. We want to prefer it
21358 # over whatever linker top-level may have detected, since
21359 # we'll use what we're building after installation anyway.
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21361 $as_echo "newly built gas" >&6; }
21363 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21364 for f
in $gcc_cv_as_bfd_srcdir/configure \
21365 $gcc_cv_as_gas_srcdir/configure \
21366 $gcc_cv_as_gas_srcdir/configure.
in \
21367 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21368 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21369 if test x
$gcc_cv_gas_version != x
; then
21373 case $gcc_cv_gas_version in
21375 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21377 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21378 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21379 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21380 case $gcc_cv_gas_patch_version in
21381 "") gcc_cv_gas_patch_version
="0" ;;
21383 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21384 + $gcc_cv_gas_minor_version \) \* 1000 \
21385 + $gcc_cv_gas_patch_version`
21387 in_tree_gas_is_elf
=no
21388 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21389 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21390 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21392 in_tree_gas_is_elf
=yes
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21396 $as_echo "$gcc_cv_as" >&6; }
21400 # Identify the linker which will work hand-in-glove with the newly
21401 # built GCC, so that we can examine its features. This is the linker
21402 # which will be driven by the driver program.
21404 # If build != host, and we aren't building gas in-tree, we identify a
21405 # build->target linker and hope that it will have the same features
21406 # as the host->target linker we'll be using.
21407 gcc_cv_gld_major_version
=
21408 gcc_cv_gld_minor_version
=
21409 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21410 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21412 if test "${gcc_cv_ld+set}" = set; then :
21416 if test -x "$DEFAULT_LINKER"; then
21417 gcc_cv_ld
="$DEFAULT_LINKER"
21418 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21419 && test -f ..
/ld
/Makefile \
21420 && test x
$build = x
$host; then
21421 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21422 elif test -x collect-ld
$build_exeext; then
21423 # Build using linker in the current directory.
21424 gcc_cv_ld
=.
/collect-ld
$build_exeext
21425 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21426 gcc_cv_ld
="$LD_FOR_TARGET"
21428 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21429 set dummy
$LD_FOR_TARGET; ac_word
=$2
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21431 $as_echo_n "checking for $ac_word... " >&6; }
21432 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21433 $as_echo_n "(cached) " >&6
21437 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21441 for as_dir
in $PATH
21444 test -z "$as_dir" && as_dir
=.
21445 for ac_exec_ext
in '' $ac_executable_extensions; do
21446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21447 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21458 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21459 if test -n "$gcc_cv_ld"; then
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21461 $as_echo "$gcc_cv_ld" >&6; }
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21464 $as_echo "no" >&6; }
21471 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21472 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21473 # if the PLUGIN_LD is set ld-new, just have it as ld
21474 # as that is the installed named.
21475 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21476 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21477 PLUGIN_LD_SUFFIX
=ld
21480 # Check whether --with-plugin-ld was given.
21481 if test "${with_plugin_ld+set}" = set; then :
21482 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21483 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21484 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21490 cat >>confdefs.h
<<_ACEOF
21491 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21495 # Check to see if we are using gold instead of ld
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21497 $as_echo_n "checking whether we are using gold... " >&6; }
21499 if test x
$gcc_cv_ld != x
; then
21500 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21501 |
grep "GNU gold" > /dev
/null
; then
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21506 $as_echo "$ld_is_gold" >&6; }
21508 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21510 case "$ORIGINAL_LD_FOR_TARGET" in
21511 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21512 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21517 $as_echo_n "checking what linker to use... " >&6; }
21518 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21519 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21520 # Single tree build which includes ld. We want to prefer it
21521 # over whatever linker top-level may have detected, since
21522 # we'll use what we're building after installation anyway.
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21524 $as_echo "newly built ld" >&6; }
21526 in_tree_ld_is_elf
=no
21527 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21528 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21529 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21530 in_tree_ld_is_elf
=yes
21531 elif test "$ld_is_gold" = yes; then
21532 in_tree_ld_is_elf
=yes
21534 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
21536 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21537 if test x
$gcc_cv_gld_version != x
; then
21541 case $gcc_cv_gld_version in
21543 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21545 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21546 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21549 $as_echo "$gcc_cv_ld" >&6; }
21553 # Figure out what nm we will be using.
21554 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21555 if test "${gcc_cv_nm+set}" = set; then :
21559 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21560 && test -f ..
/binutils
/Makefile \
21561 && test x
$build = x
$host; then
21562 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21563 elif test -x nm
$build_exeext; then
21564 gcc_cv_nm
=.
/nm
$build_exeext
21565 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21566 gcc_cv_nm
="$NM_FOR_TARGET"
21568 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21569 set dummy
$NM_FOR_TARGET; ac_word
=$2
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21571 $as_echo_n "checking for $ac_word... " >&6; }
21572 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21573 $as_echo_n "(cached) " >&6
21577 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21581 for as_dir
in $PATH
21584 test -z "$as_dir" && as_dir
=.
21585 for ac_exec_ext
in '' $ac_executable_extensions; do
21586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21587 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21598 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21599 if test -n "$gcc_cv_nm"; then
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21601 $as_echo "$gcc_cv_nm" >&6; }
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21604 $as_echo "no" >&6; }
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21612 $as_echo_n "checking what nm to use... " >&6; }
21613 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21614 # Single tree build which includes binutils.
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21616 $as_echo "newly built nm" >&6; }
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21620 $as_echo "$gcc_cv_nm" >&6; }
21624 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21626 case "$ORIGINAL_NM_FOR_TARGET" in
21627 .
/nm | .
/nm
$build_exeext) ;;
21628 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21633 # Figure out what objdump we will be using.
21634 if test "${gcc_cv_objdump+set}" = set; then :
21638 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21639 && test -f ..
/binutils
/Makefile \
21640 && test x
$build = x
$host; then
21641 # Single tree build which includes binutils.
21642 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21643 elif test -x objdump
$build_exeext; then
21644 gcc_cv_objdump
=.
/objdump
$build_exeext
21645 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21646 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21648 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21649 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21651 $as_echo_n "checking for $ac_word... " >&6; }
21652 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21653 $as_echo_n "(cached) " >&6
21655 case $gcc_cv_objdump in
21657 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21661 for as_dir
in $PATH
21664 test -z "$as_dir" && as_dir
=.
21665 for ac_exec_ext
in '' $ac_executable_extensions; do
21666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21667 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21678 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21679 if test -n "$gcc_cv_objdump"; then
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21681 $as_echo "$gcc_cv_objdump" >&6; }
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21684 $as_echo "no" >&6; }
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21692 $as_echo_n "checking what objdump to use... " >&6; }
21693 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21694 # Single tree build which includes binutils.
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21696 $as_echo "newly built objdump" >&6; }
21697 elif test x
$gcc_cv_objdump = x
; then
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21699 $as_echo "not found" >&6; }
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21702 $as_echo "$gcc_cv_objdump" >&6; }
21705 # Figure out what readelf we will be using.
21706 if test "${gcc_cv_readelf+set}" = set; then :
21710 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21711 && test -f ..
/binutils
/Makefile \
21712 && test x
$build = x
$host; then
21713 # Single tree build which includes binutils.
21714 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21715 elif test -x readelf
$build_exeext; then
21716 gcc_cv_readelf
=.
/readelf
$build_exeext
21718 # Extract the first word of "readelf", so it can be a program name with args.
21719 set dummy readelf
; ac_word
=$2
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21721 $as_echo_n "checking for $ac_word... " >&6; }
21722 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21723 $as_echo_n "(cached) " >&6
21725 case $gcc_cv_readelf in
21727 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21731 for as_dir
in $PATH
21734 test -z "$as_dir" && as_dir
=.
21735 for ac_exec_ext
in '' $ac_executable_extensions; do
21736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21737 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21748 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21749 if test -n "$gcc_cv_readelf"; then
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21751 $as_echo "$gcc_cv_readelf" >&6; }
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21754 $as_echo "no" >&6; }
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21762 $as_echo_n "checking what readelf to use... " >&6; }
21763 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21764 # Single tree build which includes binutils.
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21766 $as_echo "newly built readelf" >&6; }
21767 elif test x
$gcc_cv_readelf = x
; then
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21769 $as_echo "not found" >&6; }
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21772 $as_echo "$gcc_cv_readelf" >&6; }
21775 # Figure out what assembler alignment features are present.
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21777 $as_echo_n "checking assembler flags... " >&6; }
21778 if test "${gcc_cv_as_flags+set}" = set; then :
21779 $as_echo_n "(cached) " >&6
21782 i
[34567]86-*-linux*)
21783 gcc_cv_as_flags
=--32
21785 x86_64-
*-linux-gnux32)
21786 gcc_cv_as_flags
=--x32
21789 gcc_cv_as_flags
=--64
21791 powerpc
*-*-darwin*)
21792 gcc_cv_as_flags
="-arch ppc"
21795 gcc_cv_as_flags
=" "
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21800 $as_echo "$gcc_cv_as_flags" >&6; }
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21803 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21804 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21805 $as_echo_n "(cached) " >&6
21807 gcc_cv_as_balign_and_p2align
=no
21808 if test $in_tree_gas = yes; then
21809 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21810 then gcc_cv_as_balign_and_p2align
=yes
21812 elif test x
$gcc_cv_as != x
; then
21813 $as_echo '.balign 4
21814 .p2align 2' > conftest.s
21815 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21817 (eval $ac_try) 2>&5
21819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21820 test $ac_status = 0; }; }
21822 gcc_cv_as_balign_and_p2align
=yes
21824 echo "configure: failed program was" >&5
21827 rm -f conftest.o conftest.s
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21831 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21832 if test $gcc_cv_as_balign_and_p2align = yes; then
21834 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21839 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21840 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21843 gcc_cv_as_max_skip_p2align
=no
21844 if test $in_tree_gas = yes; then
21845 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21846 then gcc_cv_as_max_skip_p2align
=yes
21848 elif test x
$gcc_cv_as != x
; then
21849 $as_echo '.p2align 4,,7' > conftest.s
21850 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21852 (eval $ac_try) 2>&5
21854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21855 test $ac_status = 0; }; }
21857 gcc_cv_as_max_skip_p2align
=yes
21859 echo "configure: failed program was" >&5
21862 rm -f conftest.o conftest.s
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21866 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21867 if test $gcc_cv_as_max_skip_p2align = yes; then
21869 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21874 $as_echo_n "checking assembler for .literal16... " >&6; }
21875 if test "${gcc_cv_as_literal16+set}" = set; then :
21876 $as_echo_n "(cached) " >&6
21878 gcc_cv_as_literal16
=no
21879 if test $in_tree_gas = yes; then
21880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21881 then gcc_cv_as_literal16
=yes
21883 elif test x
$gcc_cv_as != x
; then
21884 $as_echo '.literal16' > conftest.s
21885 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21887 (eval $ac_try) 2>&5
21889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21890 test $ac_status = 0; }; }
21892 gcc_cv_as_literal16
=yes
21894 echo "configure: failed program was" >&5
21897 rm -f conftest.o conftest.s
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21901 $as_echo "$gcc_cv_as_literal16" >&6; }
21902 if test $gcc_cv_as_literal16 = yes; then
21904 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21909 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21910 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21911 $as_echo_n "(cached) " >&6
21913 gcc_cv_as_subsection_m1
=no
21914 if test $in_tree_gas = yes; then
21915 if test $in_tree_gas_is_elf = yes \
21916 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21917 then gcc_cv_as_subsection_m1
=yes
21919 elif test x
$gcc_cv_as != x
; then
21920 $as_echo 'conftest_label1: .word 0
21922 conftest_label2: .word 0
21923 .previous' > conftest.s
21924 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21926 (eval $ac_try) 2>&5
21928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21929 test $ac_status = 0; }; }
21931 if test x
$gcc_cv_nm != x
; then
21932 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21933 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21934 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21936 else gcc_cv_as_subsection_m1
=yes
21938 rm -f conftest.nm1 conftest.nm2
21941 echo "configure: failed program was" >&5
21944 rm -f conftest.o conftest.s
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21948 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21949 if test $gcc_cv_as_subsection_m1 = yes; then
21951 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21956 $as_echo_n "checking assembler for .weak... " >&6; }
21957 if test "${gcc_cv_as_weak+set}" = set; then :
21958 $as_echo_n "(cached) " >&6
21961 if test $in_tree_gas = yes; then
21962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21963 then gcc_cv_as_weak
=yes
21965 elif test x
$gcc_cv_as != x
; then
21966 $as_echo ' .weak foobar' > conftest.s
21967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21969 (eval $ac_try) 2>&5
21971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21972 test $ac_status = 0; }; }
21976 echo "configure: failed program was" >&5
21979 rm -f conftest.o conftest.s
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21983 $as_echo "$gcc_cv_as_weak" >&6; }
21984 if test $gcc_cv_as_weak = yes; then
21986 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21991 $as_echo_n "checking assembler for .weakref... " >&6; }
21992 if test "${gcc_cv_as_weakref+set}" = set; then :
21993 $as_echo_n "(cached) " >&6
21995 gcc_cv_as_weakref
=no
21996 if test $in_tree_gas = yes; then
21997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21998 then gcc_cv_as_weakref
=yes
22000 elif test x
$gcc_cv_as != x
; then
22001 $as_echo ' .weakref foobar, barfnot' > conftest.s
22002 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22004 (eval $ac_try) 2>&5
22006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22007 test $ac_status = 0; }; }
22009 gcc_cv_as_weakref
=yes
22011 echo "configure: failed program was" >&5
22014 rm -f conftest.o conftest.s
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22018 $as_echo "$gcc_cv_as_weakref" >&6; }
22019 if test $gcc_cv_as_weakref = yes; then
22021 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22026 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22027 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22028 $as_echo_n "(cached) " >&6
22030 gcc_cv_as_nsubspa_comdat
=no
22031 if test $in_tree_gas = yes; then
22032 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22033 then gcc_cv_as_nsubspa_comdat
=yes
22035 elif test x
$gcc_cv_as != x
; then
22036 $as_echo ' .SPACE $TEXT$
22037 .NSUBSPA $CODE$,COMDAT' > conftest.s
22038 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22040 (eval $ac_try) 2>&5
22042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22043 test $ac_status = 0; }; }
22045 gcc_cv_as_nsubspa_comdat
=yes
22047 echo "configure: failed program was" >&5
22050 rm -f conftest.o conftest.s
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22054 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22055 if test $gcc_cv_as_nsubspa_comdat = yes; then
22057 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22061 # .hidden needs to be supported in both the assembler and the linker,
22062 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22063 # This is irritatingly difficult to feature test for; we have to check the
22064 # date string after the version number. If we've got an in-tree
22065 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22067 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22069 $as_echo_n "checking assembler for .hidden... " >&6; }
22070 if test "${gcc_cv_as_hidden+set}" = set; then :
22071 $as_echo_n "(cached) " >&6
22073 gcc_cv_as_hidden
=no
22074 if test $in_tree_gas = yes; then
22075 if test $in_tree_gas_is_elf = yes \
22076 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22077 then gcc_cv_as_hidden
=yes
22079 elif test x
$gcc_cv_as != x
; then
22080 $as_echo ' .hidden foobar
22081 foobar:' > conftest.s
22082 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22084 (eval $ac_try) 2>&5
22086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22087 test $ac_status = 0; }; }
22090 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22091 # STV_HIDDEN, so disable .hidden support if so.
22092 case "${target}" in
22093 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22094 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22095 cat > conftest.s
<<EOF
22100 .set default,hidden
22102 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22103 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22104 grep '\.hidden default' > /dev
/null
; then
22105 gcc_cv_as_hidden
=no
22107 gcc_cv_as_hidden
=yes
22110 # Assume bug is present if objdump is missing.
22111 gcc_cv_as_hidden
=no
22115 gcc_cv_as_hidden
=yes
22119 echo "configure: failed program was" >&5
22122 rm -f conftest.o conftest.s
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22126 $as_echo "$gcc_cv_as_hidden" >&6; }
22128 case "${target}" in
22130 # Darwin as has some visibility support, though with a different syntax.
22131 gcc_cv_as_hidden
=yes
22135 # gnu_indirect_function type is an extension proposed at
22136 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22137 # selection of function implementation
22138 # Check whether --enable-gnu-indirect-function was given.
22139 if test "${enable_gnu_indirect_function+set}" = set; then :
22140 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22142 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22143 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22146 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22150 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22152 cat >>confdefs.h
<<_ACEOF
22153 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22158 if test $in_tree_ld != yes ; then
22159 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22160 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22161 if test x
"$ld_is_gold" = xyes
; then
22162 # GNU gold --version looks like this:
22164 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22166 # We extract the binutils version which is more familiar and specific
22167 # than the gold version.
22168 ld_vers
=`echo $ld_ver | sed -n \
22169 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22171 # GNU ld --version looks like this:
22173 # GNU ld (GNU Binutils) 2.21.51.20110225
22174 ld_vers
=`echo $ld_ver | sed -n \
22175 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22177 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'`
22178 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22179 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22180 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22182 case "${target}" in
22184 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22187 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22188 # /usr/ccs/bin/ld has been configured.
22189 ld_ver
=`$gcc_cv_ld -V 2>&1`
22190 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22191 ld_vers
=`echo $ld_ver | sed -n \
22192 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22193 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22194 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22202 $as_echo_n "checking linker for .hidden support... " >&6; }
22203 if test "${gcc_cv_ld_hidden+set}" = set; then :
22204 $as_echo_n "(cached) " >&6
22206 if test $in_tree_ld = yes ; then
22207 gcc_cv_ld_hidden
=no
22208 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 \
22209 && test $in_tree_ld_is_elf = yes; then
22210 gcc_cv_ld_hidden
=yes
22213 gcc_cv_ld_hidden
=yes
22214 if test x
"$ld_is_gold" = xyes
; then
22216 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22217 case "${target}" in
22218 mmix-knuth-mmixware
)
22219 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22220 gcc_cv_ld_hidden
=no
22223 if test 0"$ld_date" -lt 20020404; then
22224 if test -n "$ld_date"; then
22225 # If there was date string, but was earlier than 2002-04-04, fail
22226 gcc_cv_ld_hidden
=no
22227 elif test -z "$ld_vers"; then
22228 # If there was no date string nor ld version number, something is wrong
22229 gcc_cv_ld_hidden
=no
22231 test -z "$ld_vers_patch" && ld_vers_patch
=0
22232 if test "$ld_vers_major" -lt 2; then
22233 gcc_cv_ld_hidden
=no
22234 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22235 gcc_cv_ld_hidden
="no"
22236 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22237 gcc_cv_ld_hidden
=no
22242 case "${target}" in
22244 # Darwin ld has some visibility support.
22245 gcc_cv_ld_hidden
=yes
22247 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22248 gcc_cv_ld_hidden
=yes
22250 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22251 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22252 # .symbolic was only added in Solaris 9 12/02.
22253 gcc_cv_ld_hidden
=yes
22256 gcc_cv_ld_hidden
=no
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22263 $as_echo "$gcc_cv_ld_hidden" >&6; }
22264 libgcc_visibility
=no
22267 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22268 libgcc_visibility
=yes
22270 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22275 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22276 gcc_cv_ld_ro_rw_mix
=unknown
22277 if test $in_tree_ld = yes ; then
22278 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 \
22279 && test $in_tree_ld_is_elf = yes; then
22280 gcc_cv_ld_ro_rw_mix
=read-write
22282 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22283 echo '.section myfoosect, "a"' > conftest1.s
22284 echo '.section myfoosect, "aw"' > conftest2.s
22285 echo '.byte 1' >> conftest2.s
22286 echo '.section myfoosect, "a"' > conftest3.s
22287 echo '.byte 0' >> conftest3.s
22288 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22289 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22290 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22291 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22292 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22293 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22294 | sed -e '/myfoosect/!d' -e N`
22295 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22296 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22297 gcc_cv_ld_ro_rw_mix
=read-only
22299 gcc_cv_ld_ro_rw_mix
=read-write
22303 rm -f conftest.
* conftest
[123].
*
22305 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22307 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22311 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22313 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22314 case "${target}" in
22317 # Solaris 2 ld -V output looks like this for a regular version:
22319 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22321 # but test versions add stuff at the end:
22323 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22325 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22326 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22327 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22328 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22329 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22330 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22336 # Check whether --enable-initfini-array was given.
22337 if test "${enable_initfini_array+set}" = set; then :
22338 enableval
=$enable_initfini_array;
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22342 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22343 if test "${gcc_cv_initfini_array+set}" = set; then :
22344 $as_echo_n "(cached) " >&6
22346 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22347 case "${target}" in
22349 if test "$cross_compiling" = yes; then :
22350 gcc_cv_initfini_array
=no
22352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22353 /* end confdefs.h. */
22356 #error Not an ELF OS
22358 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22359 if it can be used. */
22361 int main (void) { return x; }
22362 int foo (void) { x = 0; }
22363 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22366 if ac_fn_c_try_run
"$LINENO"; then :
22367 gcc_cv_initfini_array
=yes
22369 gcc_cv_initfini_array
=no
22371 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22372 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22376 gcc_cv_initfini_array
=no
22377 if test $in_tree_ld = yes ; then
22378 if test "$gcc_cv_gld_major_version" -eq 2 \
22379 -a "$gcc_cv_gld_minor_version" -ge 22 \
22380 -o "$gcc_cv_gld_major_version" -gt 2 \
22381 && test $in_tree_ld_is_elf = yes; then
22382 gcc_cv_initfini_array
=yes
22384 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22385 cat > conftest.s
<<\EOF
22386 .section .dtors
,"a",%progbits
22388 .byte
'A', 'A', 'A', 'A'
22389 .section .ctors
,"a",%progbits
22391 .byte
'B', 'B', 'B', 'B'
22392 .section .fini_array
.65530,"a",%progbits
22394 .byte
'C', 'C', 'C', 'C'
22395 .section .init_array
.65530,"a",%progbits
22397 .byte
'D', 'D', 'D', 'D'
22398 .section .dtors
.64528,"a",%progbits
22400 .byte
'E', 'E', 'E', 'E'
22401 .section .ctors
.64528,"a",%progbits
22403 .byte
'F', 'F', 'F', 'F'
22404 .section .fini_array
.01005,"a",%progbits
22406 .byte
'G', 'G', 'G', 'G'
22407 .section .init_array
.01005,"a",%progbits
22409 .byte
'H', 'H', 'H', 'H'
22414 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22415 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22416 && $gcc_cv_objdump -s -j .init_array conftest \
22417 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22418 && $gcc_cv_objdump -s -j .fini_array conftest \
22419 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22420 gcc_cv_initfini_array
=yes
22422 rm -f conftest conftest.
*
22424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22425 /* end confdefs.h. */
22428 # error Not an ELF OS
22430 #include <stdlib.h>
22431 #if defined __GLIBC_PREREQ
22432 # if __GLIBC_PREREQ (2, 4)
22434 # error GLIBC 2.4 required
22437 # if defined __sun__ && defined __svr4__
22438 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22440 # error The C library not known to support .init_array/.fini_array
22445 if ac_fn_c_try_cpp
"$LINENO"; then :
22448 gcc_cv_initfini_array
=no
22450 rm -f conftest.err conftest.
$ac_ext;;
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22454 $as_echo_n "checking cross compile... guessing... " >&6; }
22455 gcc_cv_initfini_array
=no
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22459 $as_echo "$gcc_cv_initfini_array" >&6; }
22460 enable_initfini_array
=$gcc_cv_initfini_array
22464 if test $enable_initfini_array = yes; then
22466 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22470 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22472 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22473 if test "${gcc_cv_as_leb128+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22476 gcc_cv_as_leb128
=no
22477 if test $in_tree_gas = yes; then
22478 if test $in_tree_gas_is_elf = yes \
22479 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22480 then gcc_cv_as_leb128
=yes
22482 elif test x
$gcc_cv_as != x
; then
22489 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22491 (eval $ac_try) 2>&5
22493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22494 test $ac_status = 0; }; }
22496 # GAS versions before 2.11 do not support uleb128,
22497 # despite appearing to.
22498 # ??? There exists an elf-specific test that will crash
22499 # the assembler. Perhaps it's better to figure out whether
22500 # arbitrary sections are supported and try the test.
22501 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22502 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22503 as_vers
=`echo $as_ver | sed -n \
22504 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22505 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22506 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22507 if test $as_major -eq 2 && test $as_minor -lt 11
22509 else gcc_cv_as_leb128
=yes
22513 echo "configure: failed program was" >&5
22516 rm -f conftest.o conftest.s
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22520 $as_echo "$gcc_cv_as_leb128" >&6; }
22521 if test $gcc_cv_as_leb128 = yes; then
22523 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22527 # Check if we have assembler support for unwind directives.
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22529 $as_echo_n "checking assembler for cfi directives... " >&6; }
22530 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22531 $as_echo_n "(cached) " >&6
22533 gcc_cv_as_cfi_directive
=no
22534 if test x
$gcc_cv_as != x
; then
22540 .cfi_escape 1, 2, 3, 4, 5
22541 .cfi_endproc' > conftest.s
22542 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22544 (eval $ac_try) 2>&5
22546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22547 test $ac_status = 0; }; }
22551 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22552 # read-only and read-write sections, we need to make sure that the
22553 # assembler used emits read-write .eh_frame sections.
22554 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22555 if test "x$gcc_cv_objdump" != x
; then
22556 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22557 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22558 gcc_cv_as_cfi_directive
=no
22561 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22562 # On Solaris/x86, make sure that GCC and gas agree on using
22563 # read-only .eh_frame sections for 64-bit.
22564 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22565 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22566 sed -e /.eh_frame
/!d
-e N | \
22567 grep READONLY
> /dev
/null
; then
22568 gcc_cv_as_cfi_directive
=yes
22570 gcc_cv_as_cfi_directive
=no
22574 gcc_cv_as_cfi_directive
=yes
22579 # no objdump, err on the side of caution
22580 gcc_cv_as_cfi_directive
=no
22583 gcc_cv_as_cfi_directive
=yes
22587 gcc_cv_as_cfi_directive
=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_cfi_directive" >&5
22598 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22600 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22602 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22603 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22604 $as_echo_n "(cached) " >&6
22606 gcc_cv_as_cfi_advance_working
=no
22607 if test x
$gcc_cv_as != x
; then
22610 .cfi_adjust_cfa_offset 64
22612 .cfi_adjust_cfa_offset 128
22613 .cfi_endproc' > conftest.s
22614 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22616 (eval $ac_try) 2>&5
22618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22619 test $ac_status = 0; }; }
22622 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22623 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22624 gcc_cv_as_cfi_advance_working
=yes
22628 echo "configure: failed program was" >&5
22631 rm -f conftest.o conftest.s
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22635 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22638 # no objdump, err on the side of caution
22639 gcc_cv_as_cfi_advance_working
=no
22643 cat >>confdefs.h
<<_ACEOF
22644 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22645 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22651 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22652 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22653 $as_echo_n "(cached) " >&6
22655 gcc_cv_as_cfi_personality_directive
=no
22656 if test x
$gcc_cv_as != x
; then
22659 .cfi_personality 0, symbol
22660 .cfi_endproc' > conftest.s
22661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22663 (eval $ac_try) 2>&5
22665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22666 test $ac_status = 0; }; }
22668 gcc_cv_as_cfi_personality_directive
=yes
22670 echo "configure: failed program was" >&5
22673 rm -f conftest.o conftest.s
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22677 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22680 cat >>confdefs.h
<<_ACEOF
22681 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22682 then echo 1; else echo 0; fi`
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22687 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22688 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22689 $as_echo_n "(cached) " >&6
22691 gcc_cv_as_cfi_sections_directive
=no
22692 if test x
$gcc_cv_as != x
; then
22694 .cfi_sections .debug_frame, .eh_frame
22696 .cfi_endproc' > conftest.s
22697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22699 (eval $ac_try) 2>&5
22701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22702 test $ac_status = 0; }; }
22705 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22706 # Need to check that we generated the correct relocation for the
22707 # .debug_frame section. This was fixed for binutils 2.21.
22708 gcc_cv_as_cfi_sections_directive
=no
22709 if test "x$gcc_cv_objdump" != x
; then
22710 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22711 grep secrel
> /dev
/null
; then
22712 gcc_cv_as_cfi_sections_directive
=yes
22717 gcc_cv_as_cfi_sections_directive
=yes
22721 echo "configure: failed program was" >&5
22724 rm -f conftest.o conftest.s
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22728 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22732 cat >>confdefs.h
<<_ACEOF
22733 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22734 then echo 1; else echo 0; fi`
22738 # GAS versions up to and including 2.11.0 may mis-optimize
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22741 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22742 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22743 $as_echo_n "(cached) " >&6
22745 gcc_cv_as_eh_frame
=no
22746 if test $in_tree_gas = yes; then
22747 if test $in_tree_gas_is_elf = yes \
22748 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22749 then gcc_cv_as_eh_frame
=yes
22751 elif test x
$gcc_cv_as != x
; then
22758 .section .eh_frame,"aw",@progbits
22760 .4byte .LECIE1-.LSCIE1
22774 .4byte .LEFDE1-.LASFDE1
22776 .4byte .LASFDE1-__FRAME_BEGIN__
22783 .LEFDE1:' > conftest.s
22784 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22786 (eval $ac_try) 2>&5
22788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22789 test $ac_status = 0; }; }
22791 cat > conftest.lit
<<EOF
22792 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22793 0010 01000000 12000000 18000000 00000000 ................
22794 0020 08000000 04080000 0044 .........D
22796 cat > conftest.big
<<EOF
22797 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22798 0010 00000001 00000012 00000018 00000000 ................
22799 0020 00000008 04000000 0844 .........D
22801 # If the assembler didn't choke, and we can objdump,
22802 # and we got the correct data, then succeed.
22803 # The text in the here-document typically retains its unix-style line
22804 # endings, while the output of objdump will use host line endings.
22805 # Therefore, use diff -b for the comparisons.
22806 if test x
$gcc_cv_objdump != x \
22807 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22808 |
tail -3 > conftest.got \
22809 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22810 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22812 gcc_cv_as_eh_frame
=yes
22813 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22815 (eval $ac_try) 2>&5
22817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22818 test $ac_status = 0; }; }; then
22819 gcc_cv_as_eh_frame
=buggy
22821 # Uh oh, what do we do now?
22822 gcc_cv_as_eh_frame
=no
22825 echo "configure: failed program was" >&5
22828 rm -f conftest.o conftest.s
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22832 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22835 if test $gcc_cv_as_eh_frame = buggy
; then
22837 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22842 $as_echo_n "checking assembler for section merging support... " >&6; }
22843 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22844 $as_echo_n "(cached) " >&6
22846 gcc_cv_as_shf_merge
=no
22847 if test $in_tree_gas = yes; then
22848 if test $in_tree_gas_is_elf = yes \
22849 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22850 then gcc_cv_as_shf_merge
=yes
22852 elif test x
$gcc_cv_as != x
; then
22853 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22854 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22856 (eval $ac_try) 2>&5
22858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22859 test $ac_status = 0; }; }
22861 gcc_cv_as_shf_merge
=yes
22863 echo "configure: failed program was" >&5
22866 rm -f conftest.o conftest.s
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22870 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22872 if test $gcc_cv_as_shf_merge = no
; then
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22874 $as_echo_n "checking assembler for section merging support... " >&6; }
22875 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22878 gcc_cv_as_shf_merge
=no
22879 if test $in_tree_gas = yes; then
22880 if test $in_tree_gas_is_elf = yes \
22881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22882 then gcc_cv_as_shf_merge
=yes
22884 elif test x
$gcc_cv_as != x
; then
22885 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22886 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22888 (eval $ac_try) 2>&5
22890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22891 test $ac_status = 0; }; }
22893 gcc_cv_as_shf_merge
=yes
22895 echo "configure: failed program was" >&5
22898 rm -f conftest.o conftest.s
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22902 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22906 cat >>confdefs.h
<<_ACEOF
22907 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22912 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22913 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22914 $as_echo_n "(cached) " >&6
22916 gcc_cv_as_comdat_group
=no
22917 if test $in_tree_gas = yes; then
22918 if test $in_tree_gas_is_elf = yes \
22919 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22920 then gcc_cv_as_comdat_group
=yes
22922 elif test x
$gcc_cv_as != x
; then
22923 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22924 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22926 (eval $ac_try) 2>&5
22928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22929 test $ac_status = 0; }; }
22931 gcc_cv_as_comdat_group
=yes
22933 echo "configure: failed program was" >&5
22936 rm -f conftest.o conftest.s
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22940 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22942 if test $gcc_cv_as_comdat_group = yes; then
22943 gcc_cv_as_comdat_group_percent
=no
22944 gcc_cv_as_comdat_group_group
=no
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22947 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22948 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22949 $as_echo_n "(cached) " >&6
22951 gcc_cv_as_comdat_group_percent
=no
22952 if test $in_tree_gas = yes; then
22953 if test $in_tree_gas_is_elf = yes \
22954 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22955 then gcc_cv_as_comdat_group_percent
=yes
22957 elif test x
$gcc_cv_as != x
; then
22958 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22959 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22961 (eval $ac_try) 2>&5
22963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22964 test $ac_status = 0; }; }
22966 gcc_cv_as_comdat_group_percent
=yes
22968 echo "configure: failed program was" >&5
22971 rm -f conftest.o conftest.s
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22975 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22977 if test $gcc_cv_as_comdat_group_percent = yes; then
22978 gcc_cv_as_comdat_group_group
=no
22980 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22981 gcc_cv_as_comdat_group_group
=no
22983 case "${target}" in
22984 # Sun as uses a completely different syntax.
22986 case "${target}" in
22987 sparc
*-*-solaris2*)
22989 .group foo,".text%foo",#comdat
22990 .section ".text%foo", #alloc,#execinstr,#progbits
22995 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22997 .group foo,.text%foo,#comdat
22998 .section .text%foo, "ax", @progbits
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23005 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23006 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23007 $as_echo_n "(cached) " >&6
23009 gcc_cv_as_comdat_group_group
=no
23010 if test x
$gcc_cv_as != x
; then
23011 $as_echo "$conftest_s" > conftest.s
23012 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23014 (eval $ac_try) 2>&5
23016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23017 test $ac_status = 0; }; }
23019 gcc_cv_as_comdat_group_group
=yes
23021 echo "configure: failed program was" >&5
23024 rm -f conftest.o conftest.s
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23028 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23034 if test x
"$ld_is_gold" = xyes
; then
23036 elif test $in_tree_ld = yes ; then
23038 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 \
23039 && test $in_tree_ld_is_elf = yes; then
23042 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23044 if test 0"$ld_date" -lt 20050308; then
23045 if test -n "$ld_date"; then
23046 # If there was date string, but was earlier than 2005-03-08, fail
23048 elif test "$ld_vers_major" -lt 2; then
23050 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23055 case "${target}" in
23056 *-*-solaris2.1
[1-9]*)
23058 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23059 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23062 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23063 # least ld version 1.2267.
23064 if test "$ld_vers_major" -gt 1; then
23066 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23068 elif test "$ld_vers_minor" -ge 2267; then
23073 # Assume linkers other than GNU ld don't support COMDAT group.
23078 # Allow overriding the automatic COMDAT group tests above.
23079 # Check whether --enable-comdat was given.
23080 if test "${enable_comdat+set}" = set; then :
23081 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23084 if test $comdat_group = no
; then
23085 gcc_cv_as_comdat_group
=no
23086 gcc_cv_as_comdat_group_percent
=no
23087 gcc_cv_as_comdat_group_group
=no
23090 cat >>confdefs.h
<<_ACEOF
23091 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23092 || test $gcc_cv_as_comdat_group_percent = yes \
23093 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23098 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23099 if test "${gcc_cv_as_discriminator+set}" = set; then :
23100 $as_echo_n "(cached) " >&6
23102 gcc_cv_as_discriminator
=no
23103 if test $in_tree_gas = yes; then
23104 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23105 then gcc_cv_as_discriminator
=yes
23107 elif test x
$gcc_cv_as != x
; then
23110 .loc 1 1 0 discriminator 1' > conftest.s
23111 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23113 (eval $ac_try) 2>&5
23115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116 test $ac_status = 0; }; }
23118 gcc_cv_as_discriminator
=yes
23120 echo "configure: failed program was" >&5
23123 rm -f conftest.o conftest.s
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23127 $as_echo "$gcc_cv_as_discriminator" >&6; }
23128 if test $gcc_cv_as_discriminator = yes; then
23130 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23134 # Thread-local storage - the check is heavily parameterized.
23142 .section ".tdata","awT",@progbits
23145 ldq $27,__tls_get_addr($29) !literal!1
23146 lda $16,foo($29) !tlsgd!1
23147 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23148 ldq $27,__tls_get_addr($29) !literal!2
23149 lda $16,foo($29) !tlsldm!2
23150 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23151 ldq $1,foo($29) !gotdtprel
23152 ldah $2,foo($29) !dtprelhi
23153 lda $3,foo($2) !dtprello
23154 lda $4,foo($29) !dtprel
23155 ldq $1,foo($29) !gottprel
23156 ldah $2,foo($29) !tprelhi
23157 lda $3,foo($2) !tprello
23158 lda $4,foo($29) !tprel'
23161 tls_as_opt
=--fatal-warnings
23163 cris-
*-*|crisv32-
*-*)
23165 .section ".tdata","awT",@progbits
23172 tls_as_opt
=--fatal-warnings
23176 .section ".tdata","awT",@progbits
23179 call #gettlsoff(x)'
23188 .section ".tdata","awT",@progbits
23192 addil LT%foo-$tls_gdidx$,gp
23193 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23196 addil LT%foo-$tls_ldidx$,gp
23198 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23199 addil LR%foo-$tls_dtpoff$,%ret0
23200 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23202 addil LT%foo-$tls_ieoff$,gp
23203 ldw RT%foo-$tls_ieoff$(%r1),%t2
23206 addil LR%foo-$tls_leoff$,%t1
23207 ldo RR%foo-$tls_leoff$(%r1),%t2'
23210 tls_as_opt
=--fatal-warnings
23214 .section ".tdata","awT",%progbits
23217 .word foo(gottpoff)
23225 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23227 i
[34567]86-*-solaris2.
*)
23229 tga_func
=___tls_get_addr
23231 x86_64-
*-solaris2.1
[0-9]*)
23233 tga_func
=__tls_get_addr
23239 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23241 .section .tdata,"awt",@progbits'
23245 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23249 .section ".tdata","awT",@progbits'
23252 tls_as_opt
="--fatal-warnings"
23254 conftest_s
="$conftest_s
23258 leal foo@tlsgd(,%ebx,1), %eax
23259 leal foo@tlsldm(%ebx), %eax
23260 leal foo@dtpoff(%eax), %edx
23261 movl foo@gottpoff(%ebx), %eax
23262 subl foo@gottpoff(%ebx), %eax
23263 addl foo@gotntpoff(%ebx), %eax
23264 movl foo@indntpoff, %eax
23265 movl \$foo@tpoff, %eax
23266 subl \$foo@tpoff, %eax
23267 leal foo@ntpoff(%ecx), %eax"
23271 .section ".tdata","awT",@progbits
23275 leaq foo@TLSGD(%rip), %rdi
23276 leaq foo@TLSLD(%rip), %rdi
23277 leaq foo@DTPOFF(%rax), %rdx
23278 movq foo@GOTTPOFF(%rip), %rax
23279 movq $foo@TPOFF, %rax'
23282 tls_as_opt
=--fatal-warnings
23286 .section ".tdata","awT",@progbits
23289 addl r16 = @ltoff(@dtpmod(foo#)), gp
23290 addl r17 = @ltoff(@dtprel(foo#)), gp
23291 addl r18 = @ltoff(@tprel(foo#)), gp
23292 addl r19 = @dtprel(foo#), gp
23293 adds r21 = @dtprel(foo#), r13
23294 movl r23 = @dtprel(foo#)
23295 addl r20 = @tprel(foo#), gp
23296 adds r22 = @tprel(foo#), r13
23297 movl r24 = @tprel(foo#)'
23300 tls_as_opt
=--fatal-warnings
23304 .section .tdata,"awT",@progbits
23308 addik r5,r20,x@TLSGD
23309 addik r5,r20,x@TLSLDM'
23312 tls_as_opt
='--fatal-warnings'
23316 .section .tdata,"awT",@progbits
23320 addiu $4, $28, %tlsgd(x)
23321 addiu $4, $28, %tlsldm(x)
23322 lui $4, %dtprel_hi(x)
23323 addiu $4, $4, %dtprel_lo(x)
23324 lw $4, %gottprel(x)($28)
23325 lui $4, %tprel_hi(x)
23326 addiu $4, $4, %tprel_lo(x)'
23329 tls_as_opt
='-32 --fatal-warnings'
23333 .section .tdata,"awT",@progbits
23338 move.l x@TLSGD(%a5),%a0
23339 move.l x@TLSLDM(%a5),%a0
23340 move.l x@TLSLDO(%a5),%a0
23341 move.l x@TLSIE(%a5),%a0
23342 move.l x@TLSLE(%a5),%a0'
23345 tls_as_opt
='--fatal-warnings'
23349 .section ".tdata","awT",%progbits
23353 add x0, x0, #:tlsgd_lo12:x
23358 tls_as_opt
='--fatal-warnings'
23362 .extern __get_tpointer
23380 .section ".tdata","awT",@progbits
23388 addi 3,2,ld0@got@tlsgd
23394 addi 3,2,x1@got@tlsld
23400 addis 9,3,x2@dtprel@ha
23401 addi 9,9,x2@dtprel@l
23404 ld 9,x3@got@dtprel(2)
23410 tls_as_opt
="-a64 --fatal-warnings"
23414 .section ".tdata","awT",@progbits
23422 addi 3,31,ld0@got@tlsgd
23424 addi 3,31,x1@got@tlsld
23427 addis 9,3,x2@dtprel@ha
23428 addi 9,9,x2@dtprel@l
23429 lwz 9,x3@got@tprel(31)
23432 addis 9,2,x2@tprel@ha
23433 addi 9,9,x2@tprel@l'
23436 tls_as_opt
="-a32 --fatal-warnings"
23440 .section ".tdata","awT",@progbits
23447 .long foo@GOTNTPOFF
23448 .long foo@INDNTPOFF
23449 l %r1,foo@GOTNTPOFF(%r12)
23450 l %r1,0(%r1):tls_load:foo
23451 bas %r14,0(%r1,%r13):tls_gdcall:foo
23452 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23455 tls_as_opt
="-m31 --fatal-warnings"
23459 .section ".tdata","awT",@progbits
23466 .quad foo@GOTNTPOFF
23467 lg %r1,foo@GOTNTPOFF(%r12)
23468 larl %r1,foo@INDNTPOFF
23469 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23470 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23473 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23475 sh-
*-* | sh
[34]-*-*)
23477 .section ".tdata","awT",@progbits
23487 tls_as_opt
=--fatal-warnings
23491 sparc
*-sun-solaris2.
*)
23493 tga_func
=__tls_get_addr
23499 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23501 .section ".tdata",#alloc,#write,#tls'
23506 .section ".tdata","awT",@progbits'
23509 tls_as_opt
="-32 --fatal-warnings"
23511 conftest_s
="$conftest_s
23514 sethi %tgd_hi22(foo), %o0
23515 add %o0, %tgd_lo10(foo), %o1
23516 add %l7, %o1, %o0, %tgd_add(foo)
23517 call __tls_get_addr, %tgd_call(foo)
23518 sethi %tldm_hi22(foo), %l1
23519 add %l1, %tldm_lo10(foo), %l2
23520 add %l7, %l2, %o0, %tldm_add(foo)
23521 call __tls_get_addr, %tldm_call(foo)
23522 sethi %tldo_hix22(foo), %l3
23523 xor %l3, %tldo_lox10(foo), %l4
23524 add %o0, %l4, %l5, %tldo_add(foo)
23525 sethi %tie_hi22(foo), %o3
23526 add %o3, %tie_lo10(foo), %o3
23527 ld [%l7 + %o3], %o2, %tie_ld(foo)
23528 add %g7, %o2, %o4, %tie_add(foo)
23529 sethi %tle_hix22(foo), %l1
23530 xor %l1, %tle_lox10(foo), %o5
23531 ld [%g7 + %o5], %o1"
23535 .section ".tdata","awT",@progbits
23538 addli r0, zero, tls_gd(foo)
23539 auli r0, zero, tls_gd_ha16(foo)
23540 addli r0, r0, tls_gd_lo16(foo)
23542 addli r0, zero, tls_ie(foo)
23543 auli r0, r0, tls_ie_ha16(foo)
23544 addli r0, r0, tls_ie_lo16(foo)'
23547 tls_as_opt
="--fatal-warnings"
23551 .section ".tdata","awT",@progbits
23554 shl16insli r0, zero, hw0_last_tls_gd(foo)
23555 shl16insli r0, zero, hw1_last_tls_gd(foo)
23556 shl16insli r0, r0, hw0_tls_gd(foo)
23558 shl16insli r0, zero, hw1_last_tls_ie(foo)
23559 shl16insli r0, r0, hw0_tls_ie(foo)'
23562 tls_as_opt
="--fatal-warnings"
23566 .section ".tdata","awT",@progbits
23569 movi a8, foo@TLSFUNC
23570 movi a10, foo@TLSARG
23571 callx8.tls a8, foo@TLSCALL'
23577 if test "x$enable_tls" = xno
; then
23578 : # TLS explicitly disabled.
23579 elif test "x$enable_tls" = xyes
; then
23580 set_have_as_tls
=yes # TLS explicitly enabled.
23581 elif test -z "$tls_first_major"; then
23582 : # If we don't have a check, assume no support.
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23585 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23586 if test "${gcc_cv_as_tls+set}" = set; then :
23587 $as_echo_n "(cached) " >&6
23590 if test $in_tree_gas = yes; then
23591 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23592 then gcc_cv_as_tls
=yes
23594 elif test x
$gcc_cv_as != x
; then
23595 $as_echo "$conftest_s" > conftest.s
23596 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23598 (eval $ac_try) 2>&5
23600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23601 test $ac_status = 0; }; }
23605 echo "configure: failed program was" >&5
23608 rm -f conftest.o conftest.s
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23612 $as_echo "$gcc_cv_as_tls" >&6; }
23613 if test $gcc_cv_as_tls = yes; then
23614 set_have_as_tls
=yes
23618 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23619 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23620 # Sun style that Sun ld and GCC don't support any longer.
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23623 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23625 # Check ld and ld.so.1 TLS support.
23626 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23627 # Assume all interesting versions of GNU ld have TLS support.
23628 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23632 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23634 min_tls_ld_vers_minor
=374
23636 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23637 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23638 min_tls_ld_vers_minor
=343
23641 if test "$ld_vers_major" -gt 1 || \
23642 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23649 $as_echo "$ld_tls_support" >&6; }
23652 save_LDFLAGS
="$LDFLAGS"
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23657 $as_echo_n "checking library containing $tga_func... " >&6; }
23658 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23659 # (32-bit x86) only lived in libthread, so check for that. Keep
23660 # set_have_as_tls if found, disable if not.
23661 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23663 $as_echo_n "checking for library containing $tga_func... " >&6; }
23664 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23665 $as_echo_n "(cached) " >&6
23667 ac_func_search_save_LIBS
=$LIBS
23668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23669 /* end confdefs.h. */
23671 /* Override any GCC internal prototype to avoid an error.
23672 Use char because int might match the return type of a GCC
23673 builtin and then its argument prototype would still apply. */
23681 return $tga_func ();
23686 for ac_lib
in '' thread
; do
23687 if test -z "$ac_lib"; then
23688 ac_res
="none required"
23691 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23693 if ac_fn_c_try_link
"$LINENO"; then :
23694 eval "$as_ac_Search=\$ac_res"
23696 rm -f core conftest.err conftest.
$ac_objext \
23698 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23702 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23705 eval "$as_ac_Search=no"
23707 rm conftest.
$ac_ext
23708 LIBS
=$ac_func_search_save_LIBS
23710 eval ac_res
=\$
$as_ac_Search
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23712 $as_echo "$ac_res" >&6; }
23713 eval ac_res
=\$
$as_ac_Search
23714 if test "$ac_res" != no
; then :
23715 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23721 # Clear LIBS if we cannot support TLS.
23722 if test $set_have_as_tls = no
; then
23725 # Always define LIB_TLS_SPEC, even without TLS support.
23727 cat >>confdefs.h
<<_ACEOF
23728 #define LIB_TLS_SPEC "$LIBS"
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23732 $as_echo "$LIBS" >&6; }
23735 LDFLAGS
="$save_LDFLAGS"
23738 if test $set_have_as_tls = yes ; then
23740 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23744 # Target-specific assembler checks.
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23747 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23748 gcc_cv_ld_static_dynamic
=no
23749 gcc_cv_ld_static_option
='-Bstatic'
23750 gcc_cv_ld_dynamic_option
='-Bdynamic'
23751 if test $in_tree_ld = yes ; then
23752 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
23753 gcc_cv_ld_static_dynamic
=yes
23755 elif test x
$gcc_cv_ld != x
; then
23756 # Check if linker supports -Bstatic/-Bdynamic option
23757 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23758 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23759 gcc_cv_ld_static_dynamic
=yes
23762 # AIX ld uses -b flags
23763 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23764 gcc_cv_ld_static_dynamic
=yes
23765 gcc_cv_ld_static_option
="-bstatic"
23766 gcc_cv_ld_dynamic_option
="-bdynamic"
23768 # HP-UX ld uses -a flags to select between shared and archive.
23770 if test x
"$gnu_ld" = xno
; then
23771 gcc_cv_ld_static_dynamic
=yes
23772 gcc_cv_ld_static_option
="-aarchive_shared"
23773 gcc_cv_ld_dynamic_option
="-adefault"
23776 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23778 gcc_cv_ld_static_dynamic
=yes
23783 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23785 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23788 cat >>confdefs.h
<<_ACEOF
23789 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23793 cat >>confdefs.h
<<_ACEOF
23794 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23799 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23801 if test x
"$demangler_in_ld" = xyes
; then
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23803 $as_echo_n "checking linker --demangle support... " >&6; }
23804 gcc_cv_ld_demangle
=no
23805 if test $in_tree_ld = yes; then
23806 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 \
23807 gcc_cv_ld_demangle
=yes
23809 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23810 # Check if the GNU linker supports --demangle option
23811 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23812 gcc_cv_ld_demangle
=yes
23815 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23817 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23821 $as_echo "$gcc_cv_ld_demangle" >&6; }
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23825 $as_echo_n "checking linker plugin support... " >&6; }
23826 gcc_cv_lto_plugin
=0
23827 if test -f liblto_plugin.la
; then
23828 save_ld_ver
="$ld_ver"
23829 save_ld_vers_major
="$ld_vers_major"
23830 save_ld_vers_minor
="$ld_vers_minor"
23831 save_ld_is_gold
="$ld_is_gold"
23835 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23837 # FIXME: ld_is_gold?
23838 ld_vers_major
="$gcc_cv_gld_major_version"
23839 ld_vers_minor
="$gcc_cv_gld_minor_version"
23841 # Determine plugin linker version.
23842 # FIXME: Partial duplicate from above, generalize.
23843 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23844 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23845 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23847 ld_vers
=`echo $ld_ver | sed -n \
23848 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23850 ld_vers
=`echo $ld_ver | sed -n \
23851 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23853 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23854 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23858 # Determine plugin support.
23859 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23860 # Require GNU ld or gold 2.21+ for plugin support by default.
23861 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23862 gcc_cv_lto_plugin
=2
23863 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23864 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23865 gcc_cv_lto_plugin
=1
23869 ld_ver
="$save_ld_ver"
23870 ld_vers_major
="$save_ld_vers_major"
23871 ld_vers_minor
="$save_ld_vers_minor"
23872 ld_is_gold
="$save_ld_is_gold"
23875 cat >>confdefs.h
<<_ACEOF
23876 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23880 $as_echo "$gcc_cv_lto_plugin" >&6; }
23883 # All TARGET_ABI_OSF targets.
23884 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23886 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23887 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23888 $as_echo_n "(cached) " >&6
23890 gcc_cv_as_alpha_explicit_relocs
=no
23891 if test $in_tree_gas = yes; then
23892 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23893 then gcc_cv_as_alpha_explicit_relocs
=yes
23895 elif test x
$gcc_cv_as != x
; then
23896 $as_echo ' .set nomacro
23898 extbl $3, $2, $3 !lituse_bytoff!1
23899 ldq $2, a($29) !literal!1
23900 ldq $4, b($29) !literal!2
23901 ldq_u $3, 0($2) !lituse_base!1
23902 ldq $27, f($29) !literal!5
23903 jsr $26, ($27), f !lituse_jsr!5
23904 ldah $29, 0($26) !gpdisp!3
23905 lda $0, c($29) !gprel
23906 ldah $1, d($29) !gprelhigh
23907 lda $1, d($1) !gprellow
23908 lda $29, 0($29) !gpdisp!3' > conftest.s
23909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23911 (eval $ac_try) 2>&5
23913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23914 test $ac_status = 0; }; }
23916 gcc_cv_as_alpha_explicit_relocs
=yes
23918 echo "configure: failed program was" >&5
23921 rm -f conftest.o conftest.s
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23925 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23926 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23928 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23932 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23933 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23934 $as_echo_n "(cached) " >&6
23936 gcc_cv_as_alpha_jsrdirect_relocs
=no
23937 if test $in_tree_gas = yes; then
23938 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23939 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23941 elif test x
$gcc_cv_as != x
; then
23942 $as_echo ' .set nomacro
23944 ldq $27, a($29) !literal!1
23945 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23946 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23948 (eval $ac_try) 2>&5
23950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951 test $ac_status = 0; }; }
23953 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23955 echo "configure: failed program was" >&5
23958 rm -f conftest.o conftest.s
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23962 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23963 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23965 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23972 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23973 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23974 $as_echo_n "(cached) " >&6
23976 gcc_cv_as_cris_no_mul_bug
=no
23977 if test $in_tree_gas = yes; then
23978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23979 then gcc_cv_as_cris_no_mul_bug
=yes
23981 elif test x
$gcc_cv_as != x
; then
23982 $as_echo '.text' > conftest.s
23983 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23985 (eval $ac_try) 2>&5
23987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23988 test $ac_status = 0; }; }
23990 gcc_cv_as_cris_no_mul_bug
=yes
23992 echo "configure: failed program was" >&5
23995 rm -f conftest.o conftest.s
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23999 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24000 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24002 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24009 $as_echo_n "checking assembler for .register... " >&6; }
24010 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24011 $as_echo_n "(cached) " >&6
24013 gcc_cv_as_sparc_register_op
=no
24014 if test x
$gcc_cv_as != x
; then
24015 $as_echo '.register %g2, #scratch' > conftest.s
24016 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24018 (eval $ac_try) 2>&5
24020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24021 test $ac_status = 0; }; }
24023 gcc_cv_as_sparc_register_op
=yes
24025 echo "configure: failed program was" >&5
24028 rm -f conftest.o conftest.s
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24032 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24033 if test $gcc_cv_as_sparc_register_op = yes; then
24035 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24040 $as_echo_n "checking assembler for #nobits... " >&6; }
24041 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24042 $as_echo_n "(cached) " >&6
24044 gcc_cv_as_sparc_nobits
=no
24045 if test x
$gcc_cv_as != x
; then
24046 $as_echo '.section "nobits",#alloc,#write,#nobits
24047 .section "progbits",#alloc,#write,#progbits' > conftest.s
24048 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24050 (eval $ac_try) 2>&5
24052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24053 test $ac_status = 0; }; }
24055 gcc_cv_as_sparc_nobits
=yes
24057 echo "configure: failed program was" >&5
24060 rm -f conftest.o conftest.s
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24064 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24067 cat >>confdefs.h
<<_ACEOF
24068 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24073 $as_echo_n "checking assembler for -relax option... " >&6; }
24074 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24075 $as_echo_n "(cached) " >&6
24077 gcc_cv_as_sparc_relax
=no
24078 if test x
$gcc_cv_as != x
; then
24079 $as_echo '.text' > conftest.s
24080 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24082 (eval $ac_try) 2>&5
24084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24085 test $ac_status = 0; }; }
24087 gcc_cv_as_sparc_relax
=yes
24089 echo "configure: failed program was" >&5
24092 rm -f conftest.o conftest.s
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24096 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24097 if test $gcc_cv_as_sparc_relax = yes; then
24099 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24104 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24105 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24106 $as_echo_n "(cached) " >&6
24108 gcc_cv_as_sparc_gotdata_op
=no
24109 if test x
$gcc_cv_as != x
; then
24115 sethi %gdop_hix22(foo), %g1
24116 xor %g1, %gdop_lox10(foo), %g1
24117 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24120 (eval $ac_try) 2>&5
24122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24123 test $ac_status = 0; }; }
24125 if test x
$gcc_cv_ld != x \
24126 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24127 if test x
$gcc_cv_objdump != x
; then
24128 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24129 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24130 gcc_cv_as_sparc_gotdata_op
=no
24132 gcc_cv_as_sparc_gotdata_op
=yes
24138 echo "configure: failed program was" >&5
24141 rm -f conftest.o conftest.s
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24145 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24146 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24148 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24153 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24154 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24155 $as_echo_n "(cached) " >&6
24157 gcc_cv_as_sparc_ua_pcrel
=no
24158 if test x
$gcc_cv_as != x
; then
24165 .uaword %r_disp32(foo)' > conftest.s
24166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168 (eval $ac_try) 2>&5
24170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171 test $ac_status = 0; }; }
24173 if test x
$gcc_cv_ld != x \
24174 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24175 gcc_cv_as_sparc_ua_pcrel
=yes
24179 echo "configure: failed program was" >&5
24182 rm -f conftest.o conftest.s
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24186 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24187 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24189 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24193 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24194 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24195 $as_echo_n "(cached) " >&6
24197 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24198 if test x
$gcc_cv_as != x
; then
24202 .uaword %r_disp32(foo)
24203 .byte 0x32, 0x33, 0x34
24207 .skip 4' > conftest.s
24208 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24210 (eval $ac_try) 2>&5
24212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24213 test $ac_status = 0; }; }
24215 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24216 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24217 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24218 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24219 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24220 |
grep 'DISP32' > /dev
/null
2>&1; then
24223 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24228 echo "configure: failed program was" >&5
24231 rm -f conftest.o conftest.s
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24235 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24236 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24238 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24242 fi # unaligned pcrel relocs
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24245 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24246 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24247 $as_echo_n "(cached) " >&6
24249 gcc_cv_as_sparc_offsetable_lo10
=no
24250 if test x
$gcc_cv_as != x
; then
24252 or %g1, %lo(ab) + 12, %g1
24253 or %g1, %lo(ab + 12), %g1' > conftest.s
24254 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24256 (eval $ac_try) 2>&5
24258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24259 test $ac_status = 0; }; }
24261 if test x
$gcc_cv_objdump != x \
24262 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24263 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24264 gcc_cv_as_sparc_offsetable_lo10
=yes
24267 echo "configure: failed program was" >&5
24270 rm -f conftest.o conftest.s
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24274 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24275 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24277 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24282 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24283 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24284 $as_echo_n "(cached) " >&6
24286 gcc_cv_as_sparc_fmaf
=no
24287 if test x
$gcc_cv_as != x
; then
24289 .register %g2, #scratch
24290 .register %g3, #scratch
24292 fmaddd %f0, %f2, %f4, %f6
24293 addxccc %g1, %g2, %g3
24294 fsrl32 %f2, %f4, %f8
24295 fnaddd %f10, %f12, %f14' > conftest.s
24296 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24298 (eval $ac_try) 2>&5
24300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24301 test $ac_status = 0; }; }
24303 gcc_cv_as_sparc_fmaf
=yes
24305 echo "configure: failed program was" >&5
24308 rm -f conftest.o conftest.s
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24312 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24313 if test $gcc_cv_as_sparc_fmaf = yes; then
24315 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24320 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24321 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24322 $as_echo_n "(cached) " >&6
24324 gcc_cv_as_sparc_sparc4
=no
24325 if test x
$gcc_cv_as != x
; then
24327 .register %g2, #scratch
24328 .register %g3, #scratch
24331 1: cwbneg %g2, %g3, 1f
24334 aes_kexpand0 %f4, %f6, %f8
24335 des_round %f38, %f40, %f42, %f44
24336 camellia_f %f54, %f56, %f58, %f60
24337 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24338 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24340 (eval $ac_try) 2>&5
24342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24343 test $ac_status = 0; }; }
24345 gcc_cv_as_sparc_sparc4
=yes
24347 echo "configure: failed program was" >&5
24350 rm -f conftest.o conftest.s
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24354 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24355 if test $gcc_cv_as_sparc_sparc4 = yes; then
24357 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24362 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24363 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24364 $as_echo_n "(cached) " >&6
24366 gcc_cv_as_sparc_leon
=no
24367 if test x
$gcc_cv_as != x
; then
24369 .register %g2, #scratch
24370 .register %g3, #scratch
24374 cas [%g2], %g3, %g1' > conftest.s
24375 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24377 (eval $ac_try) 2>&5
24379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24380 test $ac_status = 0; }; }
24382 gcc_cv_as_sparc_leon
=yes
24384 echo "configure: failed program was" >&5
24387 rm -f conftest.o conftest.s
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24391 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24392 if test $gcc_cv_as_sparc_leon = yes; then
24394 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24399 i
[34567]86-*-* | x86_64-
*-*)
24402 # Full C++ conformance when using a shared libstdc++-v3 requires some
24403 # support from the Cygwin DLL, which in more recent versions exports
24404 # wrappers to aid in interposing and redirecting operators new, delete,
24405 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24406 # are configuring for a version of Cygwin that exports the wrappers.
24407 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24408 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24409 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24410 gcc_ac_cygwin_dll_wrappers
=yes
24412 gcc_ac_cygwin_dll_wrappers
=no
24416 # Can't check presence of libc functions during cross-compile, so
24417 # we just have to assume we're building for an up-to-date target.
24418 gcc_ac_cygwin_dll_wrappers
=yes
24421 cat >>confdefs.h
<<_ACEOF
24422 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24427 cygwin
* | pe | mingw32
* | interix
*)
24428 # Recent binutils allows the three-operand form of ".comm" on PE. This
24429 # definition is used unconditionally to initialise the default state of
24430 # the target option variable that governs usage of the feature.
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24432 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24433 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24434 $as_echo_n "(cached) " >&6
24436 gcc_cv_as_comm_has_align
=no
24437 if test $in_tree_gas = yes; then
24438 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24439 then gcc_cv_as_comm_has_align
=yes
24441 elif test x
$gcc_cv_as != x
; then
24442 $as_echo '.comm foo,1,32' > conftest.s
24443 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24445 (eval $ac_try) 2>&5
24447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24448 test $ac_status = 0; }; }
24450 gcc_cv_as_comm_has_align
=yes
24452 echo "configure: failed program was" >&5
24455 rm -f conftest.o conftest.s
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24459 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24462 cat >>confdefs.h
<<_ACEOF
24463 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24466 # Used for DWARF 2 in PE
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24468 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24469 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24470 $as_echo_n "(cached) " >&6
24472 gcc_cv_as_ix86_pe_secrel32
=no
24473 if test $in_tree_gas = yes; then
24474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24475 then gcc_cv_as_ix86_pe_secrel32
=yes
24477 elif test x
$gcc_cv_as != x
; then
24481 .secrel32 foo' > conftest.s
24482 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24484 (eval $ac_try) 2>&5
24486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24487 test $ac_status = 0; }; }
24489 if test x
$gcc_cv_ld != x \
24490 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24491 gcc_cv_as_ix86_pe_secrel32
=yes
24495 echo "configure: failed program was" >&5
24498 rm -f conftest.o conftest.s
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24502 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24503 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24505 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24508 # Test if the assembler supports the extended form of the .section
24509 # directive that specifies section alignment. LTO support uses this,
24510 # but normally only after installation, so we warn but don't fail the
24511 # configure if LTO is enabled but the assembler does not support it.
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24513 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24514 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24515 $as_echo_n "(cached) " >&6
24517 gcc_cv_as_section_has_align
=no
24518 if test $in_tree_gas = yes; then
24519 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24520 then gcc_cv_as_section_has_align
=yes
24522 elif test x
$gcc_cv_as != x
; then
24523 $as_echo '.section lto_test,"dr0"' > conftest.s
24524 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24531 gcc_cv_as_section_has_align
=yes
24533 echo "configure: failed program was" >&5
24536 rm -f conftest.o conftest.s
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24540 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24542 if test x
$gcc_cv_as_section_has_align != xyes
; then
24543 case ",$enable_languages," in
24545 { $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
24546 $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;}
24550 # Test if the assembler supports the section flag 'e' for specifying
24551 # an excluded section.
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24553 $as_echo_n "checking assembler for .section with e... " >&6; }
24554 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24555 $as_echo_n "(cached) " >&6
24557 gcc_cv_as_section_has_e
=no
24558 if test $in_tree_gas = yes; then
24559 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24560 then gcc_cv_as_section_has_e
=yes
24562 elif test x
$gcc_cv_as != x
; then
24563 $as_echo '.section foo1,"e"
24564 .byte 0,0,0,0' > conftest.s
24565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567 (eval $ac_try) 2>&5
24569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570 test $ac_status = 0; }; }
24572 gcc_cv_as_section_has_e
=yes
24574 echo "configure: failed program was" >&5
24577 rm -f conftest.o conftest.s
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24581 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24584 cat >>confdefs.h
<<_ACEOF
24585 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24592 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24593 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24594 $as_echo_n "(cached) " >&6
24596 gcc_cv_as_ix86_filds
=no
24597 if test x
$gcc_cv_as != x
; then
24598 $as_echo 'filds mem; fists mem' > conftest.s
24599 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24601 (eval $ac_try) 2>&5
24603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24604 test $ac_status = 0; }; }
24606 gcc_cv_as_ix86_filds
=yes
24608 echo "configure: failed program was" >&5
24611 rm -f conftest.o conftest.s
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24615 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24616 if test $gcc_cv_as_ix86_filds = yes; then
24618 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24623 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24624 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24625 $as_echo_n "(cached) " >&6
24627 gcc_cv_as_ix86_fildq
=no
24628 if test x
$gcc_cv_as != x
; then
24629 $as_echo 'fildq mem; fistpq mem' > conftest.s
24630 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24632 (eval $ac_try) 2>&5
24634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24635 test $ac_status = 0; }; }
24637 gcc_cv_as_ix86_fildq
=yes
24639 echo "configure: failed program was" >&5
24642 rm -f conftest.o conftest.s
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24646 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24647 if test $gcc_cv_as_ix86_fildq = yes; then
24649 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24654 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24655 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24656 $as_echo_n "(cached) " >&6
24658 gcc_cv_as_ix86_cmov_sun_syntax
=no
24659 if test x
$gcc_cv_as != x
; then
24660 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663 (eval $ac_try) 2>&5
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; }
24668 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24670 echo "configure: failed program was" >&5
24673 rm -f conftest.o conftest.s
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24677 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24678 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24680 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24685 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24686 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24689 gcc_cv_as_ix86_ffreep
=no
24690 if test x
$gcc_cv_as != x
; then
24691 $as_echo 'ffreep %st(1)' > conftest.s
24692 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24694 (eval $ac_try) 2>&5
24696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24697 test $ac_status = 0; }; }
24699 gcc_cv_as_ix86_ffreep
=yes
24701 echo "configure: failed program was" >&5
24704 rm -f conftest.o conftest.s
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24708 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24709 if test $gcc_cv_as_ix86_ffreep = yes; then
24711 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24716 $as_echo_n "checking assembler for .quad directive... " >&6; }
24717 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24718 $as_echo_n "(cached) " >&6
24720 gcc_cv_as_ix86_quad
=no
24721 if test x
$gcc_cv_as != x
; then
24722 $as_echo '.quad 0' > conftest.s
24723 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24725 (eval $ac_try) 2>&5
24727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24728 test $ac_status = 0; }; }
24730 gcc_cv_as_ix86_quad
=yes
24732 echo "configure: failed program was" >&5
24735 rm -f conftest.o conftest.s
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24739 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24740 if test $gcc_cv_as_ix86_quad = yes; then
24742 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24747 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24748 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24749 $as_echo_n "(cached) " >&6
24751 gcc_cv_as_ix86_sahf
=no
24752 if test x
$gcc_cv_as != x
; then
24755 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24757 (eval $ac_try) 2>&5
24759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24760 test $ac_status = 0; }; }
24762 gcc_cv_as_ix86_sahf
=yes
24764 echo "configure: failed program was" >&5
24767 rm -f conftest.o conftest.s
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24771 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24772 if test $gcc_cv_as_ix86_sahf = yes; then
24774 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24779 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24780 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24781 $as_echo_n "(cached) " >&6
24783 gcc_cv_as_ix86_interunit_movq
=no
24784 if test x
$gcc_cv_as != x
; then
24787 movq %rax, %xmm0' > conftest.s
24788 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790 (eval $ac_try) 2>&5
24792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793 test $ac_status = 0; }; }
24795 gcc_cv_as_ix86_interunit_movq
=yes
24797 echo "configure: failed program was" >&5
24800 rm -f conftest.o conftest.s
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24804 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24807 cat >>confdefs.h
<<_ACEOF
24808 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24813 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24814 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24815 $as_echo_n "(cached) " >&6
24817 gcc_cv_as_ix86_hle
=no
24818 if test x
$gcc_cv_as != x
; then
24819 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24820 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24822 (eval $ac_try) 2>&5
24824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24825 test $ac_status = 0; }; }
24827 gcc_cv_as_ix86_hle
=yes
24829 echo "configure: failed program was" >&5
24832 rm -f conftest.o conftest.s
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24836 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24837 if test $gcc_cv_as_ix86_hle = yes; then
24839 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24844 $as_echo_n "checking assembler for swap suffix... " >&6; }
24845 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24846 $as_echo_n "(cached) " >&6
24848 gcc_cv_as_ix86_swap
=no
24849 if test x
$gcc_cv_as != x
; then
24850 $as_echo 'movl.s %esp, %ebp' > conftest.s
24851 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24853 (eval $ac_try) 2>&5
24855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24856 test $ac_status = 0; }; }
24858 gcc_cv_as_ix86_swap
=yes
24860 echo "configure: failed program was" >&5
24863 rm -f conftest.o conftest.s
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24867 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24868 if test $gcc_cv_as_ix86_swap = yes; then
24870 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24875 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24876 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24877 $as_echo_n "(cached) " >&6
24879 gcc_cv_as_ix86_diff_sect_delta
=no
24880 if test x
$gcc_cv_as != x
; then
24881 $as_echo '.section .rodata
24887 .L2: nop' > conftest.s
24888 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24890 (eval $ac_try) 2>&5
24892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24893 test $ac_status = 0; }; }
24895 gcc_cv_as_ix86_diff_sect_delta
=yes
24897 echo "configure: failed program was" >&5
24900 rm -f conftest.o conftest.s
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24904 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24905 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24907 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24911 # These two are used unconditionally by i386.[ch]; it is to be defined
24912 # to 1 if the feature is present, 0 otherwise.
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24914 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24915 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24916 $as_echo_n "(cached) " >&6
24918 gcc_cv_as_ix86_gotoff_in_data
=no
24919 if test $in_tree_gas = yes; then
24920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24921 then gcc_cv_as_ix86_gotoff_in_data
=yes
24923 elif test x
$gcc_cv_as != x
; then
24928 .long .L0@GOTOFF' > conftest.s
24929 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24931 (eval $ac_try) 2>&5
24933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24934 test $ac_status = 0; }; }
24936 gcc_cv_as_ix86_gotoff_in_data
=yes
24938 echo "configure: failed program was" >&5
24941 rm -f conftest.o conftest.s
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24945 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24948 cat >>confdefs.h
<<_ACEOF
24949 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24954 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24955 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24956 $as_echo_n "(cached) " >&6
24958 gcc_cv_as_ix86_rep_lock_prefix
=no
24959 if test x
$gcc_cv_as != x
; then
24960 $as_echo 'rep movsl
24965 lock addl %edi, (%eax,%esi)
24966 lock orl $0, (%esp)' > conftest.s
24967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24969 (eval $ac_try) 2>&5
24971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24972 test $ac_status = 0; }; }
24974 gcc_cv_as_ix86_rep_lock_prefix
=yes
24976 echo "configure: failed program was" >&5
24979 rm -f conftest.o conftest.s
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24983 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24984 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24986 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24991 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24992 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24993 $as_echo_n "(cached) " >&6
24995 gcc_cv_as_ix86_tlsgdplt
=no
24996 if test x
$gcc_cv_as != x
; then
24997 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24998 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25000 (eval $ac_try) 2>&5
25002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25003 test $ac_status = 0; }; }
25005 if test x
$gcc_cv_ld != x \
25006 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25007 gcc_cv_as_ix86_tlsgdplt
=yes
25011 echo "configure: failed program was" >&5
25014 rm -f conftest.o conftest.s
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25018 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25019 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25021 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25026 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25027 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25028 $as_echo_n "(cached) " >&6
25030 gcc_cv_as_ix86_tlsldmplt
=no
25031 if test x
$gcc_cv_as != x
; then
25033 call tls_ld@tlsldmplt' > conftest.s
25034 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25036 (eval $ac_try) 2>&5
25038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25039 test $ac_status = 0; }; }
25041 if test x
$gcc_cv_ld != x \
25042 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25043 gcc_cv_as_ix86_tlsldmplt
=yes
25047 echo "configure: failed program was" >&5
25050 rm -f conftest.o conftest.s
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25054 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25055 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25057 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25065 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25066 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25067 $as_echo_n "(cached) " >&6
25069 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25070 if test $in_tree_gas = yes; then
25071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25072 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25074 elif test x
$gcc_cv_as != x
; then
25076 addl r15 = @ltoffx(x#), gp
25078 ld8.mov r16 = [r15], x#' > conftest.s
25079 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25081 (eval $ac_try) 2>&5
25083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25084 test $ac_status = 0; }; }
25086 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25088 echo "configure: failed program was" >&5
25091 rm -f conftest.o conftest.s
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25095 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25096 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25098 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25106 *-*-aix*) conftest_s
=' .machine "pwr5"
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25111 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25112 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25113 $as_echo_n "(cached) " >&6
25115 gcc_cv_as_machine_directive
=no
25116 if test x
$gcc_cv_as != x
; then
25117 $as_echo ' .machine ppc7400' > conftest.s
25118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25120 (eval $ac_try) 2>&5
25122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123 test $ac_status = 0; }; }
25125 gcc_cv_as_machine_directive
=yes
25127 echo "configure: failed program was" >&5
25130 rm -f conftest.o conftest.s
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25134 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25136 if test x
$gcc_cv_as_machine_directive != xyes
; then
25137 echo "*** This target requires an assembler supporting \".machine\"" >&2
25138 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25139 test x
$build = x
$target && exit 1
25143 *) conftest_s
=' .machine power4
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25149 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25150 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25151 $as_echo_n "(cached) " >&6
25153 gcc_cv_as_powerpc_mfcrf
=no
25154 if test $in_tree_gas = yes; then
25155 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25156 then gcc_cv_as_powerpc_mfcrf
=yes
25158 elif test x
$gcc_cv_as != x
; then
25159 $as_echo "$conftest_s" > conftest.s
25160 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25162 (eval $ac_try) 2>&5
25164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25165 test $ac_status = 0; }; }
25167 gcc_cv_as_powerpc_mfcrf
=yes
25169 echo "configure: failed program was" >&5
25172 rm -f conftest.o conftest.s
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25176 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25177 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25179 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25184 *-*-aix*) conftest_s
=' .machine "pwr5"
25187 *) conftest_s
=' .machine power5
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25193 $as_echo_n "checking assembler for popcntb support... " >&6; }
25194 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25195 $as_echo_n "(cached) " >&6
25197 gcc_cv_as_powerpc_popcntb
=no
25198 if test $in_tree_gas = yes; then
25199 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25200 then gcc_cv_as_powerpc_popcntb
=yes
25202 elif test x
$gcc_cv_as != x
; then
25203 $as_echo "$conftest_s" > conftest.s
25204 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25206 (eval $ac_try) 2>&5
25208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25209 test $ac_status = 0; }; }
25211 gcc_cv_as_powerpc_popcntb
=yes
25213 echo "configure: failed program was" >&5
25216 rm -f conftest.o conftest.s
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25220 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25221 if test $gcc_cv_as_powerpc_popcntb = yes; then
25223 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25228 *-*-aix*) conftest_s
=' .machine "pwr5x"
25231 *) conftest_s
=' .machine power5
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25237 $as_echo_n "checking assembler for fp round support... " >&6; }
25238 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25239 $as_echo_n "(cached) " >&6
25241 gcc_cv_as_powerpc_fprnd
=no
25242 if test $in_tree_gas = yes; then
25243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25244 then gcc_cv_as_powerpc_fprnd
=yes
25246 elif test x
$gcc_cv_as != x
; then
25247 $as_echo "$conftest_s" > conftest.s
25248 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25250 (eval $ac_try) 2>&5
25252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25253 test $ac_status = 0; }; }
25255 gcc_cv_as_powerpc_fprnd
=yes
25257 echo "configure: failed program was" >&5
25260 rm -f conftest.o conftest.s
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25264 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25265 if test $gcc_cv_as_powerpc_fprnd = yes; then
25267 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25272 *-*-aix*) conftest_s
=' .machine "pwr6"
25275 *) conftest_s
=' .machine power6
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25281 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25282 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25283 $as_echo_n "(cached) " >&6
25285 gcc_cv_as_powerpc_mfpgpr
=no
25286 if test $in_tree_gas = yes; then
25287 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25288 then gcc_cv_as_powerpc_mfpgpr
=yes
25290 elif test x
$gcc_cv_as != x
; then
25291 $as_echo "$conftest_s" > conftest.s
25292 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25294 (eval $ac_try) 2>&5
25296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25297 test $ac_status = 0; }; }
25299 gcc_cv_as_powerpc_mfpgpr
=yes
25301 echo "configure: failed program was" >&5
25304 rm -f conftest.o conftest.s
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25308 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25309 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25311 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25316 *-*-aix*) conftest_s
=' .csect .text[PR]
25318 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25322 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25323 *) conftest_s
=' .text
25325 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25329 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25330 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25331 $as_echo_n "(cached) " >&6
25333 gcc_cv_as_powerpc_rel16
=no
25334 if test $in_tree_gas = yes; then
25335 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25336 then gcc_cv_as_powerpc_rel16
=yes
25338 elif test x
$gcc_cv_as != x
; then
25339 $as_echo "$conftest_s" > conftest.s
25340 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25342 (eval $ac_try) 2>&5
25344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25345 test $ac_status = 0; }; }
25347 gcc_cv_as_powerpc_rel16
=yes
25349 echo "configure: failed program was" >&5
25352 rm -f conftest.o conftest.s
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25356 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25357 if test $gcc_cv_as_powerpc_rel16 = yes; then
25359 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25364 *-*-aix*) conftest_s
=' .machine "pwr6"
25367 *) conftest_s
=' .machine power6
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25373 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25374 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25375 $as_echo_n "(cached) " >&6
25377 gcc_cv_as_powerpc_cmpb
=no
25378 if test $in_tree_gas = yes; then
25379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25380 then gcc_cv_as_powerpc_cmpb
=yes
25382 elif test x
$gcc_cv_as != x
; then
25383 $as_echo "$conftest_s" > conftest.s
25384 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -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 gcc_cv_as_powerpc_cmpb
=yes
25393 echo "configure: failed program was" >&5
25396 rm -f conftest.o conftest.s
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25400 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25401 if test $gcc_cv_as_powerpc_cmpb = yes; then
25403 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25408 *-*-aix*) conftest_s
=' .machine "pwr6"
25411 *) conftest_s
=' .machine power6
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25417 $as_echo_n "checking assembler for decimal float support... " >&6; }
25418 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25419 $as_echo_n "(cached) " >&6
25421 gcc_cv_as_powerpc_dfp
=no
25422 if test $in_tree_gas = yes; then
25423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25424 then gcc_cv_as_powerpc_dfp
=yes
25426 elif test x
$gcc_cv_as != x
; then
25427 $as_echo "$conftest_s" > conftest.s
25428 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25430 (eval $ac_try) 2>&5
25432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25433 test $ac_status = 0; }; }
25435 gcc_cv_as_powerpc_dfp
=yes
25437 echo "configure: failed program was" >&5
25440 rm -f conftest.o conftest.s
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25444 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25445 if test $gcc_cv_as_powerpc_dfp = yes; then
25447 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25452 *-*-aix*) conftest_s
=' .machine "pwr7"
25455 *) conftest_s
=' .machine power7
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25461 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25462 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25463 $as_echo_n "(cached) " >&6
25465 gcc_cv_as_powerpc_vsx
=no
25466 if test $in_tree_gas = yes; then
25467 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25468 then gcc_cv_as_powerpc_vsx
=yes
25470 elif test x
$gcc_cv_as != x
; then
25471 $as_echo "$conftest_s" > conftest.s
25472 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25474 (eval $ac_try) 2>&5
25476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25477 test $ac_status = 0; }; }
25479 gcc_cv_as_powerpc_vsx
=yes
25481 echo "configure: failed program was" >&5
25484 rm -f conftest.o conftest.s
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25488 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25489 if test $gcc_cv_as_powerpc_vsx = yes; then
25491 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25496 *-*-aix*) conftest_s
=' .machine "pwr7"
25499 *) conftest_s
=' .machine power7
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25505 $as_echo_n "checking assembler for popcntd support... " >&6; }
25506 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25507 $as_echo_n "(cached) " >&6
25509 gcc_cv_as_powerpc_popcntd
=no
25510 if test $in_tree_gas = yes; then
25511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25512 then gcc_cv_as_powerpc_popcntd
=yes
25514 elif test x
$gcc_cv_as != x
; then
25515 $as_echo "$conftest_s" > conftest.s
25516 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25518 (eval $ac_try) 2>&5
25520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25521 test $ac_status = 0; }; }
25523 gcc_cv_as_powerpc_popcntd
=yes
25525 echo "configure: failed program was" >&5
25528 rm -f conftest.o conftest.s
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25532 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25533 if test $gcc_cv_as_powerpc_popcntd = yes; then
25535 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25540 *-*-aix*) conftest_s
=' .machine "pwr8"
25541 .csect .text[PR]';;
25542 *) conftest_s
=' .machine power8
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25547 $as_echo_n "checking assembler for power8 support... " >&6; }
25548 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25549 $as_echo_n "(cached) " >&6
25551 gcc_cv_as_powerpc_power8
=no
25552 if test $in_tree_gas = yes; then
25553 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25554 then gcc_cv_as_powerpc_power8
=yes
25556 elif test x
$gcc_cv_as != x
; then
25557 $as_echo "$conftest_s" > conftest.s
25558 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25560 (eval $ac_try) 2>&5
25562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25563 test $ac_status = 0; }; }
25565 gcc_cv_as_powerpc_power8
=yes
25567 echo "configure: failed program was" >&5
25570 rm -f conftest.o conftest.s
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25574 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25575 if test $gcc_cv_as_powerpc_power8 = yes; then
25577 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25582 *-*-aix*) conftest_s
=' .csect .text[PR]
25584 *) conftest_s
=' .text
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25589 $as_echo_n "checking assembler for lwsync support... " >&6; }
25590 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25591 $as_echo_n "(cached) " >&6
25593 gcc_cv_as_powerpc_lwsync
=no
25594 if test $in_tree_gas = yes; then
25595 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25596 then gcc_cv_as_powerpc_lwsync
=yes
25598 elif test x
$gcc_cv_as != x
; then
25599 $as_echo "$conftest_s" > conftest.s
25600 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25602 (eval $ac_try) 2>&5
25604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25605 test $ac_status = 0; }; }
25607 gcc_cv_as_powerpc_lwsync
=yes
25609 echo "configure: failed program was" >&5
25612 rm -f conftest.o conftest.s
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25616 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25617 if test $gcc_cv_as_powerpc_lwsync = yes; then
25619 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25624 *-*-aix*) conftest_s
=' .machine "476"
25627 *) conftest_s
=' .machine "476"
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25633 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25634 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25635 $as_echo_n "(cached) " >&6
25637 gcc_cv_as_powerpc_dci
=no
25638 if test $in_tree_gas = yes; then
25639 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25640 then gcc_cv_as_powerpc_dci
=yes
25642 elif test x
$gcc_cv_as != x
; then
25643 $as_echo "$conftest_s" > conftest.s
25644 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25646 (eval $ac_try) 2>&5
25648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25649 test $ac_status = 0; }; }
25651 gcc_cv_as_powerpc_dci
=yes
25653 echo "configure: failed program was" >&5
25656 rm -f conftest.o conftest.s
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25660 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25661 if test $gcc_cv_as_powerpc_dci = yes; then
25663 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25668 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25669 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25670 $as_echo_n "(cached) " >&6
25672 gcc_cv_as_powerpc_gnu_attribute
=no
25673 if test $in_tree_gas = yes; then
25674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25675 then gcc_cv_as_powerpc_gnu_attribute
=yes
25677 elif test x
$gcc_cv_as != x
; then
25678 $as_echo '.gnu_attribute 4,1' > conftest.s
25679 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25681 (eval $ac_try) 2>&5
25683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25684 test $ac_status = 0; }; }
25686 gcc_cv_as_powerpc_gnu_attribute
=yes
25688 echo "configure: failed program was" >&5
25691 rm -f conftest.o conftest.s
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25695 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25696 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25698 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25703 $as_echo_n "checking assembler for tls marker support... " >&6; }
25704 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25705 $as_echo_n "(cached) " >&6
25707 gcc_cv_as_powerpc_tls_markers
=no
25708 if test $in_tree_gas = yes; then
25709 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25710 then gcc_cv_as_powerpc_tls_markers
=yes
25712 elif test x
$gcc_cv_as != x
; then
25713 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25714 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25716 (eval $ac_try) 2>&5
25718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25719 test $ac_status = 0; }; }
25721 gcc_cv_as_powerpc_tls_markers
=yes
25723 echo "configure: failed program was" >&5
25726 rm -f conftest.o conftest.s
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25730 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25731 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25733 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25740 $as_echo_n "checking assembler for .ref support... " >&6; }
25741 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25742 $as_echo_n "(cached) " >&6
25744 gcc_cv_as_aix_ref
=no
25745 if test $in_tree_gas = yes; then
25746 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25747 then gcc_cv_as_aix_ref
=yes
25749 elif test x
$gcc_cv_as != x
; then
25750 $as_echo ' .csect stuff[rw]
25756 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25758 (eval $ac_try) 2>&5
25760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25761 test $ac_status = 0; }; }
25763 gcc_cv_as_aix_ref
=yes
25765 echo "configure: failed program was" >&5
25768 rm -f conftest.o conftest.s
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25772 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25773 if test $gcc_cv_as_aix_ref = yes; then
25775 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25784 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25785 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25786 $as_echo_n "(cached) " >&6
25788 gcc_cv_as_mips_explicit_relocs
=no
25789 if test $in_tree_gas = yes; then
25790 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25791 then gcc_cv_as_mips_explicit_relocs
=yes
25793 elif test x
$gcc_cv_as != x
; then
25794 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25795 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25797 (eval $ac_try) 2>&5
25799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25800 test $ac_status = 0; }; }
25802 gcc_cv_as_mips_explicit_relocs
=yes
25804 echo "configure: failed program was" >&5
25807 rm -f conftest.o conftest.s
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25811 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25812 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25813 if test x
$target_cpu_default = x
25814 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25815 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25819 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25820 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25821 $as_echo_n "(cached) " >&6
25823 gcc_cv_as_mips_no_shared
=no
25824 if test $in_tree_gas = yes; then
25825 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25826 then gcc_cv_as_mips_no_shared
=yes
25828 elif test x
$gcc_cv_as != x
; then
25829 $as_echo 'nop' > conftest.s
25830 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25832 (eval $ac_try) 2>&5
25834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25835 test $ac_status = 0; }; }
25837 gcc_cv_as_mips_no_shared
=yes
25839 echo "configure: failed program was" >&5
25842 rm -f conftest.o conftest.s
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25846 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25847 if test $gcc_cv_as_mips_no_shared = yes; then
25849 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25854 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25855 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25856 $as_echo_n "(cached) " >&6
25858 gcc_cv_as_mips_gnu_attribute
=no
25859 if test $in_tree_gas = yes; then
25860 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25861 then gcc_cv_as_mips_gnu_attribute
=yes
25863 elif test x
$gcc_cv_as != x
; then
25864 $as_echo '.gnu_attribute 4,1' > conftest.s
25865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25867 (eval $ac_try) 2>&5
25869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25870 test $ac_status = 0; }; }
25872 gcc_cv_as_mips_gnu_attribute
=yes
25874 echo "configure: failed program was" >&5
25877 rm -f conftest.o conftest.s
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25881 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25882 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25884 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25889 $as_echo_n "checking assembler for .micromips support... " >&6; }
25890 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25891 $as_echo_n "(cached) " >&6
25893 gcc_cv_as_micromips_support
=no
25894 if test x
$gcc_cv_as != x
; then
25895 $as_echo '.set micromips' > conftest.s
25896 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25898 (eval $ac_try) 2>&5
25900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25901 test $ac_status = 0; }; }
25903 gcc_cv_as_micromips_support
=yes
25905 echo "configure: failed program was" >&5
25908 rm -f conftest.o conftest.s
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25912 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25913 if test $gcc_cv_as_micromips_support = yes; then
25915 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25920 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25921 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25922 $as_echo_n "(cached) " >&6
25924 gcc_cv_as_mips_dtprelword
=no
25925 if test $in_tree_gas = yes; then
25926 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25927 then gcc_cv_as_mips_dtprelword
=yes
25929 elif test x
$gcc_cv_as != x
; then
25930 $as_echo '.section .tdata,"awT",@progbits
25934 .dtprelword x+0x8000' > conftest.s
25935 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25937 (eval $ac_try) 2>&5
25939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25940 test $ac_status = 0; }; }
25942 gcc_cv_as_mips_dtprelword
=yes
25944 echo "configure: failed program was" >&5
25947 rm -f conftest.o conftest.s
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25951 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25952 if test $gcc_cv_as_mips_dtprelword = yes; then
25954 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25959 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25960 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25961 $as_echo_n "(cached) " >&6
25963 gcc_cv_as_mips_dspr1_mult
=no
25964 if test x
$gcc_cv_as != x
; then
25965 $as_echo ' .set mips32r2
25973 multu $ac3,$4,$5' > conftest.s
25974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25976 (eval $ac_try) 2>&5
25978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25979 test $ac_status = 0; }; }
25981 gcc_cv_as_mips_dspr1_mult
=yes
25983 echo "configure: failed program was" >&5
25986 rm -f conftest.o conftest.s
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25990 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25991 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25993 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25998 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25999 gcc_cv_as_ld_jalr_reloc
=no
26000 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26001 if test $in_tree_ld = yes ; then
26002 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 \
26003 && test $in_tree_ld_is_elf = yes; then
26004 gcc_cv_as_ld_jalr_reloc
=yes
26006 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26007 echo ' .ent x' > conftest.s
26008 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26009 echo ' ld $25,%call16(y)($28)' >> conftest.s
26010 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26011 echo '1: jalr $25' >> conftest.s
26012 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26013 echo '1: jalr $25' >> conftest.s
26014 echo ' .end x' >> conftest.s
26015 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26016 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26017 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26018 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26019 gcc_cv_as_ld_jalr_reloc
=yes
26025 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26026 if test x
$target_cpu_default = x
; then
26027 target_cpu_default
=MASK_RELAX_PIC_CALLS
26029 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26033 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26036 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26037 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26038 $as_echo_n "(cached) " >&6
26040 gcc_cv_ld_mips_personality_relaxation
=no
26041 if test $in_tree_ld = yes ; then
26042 if test "$gcc_cv_gld_major_version" -eq 2 \
26043 -a "$gcc_cv_gld_minor_version" -ge 21 \
26044 -o "$gcc_cv_gld_major_version" -gt 2; then
26045 gcc_cv_ld_mips_personality_relaxation
=yes
26047 elif test x
$gcc_cv_as != x \
26048 -a x
$gcc_cv_ld != x \
26049 -a x
$gcc_cv_readelf != x
; then
26050 cat > conftest.s
<<EOF
26052 .cfi_personality 0x80,indirect_ptr
26059 .section .data,"aw",@progbits
26063 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26064 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26065 if $gcc_cv_readelf -d conftest
2>&1 \
26066 |
grep TEXTREL
> /dev
/null
2>&1; then
26068 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26069 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26072 gcc_cv_ld_mips_personality_relaxation
=yes
26076 rm -f conftest.s conftest.o conftest
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26079 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26080 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26082 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26087 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26088 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26089 $as_echo_n "(cached) " >&6
26091 gcc_cv_as_mips_nan
=no
26092 if test x
$gcc_cv_as != x
; then
26093 $as_echo '' > conftest.s
26094 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26096 (eval $ac_try) 2>&5
26098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26099 test $ac_status = 0; }; }
26101 gcc_cv_as_mips_nan
=yes
26103 echo "configure: failed program was" >&5
26106 rm -f conftest.o conftest.s
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26110 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26111 if test $gcc_cv_as_mips_nan = yes; then
26113 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26116 if test x
$gcc_cv_as_mips_nan = xno \
26117 && test x
$with_nan != x
; then
26118 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26123 # Mips and HP-UX need the GNU assembler.
26124 # Linux on IA64 might be able to use the Intel assembler.
26127 mips
*-*-* |
*-*-hpux* )
26128 if test x
$gas_flag = xyes \
26129 ||
test x
"$host" != x
"$build" \
26130 ||
test ! -x "$gcc_cv_as" \
26131 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26134 echo "*** This configuration requires the GNU assembler" >&2
26140 # ??? Not all targets support dwarf2 debug_line, even within a version
26141 # of gas. Moreover, we need to emit a valid instruction to trigger any
26142 # info to the output file. So, as supported targets are added to gas 2.11,
26143 # add some instruction here to (also) show we expect this might work.
26144 # ??? Once 2.11 is released, probably need to add first known working
26145 # version to the per-target configury.
26146 case "$cpu_type" in
26147 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26148 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26159 if test x
"$insn" != x
; then
26161 .file 1 \"conftest.s\"
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26165 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26166 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26167 $as_echo_n "(cached) " >&6
26169 gcc_cv_as_dwarf2_debug_line
=no
26170 if test $in_tree_gas = yes; then
26171 if test $in_tree_gas_is_elf = yes \
26172 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26173 then gcc_cv_as_dwarf2_debug_line
=yes
26175 elif test x
$gcc_cv_as != x
; then
26176 $as_echo "$conftest_s" > conftest.s
26177 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26179 (eval $ac_try) 2>&5
26181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26182 test $ac_status = 0; }; }
26184 if test x
$gcc_cv_objdump != x \
26185 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26186 |
grep debug_line
> /dev
/null
2>&1; then
26187 gcc_cv_as_dwarf2_debug_line
=yes
26190 echo "configure: failed program was" >&5
26193 rm -f conftest.o conftest.s
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26197 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26200 # The .debug_line file table must be in the exact order that
26201 # we specified the files, since these indices are also used
26202 # by DW_AT_decl_file. Approximate this test by testing if
26203 # the assembler bitches if the same index is assigned twice.
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26205 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26206 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26207 $as_echo_n "(cached) " >&6
26209 gcc_cv_as_dwarf2_file_buggy
=no
26210 if test x
$gcc_cv_as != x
; then
26211 $as_echo ' .file 1 "foo.s"
26212 .file 1 "bar.s"' > conftest.s
26213 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26215 (eval $ac_try) 2>&5
26217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26218 test $ac_status = 0; }; }
26220 gcc_cv_as_dwarf2_file_buggy
=yes
26222 echo "configure: failed program was" >&5
26225 rm -f conftest.o conftest.s
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26229 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26232 if test $gcc_cv_as_dwarf2_debug_line = yes \
26233 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26235 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26240 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26241 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26242 $as_echo_n "(cached) " >&6
26244 gcc_cv_as_gdwarf2_flag
=no
26245 if test $in_tree_gas = yes; then
26246 if test $in_tree_gas_is_elf = yes \
26247 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26248 then gcc_cv_as_gdwarf2_flag
=yes
26250 elif test x
$gcc_cv_as != x
; then
26251 $as_echo "$insn" > conftest.s
26252 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26254 (eval $ac_try) 2>&5
26256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26257 test $ac_status = 0; }; }
26259 gcc_cv_as_gdwarf2_flag
=yes
26261 echo "configure: failed program was" >&5
26264 rm -f conftest.o conftest.s
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26268 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26269 if test $gcc_cv_as_gdwarf2_flag = yes; then
26271 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26276 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26277 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26278 $as_echo_n "(cached) " >&6
26280 gcc_cv_as_gstabs_flag
=no
26281 if test $in_tree_gas = yes; then
26282 if test $in_tree_gas_is_elf = yes \
26283 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26284 then gcc_cv_as_gstabs_flag
=yes
26286 elif test x
$gcc_cv_as != x
; then
26287 $as_echo "$insn" > conftest.s
26288 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26290 (eval $ac_try) 2>&5
26292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26293 test $ac_status = 0; }; }
26295 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26296 # and warns about it, but still exits successfully. So check for
26298 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26300 (eval $ac_try) 2>&5
26302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26303 test $ac_status = 0; }; }
26305 else gcc_cv_as_gstabs_flag
=yes
26308 echo "configure: failed program was" >&5
26311 rm -f conftest.o conftest.s
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26315 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26316 if test $gcc_cv_as_gstabs_flag = yes; then
26318 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26323 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26324 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26325 $as_echo_n "(cached) " >&6
26327 gcc_cv_as_debug_prefix_map_flag
=no
26328 if test $in_tree_gas = yes; then
26329 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26330 then gcc_cv_as_debug_prefix_map_flag
=yes
26332 elif test x
$gcc_cv_as != x
; then
26333 $as_echo "$insn" > conftest.s
26334 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26336 (eval $ac_try) 2>&5
26338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26339 test $ac_status = 0; }; }
26341 gcc_cv_as_debug_prefix_map_flag
=yes
26343 echo "configure: failed program was" >&5
26346 rm -f conftest.o conftest.s
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26350 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26351 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26353 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26359 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26360 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26361 $as_echo_n "(cached) " >&6
26363 gcc_cv_as_lcomm_with_alignment
=no
26364 if test x
$gcc_cv_as != x
; then
26365 $as_echo '.lcomm bar,4,16' > conftest.s
26366 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26368 (eval $ac_try) 2>&5
26370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26371 test $ac_status = 0; }; }
26373 gcc_cv_as_lcomm_with_alignment
=yes
26375 echo "configure: failed program was" >&5
26378 rm -f conftest.o conftest.s
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26382 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26383 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26385 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26389 # Check whether --enable-gnu-unique-object was given.
26390 if test "${enable_gnu_unique_object+set}" = set; then :
26391 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26393 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26394 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26398 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26399 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26400 $as_echo_n "(cached) " >&6
26402 gcc_cv_as_gnu_unique_object
=no
26403 if test $in_tree_gas = yes; then
26404 if test $in_tree_gas_is_elf = yes \
26405 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26406 then gcc_cv_as_gnu_unique_object
=yes
26408 elif test x
$gcc_cv_as != x
; then
26409 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26410 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26412 (eval $ac_try) 2>&5
26414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26415 test $ac_status = 0; }; }
26417 gcc_cv_as_gnu_unique_object
=yes
26419 echo "configure: failed program was" >&5
26422 rm -f conftest.o conftest.s
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26426 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26427 if test $gcc_cv_as_gnu_unique_object = yes; then
26428 # We need to unquote above to to use the definition from config.gcc.
26429 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26430 if test x
$host = x
$build -a x
$host = x
$target &&
26431 ldd
--version 2>/dev
/null
&&
26432 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26433 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26434 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26435 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26436 if test "$glibcnum" -ge 2011 ; then
26437 enable_gnu_unique_object
=yes
26443 if test x
$enable_gnu_unique_object = xyes
; then
26445 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26450 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26451 if test "${gcc_cv_as_line_zero+set}" = set; then :
26452 $as_echo_n "(cached) " >&6
26454 gcc_cv_as_line_zero
=no
26455 if test $in_tree_gas = yes; then
26456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26457 then gcc_cv_as_line_zero
=yes
26459 elif test "x$gcc_cv_as" != x
; then
26460 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26461 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26463 (eval $ac_try) 2>&5
26465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26466 test $ac_status = 0; }; } &&
26467 test "x`cat conftest.out`" = x
26469 gcc_cv_as_line_zero
=yes
26471 echo "configure: failed program was" >&5
26473 echo "configure: error output was" >&5
26474 cat conftest.out
>&5
26476 rm -f conftest.o conftest.s conftest.out
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26480 $as_echo "$gcc_cv_as_line_zero" >&6; }
26481 if test "x$gcc_cv_as_line_zero" = xyes
; then
26483 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26488 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26489 gcc_cv_ld_eh_frame_hdr
=no
26490 if test $in_tree_ld = yes ; then
26491 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 \
26492 && test $in_tree_ld_is_elf = yes; then
26493 gcc_cv_ld_eh_frame_hdr
=yes
26495 elif test x
$gcc_cv_ld != x
; then
26496 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26497 # Check if linker supports --eh-frame-hdr option
26498 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26499 gcc_cv_ld_eh_frame_hdr
=yes
26504 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26505 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26506 gcc_cv_ld_eh_frame_hdr
=yes
26513 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26515 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26519 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26522 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26523 gcc_cv_ld_eh_frame_ciev3
=no
26524 if test $in_tree_ld = yes ; then
26525 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
26526 && test $in_tree_ld_is_elf = yes; then
26527 gcc_cv_ld_eh_frame_ciev3
=yes
26529 elif test x
$gcc_cv_ld != x
; then
26530 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26531 gcc_cv_ld_eh_frame_ciev3
=yes
26532 if test 0"$ld_date" -lt 20040513; then
26533 if test -n "$ld_date"; then
26534 # If there was date string, but was earlier than 2004-05-13, fail
26535 gcc_cv_ld_eh_frame_ciev3
=no
26536 elif test "$ld_vers_major" -lt 2; then
26537 gcc_cv_ld_eh_frame_ciev3
=no
26538 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26539 gcc_cv_ld_eh_frame_ciev3
=no
26545 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26546 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26547 gcc_cv_ld_eh_frame_ciev3
=yes
26554 cat >>confdefs.h
<<_ACEOF
26555 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26559 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26562 $as_echo_n "checking linker position independent executable support... " >&6; }
26564 if test $in_tree_ld = yes ; then
26565 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 \
26566 && test $in_tree_ld_is_elf = yes; then
26569 elif test x
$gcc_cv_ld != x
; then
26570 # Check if linker supports -pie option
26571 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26575 if test x
"$gcc_cv_ld_pie" = xyes
; then
26577 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26581 $as_echo "$gcc_cv_ld_pie" >&6; }
26583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26584 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26585 gcc_cv_ld_eh_gc_sections
=no
26586 if test $in_tree_ld = yes ; then
26587 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 \
26588 && test $in_tree_ld_is_elf = yes; then
26589 gcc_cv_ld_eh_gc_sections
=yes
26591 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26592 cat > conftest.s
<<EOF
26595 .type _start, @function
26598 .size _start, .-_start
26599 .section .text.foo,"ax",@progbits
26600 .type foo, @function
26604 .section .gcc_except_table.foo,"a",@progbits
26607 .section .eh_frame,"a",@progbits
26610 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26611 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26612 |
grep "gc-sections option ignored" > /dev
/null
; then
26613 gcc_cv_ld_eh_gc_sections
=no
26614 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26615 |
grep gcc_except_table
> /dev
/null
; then
26616 gcc_cv_ld_eh_gc_sections
=yes
26617 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26618 if test x
$gcc_cv_as_comdat_group != xyes
; then
26619 gcc_cv_ld_eh_gc_sections
=no
26620 cat > conftest.s
<<EOF
26623 .type _start, @function
26626 .size _start, .-_start
26627 .section .gnu.linkonce.t.foo,"ax",@progbits
26628 .type foo, @function
26632 .section .gcc_except_table.foo,"a",@progbits
26635 .section .eh_frame,"a",@progbits
26638 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26639 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26640 |
grep "gc-sections option ignored" > /dev
/null
; then
26641 gcc_cv_ld_eh_gc_sections
=no
26642 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26643 |
grep gcc_except_table
> /dev
/null
; then
26644 gcc_cv_ld_eh_gc_sections
=yes
26650 rm -f conftest.s conftest.o conftest
26654 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26655 gcc_cv_ld_eh_gc_sections
=no
26658 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26660 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26664 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26667 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26668 gcc_cv_ld_eh_gc_sections_bug
=no
26669 if test $in_tree_ld = yes ; then
26670 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 \
26671 && test $in_tree_ld_is_elf = yes; then
26672 gcc_cv_ld_eh_gc_sections_bug
=yes
26674 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
26675 gcc_cv_ld_eh_gc_sections_bug
=yes
26676 cat > conftest.s
<<EOF
26679 .type _start, @function
26682 .size _start, .-_start
26683 .section .text.startup.foo,"ax",@progbits
26684 .type foo, @function
26688 .section .gcc_except_table.foo,"a",@progbits
26691 .section .eh_frame,"a",@progbits
26694 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26695 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26696 |
grep "gc-sections option ignored" > /dev
/null
; then
26698 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26699 |
grep gcc_except_table
> /dev
/null
; then
26700 gcc_cv_ld_eh_gc_sections_bug
=no
26703 rm -f conftest.s conftest.o conftest
26705 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26707 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26711 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26718 $as_echo_n "checking linker --as-needed support... " >&6; }
26719 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26720 $as_echo_n "(cached) " >&6
26722 gcc_cv_ld_as_needed
=no
26723 gcc_cv_ld_as_needed_option
='--as-needed'
26724 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
26725 if test $in_tree_ld = yes ; then
26726 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 \
26727 && test $in_tree_ld_is_elf = yes; then
26728 gcc_cv_ld_as_needed
=yes
26730 elif test x
$gcc_cv_ld != x
; then
26731 # Check if linker supports --as-needed and --no-as-needed options
26732 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26733 gcc_cv_ld_as_needed
=yes
26736 # Solaris 2 ld always supports -z ignore/-z record.
26738 gcc_cv_ld_as_needed
=yes
26739 gcc_cv_ld_as_needed_option
="-z ignore"
26740 gcc_cv_ld_no_as_needed_option
="-z record"
26745 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26746 # dl_iterate_phdr, i.e. since Solaris 11.
26748 *-*-solaris2.1
[1-9]*)
26750 i?
86-*-* | x86_64-
*-*)
26751 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26752 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26753 gcc_cv_ld_as_needed
=no
26759 gcc_cv_ld_as_needed
=no
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26765 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26766 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26768 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26771 cat >>confdefs.h
<<_ACEOF
26772 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26776 cat >>confdefs.h
<<_ACEOF
26777 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26782 case "$target:$tm_file" in
26783 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26786 emul_name
="-melf64lppc"
26789 emul_name
="-melf64ppc"
26792 emul_name
="-melf64ppc_fbsd"
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26796 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26797 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26798 $as_echo_n "(cached) " >&6
26800 gcc_cv_ld_no_dot_syms
=no
26801 if test x
"$ld_is_gold" = xyes
; then
26802 gcc_cv_ld_no_dot_syms
=yes
26803 elif test $in_tree_ld = yes ; then
26804 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
26805 gcc_cv_ld_no_dot_syms
=yes
26807 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26808 cat > conftest1.s
<<EOF
26812 cat > conftest2.s
<<EOF
26813 .section ".opd","aw"
26816 .type foo,@function
26818 .quad .LEfoo,.TOC.@tocbase,0
26824 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26825 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26826 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26827 gcc_cv_ld_no_dot_syms
=yes
26829 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26834 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26835 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26837 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26842 $as_echo_n "checking linker large toc support... " >&6; }
26843 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26844 $as_echo_n "(cached) " >&6
26846 gcc_cv_ld_large_toc
=no
26847 if test x
"$ld_is_gold" = xyes
; then
26848 gcc_cv_ld_large_toc
=yes
26849 elif test $in_tree_ld = yes ; then
26850 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
26851 gcc_cv_ld_large_toc
=yes
26853 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26854 cat > conftest.s
<<EOF
26855 .section ".tbss","awT",@nobits
26861 addis 9,13,ie0@got@tprel@ha
26862 ld 9,ie0@got@tprel@l(9)
26864 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26865 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26866 gcc_cv_ld_large_toc
=yes
26868 rm -f conftest conftest.o conftest.s
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26873 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26874 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26876 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26885 $as_echo_n "checking linker large toc support... " >&6; }
26886 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26887 $as_echo_n "(cached) " >&6
26889 gcc_cv_ld_large_toc
=no
26890 if test x
$gcc_cv_as != x
; then
26891 cat > conftest.s
<<EOF
26901 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26902 gcc_cv_ld_large_toc
=yes
26904 rm -f conftest conftest.o conftest.s
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26909 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26910 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26912 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26919 $as_echo_n "checking linker --build-id support... " >&6; }
26920 if test "${gcc_cv_ld_buildid+set}" = set; then :
26921 $as_echo_n "(cached) " >&6
26923 gcc_cv_ld_buildid
=no
26924 if test $in_tree_ld = yes ; then
26925 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26926 "$gcc_cv_gld_minor_version" -ge 18 -o \
26927 "$gcc_cv_gld_major_version" -gt 2 \
26928 && test $in_tree_ld_is_elf = yes; then
26929 gcc_cv_ld_buildid
=yes
26931 elif test x
$gcc_cv_ld != x
; then
26932 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26933 gcc_cv_ld_buildid
=yes
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26938 $as_echo "$gcc_cv_ld_buildid" >&6; }
26939 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26941 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26945 # Check whether --enable-linker-build-id was given.
26946 if test "${enable_linker_build_id+set}" = set; then :
26947 enableval
=$enable_linker_build_id;
26949 enable_linker_build_id
=no
26953 if test x
"$enable_linker_build_id" = xyes
; then
26954 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26956 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26960 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26964 # In binutils 2.21, GNU ld gained support for new emulations fully
26965 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26967 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26968 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26969 $as_echo_n "(cached) " >&6
26971 gcc_cv_ld_sol2_emulation
=no
26972 if test $in_tree_ld = yes ; then
26973 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26974 "$gcc_cv_gld_minor_version" -ge 21 -o \
26975 "$gcc_cv_gld_major_version" -gt 2 \
26976 && test $in_tree_ld_is_elf = yes; then
26977 gcc_cv_ld_sol2_emulation
=yes
26979 elif test x
$gcc_cv_ld != x
; then
26980 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26981 grep _sol2
> /dev
/null
; then
26982 gcc_cv_ld_sol2_emulation
=yes
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26987 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26988 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26990 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26995 $as_echo_n "checking linker --sysroot support... " >&6; }
26996 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26997 $as_echo_n "(cached) " >&6
26999 gcc_cv_ld_sysroot
=no
27000 if test $in_tree_ld = yes ; then
27001 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
27002 gcc_cv_ld_sysroot
=yes
27004 elif test x
$gcc_cv_ld != x
; then
27005 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27006 gcc_cv_ld_sysroot
=yes
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27011 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27012 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27014 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27018 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27019 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27020 && test "$prefix" != "NONE"; then
27022 cat >>confdefs.h
<<_ACEOF
27023 #define PREFIX_INCLUDE_DIR "$prefix/include"
27028 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
27029 if test "x$with_headers" != x
; then
27030 target_header_dir
=$with_headers
27031 elif test "x$with_sysroot" = x
; then
27032 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
27033 elif test "x$with_build_sysroot" != "x"; then
27034 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
27035 elif test "x$with_sysroot" = xyes
; then
27036 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
27038 target_header_dir
="${with_sysroot}${native_system_header_dir}"
27041 target_header_dir
=${native_system_header_dir}
27044 # Test for stack protector support in target C library.
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27046 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27047 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27048 $as_echo_n "(cached) " >&6
27050 gcc_cv_libc_provides_ssp
=no
27052 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27053 # glibc 2.4 and later provides __stack_chk_fail and
27054 # either __stack_chk_guard, or TLS access to stack guard canary.
27055 if test -f $target_header_dir/features.h \
27056 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27057 $target_header_dir/features.h
> /dev
/null
; then
27058 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
27059 $target_header_dir/features.h
> /dev
/null
; then
27060 gcc_cv_libc_provides_ssp
=yes
27061 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
27062 $target_header_dir/features.h
> /dev
/null \
27063 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
27064 $target_header_dir/features.h
> /dev
/null
; then
27065 gcc_cv_libc_provides_ssp
=yes
27066 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27067 $target_header_dir/features.h
> /dev
/null
&& \
27068 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27069 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27070 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27071 gcc_cv_libc_provides_ssp
=yes
27073 # all versions of Bionic support stack protector
27074 elif test -f $target_header_dir/sys
/cdefs.h \
27075 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27076 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27077 gcc_cv_libc_provides_ssp
=yes
27081 # Avoid complicated tests (see
27082 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27083 # simply assert that glibc does provide this, which is true for all
27084 # realistically usable GNU/Hurd configurations.
27085 gcc_cv_libc_provides_ssp
=yes;;
27086 *-*-darwin* |
*-*-freebsd*)
27087 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27088 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27089 gcc_cv_libc_provides_ssp
=yes
27091 echo "no __stack_chk_fail on this target"
27095 *) gcc_cv_libc_provides_ssp
=no
;;
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27099 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27101 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27103 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27107 # Test for <sys/sdt.h> on the target.
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27110 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27112 if test -f $target_header_dir/sys
/sdt.h
; then
27115 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27119 $as_echo "$have_sys_sdt_h" >&6; }
27121 # Check if TFmode long double should be used by default or not.
27122 # Some glibc targets used DFmode long double, but with glibc 2.4
27123 # and later they can use TFmode.
27125 powerpc
*-*-linux* | \
27126 sparc
*-*-linux* | \
27130 # Check whether --with-long-double-128 was given.
27131 if test "${with_long_double_128+set}" = set; then :
27132 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27134 gcc_cv_target_ldbl128
=no
27135 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27136 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27137 && gcc_cv_target_ldbl128
=yes
27143 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27145 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27150 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27151 gcc_cv_target_dl_iterate_phdr
=unknown
27153 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27154 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27155 # libdl there, both complicating its use and breaking compatibility
27156 # between Solaris 10 updates.
27157 *-*-solaris2.1
[1-9]*)
27158 # <link.h> needs both a dl_iterate_phdr declaration and support for
27159 # compilation with largefile support.
27160 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27161 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27162 gcc_cv_target_dl_iterate_phdr
=yes
27164 gcc_cv_target_dl_iterate_phdr
=no
27169 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27171 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27175 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27177 # We no longer support different GC mechanisms. Emit an error if
27178 # the user configures with --with-gc.
27180 # Check whether --with-gc was given.
27181 if test "${with_gc+set}" = set; then :
27182 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27186 # Libraries to use on the host. This will normally be set by the top
27187 # level Makefile. Here we simply capture the value for our Makefile.
27188 if test -z "${HOST_LIBS+set}"; then
27193 # Use the system's zlib library.
27195 zlibinc
="-I\$(srcdir)/../zlib"
27197 # Check whether --with-system-zlib was given.
27198 if test "${with_system_zlib+set}" = set; then :
27199 withval
=$with_system_zlib; zlibdir
=
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27209 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27210 # Check whether --enable-maintainer-mode was given.
27211 if test "${enable_maintainer_mode+set}" = set; then :
27212 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27219 $as_echo "$maintainer_mode" >&6; }
27221 if test "$maintainer_mode" = "yes"; then
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27229 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27230 # Check whether --enable-link-mutex was given.
27231 if test "${enable_link_mutex+set}" = set; then :
27232 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27238 $as_echo "$do_link_mutex" >&6; }
27240 if test "$do_link_mutex" = "yes"; then
27243 DO_LINK_MUTEX
=false
27251 # Make empty files to contain the specs and options for each language.
27252 # Then add #include lines to for a compiler that has specs and/or options.
27258 # These (without "all_") are set in each config-lang.in.
27259 # `language' must be a single word so is spelled singularly.
27262 all_outputs
='Makefile'
27263 # List of language makefile fragments.
27264 all_lang_makefrags
=
27265 # Additional files for gengtype
27266 all_gtfiles
="$target_gtfiles"
27268 # These are the languages that are set in --enable-languages,
27269 # and are available in the GCC tree.
27270 all_selected_languages
=
27272 # Add the language fragments.
27273 # Languages are added via two mechanisms. Some information must be
27274 # recorded in makefile variables, these are defined in config-lang.in.
27275 # We accumulate them and plug them into the main Makefile.
27276 # The other mechanism is a set of hooks for each of the main targets
27277 # like `clean', `install', etc.
27279 language_hooks
="Make-hooks"
27281 for lang
in ${srcdir}/*/config-lang.
in
27283 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27285 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27286 if test "x$lang_alias" = x
27288 echo "$lang doesn't set \$language." 1>&2
27291 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27292 subdirs
="$subdirs $subdir"
27294 # $gcc_subdir is where the gcc integration files are to be found
27295 # for a language, both for internal compiler purposes (compiler
27296 # sources implementing front-end to GCC tree converters), and for
27297 # build infrastructure purposes (Make-lang.in, etc.)
27299 # This will be <subdir> (relative to $srcdir) if a line like
27300 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27301 # is found in <langdir>/config-lang.in, and will remain <langdir>
27304 # Except for the language alias (fetched above), the regular
27305 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27306 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27307 # only this and the language alias.
27309 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27310 if [ "$gcc_subdir" = "" ]; then
27311 gcc_subdir
="$subdir"
27314 case ",$enable_languages," in
27316 all_selected_languages
="$all_selected_languages $lang_alias"
27317 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27318 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27329 .
${srcdir}/$gcc_subdir/config-lang.
in
27330 if test "x$language" = x
27332 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27337 case ",$enable_languages," in
27338 *,$lang_alias,*) ;;
27340 for i
in $subdir_requires; do
27341 test -f "${srcdir}/$i/config-lang.in" && continue
27349 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27350 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27351 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27352 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27354 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27355 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27357 all_languages
="$all_languages $language"
27358 all_compilers
="$all_compilers $compilers"
27359 all_outputs
="$all_outputs $outputs"
27360 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27361 case ",$enable_languages," in
27364 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27374 for language
in $all_selected_languages
27376 check_languages
="$check_languages check-$language"
27379 # We link each language in with a set of hooks, reached indirectly via
27380 # lang.${target}. Only do so for selected languages.
27384 target_list
="all.cross start.encap rest.encap tags \
27385 install-common install-man install-info install-pdf install-html dvi \
27386 pdf html uninstall info man srcextra srcman srcinfo \
27387 mostlyclean clean distclean maintainer-clean install-plugin"
27389 for t
in $target_list
27392 for lang
in $all_selected_languages
27396 echo "lang.$t: $x" >> Make-hooks
27400 # Option include files
27403 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27404 option_includes
="option-includes.mk"
27413 echo "dir ." > .gdbinit
27414 echo "dir ${srcdir}" >> .gdbinit
27415 if test x
$gdb_needs_out_file_path = xyes
27417 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27419 if test "x$subdirs" != x
; then
27422 echo "dir ${srcdir}/$s" >> .gdbinit
27425 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27426 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27428 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27432 # Find a directory in which to install a shared libgcc.
27434 # Check whether --enable-version-specific-runtime-libs was given.
27435 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27436 enableval
=$enable_version_specific_runtime_libs;
27440 # Substitute configuration variables
27504 if test x
${build} = x
${host} ; then
27505 if test x
${host} = x
${target} ; then
27506 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27508 echo "Links are now set up to build a cross-compiler" 1>&2
27509 echo " from ${host} to ${target}." 1>&2
27512 if test x
${host} = x
${target} ; then
27513 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27514 echo " for ${target}." 1>&2
27516 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27517 echo " from ${host} to ${target}." 1>&2
27529 if test "x${CLOOGLIBS}" != "x" ; then
27531 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27535 # Check for plugin support
27536 # Check whether --enable-plugin was given.
27537 if test "${enable_plugin+set}" = set; then :
27538 enableval
=$enable_plugin; enable_plugin
=$enableval
27540 enable_plugin
=yes; default_plugin
=yes
27548 if test x
$build = x
$host; then
27549 export_sym_check
="nm${exeext} -g"
27550 elif test x
$host = x
$target; then
27551 export_sym_check
="$gcc_cv_nm -g"
27557 if test x
$build = x
$host; then
27558 export_sym_check
="objdump${exeext} -T"
27559 elif test x
$host = x
$target; then
27560 export_sym_check
="$gcc_cv_objdump -T"
27567 if test x
"$enable_plugin" = x
"yes"; then
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27570 $as_echo_n "checking for exported symbols... " >&6; }
27571 if test "x$export_sym_check" != x
; then
27572 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27573 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27574 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27575 : # No need to use a flag
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27577 $as_echo "yes" >&6; }
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27580 $as_echo "yes" >&6; }
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27582 $as_echo_n "checking for -rdynamic... " >&6; }
27583 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27584 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27585 plugin_rdynamic
=yes
27586 pluginlibs
="-rdynamic"
27591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27592 $as_echo "$plugin_rdynamic" >&6; }
27595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27596 $as_echo "unable to check" >&6; }
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27602 $as_echo_n "checking for library containing dlopen... " >&6; }
27603 if test "${ac_cv_search_dlopen+set}" = set; then :
27604 $as_echo_n "(cached) " >&6
27606 ac_func_search_save_LIBS
=$LIBS
27607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27608 /* end confdefs.h. */
27610 /* Override any GCC internal prototype to avoid an error.
27611 Use char because int might match the return type of a GCC
27612 builtin and then its argument prototype would still apply. */
27625 for ac_lib
in '' dl
; do
27626 if test -z "$ac_lib"; then
27627 ac_res
="none required"
27630 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27632 if ac_fn_c_try_link
"$LINENO"; then :
27633 ac_cv_search_dlopen
=$ac_res
27635 rm -f core conftest.err conftest.
$ac_objext \
27637 if test "${ac_cv_search_dlopen+set}" = set; then :
27641 if test "${ac_cv_search_dlopen+set}" = set; then :
27644 ac_cv_search_dlopen
=no
27646 rm conftest.
$ac_ext
27647 LIBS
=$ac_func_search_save_LIBS
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27650 $as_echo "$ac_cv_search_dlopen" >&6; }
27651 ac_res
=$ac_cv_search_dlopen
27652 if test "$ac_res" != no
; then :
27653 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27657 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27658 pluginlibs
="$pluginlibs -ldl"
27662 # Check that we can build shared objects with -fPIC -shared
27663 saved_LDFLAGS
="$LDFLAGS"
27664 saved_CFLAGS
="$CFLAGS"
27667 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27668 CFLAGS
="$CFLAGS -fPIC"
27669 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27672 CFLAGS
="$CFLAGS -fPIC"
27673 LDFLAGS
="$LDFLAGS -fPIC -shared"
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27677 $as_echo_n "checking for -fPIC -shared... " >&6; }
27678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27679 /* end confdefs.h. */
27689 if ac_fn_c_try_link
"$LINENO"; then :
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27691 $as_echo "yes" >&6; }; have_pic_shared
=yes
27693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27694 $as_echo "no" >&6; }; have_pic_shared
=no
27696 rm -f core conftest.err conftest.
$ac_objext \
27697 conftest
$ac_exeext conftest.
$ac_ext
27698 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27702 LDFLAGS
="$saved_LDFLAGS"
27703 CFLAGS
="$saved_CFLAGS"
27705 # If plugin support had been requested but not available, fail.
27706 if test x
"$enable_plugin" = x
"no" ; then
27707 if test x
"$default_plugin" != x
"yes"; then
27709 Building GCC with plugin support requires a host that supports
27710 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27717 if test x
"$enable_plugin" = x
"yes"; then
27719 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27724 # Enable --enable-host-shared
27725 # Check whether --enable-host-shared was given.
27726 if test "${enable_host_shared+set}" = set; then :
27727 enableval
=$enable_host_shared; PICFLAG
=-fPIC
27736 # Check whether --enable-libquadmath-support was given.
27737 if test "${enable_libquadmath_support+set}" = set; then :
27738 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27740 ENABLE_LIBQUADMATH_SUPPORT
=yes
27743 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27745 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27750 # Specify what hash style to use by default.
27752 # Check whether --with-linker-hash-style was given.
27753 if test "${with_linker_hash_style+set}" = set; then :
27754 withval
=$with_linker_hash_style; case x
"$withval" in
27756 LINKER_HASH_STYLE
=sysv
27759 LINKER_HASH_STYLE
=gnu
27762 LINKER_HASH_STYLE
=both
27765 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27769 LINKER_HASH_STYLE
=''
27772 if test x
"${LINKER_HASH_STYLE}" != x
; then
27774 cat >>confdefs.h
<<_ACEOF
27775 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27780 # Configure the subdirectories
27781 # AC_CONFIG_SUBDIRS($subdirs)
27783 # Create the Makefile
27784 # and configure language subdirectories
27785 ac_config_files
="$ac_config_files $all_outputs"
27788 ac_config_commands
="$ac_config_commands default"
27790 cat >confcache
<<\_ACEOF
27791 # This file is a shell script that caches the results of configure
27792 # tests run on this system so they can be shared between configure
27793 # scripts and configure runs, see configure's option --config-cache.
27794 # It is not useful on other systems. If it contains results you don't
27795 # want to keep, you may remove or edit it.
27797 # config.status only pays attention to the cache file if you give it
27798 # the --recheck option to rerun configure.
27800 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27801 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27802 # following values.
27806 # The following way of writing the cache mishandles newlines in values,
27807 # but we know of no workaround that is simple, portable, and efficient.
27808 # So, we kill variables containing newlines.
27809 # Ultrix sh set writes to stderr and can't be redirected directly,
27810 # and sets the high bit in the cache file unless we assign to the vars.
27812 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27813 eval ac_val
=\$
$ac_var
27817 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27818 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27821 _ | IFS | as_nl
) ;; #(
27822 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27823 *) { eval $ac_var=; unset $ac_var;} ;;
27829 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27830 *${as_nl}ac_space
=\
*)
27831 # `set' does not quote correctly, so add quotes: double-quote
27832 # substitution turns \\\\ into \\, and sed turns \\ into \.
27835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27838 # `set' quotes correctly as required by POSIX, so do not add quotes.
27839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27850 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27852 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27853 if test -w "$cache_file"; then
27854 test "x$cache_file" != "x/dev/null" &&
27855 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27856 $as_echo "$as_me: updating cache $cache_file" >&6;}
27857 cat confcache
>$cache_file
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27860 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27865 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27866 # Let make expand exec_prefix.
27867 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27869 DEFS
=-DHAVE_CONFIG_H
27873 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27874 # 1. Remove the extension, and $U if already installed.
27875 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27876 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27877 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27878 # will be set to the directory where LIBOBJS objects are built.
27879 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27880 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27882 LIBOBJS
=$ac_libobjs
27884 LTLIBOBJS
=$ac_ltlibobjs
27889 : ${CONFIG_STATUS=./config.status}
27891 ac_clean_files_save
=$ac_clean_files
27892 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27894 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27896 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27898 # Generated by $as_me.
27899 # Run this file to recreate the current configuration.
27900 # Compiler output produced by configure, useful for debugging
27901 # configure, is in config.log if it exists.
27904 ac_cs_recheck=false
27907 SHELL=\${CONFIG_SHELL-$SHELL}
27910 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27911 ## -------------------- ##
27912 ## M4sh Initialization. ##
27913 ## -------------------- ##
27915 # Be more Bourne compatible
27916 DUALCASE
=1; export DUALCASE
# for MKS sh
27917 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27920 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27921 # is contrary to our usage. Disable this feature.
27922 alias -g '${1+"$@"}'='"$@"'
27923 setopt NO_GLOB_SUBST
27925 case `(set -o) 2>/dev/null` in #(
27937 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27938 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27939 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27941 # Prefer a ksh shell builtin over an external printf program on Solaris,
27942 # but without wasting forks for bash or zsh.
27943 if test -z "$BASH_VERSION$ZSH_VERSION" \
27944 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27945 as_echo='print
-r --'
27946 as_echo_n='print
-rn --'
27947 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27948 as_echo='printf %s
\n'
27949 as_echo_n='printf %s
'
27951 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27952 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27953 as_echo_n='/usr
/ucb
/echo -n'
27955 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27956 as_echo_n_body='eval
27960 expr "X$arg" : "X\\(.*\\)$as_nl";
27961 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27963 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27965 export as_echo_n_body
27966 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27968 export as_echo_body
27969 as_echo='sh
-c $as_echo_body as_echo
'
27972 # The user is always right.
27973 if test "${PATH_SEPARATOR+set}" != set; then
27975 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27976 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27983 # We need space, tab and new line, in precisely that order. Quoting is
27984 # there to prevent editors from complaining about space-tab.
27985 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27986 # splitting by setting IFS to empty value.)
27989 # Find who we are. Look in the path if we contain no directory separator.
27991 *[\\/]* ) as_myself=$0 ;;
27992 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27993 for as_dir in $PATH
27996 test -z "$as_dir" && as_dir=.
27997 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28003 # We did not find ourselves, most probably we were run as `sh COMMAND'
28004 # in which case we are not to be found in the path.
28005 if test "x$as_myself" = x
; then
28008 if test ! -f "$as_myself"; then
28009 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28013 # Unset variables that we do not need and which cause bugs (e.g. in
28014 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28015 # suppresses any "Segmentation fault" message there. '((' could
28016 # trigger a bug in pdksh 5.2.14.
28017 for as_var
in BASH_ENV ENV MAIL MAILPATH
28018 do eval test x\
${$as_var+set} = xset \
28019 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28032 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28035 # as_fn_error ERROR [LINENO LOG_FD]
28036 # ---------------------------------
28037 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28038 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28039 # script with status $?, using 1 if that was 0.
28042 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28044 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28045 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28047 $as_echo "$as_me: error: $1" >&2
28048 as_fn_exit
$as_status
28052 # as_fn_set_status STATUS
28053 # -----------------------
28054 # Set $? to STATUS, without forking.
28055 as_fn_set_status
()
28058 } # as_fn_set_status
28060 # as_fn_exit STATUS
28061 # -----------------
28062 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28066 as_fn_set_status
$1
28072 # Portably unset VAR.
28075 { eval $1=; unset $1;}
28077 as_unset
=as_fn_unset
28078 # as_fn_append VAR VALUE
28079 # ----------------------
28080 # Append the text in VALUE to the end of the definition contained in VAR. Take
28081 # advantage of any shell optimizations that allow amortized linear growth over
28082 # repeated appends, instead of the typical quadratic growth present in naive
28084 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28085 eval 'as_fn_append ()
28096 # as_fn_arith ARG...
28097 # ------------------
28098 # Perform arithmetic evaluation on the ARGs, and store the result in the
28099 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28100 # must be portable across $(()) and expr.
28101 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28102 eval 'as_fn_arith ()
28109 as_val
=`expr "$@" || test $? -eq 1`
28114 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28115 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28121 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28122 as_basename
=basename
28127 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28133 as_me
=`$as_basename -- "$0" ||
28134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28135 X"$0" : 'X\(//\)$' \| \
28136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28138 sed '/^.*\/\([^/][^/]*\)\/*$/{
28152 # Avoid depending upon Character Ranges.
28153 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28154 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28155 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28156 as_cr_digits
='0123456789'
28157 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28159 ECHO_C
= ECHO_N
= ECHO_T
=
28160 case `echo -n x` in #(((((
28162 case `echo 'xy\c'` in
28163 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28165 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28172 rm -f conf$$ conf$$.exe conf$$.
file
28173 if test -d conf$$.dir
; then
28174 rm -f conf$$.dir
/conf$$.
file
28177 mkdir conf$$.dir
2>/dev
/null
28179 if (echo >conf$$.
file) 2>/dev
/null
; then
28180 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28182 # ... but there are two gotchas:
28183 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28184 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28185 # In both cases, we have to default to `cp -p'.
28186 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28188 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28196 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28197 rmdir conf$$.dir
2>/dev
/null
28202 # Create "$as_dir" as a directory, including parents if necessary.
28207 -*) as_dir
=.
/$as_dir;;
28209 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28213 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28214 *) as_qdir
=$as_dir;;
28216 as_dirs
="'$as_qdir' $as_dirs"
28217 as_dir
=`$as_dirname -- "$as_dir" ||
28218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28219 X"$as_dir" : 'X\(//\)[^/]' \| \
28220 X"$as_dir" : 'X\(//\)$' \| \
28221 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28222 $as_echo X"$as_dir" |
28223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28227 /^X\(\/\/\)[^/].*/{
28240 test -d "$as_dir" && break
28242 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28243 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28247 if mkdir
-p .
2>/dev
/null
; then
28248 as_mkdir_p
='mkdir -p "$as_dir"'
28250 test -d .
/-p && rmdir .
/-p
28254 if test -x / >/dev
/null
2>&1; then
28255 as_test_x
='test -x'
28257 if ls -dL / >/dev
/null
2>&1; then
28264 if test -d "$1"; then
28270 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28271 ???[sx]*):;;*)false;;esac;fi
28275 as_executable_p
=$as_test_x
28277 # Sed expression to map a string onto a valid CPP name.
28278 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28280 # Sed expression to map a string onto a valid variable name.
28281 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28285 ## ----------------------------------- ##
28286 ## Main body of $CONFIG_STATUS script. ##
28287 ## ----------------------------------- ##
28289 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28292 # Save the log message, to keep $0 and so on meaningful, and to
28293 # report actual input values of CONFIG_FILES etc. instead of their
28294 # values after options handling.
28296 This file was extended by $as_me, which was
28297 generated by GNU Autoconf 2.64. Invocation command line was
28299 CONFIG_FILES = $CONFIG_FILES
28300 CONFIG_HEADERS = $CONFIG_HEADERS
28301 CONFIG_LINKS = $CONFIG_LINKS
28302 CONFIG_COMMANDS = $CONFIG_COMMANDS
28305 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28310 case $ac_config_files in *"
28311 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28314 case $ac_config_headers in *"
28315 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28320 # Files that config.status was made for.
28321 config_files="$ac_config_files"
28322 config_headers="$ac_config_headers"
28323 config_commands="$ac_config_commands"
28327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28329 \`$as_me' instantiates files and other configuration actions
28330 from templates according to the current configuration. Unless the files
28331 and actions are specified as TAGs, all are instantiated by default.
28333 Usage: $0 [OPTION]... [TAG]...
28335 -h, --help print this help, then exit
28336 -V, --version print version number and configuration settings, then exit
28337 -q, --quiet, --silent
28338 do not print progress messages
28339 -d, --debug don't remove temporary files
28340 --recheck update $as_me by reconfiguring in the same conditions
28341 --file=FILE[:TEMPLATE]
28342 instantiate the configuration file FILE
28343 --header=FILE[:TEMPLATE]
28344 instantiate the configuration header FILE
28346 Configuration files:
28349 Configuration headers:
28352 Configuration commands:
28355 Report bugs to the package provider."
28358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28361 configured by $0, generated by GNU Autoconf 2.64,
28362 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28364 Copyright (C) 2009 Free Software Foundation, Inc.
28365 This config.status script is free software; the Free Software Foundation
28366 gives unlimited permission to copy, distribute and modify it."
28371 test -n "\$AWK" || AWK=awk
28374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28375 # The default lists apply if the user does not specify any file.
28381 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28382 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28393 # Handling of the options.
28394 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28396 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28397 $as_echo "$ac_cs_version"; exit ;;
28398 --debug |
--debu |
--deb |
--de |
--d |
-d )
28400 --file |
--fil |
--fi |
--f )
28403 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28405 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28406 ac_need_defaults
=false
;;
28407 --header |
--heade |
--head |
--hea )
28410 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28412 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28413 ac_need_defaults
=false
;;
28415 # Conflict between --help and --header
28416 as_fn_error
"ambiguous option: \`$1'
28417 Try \`$0 --help' for more information.";;
28418 --help |
--hel |
-h )
28419 $as_echo "$ac_cs_usage"; exit ;;
28420 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28421 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28424 # This is an error.
28425 -*) as_fn_error
"unrecognized option: \`$1'
28426 Try \`$0 --help' for more information." ;;
28428 *) as_fn_append ac_config_targets
" $1"
28429 ac_need_defaults
=false
;;
28435 ac_configure_extra_args
=
28437 if $ac_cs_silent; then
28439 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28444 if \$ac_cs_recheck; then
28445 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28447 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28448 CONFIG_SHELL='$SHELL'
28449 export CONFIG_SHELL
28454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28458 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28459 ## Running $as_me. ##
28465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28469 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28470 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28477 # Handling of arguments.
28478 for ac_config_target
in $ac_config_targets
28480 case $ac_config_target in
28481 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28482 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
28483 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
28484 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28485 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28486 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28487 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28488 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28490 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28495 # If the user did not use the arguments to specify the items to instantiate,
28496 # then the envvar interface is used. Set only those that are not.
28497 # We use the long form for the default assignment because of an extremely
28498 # bizarre bug on SunOS 4.1.3.
28499 if $ac_need_defaults; then
28500 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28501 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28502 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28505 # Have a temporary directory for convenience. Make it in the build tree
28506 # simply because there is no reason against having it here, and in addition,
28507 # creating and moving files from /tmp can sometimes cause problems.
28508 # Hook for its removal unless debugging.
28509 # Note that there is a small window in which the directory will not be cleaned:
28510 # after its creation but before its name has been assigned to `$tmp'.
28514 trap 'exit_status=$?
28515 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28517 trap 'as_fn_exit 1' 1 2 13 15
28519 # Create a (secure) tmp directory for tmp files.
28522 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28523 test -n "$tmp" && test -d "$tmp"
28526 tmp
=.
/conf$$
-$RANDOM
28527 (umask 077 && mkdir
"$tmp")
28528 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28530 # Set up the scripts for CONFIG_FILES section.
28531 # No need to generate them if there are no CONFIG_FILES.
28532 # This happens for instance with `./config.status config.h'.
28533 if test -n "$CONFIG_FILES"; then
28535 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28536 ac_cs_awk_getline
=:
28537 ac_cs_awk_pipe_init
=
28538 ac_cs_awk_read_file
='
28539 while ((getline aline < (F[key])) > 0)
28542 ac_cs_awk_pipe_fini
=
28544 ac_cs_awk_getline
=false
28545 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28546 ac_cs_awk_read_file
='
28548 print "cat " F[key] " &&"
28549 '$ac_cs_awk_pipe_init
28550 # The final `:' finishes the AND list.
28551 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28553 ac_cr
=`echo X | tr X '\015'`
28554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28555 # But we know of no other shell where ac_cr would be empty at this
28556 # point, so we can use a bashism as a fallback.
28557 if test "x$ac_cr" = x
; then
28558 eval ac_cr
=\$
\'\\r
\'
28560 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28564 ac_cs_awk_cr
=$ac_cr
28567 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28570 # Create commands to substitute file output variables.
28572 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28573 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28574 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28577 } >conf$
$files.sh
&&
28578 . .
/conf$
$files.sh ||
28579 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28580 rm -f conf$
$files.sh
28583 echo "cat >conf$$subs.awk <<_ACEOF" &&
28584 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28586 } >conf$$subs.sh ||
28587 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28588 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28590 for ac_last_try in false false false false false :; do
28591 . ./conf$$subs.sh ||
28592 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28594 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28595 if test $ac_delim_n = $ac_delim_num; then
28597 elif $ac_last_try; then
28598 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28600 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28603 rm -f conf$$subs.sh
28605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28606 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28610 s/^/S["/; s
/!.
*/"]=/
28620 s/\(.\{148\}\).*/\1/
28622 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28627 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28634 s/\(.\{148\}\).*/\1/
28636 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28640 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28645 ' <conf$$subs.awk | sed '
28650 ' >>$CONFIG_STATUS || ac_write_fail=1
28651 rm -f conf$$subs.awk
28652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28654 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28655 for (key in S) S_is_set[key] = 1
28657 \$ac_cs_awk_pipe_init
28661 nfields = split(line, field, "@
")
28663 len = length(field[1])
28664 for (i = 2; i < nfields; i++) {
28666 keylen = length(key)
28667 if (S_is_set[key]) {
28669 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28670 len += length(value) + length(field[++i])
28675 if (nfields == 3 && !substed) {
28677 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28678 \$ac_cs_awk_read_file
28684 \$ac_cs_awk_pipe_fini
28687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28688 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28689 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28692 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28693 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28696 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28697 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28698 # trailing colons and then remove the whole line if VPATH becomes empty
28699 # (actually we leave an empty line to preserve line numbers).
28700 if test "x
$srcdir" = x.; then
28701 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28702 s/:*\$(srcdir):*/:/
28703 s/:*\${srcdir}:*/:/
28705 s/^\([^=]*=[ ]*\):*/\1/
28711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28712 fi # test -n "$CONFIG_FILES"
28714 # Set up the scripts for CONFIG_HEADERS section.
28715 # No need to generate them if there are no CONFIG_HEADERS.
28716 # This happens for instance with `./config.status Makefile'.
28717 if test -n "$CONFIG_HEADERS"; then
28718 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28722 # Transform confdefs.h into an awk script `defines.awk', embedded as
28723 # here-document in config.status, that substitutes the proper values into
28724 # config.h.in to produce config.h.
28726 # Create a delimiter string that does not exist in confdefs.h, to ease
28727 # handling of long lines.
28729 for ac_last_try in false false :; do
28730 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28731 if test -z "$ac_t"; then
28733 elif $ac_last_try; then
28734 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28736 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28740 # For the awk script, D is an array of macro values keyed by name,
28741 # likewise P contains macro parameters if any. Preserve backslash
28742 # newline sequences.
28744 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28746 s/.\{148\}/&'"$ac_delim"'/g
28749 s/^[ ]*#[ ]*define[ ][ ]*/ /
28756 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28758 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28762 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28763 D["\
1"]=" \
3\\\\\\n
"\\/p
28765 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28770 s/.\{148\}/&'"$ac_delim"'/g
28775 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28778 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28780 ' <confdefs.h | sed '
28781 s/'"$ac_delim"'/"\\\
28782 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28785 for (key in D) D_is_set[key] = 1
28788 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28790 split(line, arg, " ")
28791 if (arg[1] == "#") {
28795 defundef
= substr
(arg
[1], 2)
28798 split(mac1
, mac2
, "(") #)
28800 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28801 if (D_is_set
[macro
]) {
28802 # Preserve the white space surrounding the "#".
28803 print prefix
"define", macro P
[macro
] D
[macro
]
28806 # Replace #undef with comments. This is necessary, for example,
28807 # in the case of _POSIX_SOURCE, which is predefined and required
28808 # on some systems where configure will not decide to define it.
28809 if (defundef
== "undef") {
28810 print
"/*", prefix defundef
, macro
, "*/"
28818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28819 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28820 fi # test -n "$CONFIG_HEADERS"
28823 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28828 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28830 case $ac_mode$ac_tag in
28832 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28833 :[FH
]-) ac_tag
=-:-;;
28834 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28851 -) ac_f
="$tmp/stdin";;
28852 *) # Look for the file first in the build tree, then in the source tree
28853 # (if the path is not absolute). The absolute path cannot be DOS-style,
28854 # because $ac_f cannot contain `:'.
28858 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28860 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28862 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28863 as_fn_append ac_file_inputs
" '$ac_f'"
28866 # Let's still pretend it is `configure' which instantiates (i.e., don't
28867 # use $as_me), people would be surprised to read:
28868 # /* config.h. Generated by config.status. */
28869 configure_input
='Generated from '`
28870 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28872 if test x
"$ac_file" != x-
; then
28873 configure_input
="$ac_file. $configure_input"
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28875 $as_echo "$as_me: creating $ac_file" >&6;}
28877 # Neutralize special characters interpreted by sed in replacement strings.
28878 case $configure_input in #(
28879 *\
&* |
*\|
* |
*\\* )
28880 ac_sed_conf_input
=`$as_echo "$configure_input" |
28881 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28882 *) ac_sed_conf_input
=$configure_input;;
28886 *:-:* |
*:-) cat >"$tmp/stdin" \
28887 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28892 ac_dir
=`$as_dirname -- "$ac_file" ||
28893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28894 X"$ac_file" : 'X\(//\)[^/]' \| \
28895 X"$ac_file" : 'X\(//\)$' \| \
28896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28897 $as_echo X"$ac_file" |
28898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28902 /^X\(\/\/\)[^/].*/{
28915 as_dir
="$ac_dir"; as_fn_mkdir_p
28919 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28921 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28922 # A ".." for each directory in $ac_dir_suffix.
28923 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28924 case $ac_top_builddir_sub in
28925 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28926 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28929 ac_abs_top_builddir
=$ac_pwd
28930 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28931 # for backward compatibility:
28932 ac_top_builddir
=$ac_top_build_prefix
28935 .
) # We are building in place.
28937 ac_top_srcdir
=$ac_top_builddir_sub
28938 ac_abs_top_srcdir
=$ac_pwd ;;
28939 [\\/]* | ?
:[\\/]* ) # Absolute name.
28940 ac_srcdir
=$srcdir$ac_dir_suffix;
28941 ac_top_srcdir
=$srcdir
28942 ac_abs_top_srcdir
=$srcdir ;;
28943 *) # Relative name.
28944 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28945 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28946 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28948 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28960 # If the template does not know about datarootdir, expand it.
28961 # FIXME: This hack should be removed a few years after 2.60.
28962 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28973 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28974 *datarootdir
*) ac_datarootdir_seen
=yes;;
28975 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28977 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28980 ac_datarootdir_hack='
28981 s&@datadir@&$datadir&g
28982 s&@docdir@&$docdir&g
28983 s&@infodir@&$infodir&g
28984 s&@localedir@&$localedir&g
28985 s&@mandir@&$mandir&g
28986 s&\\\${datarootdir}&$datarootdir&g' ;;
28990 # Neutralize VPATH when `$srcdir' = `.'.
28991 # Shell code in configure.ac might set extrasub.
28992 # FIXME: do we really want to maintain this feature?
28993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28994 ac_sed_extra="$ac_vpsub
28997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28999 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29000 s|@configure_input@|
$ac_sed_conf_input|
;t t
29001 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29002 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29003 s
&@srcdir@
&$ac_srcdir&;t t
29004 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29005 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29006 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29007 s
&@builddir@
&$ac_builddir&;t t
29008 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29009 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29010 $ac_datarootdir_hack
29012 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29013 if $ac_cs_awk_getline; then
29014 $AWK -f "$tmp/subs.
awk"
29016 $AWK -f "$tmp/subs.
awk" | $SHELL
29018 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29020 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29021 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29022 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29024 which seems to be undefined. Please make sure it is defined." >&5
29025 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29026 which seems to be undefined. Please make sure it is defined." >&2;}
29030 -) cat "$tmp/out" && rm -f "$tmp/out";;
29031 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29033 || as_fn_error "could not create $ac_file" "$LINENO" 5
29039 if test x"$ac_file" != x-; then
29041 $as_echo "/* $configure_input */" \
29042 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29043 } >"$tmp/config.h" \
29044 || as_fn_error "could not create $ac_file" "$LINENO" 5
29045 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29046 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29047 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29050 mv "$tmp/config.h" "$ac_file" \
29051 || as_fn_error "could not create $ac_file" "$LINENO" 5
29054 $as_echo "/* $configure_input */" \
29055 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29056 || as_fn_error "could not create -" "$LINENO" 5
29060 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29061 $as_echo "$as_me: executing $ac_file commands" >&6;}
29066 case $ac_file$ac_mode in
29067 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29069 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29070 for lang in $subdirs c-family common
29072 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29074 "as":F) chmod +x as ;;
29075 "collect-ld":F) chmod +x collect-ld ;;
29076 "nm":F) chmod +x nm ;;
29078 case ${CONFIG_HEADERS} in
29079 *auto-host.h:config.in*)
29082 # Make sure all the subdirs exist.
29083 for d in $subdirs doc build common c-family
29085 test -d $d || mkdir $d
29095 ac_clean_files=$ac_clean_files_save
29097 test $ac_write_fail = 0 ||
29098 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29101 # configure is writing to config.log, and then calls config.status.
29102 # config.status does its own redirection, appending to config.log.
29103 # Unfortunately, on DOS this fails, as config.log is still kept open
29104 # by configure, so config.status won't be able to
write to it
; its
29105 # output is simply discarded. So we exec the FD to /dev/null,
29106 # effectively closing config.log, so it can be properly (re)opened and
29107 # appended to by config.status. When coming back to configure, we
29108 # need to make the FD available again.
29109 if test "$no_create" != yes; then
29111 ac_config_status_args
=
29112 test "$silent" = yes &&
29113 ac_config_status_args
="$ac_config_status_args --quiet"
29115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29118 # would make configure fail if this is the last instruction.
29119 $ac_cs_success || as_fn_exit $?
29121 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29123 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}