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
881 enable_gather_detailed_mem_stats
893 with_native_system_header_dir
903 enable_sjlj_exceptions
905 enable_leading_mingw64_underscores
908 enable_win32_registry
914 enable_gnu_indirect_function
915 enable_initfini_array
917 enable_gnu_unique_object
918 enable_linker_build_id
922 enable_maintainer_mode
924 enable_version_specific_runtime_libs
927 enable_libquadmath_support
928 with_linker_hash_style
930 ac_precious_vars
='build_alias
951 # Initialize some variables set by options.
953 ac_init_version
=false
954 ac_unrecognized_opts
=
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
965 program_transform_name
=s
,x
,x
,
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir
='${exec_prefix}/bin'
980 sbindir
='${exec_prefix}/sbin'
981 libexecdir
='${exec_prefix}/libexec'
982 datarootdir
='${prefix}/share'
983 datadir
='${datarootdir}'
984 sysconfdir
='${prefix}/etc'
985 sharedstatedir
='${prefix}/com'
986 localstatedir
='${prefix}/var'
987 includedir
='${prefix}/include'
988 oldincludedir
='/usr/include'
989 docdir
='${datarootdir}/doc/${PACKAGE}'
990 infodir
='${datarootdir}/info'
995 libdir
='${exec_prefix}/lib'
996 localedir
='${datarootdir}/locale'
997 mandir
='${datarootdir}/man'
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
1005 eval $ac_prev=\
$ac_option
1011 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1017 case $ac_dashdash$ac_option in
1021 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1023 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1024 bindir
=$ac_optarg ;;
1026 -build |
--build |
--buil |
--bui |
--bu)
1027 ac_prev
=build_alias
;;
1028 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1029 build_alias
=$ac_optarg ;;
1031 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1032 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1033 ac_prev
=cache_file
;;
1034 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1035 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1036 cache_file
=$ac_optarg ;;
1038 --config-cache |
-C)
1039 cache_file
=config.cache
;;
1041 -datadir |
--datadir |
--datadi |
--datad)
1043 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1044 datadir
=$ac_optarg ;;
1046 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1047 |
--dataroo |
--dataro |
--datar)
1048 ac_prev
=datarootdir
;;
1049 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1050 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1051 datarootdir
=$ac_optarg ;;
1053 -disable-* |
--disable-*)
1054 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1057 as_fn_error
"invalid feature name: $ac_useropt"
1058 ac_useropt_orig
=$ac_useropt
1059 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_
$ac_useropt"
1064 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065 ac_unrecognized_sep
=', ';;
1067 eval enable_
$ac_useropt=no
;;
1069 -docdir |
--docdir |
--docdi |
--doc |
--do)
1071 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1072 docdir
=$ac_optarg ;;
1074 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1076 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1077 dvidir
=$ac_optarg ;;
1079 -enable-* |
--enable-*)
1080 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1083 as_fn_error
"invalid feature name: $ac_useropt"
1084 ac_useropt_orig
=$ac_useropt
1085 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_
$ac_useropt"
1090 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep
=', ';;
1093 eval enable_
$ac_useropt=\
$ac_optarg ;;
1095 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1096 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1097 |
--exec |
--exe |
--ex)
1098 ac_prev
=exec_prefix
;;
1099 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1100 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1101 |
--exec=* |
--exe=* |
--ex=*)
1102 exec_prefix
=$ac_optarg ;;
1104 -gas |
--gas |
--ga |
--g)
1105 # Obsolete; use --with-gas.
1108 -help |
--help |
--hel |
--he |
-h)
1109 ac_init_help
=long
;;
1110 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1111 ac_init_help
=recursive
;;
1112 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1113 ac_init_help
=short
;;
1115 -host |
--host |
--hos |
--ho)
1116 ac_prev
=host_alias
;;
1117 -host=* |
--host=* |
--hos=* |
--ho=*)
1118 host_alias
=$ac_optarg ;;
1120 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1122 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1124 htmldir
=$ac_optarg ;;
1126 -includedir |
--includedir |
--includedi |
--included |
--include \
1127 |
--includ |
--inclu |
--incl |
--inc)
1128 ac_prev
=includedir
;;
1129 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1130 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1131 includedir
=$ac_optarg ;;
1133 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1135 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1136 infodir
=$ac_optarg ;;
1138 -libdir |
--libdir |
--libdi |
--libd)
1140 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1141 libdir
=$ac_optarg ;;
1143 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1144 |
--libexe |
--libex |
--libe)
1145 ac_prev
=libexecdir
;;
1146 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1147 |
--libexe=* |
--libex=* |
--libe=*)
1148 libexecdir
=$ac_optarg ;;
1150 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1151 ac_prev
=localedir
;;
1152 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1153 localedir
=$ac_optarg ;;
1155 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1156 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1157 ac_prev
=localstatedir
;;
1158 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1159 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1160 localstatedir
=$ac_optarg ;;
1162 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1164 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1165 mandir
=$ac_optarg ;;
1167 -nfp |
--nfp |
--nf)
1168 # Obsolete; use --without-fp.
1171 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1172 |
--no-cr |
--no-c |
-n)
1175 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1176 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1179 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1180 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1181 |
--oldin |
--oldi |
--old |
--ol |
--o)
1182 ac_prev
=oldincludedir
;;
1183 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1184 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1185 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1186 oldincludedir
=$ac_optarg ;;
1188 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1190 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1191 prefix
=$ac_optarg ;;
1193 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1194 |
--program-pre |
--program-pr |
--program-p)
1195 ac_prev
=program_prefix
;;
1196 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1197 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1198 program_prefix
=$ac_optarg ;;
1200 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1201 |
--program-suf |
--program-su |
--program-s)
1202 ac_prev
=program_suffix
;;
1203 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1204 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1205 program_suffix
=$ac_optarg ;;
1207 -program-transform-name |
--program-transform-name \
1208 |
--program-transform-nam |
--program-transform-na \
1209 |
--program-transform-n |
--program-transform- \
1210 |
--program-transform |
--program-transfor \
1211 |
--program-transfo |
--program-transf \
1212 |
--program-trans |
--program-tran \
1213 |
--progr-tra |
--program-tr |
--program-t)
1214 ac_prev
=program_transform_name
;;
1215 -program-transform-name=* |
--program-transform-name=* \
1216 |
--program-transform-nam=* |
--program-transform-na=* \
1217 |
--program-transform-n=* |
--program-transform-=* \
1218 |
--program-transform=* |
--program-transfor=* \
1219 |
--program-transfo=* |
--program-transf=* \
1220 |
--program-trans=* |
--program-tran=* \
1221 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1222 program_transform_name
=$ac_optarg ;;
1224 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1226 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1227 pdfdir
=$ac_optarg ;;
1229 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1231 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1234 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1235 |
-silent |
--silent |
--silen |
--sile |
--sil)
1238 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1240 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1242 sbindir
=$ac_optarg ;;
1244 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1245 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1246 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1248 ac_prev
=sharedstatedir
;;
1249 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1250 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1251 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1253 sharedstatedir
=$ac_optarg ;;
1255 -site |
--site |
--sit)
1257 -site=* |
--site=* |
--sit=*)
1260 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1262 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1263 srcdir
=$ac_optarg ;;
1265 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1266 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1267 ac_prev
=sysconfdir
;;
1268 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1269 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1270 sysconfdir
=$ac_optarg ;;
1272 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1273 ac_prev
=target_alias
;;
1274 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1275 target_alias
=$ac_optarg ;;
1277 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1280 -version |
--version |
--versio |
--versi |
--vers |
-V)
1281 ac_init_version
=: ;;
1284 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1287 as_fn_error
"invalid package name: $ac_useropt"
1288 ac_useropt_orig
=$ac_useropt
1289 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1294 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295 ac_unrecognized_sep
=', ';;
1297 eval with_
$ac_useropt=\
$ac_optarg ;;
1299 -without-* |
--without-*)
1300 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1303 as_fn_error
"invalid package name: $ac_useropt"
1304 ac_useropt_orig
=$ac_useropt
1305 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1310 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311 ac_unrecognized_sep
=', ';;
1313 eval with_
$ac_useropt=no
;;
1316 # Obsolete; use --with-x.
1319 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1320 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1321 ac_prev
=x_includes
;;
1322 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1323 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1324 x_includes
=$ac_optarg ;;
1326 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1327 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1328 ac_prev
=x_libraries
;;
1329 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1330 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1331 x_libraries
=$ac_optarg ;;
1333 -*) as_fn_error
"unrecognized option: \`$ac_option'
1334 Try \`$0 --help' for more information."
1338 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 case $ac_envvar in #(
1341 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1342 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1344 eval $ac_envvar=\
$ac_optarg
1345 export $ac_envvar ;;
1348 # FIXME: should be removed in autoconf 3.0.
1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1358 if test -n "$ac_prev"; then
1359 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1360 as_fn_error
"missing argument to $ac_option"
1363 if test -n "$ac_unrecognized_opts"; then
1364 case $enable_option_checking in
1366 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1371 # Check all directory arguments for consistency.
1372 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1377 eval ac_val
=\$
$ac_var
1378 # Remove trailing slashes.
1381 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\
$ac_val;;
1384 # Be sure to have absolute directory names.
1386 [\\/$
]* | ?
:[\\/]* ) continue;;
1387 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1389 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1397 target
=$target_alias
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x
; then
1401 if test "x$build_alias" = x
; then
1402 cross_compiling
=maybe
1403 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1404 If a cross compiler is detected then cross compile mode will be used." >&2
1405 elif test "x$build_alias" != "x$host_alias"; then
1411 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1413 test "$silent" = yes && exec 6>/dev
/null
1416 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di
=`ls -di .` &&
1418 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1419 as_fn_error
"working directory cannot be determined"
1420 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1421 as_fn_error
"pwd does not report name of working directory"
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426 ac_srcdir_defaulted
=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir
=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$as_myself" : 'X\(//\)[^/]' \| \
1431 X"$as_myself" : 'X\(//\)$' \| \
1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1456 ac_srcdir_defaulted
=no
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1460 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1462 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1474 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476 for ac_var
in $ac_precious_vars; do
1477 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1479 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1484 # Report the --help message.
1486 if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
1490 \`configure' configures this package to adapt to many kinds of systems.
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE. See below for descriptions of some of the useful variables.
1497 Defaults for the options are specified in brackets.
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510 Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
1512 [$ac_default_prefix]
1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1521 For better control, use the options below.
1523 Fine tuning of the installation directories:
1524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1548 --program-prefix=PREFIX prepend PREFIX to installed program names
1549 --program-suffix=SUFFIX append SUFFIX to installed program names
1550 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1553 --build=BUILD configure
for building on BUILD
[guessed
]
1554 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1555 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1559 if test -n "$ac_init_help"; then
1564 --disable-option-checking ignore unrecognized
--enable/--with options
1565 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1566 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1567 --enable-generated-files-in-srcdir
1568 put copies of generated files
in source dir intended
1569 for creating
source tarballs
for users without
1570 texinfo bison or flex
1571 --disable-largefile omit support
for large files
1572 --enable-werror-always enable -Werror despite compiler version
1573 --enable-checking[=LIST
]
1574 enable expensive run-time checks. With LIST
, enable
1575 only specific categories of checks. Categories are
:
1576 yes,no
,all
,none
,release. Flags are
:
1577 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1578 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1579 --enable-coverage[=LEVEL
]
1580 enable compiler
's code coverage collection. Use to
1581 measure compiler performance and locate unused parts
1582 of the compiler. With LEVEL, specify optimization.
1583 Values are opt, noopt, default is noopt
1584 --enable-gather-detailed-mem-stats
1585 enable detailed memory allocation stats gathering
1586 --enable-multilib enable library support for multiple ABIs
1587 --enable-multiarch enable support for multiarch paths
1588 --enable-__cxa_atexit enable __cxa_atexit for C++
1589 --enable-decimal-float={no,yes,bid,dpd}
1590 enable decimal float extension to C. Selecting 'bid
'
1591 or 'dpd
' choses which decimal floating point format
1593 --enable-fixed-point enable fixed-point arithmetic extension to C
1594 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1596 --enable-tls enable or disable generation of tls code overriding
1597 the assembler check for tls support
1598 --enable-objc-gc enable the use of Boehm's garbage collector with the
1599 GNU Objective-C runtime
1600 --disable-shared don
't provide a shared libgcc
1601 --enable-languages=LIST specify which front-ends to build
1602 --disable-rpath do not hardcode runtime library paths
1603 --enable-sjlj-exceptions
1604 arrange to use setjmp/longjmp exception handling
1605 --enable-secureplt enable -msecure-plt by default for PowerPC
1606 --enable-leading-mingw64-underscores
1607 enable leading underscores on 64 bit mingw targets
1608 --enable-cld enable -mcld by default for 32bit x86
1609 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1611 --disable-win32-registry
1612 disable lookup of installation paths in the Registry
1614 --enable-win32-registry enable registry lookup (default)
1615 --enable-win32-registry=KEY
1616 use KEY instead of GCC version as the last portion
1618 --enable-shared[=PKGS] build shared libraries [default=yes]
1619 --enable-static[=PKGS] build static libraries [default=yes]
1620 --enable-fast-install[=PKGS]
1621 optimize for fast installation [default=yes]
1622 --disable-libtool-lock avoid locking (might break parallel builds)
1623 --enable-gnu-indirect-function
1624 enable the use of the @gnu_indirect_function to
1626 --enable-initfini-array use .init_array/.fini_array sections
1627 --enable-comdat enable COMDAT group support
1628 --enable-gnu-unique-object
1629 enable the use of the @gnu_unique_object ELF
1630 extension on glibc systems
1631 --enable-linker-build-id
1632 compiler will always pass --build-id to linker
1633 --enable-maintainer-mode
1634 enable make rules and dependencies not useful (and
1635 sometimes confusing) to the casual installer
1636 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1637 thrashing on the build machine
1638 --enable-version-specific-runtime-libs
1639 specify that runtime libraries should be installed
1640 in a compiler-specific directory
1641 --enable-plugin enable plugin support
1642 --enable-host-shared build host code as shared libraries
1643 --disable-libquadmath-support
1644 disable libquadmath support for Fortran
1647 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1648 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1649 --with-build-libsubdir=DIR Directory where to find libraries for build system
1650 --with-local-prefix=DIR specifies directory to put local include
1651 --with-gxx-include-dir=DIR
1652 specifies directory to put g++ header files
1653 --with-cpp-install-dir=DIR
1654 install the user visible C preprocessor in DIR
1655 (relative to PREFIX) as well as PREFIX/bin
1656 --with-gnu-ld arrange to work with GNU ld
1657 --with-ld arrange to use the specified ld (full pathname)
1658 --with-demangler-in-ld try to use demangler in GNU ld
1659 --with-gnu-as arrange to work with GNU as
1660 --with-as arrange to use the specified as (full pathname)
1661 --with-stabs arrange to use stabs instead of host debug format
1662 --with-dwarf2 force the default debug format to be DWARF 2
1663 --with-native-system-header-dir=dir
1664 use dir as the directory to look for standard
1665 system header files in. Defaults to /usr/include.
1666 --with-build-sysroot=sysroot
1667 use sysroot as the system root during the build
1668 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1669 --with-specs=SPECS add SPECS to driver command-line processing
1670 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1671 --with-bugurl=URL Direct users to URL to report a bug
1672 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1673 --with-gnu-ld assume the C compiler uses GNU ld default=no
1674 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1675 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1676 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1678 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1679 --with-plugin-ld=[ARG
] specify the plugin linker
1680 --with-long-double-128 use
128-bit long double by default
1681 --with-gc={page
,zone
} this option is not supported anymore. It used to
1682 choose the garbage collection mechanism to use with
1684 --with-system-zlib use installed libz
1685 --with-linker-hash-style={sysv
,gnu
,both
}
1686 specify the linker
hash style
1688 Some influential environment variables
:
1689 CC C compiler
command
1690 CFLAGS C compiler flags
1691 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1692 nonstandard directory
<lib dir
>
1693 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1694 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1695 you have headers
in a nonstandard directory
<include dir
>
1696 CXX C
++ compiler
command
1697 CXXFLAGS C
++ compiler flags
1699 CXXCPP C
++ preprocessor
1700 GMPLIBS How to link GMP
1701 GMPINC How to
find GMP include files
1702 ISLLIBS How to link ISL
1703 ISLINC How to
find ISL include files
1704 CLOOGLIBS How to link CLOOG
1705 CLOOGINC How to
find CLOOG include files
1707 Use these variables to override the choices made by
`configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1710 Report bugs to the package provider.
1715 if test "$ac_init_help" = "recursive"; then
1716 # If there are subdirs, report their specific --help.
1717 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1718 test -d "$ac_dir" ||
1719 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1727 # A ".." for each directory in $ac_dir_suffix.
1728 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1729 case $ac_top_builddir_sub in
1730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1740 .) # We are building in place.
1742 ac_top_srcdir=$ac_top_builddir_sub
1743 ac_abs_top_srcdir=$ac_pwd ;;
1744 [\\/]* | ?:[\\/]* ) # Absolute name.
1745 ac_srcdir=$srcdir$ac_dir_suffix;
1746 ac_top_srcdir=$srcdir
1747 ac_abs_top_srcdir=$srcdir ;;
1749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750 ac_top_srcdir=$ac_top_build_prefix$srcdir
1751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755 cd "$ac_dir" || { ac_status=$?; continue; }
1756 # Check for guested configure.
1757 if test -f "$ac_srcdir/configure.gnu"; then
1759 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760 elif test -f "$ac_srcdir/configure"; then
1762 $SHELL "$ac_srcdir/configure" --help=recursive
1764 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1766 cd "$ac_pwd" || { ac_status=$?; break; }
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1774 generated by GNU Autoconf 2.64
1776 Copyright (C) 2009 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1783 ## ------------------------ ##
1784 ## Autoconf initialization. ##
1785 ## ------------------------ ##
1787 # ac_fn_c_try_compile LINENO
1788 # --------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_compile ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1797 *) ac_try_echo
=$ac_try;;
1799 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1803 if test -s conftest.err
; then
1804 grep -v '^ *+' conftest.err
>conftest.er1
1805 cat conftest.er1
>&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.
$ac_objext; then :
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.
$ac_ext >&5
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1823 } # ac_fn_c_try_compile
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile
()
1830 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1831 rm -f conftest.
$ac_objext
1832 if { { ac_try
="$ac_compile"
1834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 } # ac_fn_cxx_try_compile
1863 # ac_fn_c_try_cpp LINENO
1864 # ----------------------
1865 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_cpp conftest.$ac_ext"
1871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1872 *) ac_try_echo
=$ac_try;;
1874 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1878 if test -s conftest.err
; then
1879 grep -v '^ *+' conftest.err
>conftest.er1
1880 cat conftest.er1
>&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } >/dev
/null
&& {
1885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1886 test ! -s conftest.err
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.
$ac_ext >&5
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1900 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1901 # -------------------------------------------------------
1902 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1903 # the include files in INCLUDES and setting the cache variable VAR
1905 ac_fn_c_check_header_mongrel
()
1907 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1908 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 $as_echo_n "(cached) " >&6
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1918 # Is the header compilable?
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1920 $as_echo_n "checking $2 usability... " >&6; }
1921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1926 if ac_fn_c_try_compile
"$LINENO"; then :
1927 ac_header_compiler
=yes
1929 ac_header_compiler
=no
1931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1933 $as_echo "$ac_header_compiler" >&6; }
1935 # Is the header present?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1937 $as_echo_n "checking $2 presence... " >&6; }
1938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1942 if ac_fn_c_try_cpp
"$LINENO"; then :
1943 ac_header_preproc
=yes
1945 ac_header_preproc
=no
1947 rm -f conftest.err conftest.
$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1949 $as_echo "$ac_header_preproc" >&6; }
1951 # So? What about this header?
1952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1955 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1961 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1963 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1965 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1967 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1975 $as_echo_n "(cached) " >&6
1977 eval "$3=\$ac_header_compiler"
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1985 } # ac_fn_c_check_header_mongrel
1987 # ac_fn_c_try_run LINENO
1988 # ----------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1990 # that executables *can* be run.
1993 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1994 if { { ac_try
="$ac_link"
1996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>&5
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2005 { { case "(($ac_try" in
2006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2007 *) ac_try_echo
=$ac_try;;
2009 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_try") 2>&5
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; }; }; then :
2017 $as_echo "$as_me: program exited with status $ac_status" >&5
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.
$ac_ext >&5
2021 ac_retval
=$ac_status
2023 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2029 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2030 # -------------------------------------------------------
2031 # Tests whether HEADER exists and can be compiled using the include files in
2032 # INCLUDES, setting the cache variable VAR accordingly.
2033 ac_fn_c_check_header_compile
()
2035 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2039 $as_echo_n "(cached) " >&6
2041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2046 if ac_fn_c_try_compile
"$LINENO"; then :
2051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2058 } # ac_fn_c_check_header_compile
2060 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2061 # --------------------------------------------
2062 # Tries to find the compile-time value of EXPR in a program that includes
2063 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2065 ac_fn_c_compute_int
()
2067 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2068 if test "$cross_compiling" = yes; then
2069 # Depending upon the size, compute the lo and hi bounds.
2070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2076 static int test_array [1 - 2 * !(($2) >= 0)];
2083 if ac_fn_c_try_compile
"$LINENO"; then :
2086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 if ac_fn_c_try_compile
"$LINENO"; then :
2100 ac_hi
=$ac_mid; break
2102 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2103 if test $ac_lo -le $ac_mid; then
2107 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2118 static int test_array [1 - 2 * !(($2) < 0)];
2125 if ac_fn_c_try_compile
"$LINENO"; then :
2128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2134 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141 if ac_fn_c_try_compile
"$LINENO"; then :
2142 ac_lo
=$ac_mid; break
2144 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2145 if test $ac_mid -le $ac_hi; then
2149 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2159 # Binary search between lo and hi bounds.
2160 while test "x$ac_lo" != "x$ac_hi"; do
2161 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 if ac_fn_c_try_compile
"$LINENO"; then :
2178 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2183 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2190 static long int longval () { return $2; }
2191 static unsigned long int ulongval () { return $2; }
2198 FILE *f = fopen ("conftest.val", "w");
2203 long int i = longval ();
2206 fprintf (f, "%ld", i);
2210 unsigned long int i = ulongval ();
2213 fprintf (f, "%lu", i);
2215 /* Do not output a trailing newline, as this causes \r\n confusion
2216 on some platforms. */
2217 return ferror (f) || fclose (f) != 0;
2223 if ac_fn_c_try_run
"$LINENO"; then :
2224 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2229 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2236 } # ac_fn_c_compute_int
2238 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2239 # -------------------------------------------
2240 # Tests whether TYPE exists after having included INCLUDES, setting cache
2241 # variable VAR accordingly.
2242 ac_fn_c_check_type
()
2244 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2263 if ac_fn_c_try_compile
"$LINENO"; then :
2264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2276 if ac_fn_c_try_compile
"$LINENO"; then :
2281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2290 } # ac_fn_c_check_type
2292 # ac_fn_c_find_intX_t LINENO BITS VAR
2293 # -----------------------------------
2294 # Finds a signed integer type with width BITS, setting cache variable VAR
2296 ac_fn_c_find_intX_t
()
2298 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2300 $as_echo_n "checking for int$2_t... " >&6; }
2301 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2302 $as_echo_n "(cached) " >&6
2305 for ac_type
in int
$2_t 'int' 'long int' \
2306 'long long int' 'short int' 'signed char'; do
2307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2313 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2320 if ac_fn_c_try_compile
"$LINENO"; then :
2321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2323 $ac_includes_default
2327 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2328 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2335 if ac_fn_c_try_compile
"$LINENO"; then :
2342 eval "$3=\$ac_type" ;;
2345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2349 if test "x$as_val" = x
""no
; then :
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358 $as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2361 } # ac_fn_c_find_intX_t
2363 # ac_fn_c_try_link LINENO
2364 # -----------------------
2365 # Try to link conftest.$ac_ext, and return whether this succeeded.
2368 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2369 rm -f conftest.
$ac_objext conftest
$ac_exeext
2370 if { { ac_try
="$ac_link"
2372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376 $as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_link") 2>conftest.err
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_c_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest$ac_exeext && {
2389 test "$cross_compiling" = yes ||
2390 $as_test_x conftest$ac_exeext
2394 $as_echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2399 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2400 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2401 # interfere with the next link command; also delete a directory that is
2402 # left behind by Apple's compiler. We do this before executing the actions.
2403 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2407 } # ac_fn_c_try_link
2409 # ac_fn_c_find_uintX_t LINENO BITS VAR
2410 # ------------------------------------
2411 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2413 ac_fn_c_find_uintX_t ()
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2417 $as_echo_n "checking for uint$2_t... " >&6; }
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 $as_echo_n "(cached) " >&6
2422 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2423 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2426 $ac_includes_default
2430 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2437 if ac_fn_c_try_compile "$LINENO"; then :
2442 eval "$3=\$ac_type" ;;
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 if test "x$as_val" = x""no; then :
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 } # ac_fn_c_find_uintX_t
2461 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2462 # ----------------------------------------------
2463 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2464 ac_fn_c_check_header_preproc ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468 $as_echo_n "checking for $2... " >&6; }
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 $as_echo_n "(cached) " >&6
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2476 if ac_fn_c_try_cpp "$LINENO"; then :
2481 rm -f conftest.err conftest.$ac_ext
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2485 $as_echo "$ac_res" >&6; }
2486 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2488 } # ac_fn_c_check_header_preproc
2490 # ac_fn_cxx_try_cpp LINENO
2491 # ------------------------
2492 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2493 ac_fn_cxx_try_cpp ()
2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496 if { { ac_try="$ac_cpp conftest.$ac_ext"
2498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2499 *) ac_try_echo
=$ac_try;;
2501 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2505 if test -s conftest.err
; then
2506 grep -v '^ *+' conftest.err
>conftest.er1
2507 cat conftest.er1
>&5
2508 mv -f conftest.er1 conftest.err
2510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; } >/dev
/null
&& {
2512 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2513 test ! -s conftest.err
2517 $as_echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.
$ac_ext >&5
2522 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2525 } # ac_fn_cxx_try_cpp
2527 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2528 # ------------------------------------------------
2529 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2530 ac_fn_cxx_check_header_preproc
()
2532 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2534 $as_echo_n "checking for $2... " >&6; }
2535 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2536 $as_echo_n "(cached) " >&6
2538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2542 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2547 rm -f conftest.err conftest.
$ac_ext
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2554 } # ac_fn_cxx_check_header_preproc
2556 # ac_fn_c_check_func LINENO FUNC VAR
2557 # ----------------------------------
2558 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2559 ac_fn_c_check_func
()
2561 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563 $as_echo_n "checking for $2... " >&6; }
2564 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2565 $as_echo_n "(cached) " >&6
2567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2569 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2571 #define $2 innocuous_$2
2573 /* System header to define __stub macros and hopefully few prototypes,
2574 which can conflict with char $2 (); below.
2575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2576 <limits.h> exists even on freestanding compilers. */
2579 # include <limits.h>
2581 # include <assert.h>
2586 /* Override any GCC internal prototype to avoid an error.
2587 Use char because int might match the return type of a GCC
2588 builtin and then its argument prototype would still apply. */
2593 /* The GNU C library defines this for functions which it implements
2594 to always fail with ENOSYS. Some functions are actually named
2595 something starting with __ and the normal name is an alias. */
2596 #if defined __stub_$2 || defined __stub___$2
2608 if ac_fn_c_try_link
"$LINENO"; then :
2613 rm -f core conftest.err conftest.
$ac_objext \
2614 conftest
$ac_exeext conftest.
$ac_ext
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2621 } # ac_fn_c_check_func
2623 # ac_fn_cxx_try_link LINENO
2624 # -------------------------
2625 # Try to link conftest.$ac_ext, and return whether this succeeded.
2626 ac_fn_cxx_try_link
()
2628 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2629 rm -f conftest.
$ac_objext conftest
$ac_exeext
2630 if { { ac_try
="$ac_link"
2632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2636 $as_echo "$ac_try_echo"; } >&5
2637 (eval "$ac_link") 2>conftest.err
2639 if test -s conftest.err; then
2640 grep -v '^ *+' conftest.err >conftest.er1
2641 cat conftest.er1 >&5
2642 mv -f conftest.er1 conftest.err
2644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2645 test $ac_status = 0; } && {
2646 test -z "$ac_cxx_werror_flag" ||
2647 test ! -s conftest.err
2648 } && test -s conftest$ac_exeext && {
2649 test "$cross_compiling" = yes ||
2650 $as_test_x conftest$ac_exeext
2654 $as_echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2661 # interfere with the next link command; also delete a directory that is
2662 # left behind by Apple's compiler. We do this before executing the actions.
2663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2667 } # ac_fn_cxx_try_link
2668 cat >config.log <<_ACEOF
2669 This file contains any messages produced by compilers while
2670 running configure, to aid debugging if configure makes a mistake.
2672 It was created by $as_me, which was
2673 generated by GNU Autoconf 2.64. Invocation command line was
2685 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2686 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2687 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2688 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2689 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2691 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2692 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2694 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2695 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2696 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2697 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2698 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2699 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2700 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir=.
2709 $as_echo "PATH: $as_dir"
2725 # Keep a trace of the command line.
2726 # Strip out --no-create and --no-recursion so they do not pile up.
2727 # Strip out --silent because we don't want to record it for future runs.
2728 # Also quote any args containing shell meta-characters.
2729 # Make two passes to allow for proper duplicate-argument suppression.
2733 ac_must_keep_next=false
2739 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2741 | -silent | --silent | --silen | --sile | --sil)
2744 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2747 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2749 as_fn_append ac_configure_args1 " '$ac_arg'"
2750 if test $ac_must_keep_next = true; then
2751 ac_must_keep_next=false # Got value, back to normal.
2754 *=* | --config-cache | -C | -disable-* | --disable-* \
2755 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2756 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2757 | -with-* | --with-* | -without-* | --without-* | --x)
2758 case "$ac_configure_args0 " in
2759 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2762 -* ) ac_must_keep_next=true ;;
2765 as_fn_append ac_configure_args " '$ac_arg'"
2770 { ac_configure_args0=; unset ac_configure_args0;}
2771 { ac_configure_args1=; unset ac_configure_args1;}
2773 # When interrupted or exit'd, cleanup temporary files, and complete
2774 # config.log. We remove comments because anyway the quotes in there
2775 # would cause problems or look ugly.
2776 # WARNING: Use '\'' to represent an apostrophe within the trap.
2777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2778 trap 'exit_status=$?
2779 # Save into config.log some information that might help in debugging.
2784 ## ---------------- ##
2785 ## Cache variables. ##
2786 ## ---------------- ##
2789 # The following way of writing the cache mishandles newlines in values,
2791 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2792 eval ac_val=\$$ac_var
2796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2800 _ | IFS | as_nl) ;; #(
2801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2802 *) { eval $ac_var=; unset $ac_var;} ;;
2807 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2808 *${as_nl}ac_space=\ *)
2810 "s/'\''/'\''\\\\'\'''\''/g;
2811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2822 ## ----------------- ##
2823 ## Output variables. ##
2824 ## ----------------- ##
2827 for ac_var in $ac_subst_vars
2829 eval ac_val=\$$ac_var
2831 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2833 $as_echo "$ac_var='\''$ac_val'\''"
2837 if test -n "$ac_subst_files"; then
2839 ## ------------------- ##
2840 ## File substitutions. ##
2841 ## ------------------- ##
2844 for ac_var in $ac_subst_files
2846 eval ac_val=\$$ac_var
2848 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2850 $as_echo "$ac_var='\''$ac_val'\''"
2855 if test -s confdefs.h; then
2865 test "$ac_signal" != 0 &&
2866 $as_echo "$as_me: caught signal $ac_signal"
2867 $as_echo "$as_me: exit $exit_status"
2869 rm -f core *.core core.conftest.* &&
2870 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2873 for ac_signal in 1 2 13 15; do
2874 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2879 rm -f -r conftest* confdefs.h
2881 $as_echo "/* confdefs.h */" > confdefs.h
2883 # Predefined preprocessor variables.
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_NAME "$PACKAGE_NAME"
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_STRING "$PACKAGE_STRING"
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_URL "$PACKAGE_URL"
2910 # Let the site file select an alternate cache file if it wants to.
2911 # Prefer an explicitly selected file to automatically selected ones.
2914 if test -n "$CONFIG_SITE"; then
2915 ac_site_file1=$CONFIG_SITE
2916 elif test "x$prefix" != xNONE; then
2917 ac_site_file1=$prefix/share/config.site
2918 ac_site_file2=$prefix/etc/config.site
2920 ac_site_file1=$ac_default_prefix/share/config.site
2921 ac_site_file2=$ac_default_prefix/etc/config.site
2923 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2925 test "x$ac_site_file" = xNONE && continue
2926 if test -r "$ac_site_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2928 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2929 sed 's/^/| /' "$ac_site_file" >&5
2934 if test -r "$cache_file"; then
2935 # Some versions of bash will fail to source /dev/null (special
2936 # files actually), so we avoid doing that.
2937 if test -f "$cache_file"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2939 $as_echo "$as_me: loading cache $cache_file" >&6;}
2941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2942 *) . "./$cache_file";;
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2947 $as_echo "$as_me: creating cache $cache_file" >&6;}
2951 # Check that the precious variables saved in the cache have kept the same
2953 ac_cache_corrupted=false
2954 for ac_var in $ac_precious_vars; do
2955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2956 eval ac_new_set=\$ac_env_${ac_var}_set
2957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2958 eval ac_new_val=\$ac_env_${ac_var}_value
2959 case $ac_old_set,$ac_new_set in
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2962 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2963 ac_cache_corrupted=: ;;
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2966 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2967 ac_cache_corrupted=: ;;
2970 if test "x$ac_old_val" != "x$ac_new_val"; then
2971 # differences in whitespace do not lead to failure.
2972 ac_old_val_w=`echo x
$ac_old_val`
2973 ac_new_val_w=`echo x
$ac_new_val`
2974 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2976 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2977 ac_cache_corrupted=:
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2980 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2981 eval $ac_var=\$ac_old_val
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2984 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2986 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2989 # Pass precious variables to config.status.
2990 if test "$ac_new_set" = set; then
2992 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2993 *) ac_arg=$ac_var=$ac_new_val ;;
2995 case " $ac_configure_args " in
2996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2997 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3001 if $ac_cache_corrupted; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3006 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3008 ## -------------------- ##
3009 ## Main body of script. ##
3010 ## -------------------- ##
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3026 gcc_version=`cat $srcdir/BASE-VER
`
3028 # Determine the host, build, and target systems
3030 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3031 for ac_t in install-sh install.sh shtool; do
3032 if test -f "$ac_dir/$ac_t"; then
3034 ac_install_sh="$ac_aux_dir/$ac_t -c"
3039 if test -z "$ac_aux_dir"; then
3040 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3043 # These three variables are undocumented and unsupported,
3044 # and are intended to be withdrawn in a future Autoconf release.
3045 # They can cause serious problems if a builder's source tree is in a directory
3046 # whose full name contains unusual characters.
3047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3052 # Make sure we can run config.sub.
3053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3054 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3057 $as_echo_n "checking build system type... " >&6; }
3058 if test "${ac_cv_build+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3061 ac_build_alias=$build_alias
3062 test "x$ac_build_alias" = x &&
3063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3064 test "x$ac_build_alias" = x &&
3065 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3066 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3067 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3071 $as_echo "$ac_cv_build" >&6; }
3072 case $ac_cv_build in
3074 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3077 ac_save_IFS=$IFS; IFS='-'
3083 # Remember, the first character of IFS is used to create $*,
3084 # except with old shells:
3087 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3091 $as_echo_n "checking host system type... " >&6; }
3092 if test "${ac_cv_host+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3095 if test "x$host_alias" = x; then
3096 ac_cv_host=$ac_cv_build
3098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3099 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3104 $as_echo "$ac_cv_host" >&6; }
3107 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3110 ac_save_IFS=$IFS; IFS='-'
3116 # Remember, the first character of IFS is used to create $*,
3117 # except with old shells:
3120 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3124 $as_echo_n "checking target system type... " >&6; }
3125 if test "${ac_cv_target+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3128 if test "x$target_alias" = x; then
3129 ac_cv_target=$ac_cv_host
3131 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3132 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3137 $as_echo "$ac_cv_target" >&6; }
3138 case $ac_cv_target in
3140 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3142 target=$ac_cv_target
3143 ac_save_IFS=$IFS; IFS='-'
3149 # Remember, the first character of IFS is used to create $*,
3150 # except with old shells:
3153 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3156 # The aliases save the names the user supplied, while $host etc.
3157 # will get canonicalized.
3158 test -n "$target_alias" &&
3159 test "$program_prefix$program_suffix$program_transform_name" = \
3161 program_prefix=${target_alias}-
3163 # Determine the noncanonical target name, for directory use.
3164 case ${build_alias} in
3165 "") build_noncanonical=${build} ;;
3166 *) build_noncanonical=${build_alias} ;;
3169 case ${host_alias} in
3170 "") host_noncanonical=${build_noncanonical} ;;
3171 *) host_noncanonical=${host_alias} ;;
3174 case ${target_alias} in
3175 "") target_noncanonical=${host_noncanonical} ;;
3176 *) target_noncanonical=${target_alias} ;;
3182 # Determine the target- and build-specific subdirectories
3184 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3185 # have matching libraries, they should use host libraries: Makefile.tpl
3186 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3187 # However, they still use the build modules, because the corresponding
3188 # host modules (e.g. bison) are only built for the host when bootstrap
3190 # - build_subdir is where we find build modules, and never changes.
3191 # - build_libsubdir is where we find build libraries, and can be overridden.
3193 # Prefix 'build-' so this never conflicts with target_subdir.
3194 build_subdir="build-${build_noncanonical}"
3196 # Check whether --with-build-libsubdir was given.
3197 if test "${with_build_libsubdir+set}" = set; then :
3198 withval=$with_build_libsubdir; build_libsubdir="$withval"
3200 build_libsubdir="$build_subdir"
3203 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3204 if ( test $srcdir = . && test -d gcc ) \
3205 || test -d $srcdir/../host-${host_noncanonical}; then
3206 host_subdir="host-${host_noncanonical}"
3211 target_subdir=${target_noncanonical}
3214 # Set program_transform_name
3215 test "$program_prefix" != NONE &&
3216 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3217 # Use a double $ so make ignores it.
3218 test "$program_suffix" != NONE &&
3219 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3220 # Double any \ or $.
3221 # By default was `s
,x
,x
', remove it if useless.
3222 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3223 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3226 # Check for bogus environment variables.
3227 # Test if LIBRARY_PATH contains the notation for the current directory
3228 # since this would lead to problems installing/building glibc.
3229 # LIBRARY_PATH contains the current directory if one of the following
3231 # - one of the terminals (":" and ";") is the first or last sign
3232 # - two terminals occur directly after each other
3233 # - the path contains an element with a dot in it
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3235 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3236 case ${LIBRARY_PATH} in
3237 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3238 library_path_setting="contains current directory"
3241 library_path_setting="ok"
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3245 $as_echo "$library_path_setting" >&6; }
3246 if test "$library_path_setting" != "ok"; then
3248 *** LIBRARY_PATH shouldn't contain the current directory when
3249 *** building gcc. Please change the environment variable
3250 *** and run configure again.
" "$LINENO" 5
3253 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3254 # since this would lead to problems installing/building glibc.
3255 # GCC_EXEC_PREFIX contains the current directory if one of the following
3257 # - one of the terminals (":" and ";") is the first or last sign
3258 # - two terminals occur directly after each other
3259 # - the path contains an element with a dot in it
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3261 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3262 case ${GCC_EXEC_PREFIX} in
3263 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3264 gcc_exec_prefix_setting="contains current directory
"
3267 gcc_exec_prefix_setting="ok
"
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3271 $as_echo "$gcc_exec_prefix_setting" >&6; }
3272 if test "$gcc_exec_prefix_setting" != "ok
"; then
3274 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3275 *** building gcc. Please change the environment variable
3276 *** and run configure again." "$LINENO" 5
3283 # Specify the local prefix
3286 # Check whether --with-local-prefix was given.
3287 if test "${with_local_prefix+set}" = set; then :
3288 withval=$with_local_prefix; case "${withval}" in
3289 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3291 *) local_prefix=$with_local_prefix ;;
3296 # Default local prefix if it is empty
3297 if test x$local_prefix = x; then
3298 local_prefix=/usr/local
3301 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3302 # passed in by the toplevel make and thus we'd get different behavior
3303 # depending on where we built the sources.
3304 gcc_gxx_include_dir
=
3305 # Specify the g++ header file directory
3307 # Check whether --with-gxx-include-dir was given.
3308 if test "${with_gxx_include_dir+set}" = set; then :
3309 withval
=$with_gxx_include_dir; case "${withval}" in
3310 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3312 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3317 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3318 if test x
${gcc_gxx_include_dir} = x
; then
3319 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3320 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3322 libstdcxx_incdir
='include/c++/$(version)'
3323 if test x
$host != x
$target; then
3324 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3326 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3330 gcc_gxx_include_dir_add_sysroot
=0
3331 if test "${with_sysroot+set}" = set; then
3332 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3333 if test "${gcc_gxx_without_sysroot}"; then
3334 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3335 gcc_gxx_include_dir_add_sysroot
=1
3340 # Check whether --with-cpp_install_dir was given.
3341 if test "${with_cpp_install_dir+set}" = set; then :
3342 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3343 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3344 elif test x
$withval != xno
; then
3345 cpp_install_dir
=$withval
3350 # We would like to our source tree to be readonly. However when releases or
3351 # pre-releases are generated, the flex/bison generated files as well as the
3352 # various formats of manuals need to be included along with the rest of the
3353 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3357 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3358 # Check whether --enable-generated-files-in-srcdir was given.
3359 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3360 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3362 generated_files_in_srcdir
=no
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3367 $as_echo "$generated_files_in_srcdir" >&6; }
3369 if test "$generated_files_in_srcdir" = "yes"; then
3376 # -------------------
3377 # Find default linker
3378 # -------------------
3382 # Check whether --with-gnu-ld was given.
3383 if test "${with_gnu_ld+set}" = set; then :
3384 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3390 # With pre-defined ld
3392 # Check whether --with-ld was given.
3393 if test "${with_ld+set}" = set; then :
3394 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3397 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3398 if test ! -x "$DEFAULT_LINKER"; then
3399 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3400 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3404 cat >>confdefs.h
<<_ACEOF
3405 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3411 $as_echo_n "checking whether a default linker was specified... " >&6; }
3412 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3413 if test x
"$gnu_ld_flag" = x
"no"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3415 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3418 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3425 # With demangler in GNU ld
3427 # Check whether --with-demangler-in-ld was given.
3428 if test "${with_demangler_in_ld+set}" = set; then :
3429 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3435 # ----------------------
3436 # Find default assembler
3437 # ----------------------
3441 # Check whether --with-gnu-as was given.
3442 if test "${with_gnu_as+set}" = set; then :
3443 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3450 # Check whether --with-as was given.
3451 if test "${with_as+set}" = set; then :
3452 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3455 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3456 if test ! -x "$DEFAULT_ASSEMBLER"; then
3457 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3458 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3462 cat >>confdefs.h
<<_ACEOF
3463 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3469 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3470 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3471 if test x
"$gas_flag" = x
"no"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3473 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3487 # If a non-executable a.out is present (e.g. created by GNU as above even if
3488 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3489 # file, even when creating an executable, so an execution test fails.
3490 # Remove possible default executable files to avoid this.
3492 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3493 # Autoconf includes it.
3494 rm -f a.out a.exe b.out
3496 # Find the native compiler
3498 ac_cpp
='$CPP $CPPFLAGS'
3499 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3504 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC
="$CC" # Let the user override the test.
3513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir
=.
3518 for ac_exec_ext
in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3541 if test -z "$ac_cv_prog_CC"; then
3543 # Extract the first word of "gcc", so it can be a program name with args.
3544 set dummy gcc
; ac_word
=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir
=.
3558 for ac_exec_ext
in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_CC
="gcc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573 $as_echo "$ac_ct_CC" >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3579 if test "x$ac_ct_CC" = x
; then
3582 case $cross_compiling:$ac_tool_warned in
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned
=yes ;;
3594 if test -z "$CC"; then
3595 if test -n "$ac_tool_prefix"; then
3596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3597 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if test "${ac_cv_prog_CC+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC
="$CC" # Let the user override the test.
3606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3610 test -z "$as_dir" && as_dir
=.
3611 for ac_exec_ext
in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 if test -n "$CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3626 $as_echo "$CC" >&6; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3635 if test -z "$CC"; then
3636 # Extract the first word of "cc", so it can be a program name with args.
3637 set dummy cc
; ac_word
=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if test "${ac_cv_prog_CC+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC
="$CC" # Let the user override the test.
3647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3651 test -z "$as_dir" && as_dir
=.
3652 for ac_exec_ext
in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3655 ac_prog_rejected
=yes
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 if test $ac_prog_rejected = yes; then
3667 # We found a bogon in the path, so make sure we never use it.
3668 set dummy
$ac_cv_prog_CC
3670 if test $# != 0; then
3671 # We chose a different compiler from the bogus one.
3672 # However, it has the same basename, so the bogon will be chosen
3673 # first if we set CC to just the basename; use the full file name.
3675 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3681 if test -n "$CC"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 $as_echo "$CC" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3691 if test -z "$CC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 for ac_prog
in cl.exe
3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3696 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC
="$CC" # Let the user override the test.
3705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir
=.
3710 for ac_exec_ext
in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$CC" && break
3735 if test -z "$CC"; then
3737 for ac_prog
in cl.exe
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy
$ac_prog; ac_word
=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3744 $as_echo_n "(cached) " >&6
3746 if test -n "$ac_ct_CC"; then
3747 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3753 test -z "$as_dir" && as_dir
=.
3754 for ac_exec_ext
in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756 ac_cv_prog_ac_ct_CC
="$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3767 if test -n "$ac_ct_CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769 $as_echo "$ac_ct_CC" >&6; }
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3776 test -n "$ac_ct_CC" && break
3779 if test "x$ac_ct_CC" = x
; then
3782 case $cross_compiling:$ac_tool_warned in
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned
=yes ;;
3795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error
"no acceptable C compiler found in \$PATH
3798 See \`config.log' for more details." "$LINENO" 5; }
3800 # Provide some information about the compiler.
3801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3804 for ac_option
in --version -v -V -qversion; do
3805 { { ac_try
="$ac_compiler $ac_option >&5"
3807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3814 if test -s conftest.err; then
3816 ... rest of stderr output deleted ...
3817 10q' conftest.err >conftest.er1
3818 cat conftest.er1 >&5
3819 rm -f conftest.er1 conftest.err
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3836 ac_clean_files_save=$ac_clean_files
3837 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3838 # Try to create an executable without -o first, disregard a.out.
3839 # It will help us diagnose broken compilers, and finding out an intuition
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3842 $as_echo_n "checking for C compiler default output file name... " >&6; }
3843 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3845 # The possible output files:
3846 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3849 for ac_file in $ac_files
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3858 if { { ac_try="$ac_link_default"
3860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3861 *) ac_try_echo
=$ac_try;;
3863 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link_default") 2>&5
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3870 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3871 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3872 # so that the user can short-circuit this test for compilers unknown to
3874 for ac_file
in $ac_files ''
3876 test -f "$ac_file" ||
continue
3878 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3881 # We found the default executable, but exeext='' is most
3885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3887 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3889 # We set ac_cv_exeext here because the later test for it is not
3890 # safe: cross compilers may not add the suffix if given an `-o'
3891 # argument, so we may need to know it at that point already.
3892 # Even if this section looks crufty: it has the advantage of
3899 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3905 $as_echo "$ac_file" >&6; }
3906 if test -z "$ac_file"; then :
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.
$ac_ext >&5
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 { as_fn_set_status
77
3913 as_fn_error
"C compiler cannot create executables
3914 See \`config.log' for more details." "$LINENO" 5; }; }
3916 ac_exeext
=$ac_cv_exeext
3918 # Check that the compiler produces executables we can run. If not, either
3919 # the compiler is broken, or we cross compile.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3921 $as_echo_n "checking whether the C compiler works... " >&6; }
3922 # If not cross compiling, check that we can run a simple program.
3923 if test "$cross_compiling" != yes; then
3924 if { ac_try
='./$ac_file'
3925 { { case "(($ac_try" in
3926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_try") 2>&5
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; }; then
3937 if test "$cross_compiling" = maybe; then
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error "cannot run C compiled programs.
3943 If you meant to cross compile
, use \
`--host'.
3944 See \`config.log
' for more details." "$LINENO" 5; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3952 ac_clean_files=$ac_clean_files_save
3953 # Check that the compiler produces executables we can run. If not, either
3954 # the compiler is broken, or we cross compile.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956 $as_echo_n "checking whether we are cross compiling... " >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3958 $as_echo "$cross_compiling" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 $as_echo_n "checking for suffix of executables... " >&6; }
3962 if { { ac_try="$ac_link"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3974 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3975 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3977 for ac_file
in conftest.exe conftest conftest.
*; do
3978 test -f "$ac_file" ||
continue
3980 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3981 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3990 See \`config.log' for more details." "$LINENO" 5; }
3992 rm -f conftest
$ac_cv_exeext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994 $as_echo "$ac_cv_exeext" >&6; }
3996 rm -f conftest.
$ac_ext
3997 EXEEXT
=$ac_cv_exeext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000 $as_echo_n "checking for suffix of object files... " >&6; }
4001 if test "${ac_cv_objext+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4015 rm -f conftest.o conftest.obj
4016 if { { ac_try
="$ac_compile"
4018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compile") 2>&5
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 for ac_file in conftest.o conftest.obj conftest.*; do
4028 test -f "$ac_file" || continue;
4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "cannot compute suffix of object files
: cannot compile
4042 See \
`config.log' for more details." "$LINENO" 5; }
4044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4047 $as_echo "$ac_cv_objext" >&6; }
4048 OBJEXT=$ac_cv_objext
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4052 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4069 if ac_fn_c_try_compile "$LINENO"; then :
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4080 if test $ac_compiler_gnu = yes; then
4085 ac_test_CFLAGS=${CFLAGS+set}
4086 ac_save_CFLAGS=$CFLAGS
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4089 if test "${ac_cv_prog_cc_g+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4092 ac_save_c_werror_flag=$ac_c_werror_flag
4093 ac_c_werror_flag=yes
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4107 if ac_fn_c_try_compile "$LINENO"; then :
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4122 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4138 if ac_fn_c_try_compile "$LINENO"; then :
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4149 $as_echo "$ac_cv_prog_cc_g" >&6; }
4150 if test "$ac_test_CFLAGS" = set; then
4151 CFLAGS=$ac_save_CFLAGS
4152 elif test $ac_cv_prog_cc_g = yes; then
4153 if test "$GCC" = yes; then
4159 if test "$GCC" = yes; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4167 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4170 ac_cv_prog_cc_c89=no
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4176 #include <sys/types.h>
4177 #include <sys/stat.h>
4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4179 struct buf { int x; };
4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4181 static char *e (p, i)
4187 static char *f (char * (*g) (char **, int), char **p, ...)
4192 s = g (p, va_arg (v,int));
4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4198 function prototypes and stuff, but not '\xHH' hex character constants.
4199 These don't provoke an error unfortunately, instead are silently treated
4200 as 'x'. The following induces an error, until -std is added to get
4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4202 array size at least. It's necessary to write '\x00'==0 to get something
4203 that's true only with -std. */
4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4207 inside strings and character constants. */
4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4211 int test (int i, double x);
4212 struct s1 {int (*f) (int a);};
4213 struct s2 {int (*f) (double a);};
4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_prog_cc_c89=$ac_arg
4232 rm -f core conftest.err conftest.$ac_objext
4233 test "x$ac_cv_prog_cc_c89" != "xno" && break
4235 rm -f conftest.$ac_ext
4240 case "x$ac_cv_prog_cc_c89" in
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;;
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 $as_echo "unsupported" >&6; } ;;
4248 CC="$CC $ac_cv_prog_cc_c89"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263 ac_cpp='$CXXCPP $CPPFLAGS'
4264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4267 if test -z "$CXX"; then
4268 if test -n "$CCC"; then
4271 if test -n "$ac_tool_prefix"; then
4272 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if test "${ac_cv_prog_CXX+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4281 if test -n "$CXX"; then
4282 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 if test -n "$CXX"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4304 $as_echo "$CXX" >&6; }
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4311 test -n "$CXX" && break
4314 if test -z "$CXX"; then
4316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4318 # Extract the first word of "$ac_prog", so it can be a program name with args.
4319 set dummy $ac_prog; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4325 if test -n "$ac_ct_CXX"; then
4326 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_ac_ct_CXX="$ac_prog"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4346 if test -n "$ac_ct_CXX"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4348 $as_echo "$ac_ct_CXX" >&6; }
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4355 test -n "$ac_ct_CXX" && break
4358 if test "x$ac_ct_CXX" = x; then
4361 case $cross_compiling:$ac_tool_warned in
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4365 ac_tool_warned=yes ;;
4373 # Provide some information about the compiler.
4374 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4377 for ac_option in --version -v -V -qversion; do
4378 { { ac_try="$ac_compiler $ac_option >&5"
4380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4381 *) ac_try_echo
=$ac_try;;
4383 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4387 if test -s conftest.err
; then
4389 ... rest of stderr output deleted ...
4390 10q' conftest.err
>conftest.er1
4391 cat conftest.er1
>&5
4392 rm -f conftest.er1 conftest.err
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4399 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4400 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4417 if ac_fn_cxx_try_compile
"$LINENO"; then :
4422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4423 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4427 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4428 if test $ac_compiler_gnu = yes; then
4433 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4434 ac_save_CXXFLAGS
=$CXXFLAGS
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4436 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4437 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4440 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4441 ac_cxx_werror_flag
=yes
4444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4455 if ac_fn_cxx_try_compile
"$LINENO"; then :
4456 ac_cv_prog_cxx_g
=yes
4459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4470 if ac_fn_cxx_try_compile
"$LINENO"; then :
4473 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4486 if ac_fn_cxx_try_compile
"$LINENO"; then :
4487 ac_cv_prog_cxx_g
=yes
4489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4494 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4497 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4498 if test "$ac_test_CXXFLAGS" = set; then
4499 CXXFLAGS
=$ac_save_CXXFLAGS
4500 elif test $ac_cv_prog_cxx_g = yes; then
4501 if test "$GXX" = yes; then
4507 if test "$GXX" = yes; then
4514 ac_cpp
='$CPP $CPPFLAGS'
4515 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4522 if test -n "$ac_tool_prefix"; then
4523 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4524 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4530 if test -n "$GNATBIND"; then
4531 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4537 test -z "$as_dir" && as_dir
=.
4538 for ac_exec_ext
in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 GNATBIND
=$ac_cv_prog_GNATBIND
4551 if test -n "$GNATBIND"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4553 $as_echo "$GNATBIND" >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4561 if test -z "$ac_cv_prog_GNATBIND"; then
4562 ac_ct_GNATBIND
=$GNATBIND
4563 # Extract the first word of "gnatbind", so it can be a program name with args.
4564 set dummy gnatbind
; ac_word
=$2
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4570 if test -n "$ac_ct_GNATBIND"; then
4571 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4577 test -z "$as_dir" && as_dir
=.
4578 for ac_exec_ext
in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4591 if test -n "$ac_ct_GNATBIND"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4593 $as_echo "$ac_ct_GNATBIND" >&6; }
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4599 if test "x$ac_ct_GNATBIND" = x
; then
4602 case $cross_compiling:$ac_tool_warned in
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4606 ac_tool_warned
=yes ;;
4608 GNATBIND
=$ac_ct_GNATBIND
4611 GNATBIND
="$ac_cv_prog_GNATBIND"
4614 if test -n "$ac_tool_prefix"; then
4615 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4616 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
4622 if test -n "$GNATMAKE"; then
4623 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4629 test -z "$as_dir" && as_dir
=.
4630 for ac_exec_ext
in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 GNATMAKE
=$ac_cv_prog_GNATMAKE
4643 if test -n "$GNATMAKE"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4645 $as_echo "$GNATMAKE" >&6; }
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4653 if test -z "$ac_cv_prog_GNATMAKE"; then
4654 ac_ct_GNATMAKE
=$GNATMAKE
4655 # Extract the first word of "gnatmake", so it can be a program name with args.
4656 set dummy gnatmake
; ac_word
=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4662 if test -n "$ac_ct_GNATMAKE"; then
4663 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir
=.
4670 for ac_exec_ext
in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4683 if test -n "$ac_ct_GNATMAKE"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4685 $as_echo "$ac_ct_GNATMAKE" >&6; }
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4691 if test "x$ac_ct_GNATMAKE" = x
; then
4694 case $cross_compiling:$ac_tool_warned in
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698 ac_tool_warned
=yes ;;
4700 GNATMAKE
=$ac_ct_GNATMAKE
4703 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4707 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4708 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4711 cat >conftest.adb
<<EOF
4712 procedure conftest is begin null; end conftest;
4714 acx_cv_cc_gcc_supports_ada
=no
4715 # There is a bug in old released versions of GCC which causes the
4716 # driver to exit successfully when the appropriate language module
4717 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4718 # Therefore we must check for the error message as well as an
4719 # unsuccessful exit.
4720 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4721 # given a .adb file, but produce no object file. So we must check
4722 # if an object file was really produced to guard against this.
4723 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4724 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4725 acx_cv_cc_gcc_supports_ada
=yes
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4730 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4732 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4739 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4740 # optimizations to be activated explicitly by the toplevel.
4742 */prev-gcc
/xgcc
*) ;;
4743 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4744 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4749 # Determine PICFLAG for target gnatlib.
4755 # PIC is the default on some targets or must not be used.
4757 # PIC is the default on this platform
4758 # Common symbols not allowed in MH_DYLIB files
4759 PICFLAG_FOR_TARGET
=-fno-common
4762 # PIC is the default.
4765 # PIC is the default for 64-bit PA HP-UX.
4767 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4769 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4771 i
[34567]86-*-interix[3-9]*)
4772 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4773 # Instead, we relocate shared libraries at runtime.
4775 i
[34567]86-*-nto-qnx*)
4776 # QNX uses GNU C++, but need to define -shared option too, otherwise
4778 PICFLAG_FOR_TARGET
='-fPIC -shared'
4780 i
[34567]86-pc-msdosdjgpp*)
4781 # DJGPP does not support shared libraries at all.
4784 # On IA64 HP-UX, PIC is the default but the pic flag
4785 # sets the default TLS model and affects inlining.
4786 PICFLAG_FOR_TARGET
=-fPIC
4789 # PIC is the default.
4791 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4792 # All AIX code is PIC.
4795 # Some targets support both -fPIC and -fpic, but prefer the latter.
4797 i
[34567]86-*-* | x86_64-
*-*)
4798 PICFLAG_FOR_TARGET
=-fpic
4801 PICFLAG_FOR_TARGET
=-fpic
4803 # FIXME: Override -fPIC default in libgcc only?
4804 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4805 PICFLAG_FOR_TARGET
=-fpic
4807 # FIXME: Simplify to sh*-*-netbsd*?
4808 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4809 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4810 PICFLAG_FOR_TARGET
=-fpic
4812 # Default to -fPIC unless specified otherwise.
4814 PICFLAG_FOR_TARGET
=-fPIC
4818 # If the user explicitly uses -fpic/-fPIC, keep that.
4819 case "${CFLAGS_FOR_TARGET}" in
4821 PICFLAG_FOR_TARGET
=-fpic
4824 PICFLAG_FOR_TARGET
=-fPIC
4830 # -------------------------
4831 # Check C compiler features
4832 # -------------------------
4836 ac_cpp
='$CPP $CPPFLAGS'
4837 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4841 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4842 # On Suns, sometimes $CPP names a directory.
4843 if test -n "$CPP" && test -d "$CPP"; then
4846 if test -z "$CPP"; then
4847 if test "${ac_cv_prog_CPP+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4850 # Double quotes because CPP needs to be expanded
4851 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4854 for ac_c_preproc_warn_flag
in '' yes
4856 # Use a header file that comes with gcc, so configuring glibc
4857 # with a fresh cross-compiler works.
4858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4859 # <limits.h> exists even on freestanding compilers.
4860 # On the NeXT, cc -E runs the code through the compiler's parser,
4861 # not just through cpp. "Syntax error" is here to catch this case.
4862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4865 # include <limits.h>
4867 # include <assert.h>
4871 if ac_fn_c_try_cpp
"$LINENO"; then :
4874 # Broken: fails on valid input.
4877 rm -f conftest.err conftest.
$ac_ext
4879 # OK, works on sane cases. Now check whether nonexistent headers
4880 # can be detected and how.
4881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 #include <ac_nonexistent.h>
4885 if ac_fn_c_try_cpp
"$LINENO"; then :
4886 # Broken: success on invalid input.
4889 # Passes both tests.
4893 rm -f conftest.err conftest.
$ac_ext
4896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4897 rm -f conftest.err conftest.
$ac_ext
4898 if $ac_preproc_ok; then :
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4911 $as_echo "$CPP" >&6; }
4913 for ac_c_preproc_warn_flag
in '' yes
4915 # Use a header file that comes with gcc, so configuring glibc
4916 # with a fresh cross-compiler works.
4917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 # <limits.h> exists even on freestanding compilers.
4919 # On the NeXT, cc -E runs the code through the compiler's parser,
4920 # not just through cpp. "Syntax error" is here to catch this case.
4921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4924 # include <limits.h>
4926 # include <assert.h>
4930 if ac_fn_c_try_cpp
"$LINENO"; then :
4933 # Broken: fails on valid input.
4936 rm -f conftest.err conftest.
$ac_ext
4938 # OK, works on sane cases. Now check whether nonexistent headers
4939 # can be detected and how.
4940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 #include <ac_nonexistent.h>
4944 if ac_fn_c_try_cpp
"$LINENO"; then :
4945 # Broken: success on invalid input.
4948 # Passes both tests.
4952 rm -f conftest.err conftest.
$ac_ext
4955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4956 rm -f conftest.err conftest.
$ac_ext
4957 if $ac_preproc_ok; then :
4960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4962 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4963 See \`config.log' for more details." "$LINENO" 5; }
4967 ac_cpp
='$CPP $CPPFLAGS'
4968 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4974 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4975 if test "${ac_cv_path_GREP+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4978 if test -z "$GREP"; then
4979 ac_path_GREP_found
=false
4980 # Loop through the user's path and test for each of PROGNAME-LIST
4981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4982 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4985 test -z "$as_dir" && as_dir
=.
4986 for ac_prog
in grep ggrep
; do
4987 for ac_exec_ext
in '' $ac_executable_extensions; do
4988 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4989 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4990 # Check for GNU ac_path_GREP and select it if it is found.
4991 # Check for GNU $ac_path_GREP
4992 case `"$ac_path_GREP" --version 2>&1` in
4994 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4997 $as_echo_n 0123456789 >"conftest.in"
5000 cat "conftest.in" "conftest.in" >"conftest.tmp"
5001 mv "conftest.tmp" "conftest.in"
5002 cp "conftest.in" "conftest.nl"
5003 $as_echo 'GREP' >> "conftest.nl"
5004 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5005 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5006 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5007 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5008 # Best one so far, save it but keep looking for a better one
5009 ac_cv_path_GREP
="$ac_path_GREP"
5010 ac_path_GREP_max
=$ac_count
5012 # 10*(2^10) chars as input seems more than enough
5013 test $ac_count -gt 10 && break
5015 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5018 $ac_path_GREP_found && break 3
5023 if test -z "$ac_cv_path_GREP"; then
5024 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5027 ac_cv_path_GREP
=$GREP
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5032 $as_echo "$ac_cv_path_GREP" >&6; }
5033 GREP
="$ac_cv_path_GREP"
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5037 $as_echo_n "checking for egrep... " >&6; }
5038 if test "${ac_cv_path_EGREP+set}" = set; then :
5039 $as_echo_n "(cached) " >&6
5041 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5042 then ac_cv_path_EGREP
="$GREP -E"
5044 if test -z "$EGREP"; then
5045 ac_path_EGREP_found
=false
5046 # Loop through the user's path and test for each of PROGNAME-LIST
5047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5048 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5051 test -z "$as_dir" && as_dir
=.
5052 for ac_prog
in egrep; do
5053 for ac_exec_ext
in '' $ac_executable_extensions; do
5054 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5055 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5056 # Check for GNU ac_path_EGREP and select it if it is found.
5057 # Check for GNU $ac_path_EGREP
5058 case `"$ac_path_EGREP" --version 2>&1` in
5060 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5063 $as_echo_n 0123456789 >"conftest.in"
5066 cat "conftest.in" "conftest.in" >"conftest.tmp"
5067 mv "conftest.tmp" "conftest.in"
5068 cp "conftest.in" "conftest.nl"
5069 $as_echo 'EGREP' >> "conftest.nl"
5070 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5071 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5072 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5073 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5074 # Best one so far, save it but keep looking for a better one
5075 ac_cv_path_EGREP
="$ac_path_EGREP"
5076 ac_path_EGREP_max
=$ac_count
5078 # 10*(2^10) chars as input seems more than enough
5079 test $ac_count -gt 10 && break
5081 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5084 $ac_path_EGREP_found && break 3
5089 if test -z "$ac_cv_path_EGREP"; then
5090 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5093 ac_cv_path_EGREP
=$EGREP
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5099 $as_echo "$ac_cv_path_EGREP" >&6; }
5100 EGREP
="$ac_cv_path_EGREP"
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5104 $as_echo_n "checking for ANSI C header files... " >&6; }
5105 if test "${ac_cv_header_stdc+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5123 if ac_fn_c_try_compile
"$LINENO"; then :
5124 ac_cv_header_stdc
=yes
5126 ac_cv_header_stdc
=no
5128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5130 if test $ac_cv_header_stdc = yes; then
5131 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5138 $EGREP "memchr" >/dev
/null
2>&1; then :
5141 ac_cv_header_stdc
=no
5147 if test $ac_cv_header_stdc = yes; then
5148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5155 $EGREP "free" >/dev
/null
2>&1; then :
5158 ac_cv_header_stdc
=no
5164 if test $ac_cv_header_stdc = yes; then
5165 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5166 if test "$cross_compiling" = yes; then :
5169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5173 #if ((' ' & 0x0FF) == 0x020)
5174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5177 # define ISLOWER(c) \
5178 (('a' <= (c) && (c) <= 'i') \
5179 || ('j' <= (c) && (c) <= 'r') \
5180 || ('s' <= (c) && (c) <= 'z'))
5181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5189 for (i = 0; i < 256; i++)
5190 if (XOR (islower (i), ISLOWER (i))
5191 || toupper (i) != TOUPPER (i))
5196 if ac_fn_c_try_run
"$LINENO"; then :
5199 ac_cv_header_stdc
=no
5201 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5202 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5208 $as_echo "$ac_cv_header_stdc" >&6; }
5209 if test $ac_cv_header_stdc = yes; then
5211 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5215 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5216 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5217 inttypes.h stdint.h unistd.h
5219 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5220 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5222 eval as_val
=\$
$as_ac_Header
5223 if test "x$as_val" = x
""yes; then :
5224 cat >>confdefs.h
<<_ACEOF
5225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5234 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5235 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5242 if test "$MINIX" = yes; then
5244 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5247 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5250 $as_echo "#define _MINIX 1" >>confdefs.h
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5256 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5257 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5263 # define __EXTENSIONS__ 1
5264 $ac_includes_default
5273 if ac_fn_c_try_compile
"$LINENO"; then :
5274 ac_cv_safe_to_define___extensions__
=yes
5276 ac_cv_safe_to_define___extensions__
=no
5278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5281 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5282 test $ac_cv_safe_to_define___extensions__ = yes &&
5283 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5285 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5287 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5289 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5291 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5295 ac_cpp
='$CPP $CPPFLAGS'
5296 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5297 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5298 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5300 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5301 # On Suns, sometimes $CPP names a directory.
5302 if test -n "$CPP" && test -d "$CPP"; then
5305 if test -z "$CPP"; then
5306 if test "${ac_cv_prog_CPP+set}" = set; then :
5307 $as_echo_n "(cached) " >&6
5309 # Double quotes because CPP needs to be expanded
5310 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5313 for ac_c_preproc_warn_flag
in '' yes
5315 # Use a header file that comes with gcc, so configuring glibc
5316 # with a fresh cross-compiler works.
5317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5318 # <limits.h> exists even on freestanding compilers.
5319 # On the NeXT, cc -E runs the code through the compiler's parser,
5320 # not just through cpp. "Syntax error" is here to catch this case.
5321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5324 # include <limits.h>
5326 # include <assert.h>
5330 if ac_fn_c_try_cpp
"$LINENO"; then :
5333 # Broken: fails on valid input.
5336 rm -f conftest.err conftest.
$ac_ext
5338 # OK, works on sane cases. Now check whether nonexistent headers
5339 # can be detected and how.
5340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5342 #include <ac_nonexistent.h>
5344 if ac_fn_c_try_cpp
"$LINENO"; then :
5345 # Broken: success on invalid input.
5348 # Passes both tests.
5352 rm -f conftest.err conftest.
$ac_ext
5355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5356 rm -f conftest.err conftest.
$ac_ext
5357 if $ac_preproc_ok; then :
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5370 $as_echo "$CPP" >&6; }
5372 for ac_c_preproc_warn_flag
in '' yes
5374 # Use a header file that comes with gcc, so configuring glibc
5375 # with a fresh cross-compiler works.
5376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5377 # <limits.h> exists even on freestanding compilers.
5378 # On the NeXT, cc -E runs the code through the compiler's parser,
5379 # not just through cpp. "Syntax error" is here to catch this case.
5380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5383 # include <limits.h>
5385 # include <assert.h>
5389 if ac_fn_c_try_cpp
"$LINENO"; then :
5392 # Broken: fails on valid input.
5395 rm -f conftest.err conftest.
$ac_ext
5397 # OK, works on sane cases. Now check whether nonexistent headers
5398 # can be detected and how.
5399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5401 #include <ac_nonexistent.h>
5403 if ac_fn_c_try_cpp
"$LINENO"; then :
5404 # Broken: success on invalid input.
5407 # Passes both tests.
5411 rm -f conftest.err conftest.
$ac_ext
5414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5415 rm -f conftest.err conftest.
$ac_ext
5416 if $ac_preproc_ok; then :
5419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5421 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5422 See \`config.log' for more details." "$LINENO" 5; }
5426 ac_cpp
='$CPP $CPPFLAGS'
5427 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5432 $as_echo_n "checking for inline... " >&6; }
5433 if test "${ac_cv_c_inline+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5437 for ac_kw
in inline __inline__ __inline
; do
5438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5442 static $ac_kw foo_t static_foo () {return 0; }
5443 $ac_kw foo_t foo () {return 0; }
5447 if ac_fn_c_try_compile
"$LINENO"; then :
5448 ac_cv_c_inline
=$ac_kw
5450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5451 test "$ac_cv_c_inline" != no
&& break
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5456 $as_echo "$ac_cv_c_inline" >&6; }
5458 case $ac_cv_c_inline in
5461 case $ac_cv_c_inline in
5463 *) ac_val
=$ac_cv_c_inline;;
5465 cat >>confdefs.h
<<_ACEOF
5467 #define inline $ac_val
5474 # Check whether --enable-largefile was given.
5475 if test "${enable_largefile+set}" = set; then :
5476 enableval
=$enable_largefile;
5479 if test "$enable_largefile" != no
; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5482 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5483 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5486 ac_cv_sys_largefile_CC
=no
5487 if test "$GCC" != yes; then
5490 # IRIX 6.2 and later do not support large files by default,
5491 # so use the C compiler's -n32 option if that helps.
5492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #include <sys/types.h>
5495 /* Check that off_t can represent 2**63 - 1 correctly.
5496 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5497 since some C++ compilers masquerading as C compilers
5498 incorrectly reject 9223372036854775807. */
5499 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5500 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5501 && LARGE_OFF_T % 2147483647 == 1)
5511 if ac_fn_c_try_compile
"$LINENO"; then :
5514 rm -f core conftest.err conftest.
$ac_objext
5516 if ac_fn_c_try_compile
"$LINENO"; then :
5517 ac_cv_sys_largefile_CC
=' -n32'; break
5519 rm -f core conftest.err conftest.
$ac_objext
5523 rm -f conftest.
$ac_ext
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5527 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5528 if test "$ac_cv_sys_largefile_CC" != no
; then
5529 CC
=$CC$ac_cv_sys_largefile_CC
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5533 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5534 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5535 $as_echo_n "(cached) " >&6
5538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <sys/types.h>
5541 /* Check that off_t can represent 2**63 - 1 correctly.
5542 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5543 since some C++ compilers masquerading as C compilers
5544 incorrectly reject 9223372036854775807. */
5545 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5547 && LARGE_OFF_T % 2147483647 == 1)
5557 if ac_fn_c_try_compile
"$LINENO"; then :
5558 ac_cv_sys_file_offset_bits
=no
; break
5560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5563 #define _FILE_OFFSET_BITS 64
5564 #include <sys/types.h>
5565 /* Check that off_t can represent 2**63 - 1 correctly.
5566 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5567 since some C++ compilers masquerading as C compilers
5568 incorrectly reject 9223372036854775807. */
5569 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5570 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5571 && LARGE_OFF_T % 2147483647 == 1)
5581 if ac_fn_c_try_compile
"$LINENO"; then :
5582 ac_cv_sys_file_offset_bits
=64; break
5584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5585 ac_cv_sys_file_offset_bits
=unknown
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5590 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5591 case $ac_cv_sys_file_offset_bits in #(
5594 cat >>confdefs.h
<<_ACEOF
5595 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5600 if test $ac_cv_sys_file_offset_bits = unknown
; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5602 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5603 if test "${ac_cv_sys_large_files+set}" = set; then :
5604 $as_echo_n "(cached) " >&6
5607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <sys/types.h>
5610 /* Check that off_t can represent 2**63 - 1 correctly.
5611 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5612 since some C++ compilers masquerading as C compilers
5613 incorrectly reject 9223372036854775807. */
5614 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5615 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5616 && LARGE_OFF_T % 2147483647 == 1)
5626 if ac_fn_c_try_compile
"$LINENO"; then :
5627 ac_cv_sys_large_files
=no
; break
5629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #define _LARGE_FILES 1
5633 #include <sys/types.h>
5634 /* Check that off_t can represent 2**63 - 1 correctly.
5635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5636 since some C++ compilers masquerading as C compilers
5637 incorrectly reject 9223372036854775807. */
5638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5640 && LARGE_OFF_T % 2147483647 == 1)
5650 if ac_fn_c_try_compile
"$LINENO"; then :
5651 ac_cv_sys_large_files
=1; break
5653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5654 ac_cv_sys_large_files
=unknown
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5659 $as_echo "$ac_cv_sys_large_files" >&6; }
5660 case $ac_cv_sys_large_files in #(
5663 cat >>confdefs.h
<<_ACEOF
5664 #define _LARGE_FILES $ac_cv_sys_large_files
5673 # sizeof(char) is 1 by definition.
5674 # The cast to long int works around a bug in the HP C Compiler
5675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5677 # This bug is HP SR number 8606223364.
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5679 $as_echo_n "checking size of void *... " >&6; }
5680 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5681 $as_echo_n "(cached) " >&6
5683 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5686 if test "$ac_cv_type_void_p" = yes; then
5687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5689 { as_fn_set_status
77
5690 as_fn_error
"cannot compute sizeof (void *)
5691 See \`config.log' for more details." "$LINENO" 5; }; }
5693 ac_cv_sizeof_void_p
=0
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5699 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5703 cat >>confdefs.h
<<_ACEOF
5704 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5708 # The cast to long int works around a bug in the HP C Compiler
5709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5711 # This bug is HP SR number 8606223364.
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5713 $as_echo_n "checking size of short... " >&6; }
5714 if test "${ac_cv_sizeof_short+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5717 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5720 if test "$ac_cv_type_short" = yes; then
5721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5723 { as_fn_set_status
77
5724 as_fn_error
"cannot compute sizeof (short)
5725 See \`config.log' for more details." "$LINENO" 5; }; }
5727 ac_cv_sizeof_short
=0
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5733 $as_echo "$ac_cv_sizeof_short" >&6; }
5737 cat >>confdefs.h
<<_ACEOF
5738 #define SIZEOF_SHORT $ac_cv_sizeof_short
5742 # The cast to long int works around a bug in the HP C Compiler
5743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5745 # This bug is HP SR number 8606223364.
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5747 $as_echo_n "checking size of int... " >&6; }
5748 if test "${ac_cv_sizeof_int+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
5751 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5754 if test "$ac_cv_type_int" = yes; then
5755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5757 { as_fn_set_status
77
5758 as_fn_error
"cannot compute sizeof (int)
5759 See \`config.log' for more details." "$LINENO" 5; }; }
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5767 $as_echo "$ac_cv_sizeof_int" >&6; }
5771 cat >>confdefs.h
<<_ACEOF
5772 #define SIZEOF_INT $ac_cv_sizeof_int
5776 # The cast to long int works around a bug in the HP C Compiler
5777 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5778 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5779 # This bug is HP SR number 8606223364.
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5781 $as_echo_n "checking size of long... " >&6; }
5782 if test "${ac_cv_sizeof_long+set}" = set; then :
5783 $as_echo_n "(cached) " >&6
5785 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5788 if test "$ac_cv_type_long" = yes; then
5789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5791 { as_fn_set_status
77
5792 as_fn_error
"cannot compute sizeof (long)
5793 See \`config.log' for more details." "$LINENO" 5; }; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5801 $as_echo "$ac_cv_sizeof_long" >&6; }
5805 cat >>confdefs.h
<<_ACEOF
5806 #define SIZEOF_LONG $ac_cv_sizeof_long
5810 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5811 if test "x$ac_cv_type_long_long" = x
""yes; then :
5813 cat >>confdefs.h
<<_ACEOF
5814 #define HAVE_LONG_LONG 1
5817 # The cast to long int works around a bug in the HP C Compiler
5818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5820 # This bug is HP SR number 8606223364.
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5822 $as_echo_n "checking size of long long... " >&6; }
5823 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5826 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5829 if test "$ac_cv_type_long_long" = yes; then
5830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5832 { as_fn_set_status
77
5833 as_fn_error
"cannot compute sizeof (long long)
5834 See \`config.log' for more details." "$LINENO" 5; }; }
5836 ac_cv_sizeof_long_long
=0
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5842 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5846 cat >>confdefs.h
<<_ACEOF
5847 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5853 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5854 if test "x$ac_cv_type___int64" = x
""yes; then :
5856 cat >>confdefs.h
<<_ACEOF
5857 #define HAVE___INT64 1
5860 # The cast to long int works around a bug in the HP C Compiler
5861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5863 # This bug is HP SR number 8606223364.
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5865 $as_echo_n "checking size of __int64... " >&6; }
5866 if test "${ac_cv_sizeof___int64+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5869 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5872 if test "$ac_cv_type___int64" = yes; then
5873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5875 { as_fn_set_status
77
5876 as_fn_error
"cannot compute sizeof (__int64)
5877 See \`config.log' for more details." "$LINENO" 5; }; }
5879 ac_cv_sizeof___int64
=0
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5885 $as_echo "$ac_cv_sizeof___int64" >&6; }
5889 cat >>confdefs.h
<<_ACEOF
5890 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5896 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5897 case $ac_cv_c_int8_t in #(
5901 cat >>confdefs.h
<<_ACEOF
5902 #define int8_t $ac_cv_c_int8_t
5907 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5908 case $ac_cv_c_int16_t in #(
5912 cat >>confdefs.h
<<_ACEOF
5913 #define int16_t $ac_cv_c_int16_t
5918 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5919 case $ac_cv_c_int32_t in #(
5923 cat >>confdefs.h
<<_ACEOF
5924 #define int32_t $ac_cv_c_int32_t
5929 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5930 case $ac_cv_c_int64_t in #(
5934 cat >>confdefs.h
<<_ACEOF
5935 #define int64_t $ac_cv_c_int64_t
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5942 $as_echo_n "checking for long long int... " >&6; }
5943 if test "${ac_cv_type_long_long_int+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5949 /* For now, do not test the preprocessor; as of 2007 there are too many
5950 implementations with broken preprocessors. Perhaps this can
5951 be revisited in 2012. In the meantime, code should not expect
5952 #if to work with literals wider than 32 bits. */
5953 /* Test literals. */
5954 long long int ll = 9223372036854775807ll;
5955 long long int nll = -9223372036854775807LL;
5956 unsigned long long int ull = 18446744073709551615ULL;
5957 /* Test constant expressions. */
5958 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5960 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5966 /* Test availability of runtime routines for shift and division. */
5967 long long int llmax = 9223372036854775807ll;
5968 unsigned long long int ullmax = 18446744073709551615ull;
5969 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5970 | (llmax / ll) | (llmax % ll)
5971 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5972 | (ullmax / ull) | (ullmax % ull));
5978 if ac_fn_c_try_link
"$LINENO"; then :
5979 if test "$cross_compiling" = yes; then :
5980 ac_cv_type_long_long_int
=yes
5982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5987 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5988 # define LLONG_MAX (HALF - 1 + HALF)
5993 long long int n = 1;
5997 long long int m = n << i;
6000 if (LLONG_MAX / 2 < m)
6008 if ac_fn_c_try_run
"$LINENO"; then :
6009 ac_cv_type_long_long_int
=yes
6011 ac_cv_type_long_long_int
=no
6013 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6014 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6018 ac_cv_type_long_long_int
=no
6020 rm -f core conftest.err conftest.
$ac_objext \
6021 conftest
$ac_exeext conftest.
$ac_ext
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6024 $as_echo "$ac_cv_type_long_long_int" >&6; }
6025 if test $ac_cv_type_long_long_int = yes; then
6027 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6033 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6034 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6036 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6039 test $ac_cv_type_long_long_int = yes \
6040 && ac_type
='long long int' \
6041 || ac_type
='long int'
6043 cat >>confdefs.h
<<_ACEOF
6044 #define intmax_t $ac_type
6051 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6052 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6054 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6057 for ac_type
in 'int' 'long int' 'long long int'; do
6058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060 $ac_includes_default
6064 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6071 if ac_fn_c_try_compile
"$LINENO"; then :
6073 cat >>confdefs.h
<<_ACEOF
6074 #define intptr_t $ac_type
6079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6080 test -z "$ac_type" && break
6085 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6086 case $ac_cv_c_uint8_t in #(
6090 $as_echo "#define _UINT8_T 1" >>confdefs.h
6093 cat >>confdefs.h
<<_ACEOF
6094 #define uint8_t $ac_cv_c_uint8_t
6099 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6100 case $ac_cv_c_uint16_t in #(
6105 cat >>confdefs.h
<<_ACEOF
6106 #define uint16_t $ac_cv_c_uint16_t
6111 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6112 case $ac_cv_c_uint32_t in #(
6116 $as_echo "#define _UINT32_T 1" >>confdefs.h
6119 cat >>confdefs.h
<<_ACEOF
6120 #define uint32_t $ac_cv_c_uint32_t
6125 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6126 case $ac_cv_c_uint64_t in #(
6130 $as_echo "#define _UINT64_T 1" >>confdefs.h
6133 cat >>confdefs.h
<<_ACEOF
6134 #define uint64_t $ac_cv_c_uint64_t
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6141 $as_echo_n "checking for unsigned long long int... " >&6; }
6142 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6148 /* For now, do not test the preprocessor; as of 2007 there are too many
6149 implementations with broken preprocessors. Perhaps this can
6150 be revisited in 2012. In the meantime, code should not expect
6151 #if to work with literals wider than 32 bits. */
6152 /* Test literals. */
6153 long long int ll = 9223372036854775807ll;
6154 long long int nll = -9223372036854775807LL;
6155 unsigned long long int ull = 18446744073709551615ULL;
6156 /* Test constant expressions. */
6157 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6159 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6165 /* Test availability of runtime routines for shift and division. */
6166 long long int llmax = 9223372036854775807ll;
6167 unsigned long long int ullmax = 18446744073709551615ull;
6168 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6169 | (llmax / ll) | (llmax % ll)
6170 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6171 | (ullmax / ull) | (ullmax % ull));
6177 if ac_fn_c_try_link
"$LINENO"; then :
6178 ac_cv_type_unsigned_long_long_int
=yes
6180 ac_cv_type_unsigned_long_long_int
=no
6182 rm -f core conftest.err conftest.
$ac_objext \
6183 conftest
$ac_exeext conftest.
$ac_ext
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6186 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6187 if test $ac_cv_type_unsigned_long_long_int = yes; then
6189 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6195 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6196 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6198 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6201 test $ac_cv_type_unsigned_long_long_int = yes \
6202 && ac_type
='unsigned long long int' \
6203 || ac_type
='unsigned long int'
6205 cat >>confdefs.h
<<_ACEOF
6206 #define uintmax_t $ac_type
6213 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6214 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6216 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6219 for ac_type
in 'unsigned int' 'unsigned long int' \
6220 'unsigned long long int'; do
6221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6223 $ac_includes_default
6227 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6234 if ac_fn_c_try_compile
"$LINENO"; then :
6236 cat >>confdefs.h
<<_ACEOF
6237 #define uintptr_t $ac_type
6242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6243 test -z "$ac_type" && break
6261 # ---------------------
6262 # Warnings and checking
6263 # ---------------------
6265 # Check $CC warning features (if it's GCC).
6266 # We want to use -pedantic, but we don't want warnings about
6269 # * overlong strings
6270 # * C++11 narrowing conversions in { }
6271 # So, we only use -pedantic if we can disable those warnings.
6274 save_CFLAGS
="$CFLAGS"
6275 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6276 # Do the check with the no- prefix removed since gcc silently
6277 # accepts any -Wno-* option on purpose
6278 case $real_option in
6279 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6280 *) option
=$real_option ;;
6282 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6285 $as_echo_n "checking whether $CC supports $option... " >&6; }
6286 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6287 $as_echo_n "(cached) " >&6
6290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6301 if ac_fn_c_try_compile
"$LINENO"; then :
6302 eval "$as_acx_Woption=yes"
6304 eval "$as_acx_Woption=no"
6306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6309 eval ac_res
=\$
$as_acx_Woption
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6311 $as_echo "$ac_res" >&6; }
6312 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6313 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6316 CFLAGS
="$save_CFLAGS"
6319 save_CFLAGS
="$CFLAGS"
6320 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6321 # Do the check with the no- prefix removed since gcc silently
6322 # accepts any -Wno-* option on purpose
6323 case $real_option in
6324 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6325 *) option
=$real_option ;;
6327 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6330 $as_echo_n "checking whether $CC supports $option... " >&6; }
6331 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6332 $as_echo_n "(cached) " >&6
6335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6346 if ac_fn_c_try_compile
"$LINENO"; then :
6347 eval "$as_acx_Woption=yes"
6349 eval "$as_acx_Woption=no"
6351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6354 eval ac_res
=\$
$as_acx_Woption
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6356 $as_echo "$ac_res" >&6; }
6357 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6358 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6361 CFLAGS
="$save_CFLAGS"
6364 save_CFLAGS
="$CFLAGS"
6365 for real_option
in -Wmissing-format-attribute; do
6366 # Do the check with the no- prefix removed since gcc silently
6367 # accepts any -Wno-* option on purpose
6368 case $real_option in
6369 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6370 *) option
=$real_option ;;
6372 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6375 $as_echo_n "checking whether $CC supports $option... " >&6; }
6376 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6377 $as_echo_n "(cached) " >&6
6380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6391 if ac_fn_c_try_compile
"$LINENO"; then :
6392 eval "$as_acx_Woption=yes"
6394 eval "$as_acx_Woption=no"
6396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6399 eval ac_res
=\$
$as_acx_Woption
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6401 $as_echo "$ac_res" >&6; }
6402 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6403 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6406 CFLAGS
="$save_CFLAGS"
6409 save_CFLAGS
="$CFLAGS"
6410 for real_option
in -Wold-style-definition -Wc++-compat; do
6411 # Do the check with the no- prefix removed since gcc silently
6412 # accepts any -Wno-* option on purpose
6413 case $real_option in
6414 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6415 *) option
=$real_option ;;
6417 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6420 $as_echo_n "checking whether $CC supports $option... " >&6; }
6421 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6422 $as_echo_n "(cached) " >&6
6425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6436 if ac_fn_c_try_compile
"$LINENO"; then :
6437 eval "$as_acx_Woption=yes"
6439 eval "$as_acx_Woption=no"
6441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6444 eval ac_res
=\$
$as_acx_Woption
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6446 $as_echo "$ac_res" >&6; }
6447 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6448 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6451 CFLAGS
="$save_CFLAGS"
6453 # Do the check with the no- prefix removed from the warning options
6454 # since gcc silently accepts any -Wno-* option on purpose
6455 if test "$GCC" = yes; then :
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6457 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6458 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6461 save_CFLAGS
="$CFLAGS"
6462 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6474 if ac_fn_c_try_compile
"$LINENO"; then :
6475 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6477 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6480 CFLAGS
="$save_CFLAGS"
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6483 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6484 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6485 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6490 # Check whether --enable-werror-always was given.
6491 if test "${enable_werror_always+set}" = set; then :
6492 enableval
=$enable_werror_always;
6494 enable_werror_always
=no
6497 if test $enable_werror_always = yes; then :
6498 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6503 # The above macros do nothing if the compiler is not GCC. However, the
6504 # Makefile has more goo to add other flags, so these variables are used
6505 # to enable warnings only for GCC.
6508 if test "x$GCC" = "xyes"; then
6509 warn_cflags
='$(GCC_WARN_CFLAGS)'
6510 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6515 # Disable exceptions and RTTI if building with g++
6517 save_CFLAGS
="$CFLAGS"
6518 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6519 # Do the check with the no- prefix removed since gcc silently
6520 # accepts any -Wno-* option on purpose
6521 case $real_option in
6522 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6523 *) option
=$real_option ;;
6525 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6528 $as_echo_n "checking whether $CC supports $option... " >&6; }
6529 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6530 $as_echo_n "(cached) " >&6
6533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6544 if ac_fn_c_try_compile
"$LINENO"; then :
6545 eval "$as_acx_Woption=yes"
6547 eval "$as_acx_Woption=no"
6549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6552 eval ac_res
=\$
$as_acx_Woption
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6554 $as_echo "$ac_res" >&6; }
6555 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6556 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6559 CFLAGS
="$save_CFLAGS"
6562 # Enable expensive internal checks
6564 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6568 # Check whether --enable-checking was given.
6569 if test "${enable_checking+set}" = set; then :
6570 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6573 # Determine the default checks.
6574 if test x
$is_release = x
; then
6575 ac_checking_flags
=yes
6577 ac_checking_flags
=release
6581 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6582 for check
in release
$ac_checking_flags
6585 # these set all the flags to specific states
6586 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6587 ac_fold_checking
= ; ac_gc_checking
=1 ;
6588 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6589 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6590 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6591 ac_types_checking
=1 ;;
6592 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6593 ac_fold_checking
= ; ac_gc_checking
= ;
6594 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6595 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6596 ac_tree_checking
= ; ac_valgrind_checking
= ;
6597 ac_types_checking
= ;;
6598 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6599 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6600 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6601 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6602 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6603 ac_types_checking
=1 ;;
6604 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6605 ac_fold_checking
= ; ac_gc_checking
= ;
6606 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6607 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6608 ac_tree_checking
= ; ac_valgrind_checking
= ;
6609 ac_types_checking
= ;;
6610 # these enable particular checks
6611 assert
) ac_assert_checking
=1 ;;
6612 df
) ac_df_checking
=1 ;;
6613 fold) ac_fold_checking
=1 ;;
6614 gc
) ac_gc_checking
=1 ;;
6615 gcac
) ac_gc_always_collect
=1 ;;
6616 gimple
) ac_gimple_checking
=1 ;;
6617 misc
) ac_checking
=1 ;;
6618 rtl
) ac_rtl_checking
=1 ;;
6619 rtlflag
) ac_rtlflag_checking
=1 ;;
6620 runtime
) ac_runtime_checking
=1 ;;
6621 tree
) ac_tree_checking
=1 ;;
6622 types
) ac_types_checking
=1 ;;
6623 valgrind
) ac_valgrind_checking
=1 ;;
6624 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6630 if test x
$ac_checking != x
; then
6632 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6634 nocommon_flag
=-fno-common
6637 if test x
$ac_df_checking != x
; then
6639 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6642 if test x
$ac_assert_checking != x
; then
6644 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6647 if test x
$ac_gimple_checking != x
; then
6649 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6653 if test x
$ac_runtime_checking != x
; then
6655 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6658 if test x
$ac_tree_checking != x
; then
6660 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6662 TREEBROWSER
=tree-browser.o
6665 if test x
$ac_types_checking != x
; then
6667 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6672 if test x
$ac_rtl_checking != x
; then
6674 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6677 if test x
$ac_rtlflag_checking != x
; then
6679 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6682 if test x
$ac_gc_checking != x
; then
6684 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6687 if test x
$ac_gc_always_collect != x
; then
6689 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6692 if test x
$ac_fold_checking != x
; then
6694 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6697 valgrind_path_defines
=
6700 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6701 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6709 if test x
$ac_valgrind_checking != x
; then
6710 # It is certainly possible that there's valgrind but no valgrind.h.
6711 # GCC relies on making annotations so we must have both.
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6713 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716 #include <valgrind/memcheck.h>
6717 #ifndef VALGRIND_DISCARD
6718 #error VALGRIND_DISCARD not defined
6721 if ac_fn_c_try_cpp
"$LINENO"; then :
6722 gcc_cv_header_valgrind_memcheck_h
=yes
6724 gcc_cv_header_valgrind_memcheck_h
=no
6726 rm -f conftest.err conftest.
$ac_ext
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6728 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6730 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6733 #include <memcheck.h>
6734 #ifndef VALGRIND_DISCARD
6735 #error VALGRIND_DISCARD not defined
6738 if ac_fn_c_try_cpp
"$LINENO"; then :
6739 gcc_cv_header_memcheck_h
=yes
6741 gcc_cv_header_memcheck_h
=no
6743 rm -f conftest.err conftest.
$ac_ext
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6745 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6747 # Prepare PATH_SEPARATOR.
6748 # The user is always right.
6749 if test "${PATH_SEPARATOR+set}" != set; then
6750 echo "#! /bin/sh" >conf$$.sh
6751 echo "exit 0" >>conf$$.sh
6753 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6761 # Find out how to test for executable files. Don't use a zero-byte file,
6762 # as systems may use methods other than mode bits to determine executability.
6763 cat >conf$$.
file <<_ASEOF
6767 chmod +x conf$$.
file
6768 if test -x conf$$.
file >/dev
/null
2>&1; then
6769 ac_executable_p
="test -x"
6771 ac_executable_p
="test -f"
6775 # Extract the first word of "valgrind", so it can be a program name with args.
6776 set dummy valgrind
; ac_word
=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6780 $as_echo_n "(cached) " >&6
6782 case "$valgrind_path" in
6784 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6787 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6788 for ac_dir
in $PATH; do
6790 test -z "$ac_dir" && ac_dir
=.
6791 for ac_exec_ext
in '' $ac_executable_extensions; do
6792 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6793 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6794 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6804 valgrind_path
="$ac_cv_path_valgrind_path"
6805 if test -n "$valgrind_path"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6807 $as_echo "$valgrind_path" >&6; }
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6813 if test "x$valgrind_path" = "x" \
6814 ||
(test $have_valgrind_h = no \
6815 && test $gcc_cv_header_memcheck_h = no \
6816 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6817 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6819 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6820 valgrind_command
="$valgrind_path -q"
6822 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6824 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6826 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6829 if test $gcc_cv_header_memcheck_h = yes; then
6831 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6838 # Enable code coverage collection
6839 # Check whether --enable-coverage was given.
6840 if test "${enable_coverage+set}" = set; then :
6841 enableval
=$enable_coverage; case "${enableval}" in
6843 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6846 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6849 # a.k.a. --disable-coverage
6853 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6862 # Check whether --enable-gather-detailed-mem-stats was given.
6863 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6864 enableval
=$enable_gather_detailed_mem_stats;
6866 enable_gather_detailed_mem_stats
=no
6869 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6871 cat >>confdefs.h
<<_ACEOF
6872 #define GATHER_STATISTICS $gather_stats
6876 # -------------------------------
6877 # Miscenalleous configure options
6878 # -------------------------------
6882 # Check whether --with-stabs was given.
6883 if test "${with_stabs+set}" = set; then :
6884 withval
=$with_stabs; stabs
="$with_stabs"
6890 # Determine whether or not multilibs are enabled.
6891 # Check whether --enable-multilib was given.
6892 if test "${enable_multilib+set}" = set; then :
6893 enableval
=$enable_multilib;
6900 # Determine whether or not multiarch is enabled.
6901 # Check whether --enable-multiarch was given.
6902 if test "${enable_multiarch+set}" = set; then :
6903 enableval
=$enable_multiarch; case "${enableval}" in
6904 yes|no|auto
) enable_multiarch
=$enableval;;
6905 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6908 enable_multiarch
=auto
6911 if test x
${enable_multiarch} = xauto
; then
6912 if test x
${with_native_system_header_dir} != x
; then
6913 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
6916 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
6917 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6922 $as_echo_n "checking for multiarch configuration... " >&6; }
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6925 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6927 # needed for setting the multiarch name for soft-float/hard-float ABIs
6931 # Enable __cxa_atexit for C++.
6932 # Check whether --enable-__cxa_atexit was given.
6933 if test "${enable___cxa_atexit+set}" = set; then :
6934 enableval
=$enable___cxa_atexit;
6938 # Enable C extension for decimal float if target supports it.
6940 # Check whether --enable-decimal-float was given.
6941 if test "${enable_decimal_float+set}" = set; then :
6942 enableval
=$enable_decimal_float;
6943 case $enable_decimal_float in
6944 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6945 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6946 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6952 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6954 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6955 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
6956 enable_decimal_float
=yes
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6960 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6961 enable_decimal_float
=no
6968 # x86's use BID format instead of DPD
6969 case x
$enable_decimal_float in
6972 i?
86*-*-* | x86_64
*-*-*)
6973 enable_decimal_float
=bid
6976 enable_decimal_float
=dpd
6979 default_decimal_float
=$enable_decimal_float
6982 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6983 # dependency on libdecnumber.
6984 default_decimal_float
=dpd
6991 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6993 cat >>confdefs.h
<<_ACEOF
6994 #define ENABLE_DECIMAL_FLOAT $dfp
6998 # Use default_decimal_float for dependency.
6999 enable_decimal_float
=$default_decimal_float
7001 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7003 cat >>confdefs.h
<<_ACEOF
7004 #define ENABLE_DECIMAL_BID_FORMAT $bid
7008 # Enable C extension for fixed-point arithmetic.
7009 # Check whether --enable-fixed-point was given.
7010 if test "${enable_fixed_point+set}" = set; then :
7011 enableval
=$enable_fixed_point;
7016 enable_fixed_point
=yes
7020 enable_fixed_point
=yes
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7024 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7025 enable_fixed_point
=no
7033 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7035 cat >>confdefs.h
<<_ACEOF
7036 #define ENABLE_FIXED_POINT $fixedpoint
7041 # Pass with no value to take the default
7042 # Pass with a value to specify a thread package
7043 # Check whether --enable-threads was given.
7044 if test "${enable_threads+set}" = set; then :
7045 enableval
=$enable_threads;
7051 # Check whether --enable-tls was given.
7052 if test "${enable_tls+set}" = set; then :
7053 enableval
=$enable_tls;
7056 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7057 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7065 # Check whether --enable-objc-gc was given.
7066 if test "${enable_objc_gc+set}" = set; then :
7067 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7078 # Check whether --with-dwarf2 was given.
7079 if test "${with_dwarf2+set}" = set; then :
7080 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7086 # Check whether --enable-shared was given.
7087 if test "${enable_shared+set}" = set; then :
7088 enableval
=$enable_shared;
7089 case $enable_shared in
7093 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7094 for pkg
in $enableval; do
7095 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7110 # Check whether --with-native-system-header-dir was given.
7111 if test "${with_native_system_header_dir+set}" = set; then :
7112 withval
=$with_native_system_header_dir;
7113 case ${with_native_system_header_dir} in
7114 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7115 /* |
[A-Za-z
]:[\\/]*) ;;
7116 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7118 configured_native_system_header_dir
="${withval}"
7121 configured_native_system_header_dir
=
7126 # Check whether --with-build-sysroot was given.
7127 if test "${with_build_sysroot+set}" = set; then :
7128 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7129 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7132 SYSROOT_CFLAGS_FOR_TARGET
=
7137 if test "x$prefix" = xNONE
; then
7138 test_prefix
=/usr
/local
7142 if test "x$exec_prefix" = xNONE
; then
7143 test_exec_prefix
=$test_prefix
7145 test_exec_prefix
=$exec_prefix
7149 # Check whether --with-sysroot was given.
7150 if test "${with_sysroot+set}" = set; then :
7151 withval
=$with_sysroot;
7152 case ${with_sysroot} in
7153 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7154 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7157 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7158 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7160 case ${TARGET_SYSTEM_ROOT} in
7161 "${test_prefix}"|
"${test_prefix}/"*|\
7162 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7163 '${prefix}'|
'${prefix}/'*|\
7164 '${exec_prefix}'|
'${exec_prefix}/'*)
7165 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7166 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7173 TARGET_SYSTEM_ROOT_DEFINE
=
7174 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7183 # Check whether --with-specs was given.
7184 if test "${with_specs+set}" = set; then :
7185 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7195 # Check whether --with-pkgversion was given.
7196 if test "${with_pkgversion+set}" = set; then :
7197 withval
=$with_pkgversion; case "$withval" in
7198 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7200 *) PKGVERSION
="($withval) " ;;
7211 # Check whether --with-bugurl was given.
7212 if test "${with_bugurl+set}" = set; then :
7213 withval
=$with_bugurl; case "$withval" in
7214 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7217 *) BUGURL
="$withval"
7221 BUGURL
="http://gcc.gnu.org/bugs.html"
7231 REPORT_BUGS_TO
="<$BUGURL>"
7232 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7239 # Sanity check enable_languages in case someone does not run the toplevel
7240 # configure # script.
7241 # Check whether --enable-languages was given.
7242 if test "${enable_languages+set}" = set; then :
7243 enableval
=$enable_languages; case ,${enable_languages}, in
7245 # go safe -- we cannot be much sure without the toplevel
7247 # analysis of which target libs are present and usable
7251 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7256 enable_languages
=c
,${enable_languages}
7265 # Check whether --with-multilib-list was given.
7266 if test "${with_multilib_list+set}" = set; then :
7267 withval
=$with_multilib_list; :
7269 with_multilib_list
=default
7273 # -------------------------
7274 # Checks for other programs
7275 # -------------------------
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7278 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7280 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7281 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7282 $as_echo_n "(cached) " >&6
7284 cat >conftest.
make <<\_ACEOF
7287 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7289 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7290 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7292 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7294 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7298 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7300 $as_echo "yes" >&6; }
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 SET_MAKE
="MAKE=${MAKE-make}"
7309 # Find some useful tools
7310 for ac_prog
in gawk mawk nawk
awk
7312 # Extract the first word of "$ac_prog", so it can be a program name with args.
7313 set dummy
$ac_prog; ac_word
=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if test "${ac_cv_prog_AWK+set}" = set; then :
7317 $as_echo_n "(cached) " >&6
7319 if test -n "$AWK"; then
7320 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir
=.
7327 for ac_exec_ext
in '' $ac_executable_extensions; do
7328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7329 ac_cv_prog_AWK
="$ac_prog"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 if test -n "$AWK"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7342 $as_echo "$AWK" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7349 test -n "$AWK" && break
7352 # We need awk to create options.c and options.h.
7353 # Bail out if it's missing.
7355 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7359 $as_echo_n "checking whether ln -s works... " >&6; }
7360 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
7363 rm -f conftestdata_t
7364 echo >conftestdata_f
7365 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7367 gcc_cv_prog_LN_S
="ln -s"
7369 if ln conftestdata_f conftestdata_t
2>/dev
/null
7373 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7375 gcc_cv_prog_LN_S
="cp -p"
7381 rm -f conftestdata_f conftestdata_t
7384 LN_S
="$gcc_cv_prog_LN_S"
7385 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7387 $as_echo "yes" >&6; }
7389 if test "$gcc_cv_prog_LN_S" = "ln"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7391 $as_echo "no, using ln" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7394 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7399 $as_echo_n "checking whether ln works... " >&6; }
7400 if test "${acx_cv_prog_LN+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7403 rm -f conftestdata_t
7404 echo >conftestdata_f
7405 if ln conftestdata_f conftestdata_t
2>/dev
/null
7411 rm -f conftestdata_f conftestdata_t
7414 if test $acx_cv_prog_LN = no
; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7417 $as_echo "no, using $LN" >&6; }
7419 LN
="$acx_cv_prog_LN"
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7421 $as_echo "yes" >&6; }
7424 if test -n "$ac_tool_prefix"; then
7425 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7426 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7432 if test -n "$RANLIB"; then
7433 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7439 test -z "$as_dir" && as_dir
=.
7440 for ac_exec_ext
in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7442 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 RANLIB
=$ac_cv_prog_RANLIB
7453 if test -n "$RANLIB"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7455 $as_echo "$RANLIB" >&6; }
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7463 if test -z "$ac_cv_prog_RANLIB"; then
7464 ac_ct_RANLIB
=$RANLIB
7465 # Extract the first word of "ranlib", so it can be a program name with args.
7466 set dummy ranlib
; ac_word
=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7470 $as_echo_n "(cached) " >&6
7472 if test -n "$ac_ct_RANLIB"; then
7473 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir
=.
7480 for ac_exec_ext
in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7493 if test -n "$ac_ct_RANLIB"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7495 $as_echo "$ac_ct_RANLIB" >&6; }
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7501 if test "x$ac_ct_RANLIB" = x
; then
7504 case $cross_compiling:$ac_tool_warned in
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508 ac_tool_warned
=yes ;;
7510 RANLIB
=$ac_ct_RANLIB
7513 RANLIB
="$ac_cv_prog_RANLIB"
7519 # Find a good install program. We prefer a C program (faster),
7520 # so one script is as good as another. But avoid the broken or
7521 # incompatible versions:
7522 # SysV /etc/install, /usr/sbin/install
7523 # SunOS /usr/etc/install
7524 # IRIX /sbin/install
7526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7528 # ./install, which can be erroneously created by make from ./install.sh.
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7530 $as_echo_n "checking for a BSD compatible install... " >&6; }
7531 if test -z "$INSTALL"; then
7532 if test "${ac_cv_path_install+set}" = set; then :
7533 $as_echo_n "(cached) " >&6
7535 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7536 for ac_dir
in $PATH; do
7537 # Account for people who put trailing slashes in PATH elements.
7539 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7541 # OSF1 and SCO ODT 3.0 have their own names for install.
7542 for ac_prog
in ginstall scoinst
install; do
7543 if test -f $ac_dir/$ac_prog; then
7544 if test $ac_prog = install &&
7545 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7546 # AIX install. It has an incompatible calling convention.
7547 # OSF/1 installbsd also uses dspmsg, but is usable.
7550 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7561 if test "${ac_cv_path_install+set}" = set; then
7562 INSTALL
="$ac_cv_path_install"
7564 # As a last resort, use the slow shell script. We don't cache a
7565 # path for INSTALL within a source directory, because that will
7566 # break other packages using the cache if that directory is
7567 # removed, or if the path is relative.
7568 INSTALL
="$ac_install_sh"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7572 $as_echo "$INSTALL" >&6; }
7574 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7575 # It thinks the first close brace ends the variable substitution.
7576 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7578 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7581 # See if cmp has --ignore-initial.
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7583 $as_echo_n "checking for cmp's capabilities... " >&6; }
7584 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7589 gcc_cv_prog_cmp_skip
=slowcompare
7590 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7591 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7594 gcc_cv_prog_cmp_skip
=gnucompare
7597 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7598 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7599 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7602 gcc_cv_prog_cmp_skip
=fastcompare
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7610 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7611 make_compare_target
=$gcc_cv_prog_cmp_skip
7615 # See if we have the mktemp command.
7616 # Extract the first word of "mktemp", so it can be a program name with args.
7617 set dummy mktemp
; ac_word
=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7623 if test -n "$have_mktemp_command"; then
7624 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir
=.
7631 for ac_exec_ext
in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_prog_have_mktemp_command
="yes"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7644 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7645 if test -n "$have_mktemp_command"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7647 $as_echo "$have_mktemp_command" >&6; }
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7655 # See if makeinfo has been installed and is modern enough
7656 # that we can use it.
7658 # Extract the first word of "makeinfo", so it can be a program name with args.
7659 set dummy makeinfo
; ac_word
=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7665 if test -n "$MAKEINFO"; then
7666 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir
=.
7673 for ac_exec_ext
in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_MAKEINFO
="makeinfo"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 MAKEINFO
=$ac_cv_prog_MAKEINFO
7686 if test -n "$MAKEINFO"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7688 $as_echo "$MAKEINFO" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7695 if test -n "$MAKEINFO"; then
7696 # Found it, now check the version.
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7698 $as_echo_n "checking for modern makeinfo... " >&6; }
7699 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7702 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7703 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7705 case $ac_prog_version in
7706 '') gcc_cv_prog_makeinfo_modern
=no
;;
7707 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7708 *) gcc_cv_prog_makeinfo_modern
=no
;;
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7713 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7715 gcc_cv_prog_makeinfo_modern
=no
7717 if test $gcc_cv_prog_makeinfo_modern = no
; then
7718 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7721 if test $gcc_cv_prog_makeinfo_modern = no
; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7723 *** Makeinfo is missing or too old.
7724 *** Info documentation will not be built." >&5
7725 $as_echo "$as_me: WARNING:
7726 *** Makeinfo is missing or too old.
7727 *** Info documentation will not be built." >&2;}
7734 # Is pod2man recent enough to regenerate manpages?
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7736 $as_echo_n "checking for recent Pod::Man... " >&6; }
7737 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7739 $as_echo "yes" >&6; }
7740 GENERATED_MANPAGES
=generated-manpages
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7748 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7753 # Extract the first word of "$ac_prog", so it can be a program name with args.
7754 set dummy
$ac_prog; ac_word
=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if test "${ac_cv_prog_FLEX+set}" = set; then :
7758 $as_echo_n "(cached) " >&6
7760 if test -n "$FLEX"; then
7761 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7767 test -z "$as_dir" && as_dir
=.
7768 for ac_exec_ext
in '' $ac_executable_extensions; do
7769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770 ac_cv_prog_FLEX
="$ac_prog"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 FLEX
=$ac_cv_prog_FLEX
7781 if test -n "$FLEX"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7783 $as_echo "$FLEX" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7790 test -n "$FLEX" && break
7792 test -n "$FLEX" || FLEX
="$MISSING flex"
7796 for ac_prog
in bison
7798 # Extract the first word of "$ac_prog", so it can be a program name with args.
7799 set dummy
$ac_prog; ac_word
=$2
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if test "${ac_cv_prog_BISON+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7805 if test -n "$BISON"; then
7806 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7812 test -z "$as_dir" && as_dir
=.
7813 for ac_exec_ext
in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_prog_BISON
="$ac_prog"
7816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 BISON
=$ac_cv_prog_BISON
7826 if test -n "$BISON"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7828 $as_echo "$BISON" >&6; }
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7835 test -n "$BISON" && break
7837 test -n "$BISON" || BISON
="$MISSING bison"
7840 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7841 # check for build == host before using them.
7844 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7845 && test -d ..
/binutils
; then
7846 NM
='${objdir}/../binutils/nm-new'
7848 # Extract the first word of "nm", so it can be a program name with args.
7849 set dummy nm
; ac_word
=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if test "${ac_cv_prog_NM+set}" = set; then :
7853 $as_echo_n "(cached) " >&6
7855 if test -n "$NM"; then
7856 ac_cv_prog_NM
="$NM" # Let the user override the test.
7858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7862 test -z "$as_dir" && as_dir
=.
7863 for ac_exec_ext
in '' $ac_executable_extensions; do
7864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7877 if test -n "$NM"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7879 $as_echo "$NM" >&6; }
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7889 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7890 && test -d ..
/binutils
; then
7891 AR
='${objdir}/../binutils/ar'
7893 # Extract the first word of "ar", so it can be a program name with args.
7894 set dummy
ar; ac_word
=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_prog_AR+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7900 if test -n "$AR"; then
7901 ac_cv_prog_AR
="$AR" # Let the user override the test.
7903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7907 test -z "$as_dir" && as_dir
=.
7908 for ac_exec_ext
in '' $ac_executable_extensions; do
7909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7922 if test -n "$AR"; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7924 $as_echo "$AR" >&6; }
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 $as_echo "no" >&6; }
7934 # --------------------
7935 # Checks for C headers
7936 # --------------------
7938 # Need to reject headers which give warnings, so that the -Werror bootstrap
7939 # works later. *sigh* This needs to come before all header checks.
7941 ac_c_preproc_warn_flag
=yes
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7944 $as_echo_n "checking for ANSI C header files... " >&6; }
7945 if test "${ac_cv_header_stdc+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7963 if ac_fn_c_try_compile
"$LINENO"; then :
7964 ac_cv_header_stdc
=yes
7966 ac_cv_header_stdc
=no
7968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7970 if test $ac_cv_header_stdc = yes; then
7971 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7978 $EGREP "memchr" >/dev
/null
2>&1; then :
7981 ac_cv_header_stdc
=no
7987 if test $ac_cv_header_stdc = yes; then
7988 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7995 $EGREP "free" >/dev
/null
2>&1; then :
7998 ac_cv_header_stdc
=no
8004 if test $ac_cv_header_stdc = yes; then
8005 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8006 if test "$cross_compiling" = yes; then :
8009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8013 #if ((' ' & 0x0FF) == 0x020)
8014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8017 # define ISLOWER(c) \
8018 (('a' <= (c) && (c) <= 'i') \
8019 || ('j' <= (c) && (c) <= 'r') \
8020 || ('s' <= (c) && (c) <= 'z'))
8021 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8029 for (i = 0; i < 256; i++)
8030 if (XOR (islower (i), ISLOWER (i))
8031 || toupper (i) != TOUPPER (i))
8036 if ac_fn_c_try_run
"$LINENO"; then :
8039 ac_cv_header_stdc
=no
8041 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8042 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8048 $as_echo "$ac_cv_header_stdc" >&6; }
8049 if test $ac_cv_header_stdc = yes; then
8051 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8056 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8057 if test "${ac_cv_header_time+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
8060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8062 #include <sys/types.h>
8063 #include <sys/time.h>
8069 if ((struct tm *) 0)
8075 if ac_fn_c_try_compile
"$LINENO"; then :
8076 ac_cv_header_time
=yes
8078 ac_cv_header_time
=no
8080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8083 $as_echo "$ac_cv_header_time" >&6; }
8084 if test $ac_cv_header_time = yes; then
8086 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8091 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8092 if test "${gcc_cv_header_string+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8098 #include <strings.h>
8107 if ac_fn_c_try_compile
"$LINENO"; then :
8108 gcc_cv_header_string
=yes
8110 gcc_cv_header_string
=no
8112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8115 $as_echo "$gcc_cv_header_string" >&6; }
8116 if test $gcc_cv_header_string = yes; then
8118 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8123 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8124 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
8127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129 #include <sys/types.h>
8130 #include <sys/wait.h>
8132 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8135 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8143 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8148 if ac_fn_c_try_compile
"$LINENO"; then :
8149 ac_cv_header_sys_wait_h
=yes
8151 ac_cv_header_sys_wait_h
=no
8153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8156 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8157 if test $ac_cv_header_sys_wait_h = yes; then
8159 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8164 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8165 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 #include <sys/types.h>
8171 #include <termios.h>
8177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8178 $EGREP "yes" >/dev
/null
2>&1; then :
8179 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8181 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8187 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8189 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8191 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8192 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
8195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197 #include <sys/types.h>
8198 #include <sys/ioctl.h>
8204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8205 $EGREP "yes" >/dev
/null
2>&1; then :
8206 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8208 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8214 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8216 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8218 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8223 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8224 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8225 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8226 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8228 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8230 eval as_val
=\$
$as_ac_Header
8231 if test "x$as_val" = x
""yes; then :
8232 cat >>confdefs.h
<<_ACEOF
8233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8240 # Check for thread headers.
8241 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8242 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8248 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8249 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8256 # These tests can't be done till we know if we have limits.h.
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8258 $as_echo_n "checking for CHAR_BIT... " >&6; }
8259 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8264 #ifdef HAVE_LIMITS_H
8271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8272 $EGREP "found" >/dev
/null
2>&1; then :
8273 gcc_cv_decl_char_bit
=yes
8275 gcc_cv_decl_char_bit
=no
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8282 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8283 if test $gcc_cv_decl_char_bit = no
; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8285 $as_echo_n "checking number of bits in a byte... " >&6; }
8286 if test "${gcc_cv_c_nbby+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8291 while test $i -lt 65; do
8292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8299 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8300 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8306 if ac_fn_c_try_compile
"$LINENO"; then :
8307 gcc_cv_c_nbby
=$i; break
8309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8312 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8316 $as_echo "$gcc_cv_c_nbby" >&6; }
8317 if test $gcc_cv_c_nbby = failed
; then
8318 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8321 cat >>confdefs.h
<<_ACEOF
8322 #define CHAR_BIT $gcc_cv_c_nbby
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8328 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8329 if test "${ac_cv_c_bigendian+set}" = set; then :
8330 $as_echo_n "(cached) " >&6
8332 ac_cv_c_bigendian
=unknown
8333 # See if we're dealing with a universal compiler.
8334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 #ifndef __APPLE_CC__
8337 not a universal capable compiler
8342 if ac_fn_c_try_compile
"$LINENO"; then :
8344 # Check for potential -arch flags. It is not universal unless
8345 # there are at least two -arch flags with different values.
8348 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8349 if test -n "$ac_prev"; then
8351 i?
86 | x86_64 | ppc | ppc64
)
8352 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8355 ac_cv_c_bigendian
=universal
8361 elif test "x$ac_word" = "x-arch"; then
8366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8367 if test $ac_cv_c_bigendian = unknown
; then
8368 # See if sys/param.h defines the BYTE_ORDER macro.
8369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h. */
8371 #include <sys/types.h>
8372 #include <sys/param.h>
8377 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8378 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8387 if ac_fn_c_try_compile
"$LINENO"; then :
8388 # It does; now see whether it defined to BIG_ENDIAN or not.
8389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8391 #include <sys/types.h>
8392 #include <sys/param.h>
8397 #if BYTE_ORDER != BIG_ENDIAN
8405 if ac_fn_c_try_compile
"$LINENO"; then :
8406 ac_cv_c_bigendian
=yes
8408 ac_cv_c_bigendian
=no
8410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8414 if test $ac_cv_c_bigendian = unknown
; then
8415 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8423 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8431 if ac_fn_c_try_compile
"$LINENO"; then :
8432 # It does; now see whether it defined to _BIG_ENDIAN or not.
8433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8448 if ac_fn_c_try_compile
"$LINENO"; then :
8449 ac_cv_c_bigendian
=yes
8451 ac_cv_c_bigendian
=no
8453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8457 if test $ac_cv_c_bigendian = unknown
; then
8458 # Compile a test program.
8459 if test "$cross_compiling" = yes; then :
8460 # Try to guess by grepping values from an object file.
8461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463 short int ascii_mm[] =
8464 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8465 short int ascii_ii[] =
8466 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8467 int use_ascii (int i) {
8468 return ascii_mm[i] + ascii_ii[i];
8470 short int ebcdic_ii[] =
8471 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8472 short int ebcdic_mm[] =
8473 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8474 int use_ebcdic (int i) {
8475 return ebcdic_mm[i] + ebcdic_ii[i];
8482 return use_ascii (foo) == use_ebcdic (foo);
8487 if ac_fn_c_try_compile
"$LINENO"; then :
8488 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8489 ac_cv_c_bigendian
=yes
8491 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8492 if test "$ac_cv_c_bigendian" = unknown
; then
8493 ac_cv_c_bigendian
=no
8495 # finding both strings is unlikely to happen, but who knows?
8496 ac_cv_c_bigendian
=unknown
8500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 $ac_includes_default
8509 /* Are we little or big endian? From Harbison&Steele. */
8513 char c[sizeof (long int)];
8516 return u.c[sizeof (long int) - 1] == 1;
8522 if ac_fn_c_try_run
"$LINENO"; then :
8523 ac_cv_c_bigendian
=no
8525 ac_cv_c_bigendian
=yes
8527 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8528 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8534 $as_echo "$ac_cv_c_bigendian" >&6; }
8535 case $ac_cv_c_bigendian in #(
8537 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8543 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8547 as_fn_error
"unknown endianness
8548 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8552 # ----------------------
8553 # Checks for C++ headers
8554 # ----------------------
8557 ac_cpp
='$CXXCPP $CPPFLAGS'
8558 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8559 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8560 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8562 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8563 if test -z "$CXXCPP"; then
8564 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8565 $as_echo_n "(cached) " >&6
8567 # Double quotes because CXXCPP needs to be expanded
8568 for CXXCPP
in "$CXX -E" "/lib/cpp"
8571 for ac_cxx_preproc_warn_flag
in '' yes
8573 # Use a header file that comes with gcc, so configuring glibc
8574 # with a fresh cross-compiler works.
8575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8576 # <limits.h> exists even on freestanding compilers.
8577 # On the NeXT, cc -E runs the code through the compiler's parser,
8578 # not just through cpp. "Syntax error" is here to catch this case.
8579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8582 # include <limits.h>
8584 # include <assert.h>
8588 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8591 # Broken: fails on valid input.
8594 rm -f conftest.err conftest.
$ac_ext
8596 # OK, works on sane cases. Now check whether nonexistent headers
8597 # can be detected and how.
8598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 #include <ac_nonexistent.h>
8602 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8603 # Broken: success on invalid input.
8606 # Passes both tests.
8610 rm -f conftest.err conftest.
$ac_ext
8613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8614 rm -f conftest.err conftest.
$ac_ext
8615 if $ac_preproc_ok; then :
8620 ac_cv_prog_CXXCPP
=$CXXCPP
8623 CXXCPP
=$ac_cv_prog_CXXCPP
8625 ac_cv_prog_CXXCPP
=$CXXCPP
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8628 $as_echo "$CXXCPP" >&6; }
8630 for ac_cxx_preproc_warn_flag
in '' yes
8632 # Use a header file that comes with gcc, so configuring glibc
8633 # with a fresh cross-compiler works.
8634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8635 # <limits.h> exists even on freestanding compilers.
8636 # On the NeXT, cc -E runs the code through the compiler's parser,
8637 # not just through cpp. "Syntax error" is here to catch this case.
8638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8641 # include <limits.h>
8643 # include <assert.h>
8647 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8650 # Broken: fails on valid input.
8653 rm -f conftest.err conftest.
$ac_ext
8655 # OK, works on sane cases. Now check whether nonexistent headers
8656 # can be detected and how.
8657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 #include <ac_nonexistent.h>
8661 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8662 # Broken: success on invalid input.
8665 # Passes both tests.
8669 rm -f conftest.err conftest.
$ac_ext
8672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8673 rm -f conftest.err conftest.
$ac_ext
8674 if $ac_preproc_ok; then :
8677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8680 See \`config.log' for more details." >&5
8681 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8682 See \`config.log' for more details." >&2;}; }
8686 ac_cpp
='$CPP $CPPFLAGS'
8687 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8688 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8689 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8693 ac_cpp
='$CXXCPP $CPPFLAGS'
8694 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8695 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8696 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8701 for ac_header
in unordered_map
8703 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8704 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8705 cat >>confdefs.h
<<_ACEOF
8706 #define HAVE_UNORDERED_MAP 1
8712 for ac_header
in tr1/unordered_map
8714 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8715 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8716 cat >>confdefs.h
<<_ACEOF
8717 #define HAVE_TR1_UNORDERED_MAP 1
8723 for ac_header
in ext
/hash_map
8725 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8726 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8727 cat >>confdefs.h
<<_ACEOF
8728 #define HAVE_EXT_HASH_MAP 1
8736 ac_cpp
='$CPP $CPPFLAGS'
8737 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8738 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8739 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8743 # Dependency checking.
8747 ac_cpp
='$CXXCPP $CPPFLAGS'
8748 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8749 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8750 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8752 rm -rf .tst
2>/dev
/null
8753 mkdir .tst
2>/dev
/null
8754 if test -d .tst
; then
8759 rmdir .tst
2>/dev
/null
8761 DEPDIR
="${am__leading_dot}deps"
8763 ac_config_commands
="$ac_config_commands depdir"
8766 ac_config_commands
="$ac_config_commands gccdepdir"
8769 depcc
="$CXX" am_compiler_list
=
8771 am_depcomp
=$ac_aux_dir/depcomp
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8773 $as_echo_n "checking dependency style of $depcc... " >&6; }
8774 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8775 $as_echo_n "(cached) " >&6
8777 if test -f "$am_depcomp"; then
8778 # We make a subdir and do the tests there. Otherwise we can end up
8779 # making bogus files that we don't know about and never remove. For
8780 # instance it was reported that on HP-UX the gcc test will end up
8781 # making a dummy file named `D' -- because `-MD' means `put the output
8784 # Copy depcomp to subdir because otherwise we won't find it if we're
8785 # using a relative directory.
8786 cp "$am_depcomp" conftest.dir
8788 # We will build objects and dependencies in a subdirectory because
8789 # it helps to detect inapplicable dependency modes. For instance
8790 # both Tru64's cc and ICC support -MD to output dependencies as a
8791 # side effect of compilation, but ICC will put the dependencies in
8792 # the current directory while Tru64 will put them in the object
8796 am_cv_CXX_dependencies_compiler_type
=none
8797 if test "$am_compiler_list" = ""; then
8798 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8800 for depmode
in $am_compiler_list; do
8801 if test $depmode = none
; then break; fi
8803 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8804 # Setup a source with many dependencies, because some compilers
8805 # like to wrap large dependency lists on column 80 (with \), and
8806 # we should not choose a depcomp mode which is confused by this.
8808 # We need to recreate these files for each test, as the compiler may
8809 # overwrite some of them when testing with obscure command lines.
8810 # This happens at least with the AIX C compiler.
8812 for i
in 1 2 3 4 5 6; do
8813 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
8814 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8815 # Solaris 8's {/usr,}/bin/sh.
8816 touch sub
/conftst
$i.h
8818 echo "include sub/conftest.Po" > confmf
8820 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8821 # mode. It turns out that the SunPro C++ compiler does not properly
8822 # handle `-M -o', and we need to detect this.
8823 depcmd
="depmode=$depmode \
8824 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8825 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8826 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8827 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
8828 if env
$depcmd > conftest.err
2>&1 &&
8829 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
8830 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
8831 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
8832 # icc doesn't choke on unknown options, it will just issue warnings
8833 # or remarks (even with -Werror). So we grep stderr for any message
8834 # that says an option was ignored or not supported.
8835 # When given -MP, icc 7.0 and 7.1 complain thusly:
8836 # icc: Command line warning: ignoring option '-M'; no argument required
8837 # The diagnosis changed in icc 8.0:
8838 # icc: Command line remark: option '-MP' not supported
8839 if (grep 'ignoring option' conftest.err ||
8840 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
8841 am_cv_CXX_dependencies_compiler_type
=$depmode
8842 $as_echo "$as_me:$LINENO: success" >&5
8846 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8847 sed -e 's/^/| /' < conftest.err
>&5
8853 am_cv_CXX_dependencies_compiler_type
=none
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8858 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8859 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
8860 then as_fn_error
"no usable dependency style found" "$LINENO" 5
8861 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
8866 ac_cpp
='$CPP $CPPFLAGS'
8867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8877 # These libraries may be used by collect2.
8878 # We may need a special search path to get them linked.
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8880 $as_echo_n "checking for collect2 libraries... " >&6; }
8881 if test "${gcc_cv_collect2_libs+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8885 for libs
in '' -lld -lmld \
8886 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8887 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8893 /* Override any GCC internal prototype to avoid an error.
8894 Use char because int might match the return type of a GCC
8895 builtin and then its argument prototype would still apply. */
8908 if ac_fn_c_try_link
"$LINENO"; then :
8909 gcc_cv_collect2_libs
="$libs"; break
8911 rm -f core conftest.err conftest.
$ac_objext \
8912 conftest
$ac_exeext conftest.
$ac_ext
8915 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8918 $as_echo "$gcc_cv_collect2_libs" >&6; }
8919 case $gcc_cv_collect2_libs in
8921 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8925 # When building Ada code on Alpha, we need exc_resume which is usually in
8926 # -lexc. So test for it.
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8930 $as_echo_n "checking for library containing exc_resume... " >&6; }
8931 if test "${ac_cv_search_exc_resume+set}" = set; then :
8932 $as_echo_n "(cached) " >&6
8934 ac_func_search_save_LIBS
=$LIBS
8935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8938 /* Override any GCC internal prototype to avoid an error.
8939 Use char because int might match the return type of a GCC
8940 builtin and then its argument prototype would still apply. */
8948 return exc_resume ();
8953 for ac_lib
in '' exc
; do
8954 if test -z "$ac_lib"; then
8955 ac_res
="none required"
8958 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8960 if ac_fn_c_try_link
"$LINENO"; then :
8961 ac_cv_search_exc_resume
=$ac_res
8963 rm -f core conftest.err conftest.
$ac_objext \
8965 if test "${ac_cv_search_exc_resume+set}" = set; then :
8969 if test "${ac_cv_search_exc_resume+set}" = set; then :
8972 ac_cv_search_exc_resume
=no
8975 LIBS
=$ac_func_search_save_LIBS
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8978 $as_echo "$ac_cv_search_exc_resume" >&6; }
8979 ac_res
=$ac_cv_search_exc_resume
8980 if test "$ac_res" != no
; then :
8981 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8989 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8993 $as_echo_n "checking for library containing kstat_open... " >&6; }
8994 if test "${ac_cv_search_kstat_open+set}" = set; then :
8995 $as_echo_n "(cached) " >&6
8997 ac_func_search_save_LIBS
=$LIBS
8998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9001 /* Override any GCC internal prototype to avoid an error.
9002 Use char because int might match the return type of a GCC
9003 builtin and then its argument prototype would still apply. */
9011 return kstat_open ();
9016 for ac_lib
in '' kstat
; do
9017 if test -z "$ac_lib"; then
9018 ac_res
="none required"
9021 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9023 if ac_fn_c_try_link
"$LINENO"; then :
9024 ac_cv_search_kstat_open
=$ac_res
9026 rm -f core conftest.err conftest.
$ac_objext \
9028 if test "${ac_cv_search_kstat_open+set}" = set; then :
9032 if test "${ac_cv_search_kstat_open+set}" = set; then :
9035 ac_cv_search_kstat_open
=no
9038 LIBS
=$ac_func_search_save_LIBS
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9041 $as_echo "$ac_cv_search_kstat_open" >&6; }
9042 ac_res
=$ac_cv_search_kstat_open
9043 if test "$ac_res" != no
; then :
9044 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9048 EXTRA_GCC_LIBS
="$LIBS"
9052 # Some systems put ldexp and frexp in libm instead of libc; assume
9053 # they're both in the same place. jcf-dump needs them.
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9057 $as_echo_n "checking for library containing ldexp... " >&6; }
9058 if test "${ac_cv_search_ldexp+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9061 ac_func_search_save_LIBS
=$LIBS
9062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9065 /* Override any GCC internal prototype to avoid an error.
9066 Use char because int might match the return type of a GCC
9067 builtin and then its argument prototype would still apply. */
9080 for ac_lib
in '' m
; do
9081 if test -z "$ac_lib"; then
9082 ac_res
="none required"
9085 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9087 if ac_fn_c_try_link
"$LINENO"; then :
9088 ac_cv_search_ldexp
=$ac_res
9090 rm -f core conftest.err conftest.
$ac_objext \
9092 if test "${ac_cv_search_ldexp+set}" = set; then :
9096 if test "${ac_cv_search_ldexp+set}" = set; then :
9099 ac_cv_search_ldexp
=no
9102 LIBS
=$ac_func_search_save_LIBS
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9105 $as_echo "$ac_cv_search_ldexp" >&6; }
9106 ac_res
=$ac_cv_search_ldexp
9107 if test "$ac_res" != no
; then :
9108 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9116 # Use <inttypes.h> only if it exists,
9117 # doesn't clash with <sys/types.h>, and declares intmax_t.
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9119 $as_echo_n "checking for inttypes.h... " >&6; }
9120 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9121 $as_echo_n "(cached) " >&6
9123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 #include <sys/types.h>
9126 #include <inttypes.h>
9135 if ac_fn_c_try_compile
"$LINENO"; then :
9136 gcc_cv_header_inttypes_h
=yes
9138 gcc_cv_header_inttypes_h
=no
9140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9144 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9145 if test $gcc_cv_header_inttypes_h = yes; then
9147 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9153 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9154 sysconf strsignal getrusage nl_langinfo \
9155 gettimeofday mbstowcs wcswidth mmap setlocale \
9156 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
9158 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9159 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9160 eval as_val
=\$
$as_ac_var
9161 if test "x$as_val" = x
""yes; then :
9162 cat >>confdefs.h
<<_ACEOF
9163 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9170 if test x
$ac_cv_func_mbstowcs = xyes
; then
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9172 $as_echo_n "checking whether mbstowcs works... " >&6; }
9173 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9174 $as_echo_n "(cached) " >&6
9176 if test "$cross_compiling" = yes; then :
9177 gcc_cv_func_mbstowcs_works
=yes
9179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9188 if ac_fn_c_try_run
"$LINENO"; then :
9189 gcc_cv_func_mbstowcs_works
=yes
9191 gcc_cv_func_mbstowcs_works
=no
9193 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9194 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9199 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9200 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9202 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9207 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9208 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9212 cat >>confdefs.h
<<_ACEOF
9218 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9219 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9223 cat >>confdefs.h
<<_ACEOF
9224 #define caddr_t char *
9231 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9232 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9233 gcc_header_sys_mman_h
=yes
9235 gcc_header_sys_mman_h
=no
9238 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9239 if test "x$ac_cv_func_mmap" = x
""yes; then :
9245 if test "$gcc_header_sys_mman_h" != yes \
9246 ||
test "$gcc_func_mmap" != yes; then
9247 gcc_cv_func_mmap_file
=no
9248 gcc_cv_func_mmap_dev_zero
=no
9249 gcc_cv_func_mmap_anon
=no
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9252 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9253 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
9256 # Add a system to this blacklist if
9257 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9258 # memory area containing the same data that you'd get if you applied
9259 # read() to the same fd. The only system known to have a problem here
9260 # is VMS, where text files have record structure.
9263 gcc_cv_func_mmap_file
=no
;;
9265 gcc_cv_func_mmap_file
=yes;;
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9269 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9271 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9272 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9273 $as_echo_n "(cached) " >&6
9275 # Add a system to this blacklist if it has mmap() but /dev/zero
9276 # does not exist, or if mmapping /dev/zero does not give anonymous
9277 # zeroed pages with both the following properties:
9278 # 1. If you map N consecutive pages in with one call, and then
9279 # unmap any subset of those pages, the pages that were not
9280 # explicitly unmapped remain accessible.
9281 # 2. If you map two adjacent blocks of memory and then unmap them
9282 # both at once, they must both go away.
9283 # Systems known to be in this category are Windows (all variants),
9286 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9287 gcc_cv_func_mmap_dev_zero
=no
;;
9289 gcc_cv_func_mmap_dev_zero
=yes;;
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9293 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9295 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9297 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9298 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9299 $as_echo_n "(cached) " >&6
9301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 #include <sys/types.h>
9304 #include <sys/mman.h>
9307 #ifndef MAP_ANONYMOUS
9308 #define MAP_ANONYMOUS MAP_ANON
9314 int n = MAP_ANONYMOUS;
9319 if ac_fn_c_try_compile
"$LINENO"; then :
9320 gcc_cv_decl_map_anon
=yes
9322 gcc_cv_decl_map_anon
=no
9324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9327 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9329 if test $gcc_cv_decl_map_anon = no
; then
9330 gcc_cv_func_mmap_anon
=no
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9333 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9334 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9335 $as_echo_n "(cached) " >&6
9337 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9338 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9339 # doesn't give anonymous zeroed pages with the same properties listed
9340 # above for use of /dev/zero.
9341 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9343 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9344 gcc_cv_func_mmap_anon
=no
;;
9346 gcc_cv_func_mmap_anon
=yes;;
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9350 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9354 if test $gcc_cv_func_mmap_file = yes; then
9356 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9359 if test $gcc_cv_func_mmap_dev_zero = yes; then
9361 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9364 if test $gcc_cv_func_mmap_anon = yes; then
9366 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9373 # Under VMS, vfork works very differently than on Unix. The standard test
9374 # won't work, and it isn't easily adaptable. It makes more sense to
9376 ac_cv_func_vfork_works
=yes
9379 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9380 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9384 cat >>confdefs.h
<<_ACEOF
9390 for ac_header
in vfork.h
9392 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9393 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9394 cat >>confdefs.h
<<_ACEOF
9395 #define HAVE_VFORK_H 1
9401 for ac_func
in fork vfork
9403 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9404 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9405 eval as_val
=\$
$as_ac_var
9406 if test "x$as_val" = x
""yes; then :
9407 cat >>confdefs.h
<<_ACEOF
9408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9414 if test "x$ac_cv_func_fork" = xyes
; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9416 $as_echo_n "checking for working fork... " >&6; }
9417 if test "${ac_cv_func_fork_works+set}" = set; then :
9418 $as_echo_n "(cached) " >&6
9420 if test "$cross_compiling" = yes; then :
9421 ac_cv_func_fork_works
=cross
9423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 $ac_includes_default
9430 /* By Ruediger Kuhlmann. */
9437 if ac_fn_c_try_run
"$LINENO"; then :
9438 ac_cv_func_fork_works
=yes
9440 ac_cv_func_fork_works
=no
9442 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9443 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9448 $as_echo "$ac_cv_func_fork_works" >&6; }
9451 ac_cv_func_fork_works
=$ac_cv_func_fork
9453 if test "x$ac_cv_func_fork_works" = xcross
; then
9455 *-*-amigaos* |
*-*-msdosdjgpp*)
9456 # Override, as these systems have only a dummy fork() stub
9457 ac_cv_func_fork_works
=no
9460 ac_cv_func_fork_works
=yes
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9464 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9466 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9467 if test "x$ac_cv_func_vfork" = xyes
; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9469 $as_echo_n "checking for working vfork... " >&6; }
9470 if test "${ac_cv_func_vfork_works+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9473 if test "$cross_compiling" = yes; then :
9474 ac_cv_func_vfork_works
=cross
9476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 /* Thanks to Paul Eggert for this test. */
9479 $ac_includes_default
9480 #include <sys/wait.h>
9484 /* On some sparc systems, changes by the child to local and incoming
9485 argument registers are propagated back to the parent. The compiler
9486 is told about this with #include <vfork.h>, but some compilers
9487 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9488 static variable whose address is put into a register that is
9489 clobbered by the vfork. */
9492 sparc_address_test (int arg)
9494 sparc_address_test (arg) int arg;
9515 pid_t parent = getpid ();
9518 sparc_address_test (0);
9523 /* Here is another test for sparc vfork register problems. This
9524 test uses lots of local variables, at least as many local
9525 variables as main has allocated so far including compiler
9526 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9527 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9528 reuse the register of parent for one of the local variables,
9529 since it will think that parent can't possibly be used any more
9530 in this routine. Assigning to the local variable will thus
9531 munge parent in the parent process. */
9533 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9534 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9535 /* Convince the compiler that p..p7 are live; otherwise, it might
9536 use the same hardware register for all 8 local variables. */
9537 if (p != p1 || p != p2 || p != p3 || p != p4
9538 || p != p5 || p != p6 || p != p7)
9541 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9542 from child file descriptors. If the child closes a descriptor
9543 before it execs or exits, this munges the parent's descriptor
9544 as well. Test for this by closing stdout in the child. */
9545 _exit(close(fileno(stdout)) != 0);
9550 while (wait(&status) != child)
9553 /* Was there some problem with vforking? */
9556 /* Did the child fail? (This shouldn't happen.) */
9559 /* Did the vfork/compiler bug occur? */
9560 || parent != getpid()
9562 /* Did the file descriptor bug occur? */
9563 || fstat(fileno(stdout), &st) != 0
9568 if ac_fn_c_try_run
"$LINENO"; then :
9569 ac_cv_func_vfork_works
=yes
9571 ac_cv_func_vfork_works
=no
9573 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9574 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9579 $as_echo "$ac_cv_func_vfork_works" >&6; }
9582 if test "x$ac_cv_func_fork_works" = xcross
; then
9583 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9585 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9588 if test "x$ac_cv_func_vfork_works" = xyes
; then
9590 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9594 $as_echo "#define vfork fork" >>confdefs.h
9597 if test "x$ac_cv_func_fork_works" = xyes
; then
9599 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9604 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9605 # iconv() prototype.
9607 ac_cpp
='$CXXCPP $CPPFLAGS'
9608 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9609 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9610 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9613 if test "X$prefix" = "XNONE"; then
9614 acl_final_prefix
="$ac_default_prefix"
9616 acl_final_prefix
="$prefix"
9618 if test "X$exec_prefix" = "XNONE"; then
9619 acl_final_exec_prefix
='${prefix}'
9621 acl_final_exec_prefix
="$exec_prefix"
9623 acl_save_prefix
="$prefix"
9624 prefix
="$acl_final_prefix"
9625 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9626 prefix
="$acl_save_prefix"
9629 # Check whether --with-gnu-ld was given.
9630 if test "${with_gnu_ld+set}" = set; then :
9631 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9636 # Prepare PATH_SEPARATOR.
9637 # The user is always right.
9638 if test "${PATH_SEPARATOR+set}" != set; then
9639 echo "#! /bin/sh" >conf$$.sh
9640 echo "exit 0" >>conf$$.sh
9642 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9650 if test "$GCC" = yes; then
9651 # Check if gcc -print-prog-name=ld gives a path.
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9653 $as_echo_n "checking for ld used by GCC... " >&6; }
9656 # gcc leaves a trailing carriage return which upsets mingw
9657 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9659 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9662 # Accept absolute paths.
9663 [\\/]* |
[A-Za-z
]:[\\/]*)
9664 re_direlt
='/[^/][^/]*/\.\./'
9665 # Canonicalize the path of ld
9666 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9667 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9668 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9670 test -z "$LD" && LD
="$ac_prog"
9673 # If it fails, then pretend we aren't using GCC.
9677 # If it is relative, then search for the first ld in PATH.
9681 elif test "$with_gnu_ld" = yes; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9683 $as_echo_n "checking for GNU ld... " >&6; }
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9686 $as_echo_n "checking for non-GNU ld... " >&6; }
9688 if test "${acl_cv_path_LD+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9691 if test -z "$LD"; then
9692 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9693 for ac_dir
in $PATH; do
9694 test -z "$ac_dir" && ac_dir
=.
9695 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9696 acl_cv_path_LD
="$ac_dir/$ac_prog"
9697 # Check to see if the program is GNU ld. I'd rather use --version,
9698 # but apparently some GNU ld's only accept -v.
9699 # Break only if it was the GNU/non-GNU ld that we prefer.
9700 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9701 test "$with_gnu_ld" != no
&& break
9703 test "$with_gnu_ld" != yes && break
9709 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9713 LD
="$acl_cv_path_LD"
9714 if test -n "$LD"; then
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9716 $as_echo "$LD" >&6; }
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; }
9721 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9723 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9724 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
9727 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9728 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9729 acl_cv_prog_gnu_ld
=yes
9731 acl_cv_prog_gnu_ld
=no
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9735 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9736 with_gnu_ld
=$acl_cv_prog_gnu_ld
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9741 $as_echo_n "checking for shared library run path origin... " >&6; }
9742 if test "${acl_cv_rpath+set}" = set; then :
9743 $as_echo_n "(cached) " >&6
9746 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9747 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9754 $as_echo "$acl_cv_rpath" >&6; }
9756 libext
="$acl_cv_libext"
9757 shlibext
="$acl_cv_shlibext"
9758 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9759 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9760 hardcode_direct
="$acl_cv_hardcode_direct"
9761 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9762 # Check whether --enable-rpath was given.
9763 if test "${enable_rpath+set}" = set; then :
9764 enableval
=$enable_rpath; :
9778 acl_save_prefix
="$prefix"
9779 prefix
="$acl_final_prefix"
9780 acl_save_exec_prefix
="$exec_prefix"
9781 exec_prefix
="$acl_final_exec_prefix"
9783 eval additional_includedir
=\"$includedir\"
9784 eval additional_libdir
=\"$libdir\"
9786 exec_prefix
="$acl_save_exec_prefix"
9787 prefix
="$acl_save_prefix"
9790 # Check whether --with-libiconv-prefix was given.
9791 if test "${with_libiconv_prefix+set}" = set; then :
9792 withval
=$with_libiconv_prefix;
9793 if test "X$withval" = "Xno"; then
9796 if test "X$withval" = "X"; then
9798 acl_save_prefix
="$prefix"
9799 prefix
="$acl_final_prefix"
9800 acl_save_exec_prefix
="$exec_prefix"
9801 exec_prefix
="$acl_final_exec_prefix"
9803 eval additional_includedir
=\"$includedir\"
9804 eval additional_libdir
=\"$libdir\"
9806 exec_prefix
="$acl_save_exec_prefix"
9807 prefix
="$acl_save_prefix"
9810 additional_includedir
="$withval/include"
9811 additional_libdir
="$withval/lib"
9822 names_already_handled
=
9823 names_next_round
='iconv '
9824 while test -n "$names_next_round"; do
9825 names_this_round
="$names_next_round"
9827 for name
in $names_this_round; do
9829 for n
in $names_already_handled; do
9830 if test "$n" = "$name"; then
9835 if test -z "$already_handled"; then
9836 names_already_handled
="$names_already_handled $name"
9837 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9838 eval value
=\"\
$HAVE_LIB$uppername\"
9839 if test -n "$value"; then
9840 if test "$value" = yes; then
9841 eval value
=\"\
$LIB$uppername\"
9842 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9843 eval value
=\"\
$LTLIB$uppername\"
9844 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9853 if test $use_additional = yes; then
9854 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9855 found_dir
="$additional_libdir"
9856 found_so
="$additional_libdir/lib$name.$shlibext"
9857 if test -f "$additional_libdir/lib$name.la"; then
9858 found_la
="$additional_libdir/lib$name.la"
9861 if test -f "$additional_libdir/lib$name.$libext"; then
9862 found_dir
="$additional_libdir"
9863 found_a
="$additional_libdir/lib$name.$libext"
9864 if test -f "$additional_libdir/lib$name.la"; then
9865 found_la
="$additional_libdir/lib$name.la"
9870 if test "X$found_dir" = "X"; then
9871 for x
in $LDFLAGS $LTLIBICONV; do
9873 acl_save_prefix
="$prefix"
9874 prefix
="$acl_final_prefix"
9875 acl_save_exec_prefix
="$exec_prefix"
9876 exec_prefix
="$acl_final_exec_prefix"
9878 exec_prefix
="$acl_save_exec_prefix"
9879 prefix
="$acl_save_prefix"
9883 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9884 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9886 found_so
="$dir/lib$name.$shlibext"
9887 if test -f "$dir/lib$name.la"; then
9888 found_la
="$dir/lib$name.la"
9891 if test -f "$dir/lib$name.$libext"; then
9893 found_a
="$dir/lib$name.$libext"
9894 if test -f "$dir/lib$name.la"; then
9895 found_la
="$dir/lib$name.la"
9901 if test "X$found_dir" != "X"; then
9906 if test "X$found_dir" != "X"; then
9907 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9908 if test "X$found_so" != "X"; then
9909 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9910 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9913 for x
in $ltrpathdirs; do
9914 if test "X$x" = "X$found_dir"; then
9919 if test -z "$haveit"; then
9920 ltrpathdirs
="$ltrpathdirs $found_dir"
9922 if test "$hardcode_direct" = yes; then
9923 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9925 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9926 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9928 for x
in $rpathdirs; do
9929 if test "X$x" = "X$found_dir"; then
9934 if test -z "$haveit"; then
9935 rpathdirs
="$rpathdirs $found_dir"
9939 for x
in $LDFLAGS $LIBICONV; do
9941 acl_save_prefix
="$prefix"
9942 prefix
="$acl_final_prefix"
9943 acl_save_exec_prefix
="$exec_prefix"
9944 exec_prefix
="$acl_final_exec_prefix"
9946 exec_prefix
="$acl_save_exec_prefix"
9947 prefix
="$acl_save_prefix"
9949 if test "X$x" = "X-L$found_dir"; then
9954 if test -z "$haveit"; then
9955 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9957 if test "$hardcode_minus_L" != no
; then
9958 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9960 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9966 if test "X$found_a" != "X"; then
9967 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9969 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9972 additional_includedir
=
9973 case "$found_dir" in
9975 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9976 additional_includedir
="$basedir/include"
9979 if test "X$additional_includedir" != "X"; then
9980 if test "X$additional_includedir" != "X/usr/include"; then
9982 if test "X$additional_includedir" = "X/usr/local/include"; then
9983 if test -n "$GCC"; then
9985 linux
*) haveit
=yes;;
9989 if test -z "$haveit"; then
9990 for x
in $CPPFLAGS $INCICONV; do
9992 acl_save_prefix
="$prefix"
9993 prefix
="$acl_final_prefix"
9994 acl_save_exec_prefix
="$exec_prefix"
9995 exec_prefix
="$acl_final_exec_prefix"
9997 exec_prefix
="$acl_save_exec_prefix"
9998 prefix
="$acl_save_prefix"
10000 if test "X$x" = "X-I$additional_includedir"; then
10005 if test -z "$haveit"; then
10006 if test -d "$additional_includedir"; then
10007 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10013 if test -n "$found_la"; then
10014 save_libdir
="$libdir"
10015 case "$found_la" in
10016 */* |
*\\*) .
"$found_la" ;;
10017 *) .
"./$found_la" ;;
10019 libdir
="$save_libdir"
10020 for dep
in $dependency_libs; do
10023 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10024 if test "X$additional_libdir" != "X/usr/lib"; then
10026 if test "X$additional_libdir" = "X/usr/local/lib"; then
10027 if test -n "$GCC"; then
10029 linux
*) haveit
=yes;;
10033 if test -z "$haveit"; then
10035 for x
in $LDFLAGS $LIBICONV; do
10037 acl_save_prefix
="$prefix"
10038 prefix
="$acl_final_prefix"
10039 acl_save_exec_prefix
="$exec_prefix"
10040 exec_prefix
="$acl_final_exec_prefix"
10042 exec_prefix
="$acl_save_exec_prefix"
10043 prefix
="$acl_save_prefix"
10045 if test "X$x" = "X-L$additional_libdir"; then
10050 if test -z "$haveit"; then
10051 if test -d "$additional_libdir"; then
10052 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10056 for x
in $LDFLAGS $LTLIBICONV; do
10058 acl_save_prefix
="$prefix"
10059 prefix
="$acl_final_prefix"
10060 acl_save_exec_prefix
="$exec_prefix"
10061 exec_prefix
="$acl_final_exec_prefix"
10063 exec_prefix
="$acl_save_exec_prefix"
10064 prefix
="$acl_save_prefix"
10066 if test "X$x" = "X-L$additional_libdir"; then
10071 if test -z "$haveit"; then
10072 if test -d "$additional_libdir"; then
10073 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10080 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10081 if test "$enable_rpath" != no
; then
10083 for x
in $rpathdirs; do
10084 if test "X$x" = "X$dir"; then
10089 if test -z "$haveit"; then
10090 rpathdirs
="$rpathdirs $dir"
10093 for x
in $ltrpathdirs; do
10094 if test "X$x" = "X$dir"; then
10099 if test -z "$haveit"; then
10100 ltrpathdirs
="$ltrpathdirs $dir"
10105 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10108 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10111 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10112 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10118 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10119 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10125 if test "X$rpathdirs" != "X"; then
10126 if test -n "$hardcode_libdir_separator"; then
10128 for found_dir
in $rpathdirs; do
10129 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10131 acl_save_libdir
="$libdir"
10133 eval flag
=\"$hardcode_libdir_flag_spec\"
10134 libdir
="$acl_save_libdir"
10135 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10137 for found_dir
in $rpathdirs; do
10138 acl_save_libdir
="$libdir"
10139 libdir
="$found_dir"
10140 eval flag
=\"$hardcode_libdir_flag_spec\"
10141 libdir
="$acl_save_libdir"
10142 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10146 if test "X$ltrpathdirs" != "X"; then
10147 for found_dir
in $ltrpathdirs; do
10148 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10158 am_save_CPPFLAGS
="$CPPFLAGS"
10160 for element
in $INCICONV; do
10162 for x
in $CPPFLAGS; do
10164 acl_save_prefix
="$prefix"
10165 prefix
="$acl_final_prefix"
10166 acl_save_exec_prefix
="$exec_prefix"
10167 exec_prefix
="$acl_final_exec_prefix"
10169 exec_prefix
="$acl_save_exec_prefix"
10170 prefix
="$acl_save_prefix"
10172 if test "X$x" = "X$element"; then
10177 if test -z "$haveit"; then
10178 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10184 $as_echo_n "checking for iconv... " >&6; }
10185 if test "${am_cv_func_iconv+set}" = set; then :
10186 $as_echo_n "(cached) " >&6
10189 am_cv_func_iconv
="no, consider installing GNU libiconv"
10191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10193 #include <stdlib.h>
10198 iconv_t cd = iconv_open("","");
10199 iconv(cd,NULL,NULL,NULL,NULL);
10205 if ac_fn_cxx_try_link
"$LINENO"; then :
10206 am_cv_func_iconv
=yes
10208 rm -f core conftest.err conftest.
$ac_objext \
10209 conftest
$ac_exeext conftest.
$ac_ext
10210 if test "$am_cv_func_iconv" != yes; then
10211 am_save_LIBS
="$LIBS"
10212 LIBS
="$LIBS $LIBICONV"
10213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215 #include <stdlib.h>
10220 iconv_t cd = iconv_open("","");
10221 iconv(cd,NULL,NULL,NULL,NULL);
10227 if ac_fn_cxx_try_link
"$LINENO"; then :
10228 am_cv_lib_iconv
=yes
10229 am_cv_func_iconv
=yes
10231 rm -f core conftest.err conftest.
$ac_objext \
10232 conftest
$ac_exeext conftest.
$ac_ext
10233 LIBS
="$am_save_LIBS"
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10238 $as_echo "$am_cv_func_iconv" >&6; }
10239 if test "$am_cv_func_iconv" = yes; then
10241 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10244 if test "$am_cv_lib_iconv" = yes; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10246 $as_echo_n "checking how to link with libiconv... " >&6; }
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10248 $as_echo "$LIBICONV" >&6; }
10250 CPPFLAGS
="$am_save_CPPFLAGS"
10257 if test "$am_cv_func_iconv" = yes; then
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10259 $as_echo_n "checking for iconv declaration... " >&6; }
10260 if test "${am_cv_proto_iconv+set}" = set; then :
10261 $as_echo_n "(cached) " >&6
10264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10267 #include <stdlib.h>
10273 #if defined(__STDC__) || defined(__cplusplus)
10274 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10287 if ac_fn_cxx_try_compile
"$LINENO"; then :
10288 am_cv_proto_iconv_arg1
=""
10290 am_cv_proto_iconv_arg1
="const"
10292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10293 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);"
10296 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10298 }$am_cv_proto_iconv" >&5
10300 }$am_cv_proto_iconv" >&6; }
10302 cat >>confdefs.h
<<_ACEOF
10303 #define ICONV_CONST $am_cv_proto_iconv_arg1
10309 ac_cpp
='$CPP $CPPFLAGS'
10310 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10311 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10312 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10315 # Until we have in-tree GNU iconv:
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10321 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10322 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 #include <locale.h>
10336 if ac_fn_c_try_link
"$LINENO"; then :
10337 am_cv_val_LC_MESSAGES
=yes
10339 am_cv_val_LC_MESSAGES
=no
10341 rm -f core conftest.err conftest.
$ac_objext \
10342 conftest
$ac_exeext conftest.
$ac_ext
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10345 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10346 if test $am_cv_val_LC_MESSAGES = yes; then
10348 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10355 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10356 if test "${am_cv_langinfo_codeset+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361 #include <langinfo.h>
10365 char* cs = nl_langinfo(CODESET);
10370 if ac_fn_c_try_link
"$LINENO"; then :
10371 am_cv_langinfo_codeset
=yes
10373 am_cv_langinfo_codeset
=no
10375 rm -f core conftest.err conftest.
$ac_objext \
10376 conftest
$ac_exeext conftest.
$ac_ext
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10380 $as_echo "$am_cv_langinfo_codeset" >&6; }
10381 if test $am_cv_langinfo_codeset = yes; then
10383 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10388 # We will need to find libiberty.h and ansidecl.h
10389 saved_CFLAGS
="$CFLAGS"
10390 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10391 saved_CXXFLAGS
="$CXXFLAGS"
10392 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10393 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10394 strsignal strstr stpcpy strverscmp \
10395 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10396 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
10398 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10400 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10401 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10402 $as_echo_n "(cached) " >&6
10404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10407 #define $ac_tr_decl 1
10409 #include "ansidecl.h"
10410 #include "system.h"
10416 char *(*pfn) = (char *(*)) $ac_func ;
10422 if ac_fn_c_try_compile
"$LINENO"; then :
10423 eval "gcc_cv_have_decl_$ac_func=yes"
10425 eval "gcc_cv_have_decl_$ac_func=no"
10427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10430 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10432 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10433 #define $ac_tr_decl 1
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10439 #define $ac_tr_decl 0
10447 for ac_func
in getrlimit setrlimit getrusage
10449 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10451 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10452 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10453 $as_echo_n "(cached) " >&6
10455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10458 #define $ac_tr_decl 1
10460 #include "ansidecl.h"
10461 #include "system.h"
10462 #ifdef HAVE_SYS_RESOURCE_H
10463 #include <sys/resource.h>
10471 char *(*pfn) = (char *(*)) $ac_func ;
10477 if ac_fn_c_try_compile
"$LINENO"; then :
10478 eval "gcc_cv_have_decl_$ac_func=yes"
10480 eval "gcc_cv_have_decl_$ac_func=no"
10482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10485 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10487 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10488 #define $ac_tr_decl 1
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10494 #define $ac_tr_decl 0
10502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10505 #include "ansidecl.h"
10506 #include "system.h"
10507 #ifdef HAVE_SYS_RESOURCE_H
10508 #include <sys/resource.h>
10519 if ac_fn_c_try_compile
"$LINENO"; then :
10523 $as_echo "#define rlim_t long" >>confdefs.h
10526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10528 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10529 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10530 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10531 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10532 for ac_func
in ldgetname
10534 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10536 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10537 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10538 $as_echo_n "(cached) " >&6
10540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10543 #define $ac_tr_decl 1
10545 #include "ansidecl.h"
10546 #include "system.h"
10547 #ifdef HAVE_LDFCN_H
10558 char *(*pfn) = (char *(*)) $ac_func ;
10564 if ac_fn_c_try_compile
"$LINENO"; then :
10565 eval "gcc_cv_have_decl_$ac_func=yes"
10567 eval "gcc_cv_have_decl_$ac_func=no"
10569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10572 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10574 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10575 #define $ac_tr_decl 1
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10581 #define $ac_tr_decl 0
10589 for ac_func
in times
10591 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10593 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10594 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10595 $as_echo_n "(cached) " >&6
10597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10600 #define $ac_tr_decl 1
10602 #include "ansidecl.h"
10603 #include "system.h"
10604 #ifdef HAVE_SYS_TIMES_H
10605 #include <sys/times.h>
10613 char *(*pfn) = (char *(*)) $ac_func ;
10619 if ac_fn_c_try_compile
"$LINENO"; then :
10620 eval "gcc_cv_have_decl_$ac_func=yes"
10622 eval "gcc_cv_have_decl_$ac_func=no"
10624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10627 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10629 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10630 #define $ac_tr_decl 1
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10636 #define $ac_tr_decl 0
10644 for ac_func
in sigaltstack
10646 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10648 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10649 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10650 $as_echo_n "(cached) " >&6
10652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10655 #define $ac_tr_decl 1
10657 #include "ansidecl.h"
10658 #include "system.h"
10659 #include <signal.h>
10666 char *(*pfn) = (char *(*)) $ac_func ;
10672 if ac_fn_c_try_compile
"$LINENO"; then :
10673 eval "gcc_cv_have_decl_$ac_func=yes"
10675 eval "gcc_cv_have_decl_$ac_func=no"
10677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10680 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10682 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10683 #define $ac_tr_decl 1
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10689 #define $ac_tr_decl 0
10697 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10700 ac_cpp
='$CXXCPP $CPPFLAGS'
10701 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10702 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10703 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10705 for ac_func
in madvise
10707 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10709 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10710 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10711 $as_echo_n "(cached) " >&6
10713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10716 #define $ac_tr_decl 1
10718 #include "ansidecl.h"
10719 #include "system.h"
10726 char *(*pfn) = (char *(*)) $ac_func ;
10732 if ac_fn_cxx_try_compile
"$LINENO"; then :
10733 eval "gcc_cv_have_decl_$ac_func=yes"
10735 eval "gcc_cv_have_decl_$ac_func=no"
10737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10740 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10742 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10743 #define $ac_tr_decl 1
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10749 #define $ac_tr_decl 0
10757 ac_cpp
='$CPP $CPPFLAGS'
10758 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10759 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10760 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10763 # More time-related stuff.
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10765 $as_echo_n "checking for struct tms... " >&6; }
10766 if test "${ac_cv_struct_tms+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
10770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10773 #include "ansidecl.h"
10774 #include "system.h"
10775 #ifdef HAVE_SYS_TIMES_H
10776 #include <sys/times.h>
10787 if ac_fn_c_try_compile
"$LINENO"; then :
10788 ac_cv_struct_tms
=yes
10790 ac_cv_struct_tms
=no
10792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10795 $as_echo "$ac_cv_struct_tms" >&6; }
10796 if test $ac_cv_struct_tms = yes; then
10798 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10802 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10803 # revisit after autoconf 2.50.
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10805 $as_echo_n "checking for clock_t... " >&6; }
10806 if test "${gcc_cv_type_clock_t+set}" = set; then :
10807 $as_echo_n "(cached) " >&6
10810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10813 #include "ansidecl.h"
10814 #include "system.h"
10824 if ac_fn_c_try_compile
"$LINENO"; then :
10825 gcc_cv_type_clock_t
=yes
10827 gcc_cv_type_clock_t
=no
10829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10832 $as_echo "$gcc_cv_type_clock_t" >&6; }
10833 if test $gcc_cv_type_clock_t = yes; then
10835 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10839 # Check if F_SETLKW is supported by fcntl.
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10841 $as_echo_n "checking for F_SETLKW... " >&6; }
10842 if test "${ac_cv_f_setlkw+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h. */
10859 return fcntl (1, F_SETLKW, &fl);
10864 if ac_fn_c_try_compile
"$LINENO"; then :
10869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10872 $as_echo "$ac_cv_f_setlkw" >&6; }
10873 if test $ac_cv_f_setlkw = yes; then
10875 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10879 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10880 CFLAGS
="$saved_CFLAGS"
10881 CXXFLAGS
="$saved_CXXFLAGS"
10883 # mkdir takes a single argument on some systems.
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10885 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10886 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
10889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10892 #include <sys/types.h>
10893 #ifdef HAVE_SYS_STAT_H
10894 # include <sys/stat.h>
10896 #ifdef HAVE_UNISTD_H
10897 # include <unistd.h>
10899 #ifdef HAVE_DIRECT_H
10900 # include <direct.h>
10910 if ac_fn_c_try_compile
"$LINENO"; then :
10911 gcc_cv_mkdir_takes_one_arg
=no
10913 gcc_cv_mkdir_takes_one_arg
=yes
10915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10918 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10919 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10921 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10932 # With Setjmp/Longjmp based exception handling.
10933 # Check whether --enable-sjlj-exceptions was given.
10934 if test "${enable_sjlj_exceptions+set}" = set; then :
10935 enableval
=$enable_sjlj_exceptions; case $target in
10937 if test $enableval != yes; then
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10939 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10944 force_sjlj_exceptions
=yes
10948 force_sjlj_exceptions
=yes
10952 force_sjlj_exceptions
=no
10957 if test $force_sjlj_exceptions = yes; then
10958 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10960 cat >>confdefs.h
<<_ACEOF
10961 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10966 # --------------------------------------------------------
10967 # Build, host, and target specific configuration fragments
10968 # --------------------------------------------------------
10970 # Collect build-machine-specific information.
10971 .
${srcdir}/config.build
10973 # Collect host-machine-specific information.
10974 .
${srcdir}/config.
host
10978 # Collect target-machine-specific information.
10979 .
${srcdir}/config.gcc
10981 extra_objs
="${host_extra_objs} ${extra_objs}"
10982 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10984 # Default the target-machine variables that were not explicitly set.
10985 if test x
"$tm_file" = x
10986 then tm_file
=$cpu_type/$cpu_type.h
; fi
10988 if test x
"$extra_headers" = x
10989 then extra_headers
=; fi
10991 if test x
$md_file = x
10992 then md_file
=$cpu_type/$cpu_type.md
; fi
10994 if test x
$out_file = x
10995 then out_file
=$cpu_type/$cpu_type.c
; fi
10997 if test x
"$tmake_file" = x
10998 then tmake_file
=$cpu_type/t-
$cpu_type
11001 # Support --enable-initfini-array.
11002 if test x
$enable_initfini_array != xno
; then
11003 tm_file
="${tm_file} initfini-array.h"
11006 if test x
"$dwarf2" = xyes
11007 then tm_file
="$tm_file tm-dwarf2.h"
11010 # Say what files are being used for the output code and MD file.
11011 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11012 echo "Using \`$srcdir/config/$md_file' as machine description file."
11014 # If any of the xm_file variables contain nonexistent files, warn
11015 # about them and drop them.
11018 for x
in $build_xm_file; do
11019 if test -f $srcdir/config
/$x
11021 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11022 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11025 build_xm_file
="$bx"
11028 for x
in $host_xm_file; do
11029 if test -f $srcdir/config
/$x
11031 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11032 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11038 for x
in $xm_file; do
11039 if test -f $srcdir/config
/$x
11041 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11042 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11048 for f
in $tm_file; do
11051 if test $count = ax
; then
11052 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11054 echo "Using the following target machine macro files:"
11055 for f
in $tm_file; do
11056 echo " $srcdir/config/$f"
11060 if test x
$need_64bit_hwint = xyes
; then
11062 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11066 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11068 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11072 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11074 cat >>confdefs.h
<<_ACEOF
11075 #define HAVE_GNU_LD $gnu_ld_bool
11079 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11081 cat >>confdefs.h
<<_ACEOF
11082 #define HAVE_GNU_AS $gnu_as_bool
11087 for f
in $host_xm_file; do
11090 if test $count = a
; then
11092 elif test $count = ax
; then
11093 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11095 echo "Using the following host machine macro files:"
11096 for f
in $host_xm_file; do
11097 echo " $srcdir/config/$f"
11100 echo "Using ${out_host_hook_obj} for host machine hooks."
11102 if test "$host_xm_file" != "$build_xm_file"; then
11104 for f
in $build_xm_file; do
11107 if test $count = a
; then
11109 elif test $count = ax
; then
11110 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11112 echo "Using the following build machine macro files:"
11113 for f
in $build_xm_file; do
11114 echo " $srcdir/config/$f"
11119 if test -n "$configured_native_system_header_dir"; then
11120 native_system_header_dir
=$configured_native_system_header_dir
11122 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11126 powerpc
*-*-darwin*)
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11128 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11129 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11130 $as_echo_n "(cached) " >&6
11132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h. */
11135 #include <sys/cdefs.h>
11136 #include <sys/signal.h>
11137 #include <ucontext.h>
11138 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11141 if ac_fn_c_try_compile
"$LINENO"; then :
11142 gcc_cv_mcontext_underscores
=no
11144 gcc_cv_mcontext_underscores
=yes
11146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11149 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11150 if test $gcc_cv_mcontext_underscores = yes; then
11152 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11162 # Check if a valid thread package
11163 case ${enable_threads} in
11166 target_thread_file
='single'
11170 target_thread_file
='single'
11172 aix | dce | lynx | mipssde | posix | rtems | \
11173 single | tpf | vxworks | win32
)
11174 target_thread_file
=${enable_threads}
11177 echo "${enable_threads} is an unknown thread package" 1>&2
11182 if test x
${thread_file} = x
; then
11183 # No thread file set by target-specific clauses in config.gcc,
11184 # so use file chosen by default logic above
11185 thread_file
=${target_thread_file}
11193 if test x
$enable___cxa_atexit = xyes || \
11194 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11195 if test x
$host = x
$target; then
11197 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11198 # keyed to flag_use_cxa_atexit
11206 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11207 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11210 echo "__cxa_atexit can't be enabled on this target"
11216 # We can't check for __cxa_atexit when building a cross, so assume
11220 if test x
$use_cxa_atexit = xyes
; then
11222 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11227 # Look for a file containing extra machine modes.
11228 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11229 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11232 cat >>confdefs.h
<<_ACEOF
11233 #define EXTRA_MODES_FILE "config/$extra_modes"
11238 # Convert extra_options into a form suitable for Makefile use.
11241 for f
in $extra_options; do
11242 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11243 all_opt_files
="$all_opt_files $srcdir/config/$f"
11247 # auto-host.h is the file containing items generated by autoconf and is
11248 # the first file included by config.h.
11249 # If host=build, it is correct to have bconfig include auto-host.h
11250 # as well. If host!=build, we are in error and need to do more
11251 # work to find out the build config parameters.
11252 if test x
$host = x
$build
11254 build_auto
=auto-host.h
11256 # We create a subdir, then run autoconf in the subdir.
11257 # To prevent recursion we set host and build for the new
11258 # invocation of configure to the build for this invocation
11265 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11266 *) realsrcdir
=..
/${srcdir};;
11268 saved_CFLAGS
="${CFLAGS}"
11269 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11270 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11271 ${realsrcdir}/configure \
11272 --enable-languages=${enable_languages-all} \
11273 --target=$target_alias --host=$build_alias --build=$build_alias
11274 CFLAGS
="${saved_CFLAGS}"
11276 # We just finished tests for the build machine, so rename
11277 # the file auto-build.h in the gcc directory.
11278 mv auto-host.h ..
/auto-build.h
11281 build_auto
=auto-build.h
11285 tm_file
="${tm_file} defaults.h"
11286 tm_p_file
="${tm_p_file} tm-preds.h"
11287 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11288 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11289 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11290 # put this back in temporarily.
11291 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11297 # Compile in configure arguments.
11298 if test -f configargs.h
; then
11299 # Being re-configured.
11300 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11301 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11303 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11306 # Double all backslashes and backslash all quotes to turn
11307 # gcc_config_arguments into a C string.
11308 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11309 $gcc_config_arguments
11311 gcc_config_arguments_str
=`cat conftest.out`
11314 cat > configargs.h
<<EOF
11315 /* Generated automatically. */
11316 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11317 static const char thread_model[] = "$thread_file";
11319 static const struct {
11320 const char *name, *value;
11321 } configure_default_options[] = $configure_default_options;
11324 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11325 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11326 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11327 if test -f $srcdir/REVISION
; then
11328 gcc_REVISION
=`cat $srcdir/REVISION`
11332 cat > plugin-version.h
<<EOF
11333 #include "configargs.h"
11335 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11336 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11337 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11338 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11340 static char basever[] = "$gcc_BASEVER";
11341 static char datestamp[] = "$gcc_DATESTAMP";
11342 static char devphase[] = "$gcc_DEVPHASE";
11343 static char revision[] = "$gcc_REVISION";
11345 /* FIXME plugins: We should make the version information more precise.
11346 One way to do is to add a checksum. */
11348 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11349 devphase, revision,
11350 configuration_arguments};
11353 # Internationalization
11354 # If we haven't got the data from the intl directory,
11355 # assume NLS is disabled.
11364 if test -f ..
/intl
/config.intl
; then
11365 . ..
/intl
/config.intl
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11368 $as_echo_n "checking whether NLS is requested... " >&6; }
11369 if test x
"$USE_NLS" != xyes
; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11374 $as_echo "yes" >&6; }
11376 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11380 $as_echo_n "checking for catalogs to be installed... " >&6; }
11381 # Look for .po and .gmo files in the source directory.
11384 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11385 # If there aren't any .gmo files the shell will give us the
11386 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11388 case "$cat" in *\
**)
11391 # The quadruple backslash is collapsed to a double backslash
11392 # by the backticks, then collapsed again by the double quotes,
11393 # leaving us with one backslash in the sed expression (right
11394 # before the dot that mustn't act as a wildcard).
11395 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11396 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11397 # The user is allowed to set LINGUAS to a list of languages to
11398 # install catalogs for. If it's empty that means "all of them."
11399 if test "x$LINGUAS" = x
; then
11400 CATALOGS
="$CATALOGS $cat"
11401 XLINGUAS
="$XLINGUAS $lang"
11403 case "$LINGUAS" in *$lang*)
11404 CATALOGS
="$CATALOGS $cat"
11405 XLINGUAS
="$XLINGUAS $lang"
11410 LINGUAS
="$XLINGUAS"
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11412 $as_echo "$LINGUAS" >&6; }
11425 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11426 # -liconv on the link line twice.
11427 case "$LIBINTL" in *$LIBICONV*)
11431 # Check whether --enable-secureplt was given.
11432 if test "${enable_secureplt+set}" = set; then :
11433 enableval
=$enable_secureplt;
11437 # Check whether --enable-leading-mingw64-underscores was given.
11438 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11439 enableval
=$enable_leading_mingw64_underscores;
11442 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11444 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11448 # Check whether --enable-cld was given.
11449 if test "${enable_cld+set}" = set; then :
11450 enableval
=$enable_cld;
11456 # Check whether --enable-frame-pointer was given.
11457 if test "${enable_frame_pointer+set}" = set; then :
11458 enableval
=$enable_frame_pointer;
11462 linux
* | darwin
[8912]*)
11463 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11465 enable_frame_pointer
=no
11468 enable_frame_pointer
=yes
11475 # Windows32 Registry support for specifying GCC installation paths.
11476 # Check whether --enable-win32-registry was given.
11477 if test "${enable_win32_registry+set}" = set; then :
11478 enableval
=$enable_win32_registry;
11483 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11484 if test "x$enable_win32_registry" != xno
; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11486 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11487 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11488 $as_echo_n "(cached) " >&6
11490 ac_func_search_save_LIBS
=$LIBS
11491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11494 /* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11500 char RegOpenKeyExA ();
11504 return RegOpenKeyExA ();
11509 for ac_lib
in '' advapi32
; do
11510 if test -z "$ac_lib"; then
11511 ac_res
="none required"
11514 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11516 if ac_fn_c_try_link
"$LINENO"; then :
11517 ac_cv_search_RegOpenKeyExA
=$ac_res
11519 rm -f core conftest.err conftest.
$ac_objext \
11521 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11525 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11528 ac_cv_search_RegOpenKeyExA
=no
11530 rm conftest.
$ac_ext
11531 LIBS
=$ac_func_search_save_LIBS
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11534 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11535 ac_res
=$ac_cv_search_RegOpenKeyExA
11536 if test "$ac_res" != no
; then :
11537 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11540 enable_win32_registry
=no
11545 if test "x$enable_win32_registry" != xno
; then
11547 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11550 if test "x$enable_win32_registry" != xyes \
11551 && test "x$enable_win32_registry" != x
; then
11553 cat >>confdefs.h
<<_ACEOF
11554 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11562 # Get an absolute path to the GCC top-level source directory
11563 holddir
=`${PWDCMD-pwd}`
11565 topdir
=`${PWDCMD-pwd}`
11568 # Conditionalize the makefile for this host machine.
11570 for f
in ${host_xmake_file}
11572 if test -f ${srcdir}/config
/$f
11574 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11578 # Conditionalize the makefile for this target machine.
11580 for f
in ${tmake_file}
11582 if test -f ${srcdir}/config
/$f
11584 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11587 tmake_file
="${tmake_file_}"
11589 out_object_file
=`basename $out_file .c`.o
11590 common_out_object_file
=`basename $common_out_file .c`.o
11592 tm_file_list
="options.h"
11593 tm_include_list
="options.h insn-constants.h"
11594 for f
in $tm_file; do
11597 f
=`echo $f | sed 's/^..//'`
11598 tm_file_list
="${tm_file_list} $f"
11599 tm_include_list
="${tm_include_list} $f"
11602 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11603 tm_include_list
="${tm_include_list} $f"
11606 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11607 tm_include_list
="${tm_include_list} config/$f"
11614 for f
in $tm_p_file; do
11617 tm_p_file_list
="${tm_p_file_list} $f"
11618 tm_p_include_list
="${tm_p_include_list} $f"
11621 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11622 tm_p_include_list
="${tm_p_include_list} config/$f"
11628 for f
in $xm_file; do
11631 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11632 xm_include_list
="${xm_include_list} $f"
11635 xm_file_list
="${xm_file_list} $f"
11636 xm_include_list
="${xm_include_list} $f"
11639 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11640 xm_include_list
="${xm_include_list} config/$f"
11646 host_xm_include_list
=
11647 for f
in $host_xm_file; do
11650 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11651 host_xm_include_list
="${host_xm_include_list} $f"
11654 host_xm_file_list
="${host_xm_file_list} $f"
11655 host_xm_include_list
="${host_xm_include_list} $f"
11658 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11659 host_xm_include_list
="${host_xm_include_list} config/$f"
11664 build_xm_file_list
=
11665 for f
in $build_xm_file; do
11668 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11669 build_xm_include_list
="${build_xm_include_list} $f"
11671 auto-build.h | auto-host.h
)
11672 build_xm_file_list
="${build_xm_file_list} $f"
11673 build_xm_include_list
="${build_xm_include_list} $f"
11676 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11677 build_xm_include_list
="${build_xm_include_list} config/$f"
11682 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11683 # cross-compiler which does not use the native headers and libraries.
11684 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11687 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11689 if test "x$with_build_sysroot" != x
; then
11690 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11692 # This value is used, even on a native system, because
11693 # CROSS_SYSTEM_HEADER_DIR is just
11694 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11695 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11698 if test x
$host != x
$target
11700 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11702 SYSTEM_HEADER_DIR
=$build_system_header_dir
11703 case "$host","$target" in
11704 # Darwin crosses can use the host system's libraries and headers,
11705 # because of the fat library support. Of course, it must be the
11706 # same version of Darwin on both sides. Allow the user to
11707 # just say --target=foo-darwin without a version number to mean
11708 # "the version on this system".
11709 *-*-darwin*,*-*-darwin*)
11710 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11711 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11712 if test $hostos = $targetos -o $targetos = darwin
; then
11714 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11719 i?
86-*-*,x86_64-
*-* \
11720 | powerpc
*-*-*,powerpc64
*-*-*)
11721 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11726 if test "x$with_headers" = x
; then
11733 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11734 SYSTEM_HEADER_DIR
=$build_system_header_dir
11737 # If this is a cross-compiler that does not
11738 # have its own set of headers then define
11741 # If this is using newlib, without having the headers available now,
11742 # then define inhibit_libc in LIBGCC2_CFLAGS.
11743 # This prevents libgcc2 from containing any code which requires libc
11745 : ${inhibit_libc=false}
11746 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11747 test x
$with_newlib = xyes
; } &&
11748 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11753 # When building gcc with a cross-compiler, we need to adjust things so
11754 # that the generator programs are still built with the native compiler.
11755 # Also, we cannot run fixincludes.
11757 # These are the normal (build=host) settings:
11758 CC_FOR_BUILD
='$(CC)'
11759 CXX_FOR_BUILD
='$(CXX)'
11760 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11761 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11762 BUILD_LDFLAGS
='$(LDFLAGS)'
11763 STMP_FIXINC
=stmp-fixinc
11765 # And these apply if build != host, or we are generating coverage data
11766 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11768 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11769 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11772 # Expand extra_headers to include complete path.
11773 # This substitutes for lots of t-* files.
11774 extra_headers_list
=
11775 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11776 for file in ${extra_headers} ; do
11777 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11780 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11781 if test x
"$use_gcc_tgmath" = xyes
11782 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11785 # Define collect2 in Makefile.
11786 case $host_can_use_collect2 in
11788 *) collect2
='collect2$(exeext)' ;;
11792 # Add a definition of USE_COLLECT2 if system wants one.
11793 case $use_collect2 in
11794 no
) use_collect2
= ;;
11797 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11798 xm_defines
="${xm_defines} USE_COLLECT2"
11799 case $host_can_use_collect2 in
11801 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11808 cat >>confdefs.h
<<_ACEOF
11809 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11813 # ---------------------------
11814 # Assembler & linker features
11815 # ---------------------------
11817 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11818 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11819 # However when ld-new is first executed from the build tree, libtool will
11820 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11821 # to the build tree. While doing this we need to use the previous-stage
11822 # linker, or we have an infinite loop. The presence of a shell script as
11823 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11824 # the gcc/collect-ld script. So we need to know how libtool works, or
11825 # exec-tool will fail.
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11831 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11836 macro_version
='2.2.7a'
11837 macro_revision
='1.3134'
11851 ltmain
="$ac_aux_dir/ltmain.sh"
11853 # Backslashify metacharacters that are still active within
11854 # double-quoted strings.
11855 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11857 # Same as above, but do not quote variable references.
11858 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11860 # Sed substitution to delay expansion of an escaped shell variable in a
11861 # double_quote_subst'ed string.
11862 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11864 # Sed substitution to delay expansion of an escaped single quote.
11865 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11867 # Sed substitution to avoid accidental globbing in evaled expressions
11868 no_glob_subst
='s/\*/\\\*/g'
11870 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11871 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11872 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11875 $as_echo_n "checking how to print strings... " >&6; }
11876 # Test print first, because it will be a builtin if present.
11877 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11878 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11880 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11883 # Use this function as a fallback that always works.
11884 func_fallback_echo ()
11886 eval 'cat <<_LTECHO_EOF
11890 ECHO='func_fallback_echo
'
11893 # func_echo_all arg...
11894 # Invoke $ECHO with all args, space-separated.
11901 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11902 $as_echo "printf" >&6; } ;;
11903 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11904 $as_echo "print -r" >&6; } ;;
11905 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11906 $as_echo "cat" >&6; } ;;
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11923 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11924 if test "${ac_cv_path_SED+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11927 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11928 for ac_i in 1 2 3 4 5 6 7; do
11929 ac_script="$ac_script$as_nl$ac_script"
11931 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11932 { ac_script=; unset ac_script;}
11933 if test -z "$SED"; then
11934 ac_path_SED_found=false
11935 # Loop through the user's path and
test for each of PROGNAME-LIST
11936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11937 for as_dir
in $PATH
11940 test -z "$as_dir" && as_dir
=.
11941 for ac_prog
in sed gsed
; do
11942 for ac_exec_ext
in '' $ac_executable_extensions; do
11943 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11944 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11945 # Check for GNU ac_path_SED and select it if it is found.
11946 # Check for GNU $ac_path_SED
11947 case `"$ac_path_SED" --version 2>&1` in
11949 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11952 $as_echo_n 0123456789 >"conftest.in"
11955 cat "conftest.in" "conftest.in" >"conftest.tmp"
11956 mv "conftest.tmp" "conftest.in"
11957 cp "conftest.in" "conftest.nl"
11958 $as_echo '' >> "conftest.nl"
11959 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11960 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11961 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11962 if test $ac_count -gt ${ac_path_SED_max-0}; then
11963 # Best one so far, save it but keep looking for a better one
11964 ac_cv_path_SED
="$ac_path_SED"
11965 ac_path_SED_max
=$ac_count
11967 # 10*(2^10) chars as input seems more than enough
11968 test $ac_count -gt 10 && break
11970 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11973 $ac_path_SED_found && break 3
11978 if test -z "$ac_cv_path_SED"; then
11979 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11982 ac_cv_path_SED
=$SED
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11987 $as_echo "$ac_cv_path_SED" >&6; }
11988 SED
="$ac_cv_path_SED"
11991 test -z "$SED" && SED
=sed
11992 Xsed
="$SED -e 1s/^X//"
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12005 $as_echo_n "checking for fgrep... " >&6; }
12006 if test "${ac_cv_path_FGREP+set}" = set; then :
12007 $as_echo_n "(cached) " >&6
12009 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12010 then ac_cv_path_FGREP
="$GREP -F"
12012 if test -z "$FGREP"; then
12013 ac_path_FGREP_found
=false
12014 # Loop through the user's path and test for each of PROGNAME-LIST
12015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12016 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12019 test -z "$as_dir" && as_dir
=.
12020 for ac_prog
in fgrep
; do
12021 for ac_exec_ext
in '' $ac_executable_extensions; do
12022 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12023 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12024 # Check for GNU ac_path_FGREP and select it if it is found.
12025 # Check for GNU $ac_path_FGREP
12026 case `"$ac_path_FGREP" --version 2>&1` in
12028 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12031 $as_echo_n 0123456789 >"conftest.in"
12034 cat "conftest.in" "conftest.in" >"conftest.tmp"
12035 mv "conftest.tmp" "conftest.in"
12036 cp "conftest.in" "conftest.nl"
12037 $as_echo 'FGREP' >> "conftest.nl"
12038 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12039 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12040 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12041 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12042 # Best one so far, save it but keep looking for a better one
12043 ac_cv_path_FGREP
="$ac_path_FGREP"
12044 ac_path_FGREP_max
=$ac_count
12046 # 10*(2^10) chars as input seems more than enough
12047 test $ac_count -gt 10 && break
12049 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12052 $ac_path_FGREP_found && break 3
12057 if test -z "$ac_cv_path_FGREP"; then
12058 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12061 ac_cv_path_FGREP
=$FGREP
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12067 $as_echo "$ac_cv_path_FGREP" >&6; }
12068 FGREP
="$ac_cv_path_FGREP"
12071 test -z "$GREP" && GREP
=grep
12091 # Check whether --with-gnu-ld was given.
12092 if test "${with_gnu_ld+set}" = set; then :
12093 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12099 if test "$GCC" = yes; then
12100 # Check if gcc -print-prog-name=ld gives a path.
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12102 $as_echo_n "checking for ld used by $CC... " >&6; }
12105 # gcc leaves a trailing carriage return which upsets mingw
12106 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12108 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12111 # Accept absolute paths.
12113 re_direlt
='/[^/][^/]*/\.\./'
12114 # Canonicalize the pathname of ld
12115 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12116 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12117 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12119 test -z "$LD" && LD
="$ac_prog"
12122 # If it fails, then pretend we aren't using GCC.
12126 # If it is relative, then search for the first ld in PATH.
12127 with_gnu_ld
=unknown
12130 elif test "$with_gnu_ld" = yes; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12132 $as_echo_n "checking for GNU ld... " >&6; }
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12135 $as_echo_n "checking for non-GNU ld... " >&6; }
12137 if test "${lt_cv_path_LD+set}" = set; then :
12138 $as_echo_n "(cached) " >&6
12140 if test -z "$LD"; then
12141 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12142 for ac_dir
in $PATH; do
12144 test -z "$ac_dir" && ac_dir
=.
12145 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12146 lt_cv_path_LD
="$ac_dir/$ac_prog"
12147 # Check to see if the program is GNU ld. I'd rather use --version,
12148 # but apparently some variants of GNU ld only accept -v.
12149 # Break only if it was the GNU/non-GNU ld that we prefer.
12150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12151 *GNU
* |
*'with BFD'*)
12152 test "$with_gnu_ld" != no
&& break
12155 test "$with_gnu_ld" != yes && break
12162 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12166 LD
="$lt_cv_path_LD"
12167 if test -n "$LD"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12169 $as_echo "$LD" >&6; }
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12174 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12176 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12177 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12178 $as_echo_n "(cached) " >&6
12180 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12181 case `$LD -v 2>&1 </dev/null` in
12182 *GNU
* |
*'with BFD'*)
12183 lt_cv_prog_gnu_ld
=yes
12186 lt_cv_prog_gnu_ld
=no
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12191 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12192 with_gnu_ld
=$lt_cv_prog_gnu_ld
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12203 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12204 if test "${lt_cv_path_NM+set}" = set; then :
12205 $as_echo_n "(cached) " >&6
12207 if test -n "$NM"; then
12208 # Let the user override the test.
12209 lt_cv_path_NM
="$NM"
12211 lt_nm_to_check
="${ac_tool_prefix}nm"
12212 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12213 lt_nm_to_check
="$lt_nm_to_check nm"
12215 for lt_tmp_nm
in $lt_nm_to_check; do
12216 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12217 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12219 test -z "$ac_dir" && ac_dir
=.
12220 tmp_nm
="$ac_dir/$lt_tmp_nm"
12221 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12222 # Check to see if the nm accepts a BSD-compat flag.
12223 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12224 # nm: unknown option "B" ignored
12225 # Tru64's nm complains that /dev/null is an invalid object file
12226 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12227 */dev
/null
* |
*'Invalid file or object type'*)
12228 lt_cv_path_NM
="$tmp_nm -B"
12232 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12234 lt_cv_path_NM
="$tmp_nm -p"
12238 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12239 continue # so that we can try to find one that supports BSD flags
12248 : ${lt_cv_path_NM=no}
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12252 $as_echo "$lt_cv_path_NM" >&6; }
12253 if test "$lt_cv_path_NM" != "no"; then
12254 NM
="$lt_cv_path_NM"
12256 # Didn't find any BSD compatible name lister, look for dumpbin.
12257 if test -n "$DUMPBIN"; then :
12258 # Let the user override the test.
12260 if test -n "$ac_tool_prefix"; then
12261 for ac_prog
in dumpbin
"link -dump"
12263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12264 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266 $as_echo_n "checking for $ac_word... " >&6; }
12267 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12268 $as_echo_n "(cached) " >&6
12270 if test -n "$DUMPBIN"; then
12271 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12274 for as_dir
in $PATH
12277 test -z "$as_dir" && as_dir
=.
12278 for ac_exec_ext
in '' $ac_executable_extensions; do
12279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12280 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290 DUMPBIN
=$ac_cv_prog_DUMPBIN
12291 if test -n "$DUMPBIN"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12293 $as_echo "$DUMPBIN" >&6; }
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12300 test -n "$DUMPBIN" && break
12303 if test -z "$DUMPBIN"; then
12304 ac_ct_DUMPBIN
=$DUMPBIN
12305 for ac_prog
in dumpbin
"link -dump"
12307 # Extract the first word of "$ac_prog", so it can be a program name with args.
12308 set dummy
$ac_prog; ac_word
=$2
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310 $as_echo_n "checking for $ac_word... " >&6; }
12311 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
12314 if test -n "$ac_ct_DUMPBIN"; then
12315 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12318 for as_dir
in $PATH
12321 test -z "$as_dir" && as_dir
=.
12322 for ac_exec_ext
in '' $ac_executable_extensions; do
12323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12324 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12335 if test -n "$ac_ct_DUMPBIN"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12337 $as_echo "$ac_ct_DUMPBIN" >&6; }
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12344 test -n "$ac_ct_DUMPBIN" && break
12347 if test "x$ac_ct_DUMPBIN" = x
; then
12350 case $cross_compiling:$ac_tool_warned in
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12354 ac_tool_warned
=yes ;;
12356 DUMPBIN
=$ac_ct_DUMPBIN
12360 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12362 DUMPBIN
="$DUMPBIN -symbols"
12370 if test "$DUMPBIN" != ":"; then
12374 test -z "$NM" && NM
=nm
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12382 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12383 if test "${lt_cv_nm_interface+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12386 lt_cv_nm_interface
="BSD nm"
12387 echo "int some_variable = 0;" > conftest.
$ac_ext
12388 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12389 (eval "$ac_compile" 2>conftest.err
)
12390 cat conftest.err
>&5
12391 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12392 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12393 cat conftest.err
>&5
12394 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12395 cat conftest.out
>&5
12396 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12397 lt_cv_nm_interface
="MS dumpbin"
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12402 $as_echo "$lt_cv_nm_interface" >&6; }
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12405 $as_echo_n "checking whether ln -s works... " >&6; }
12407 if test "$LN_S" = "ln -s"; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12409 $as_echo "yes" >&6; }
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12412 $as_echo "no, using $LN_S" >&6; }
12415 # find the maximum length of command line arguments
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12417 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12418 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12419 $as_echo_n "(cached) " >&6
12426 # On DJGPP, this test can blow up pretty badly due to problems in libc
12427 # (any single argument exceeding 2000 bytes causes a buffer overrun
12428 # during glob expansion). Even if it were fixed, the result of this
12429 # check would be larger than it should be.
12430 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12434 # Under GNU Hurd, this test is not required because there is
12435 # no limit to the length of command line arguments.
12436 # Libtool will interpret -1 as no limit whatsoever
12437 lt_cv_sys_max_cmd_len
=-1;
12440 cygwin
* | mingw
* | cegcc
*)
12441 # On Win9x/ME, this test blows up -- it succeeds, but takes
12442 # about 5 minutes as the teststring grows exponentially.
12443 # Worse, since 9x/ME are not pre-emptively multitasking,
12444 # you end up with a "frozen" computer, even though with patience
12445 # the test eventually succeeds (with a max line length of 256k).
12446 # Instead, let's just punt: use the minimum linelength reported by
12447 # all of the supported platforms: 8192 (on NT/2K/XP).
12448 lt_cv_sys_max_cmd_len
=8192;
12452 # On MiNT this can take a long time and run out of memory.
12453 lt_cv_sys_max_cmd_len
=8192;
12457 # On AmigaOS with pdksh, this test takes hours, literally.
12458 # So we just punt and use a minimum line length of 8192.
12459 lt_cv_sys_max_cmd_len
=8192;
12462 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12463 # This has been around since 386BSD, at least. Likely further.
12464 if test -x /sbin
/sysctl
; then
12465 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12466 elif test -x /usr
/sbin
/sysctl
; then
12467 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12469 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12471 # And add a safety zone
12472 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12473 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12477 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12478 lt_cv_sys_max_cmd_len
=196608
12482 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12483 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12484 # nice to cause kernel panics so lets avoid the loop below.
12485 # First set a reasonable default.
12486 lt_cv_sys_max_cmd_len
=16384
12488 if test -x /sbin
/sysconfig
; then
12489 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12490 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12495 lt_cv_sys_max_cmd_len
=102400
12497 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12498 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12499 if test -n "$kargmax"; then
12500 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12502 lt_cv_sys_max_cmd_len
=32768
12506 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12507 if test -n "$lt_cv_sys_max_cmd_len"; then
12508 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12509 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12511 # Make teststring a little bigger before we do anything with it.
12512 # a 1K string should be a reasonable start.
12513 for i
in 1 2 3 4 5 6 7 8 ; do
12514 teststring
=$teststring$teststring
12516 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12517 # If test is not a shell built-in, we'll probably end up computing a
12518 # maximum length that is only half of the actual maximum length, but
12520 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12521 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12522 test $i != 17 # 1/2 MB should be enough
12525 teststring
=$teststring$teststring
12527 # Only check the string length outside the loop.
12528 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12530 # Add a significant safety factor because C++ compilers can tack on
12531 # massive amounts of additional arguments before passing them to the
12532 # linker. It appears as though 1/2 is a usable value.
12533 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12540 if test -n $lt_cv_sys_max_cmd_len ; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12542 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12545 $as_echo "none" >&6; }
12547 max_cmd_len
=$lt_cv_sys_max_cmd_len
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12559 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12560 # Try some XSI features
12562 ( _lt_dummy
="a/b/c"
12563 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12565 && eval 'test $(( 1 + 1 )) -eq 2 \
12566 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12569 $as_echo "$xsi_shell" >&6; }
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12573 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12575 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12577 && lt_shell_append=yes
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12579 $as_echo "$lt_shell_append" >&6; }
12582 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12592 # test EBCDIC or ASCII
12593 case `echo X|tr X '\101'` in
12594 A) # ASCII based system
12595 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12596 lt_SP2NL='tr \040 \012'
12597 lt_NL2SP='tr \015\012 \040\040'
12599 *) # EBCDIC based system
12600 lt_SP2NL='tr \100 \n'
12601 lt_NL2SP='tr \r\n \100\100'
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12614 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12615 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12616 $as_echo_n "(cached
) " >&6
12618 lt_cv_ld_reload_flag='-r'
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12621 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12622 reload_flag=$lt_cv_ld_reload_flag
12623 case $reload_flag in
12625 *) reload_flag=" $reload_flag" ;;
12627 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12630 if test "$GCC" = yes; then
12631 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12633 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12646 if test -n "$ac_tool_prefix"; then
12647 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12648 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12650 $as_echo_n "checking
for $ac_word...
" >&6; }
12651 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12652 $as_echo_n "(cached
) " >&6
12654 if test -n "$OBJDUMP"; then
12655 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12658 for as_dir in $PATH
12661 test -z "$as_dir" && as_dir=.
12662 for ac_exec_ext in '' $ac_executable_extensions; do
12663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12664 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12665 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12674 OBJDUMP=$ac_cv_prog_OBJDUMP
12675 if test -n "$OBJDUMP"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12677 $as_echo "$OBJDUMP" >&6; }
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12680 $as_echo "no
" >&6; }
12685 if test -z "$ac_cv_prog_OBJDUMP"; then
12686 ac_ct_OBJDUMP=$OBJDUMP
12687 # Extract the first word of "objdump
", so it can be a program name with args.
12688 set dummy objdump; ac_word=$2
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12690 $as_echo_n "checking
for $ac_word...
" >&6; }
12691 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12692 $as_echo_n "(cached
) " >&6
12694 if test -n "$ac_ct_OBJDUMP"; then
12695 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $PATH
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12704 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12705 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12714 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12715 if test -n "$ac_ct_OBJDUMP"; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12717 $as_echo "$ac_ct_OBJDUMP" >&6; }
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12720 $as_echo "no
" >&6; }
12723 if test "x
$ac_ct_OBJDUMP" = x; then
12726 case $cross_compiling:$ac_tool_warned in
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12729 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12730 ac_tool_warned=yes ;;
12732 OBJDUMP=$ac_ct_OBJDUMP
12735 OBJDUMP="$ac_cv_prog_OBJDUMP"
12738 test -z "$OBJDUMP" && OBJDUMP=objdump
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12749 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12750 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12751 $as_echo_n "(cached
) " >&6
12753 lt_cv_file_magic_cmd='$MAGIC_CMD'
12754 lt_cv_file_magic_test_file=
12755 lt_cv_deplibs_check_method='unknown'
12756 # Need to set the preceding variable on all platforms that support
12757 # interlibrary dependencies.
12758 # 'none' -- dependencies not supported.
12759 # `unknown' -- same as none, but documents that we really don't know.
12760 # 'pass_all' -- all dependencies passed with no checks.
12761 # 'test_compile' -- check by making test program.
12762 # 'file_magic [[regex]]' -- check by looking for files in library path
12763 # which responds to the $file_magic_cmd with a given extended regex.
12764 # If you have `file' or equivalent on your system and you're not sure
12765 # whether `pass_all' will *always* work, you probably want this one.
12769 lt_cv_deplibs_check_method=pass_all
12773 lt_cv_deplibs_check_method=pass_all
12777 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12778 lt_cv_file_magic_cmd='/usr/bin/file -L'
12779 lt_cv_file_magic_test_file=/shlib/libc.so
12783 # func_win32_libid is a shell function defined in ltmain.sh
12784 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12785 lt_cv_file_magic_cmd='func_win32_libid'
12789 # Base MSYS/MinGW do not provide the 'file' command needed by
12790 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12791 # unless we find 'file', for example because we are cross-compiling.
12792 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12793 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12794 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12795 lt_cv_file_magic_cmd='func_win32_libid'
12797 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12798 lt_cv_file_magic_cmd='$OBJDUMP -f'
12803 # use the weaker test based on 'objdump'. See mingw*.
12804 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12805 lt_cv_file_magic_cmd='$OBJDUMP -f'
12808 darwin* | rhapsody*)
12809 lt_cv_deplibs_check_method=pass_all
12812 freebsd* | dragonfly*)
12813 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12816 # Not sure whether the presence of OpenBSD here was a mistake.
12817 # Let's accept both of them until this is cleared up.
12818 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12819 lt_cv_file_magic_cmd=/usr/bin/file
12820 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12824 lt_cv_deplibs_check_method=pass_all
12829 lt_cv_deplibs_check_method=pass_all
12833 lt_cv_deplibs_check_method=pass_all
12836 hpux10.20* | hpux11*)
12837 lt_cv_file_magic_cmd=/usr/bin/file
12840 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12841 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12844 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]'
12845 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12848 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12849 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12855 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12859 irix5* | irix6* | nonstopux*)
12861 *-32|*"-32 ") libmagic=32-bit;;
12862 *-n32|*"-n32 ") libmagic=N32;;
12863 *-64|*"-64 ") libmagic=64-bit;;
12864 *) libmagic=never-match;;
12866 lt_cv_deplibs_check_method=pass_all
12869 # This must be Linux ELF.
12870 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12871 lt_cv_deplibs_check_method=pass_all
12875 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12884 lt_cv_file_magic_cmd=/usr/bin/file
12885 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12889 lt_cv_deplibs_check_method=pass_all
12893 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12900 osf3* | osf4* | osf5*)
12901 lt_cv_deplibs_check_method=pass_all
12905 lt_cv_deplibs_check_method=pass_all
12909 lt_cv_deplibs_check_method=pass_all
12912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12913 lt_cv_deplibs_check_method=pass_all
12917 case $host_vendor in
12919 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]'
12920 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12923 lt_cv_deplibs_check_method=pass_all
12926 lt_cv_file_magic_cmd='/bin/file'
12927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12930 lt_cv_file_magic_cmd='/bin/file'
12931 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12932 lt_cv_file_magic_test_file=/lib/libc.so
12935 lt_cv_deplibs_check_method=pass_all
12938 lt_cv_deplibs_check_method=pass_all
12944 lt_cv_deplibs_check_method=pass_all
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12950 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12951 file_magic_cmd=$lt_cv_file_magic_cmd
12952 deplibs_check_method=$lt_cv_deplibs_check_method
12953 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12966 if test -n "$ac_tool_prefix"; then
12967 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12968 set dummy ${ac_tool_prefix}ar; ac_word=$2
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12970 $as_echo_n "checking
for $ac_word...
" >&6; }
12971 if test "${ac_cv_prog_AR+set}" = set; then :
12972 $as_echo_n "(cached
) " >&6
12974 if test -n "$AR"; then
12975 ac_cv_prog_AR="$AR" # Let the user override the test.
12977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978 for as_dir in $PATH
12981 test -z "$as_dir" && as_dir=.
12982 for ac_exec_ext in '' $ac_executable_extensions; do
12983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12984 ac_cv_prog_AR="${ac_tool_prefix}ar"
12985 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12995 if test -n "$AR"; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12997 $as_echo "$AR" >&6; }
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13000 $as_echo "no
" >&6; }
13005 if test -z "$ac_cv_prog_AR"; then
13007 # Extract the first word of "ar", so it can be a program name with args.
13008 set dummy ar; ac_word=$2
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13010 $as_echo_n "checking
for $ac_word...
" >&6; }
13011 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13012 $as_echo_n "(cached
) " >&6
13014 if test -n "$ac_ct_AR"; then
13015 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018 for as_dir in $PATH
13021 test -z "$as_dir" && as_dir=.
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13024 ac_cv_prog_ac_ct_AR="ar"
13025 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13034 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13035 if test -n "$ac_ct_AR"; then
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13037 $as_echo "$ac_ct_AR" >&6; }
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13040 $as_echo "no
" >&6; }
13043 if test "x
$ac_ct_AR" = x; then
13046 case $cross_compiling:$ac_tool_warned in
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13049 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13050 ac_tool_warned=yes ;;
13055 AR="$ac_cv_prog_AR"
13058 test -z "$AR" && AR=ar
13059 test -z "$AR_FLAGS" && AR_FLAGS=cru
13071 if test -n "$ac_tool_prefix"; then
13072 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13073 set dummy ${ac_tool_prefix}strip; ac_word=$2
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13075 $as_echo_n "checking
for $ac_word...
" >&6; }
13076 if test "${ac_cv_prog_STRIP+set}" = set; then :
13077 $as_echo_n "(cached
) " >&6
13079 if test -n "$STRIP"; then
13080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
13088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13089 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13090 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13099 STRIP=$ac_cv_prog_STRIP
13100 if test -n "$STRIP"; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13102 $as_echo "$STRIP" >&6; }
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13105 $as_echo "no
" >&6; }
13110 if test -z "$ac_cv_prog_STRIP"; then
13112 # Extract the first word of "strip
", so it can be a program name with args.
13113 set dummy strip; ac_word=$2
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13115 $as_echo_n "checking
for $ac_word...
" >&6; }
13116 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13117 $as_echo_n "(cached
) " >&6
13119 if test -n "$ac_ct_STRIP"; then
13120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123 for as_dir in $PATH
13126 test -z "$as_dir" && as_dir=.
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13129 ac_cv_prog_ac_ct_STRIP="strip
"
13130 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13139 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13140 if test -n "$ac_ct_STRIP"; then
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13142 $as_echo "$ac_ct_STRIP" >&6; }
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13145 $as_echo "no
" >&6; }
13148 if test "x
$ac_ct_STRIP" = x; then
13151 case $cross_compiling:$ac_tool_warned in
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13154 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13155 ac_tool_warned=yes ;;
13160 STRIP="$ac_cv_prog_STRIP"
13163 test -z "$STRIP" && STRIP=:
13170 if test -n "$ac_tool_prefix"; then
13171 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13174 $as_echo_n "checking
for $ac_word...
" >&6; }
13175 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13176 $as_echo_n "(cached
) " >&6
13178 if test -n "$RANLIB"; then
13179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
13187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13198 RANLIB=$ac_cv_prog_RANLIB
13199 if test -n "$RANLIB"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13201 $as_echo "$RANLIB" >&6; }
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13204 $as_echo "no
" >&6; }
13209 if test -z "$ac_cv_prog_RANLIB"; then
13210 ac_ct_RANLIB=$RANLIB
13211 # Extract the first word of "ranlib
", so it can be a program name with args.
13212 set dummy ranlib; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13214 $as_echo_n "checking
for $ac_word...
" >&6; }
13215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13216 $as_echo_n "(cached
) " >&6
13218 if test -n "$ac_ct_RANLIB"; then
13219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222 for as_dir in $PATH
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
13227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13228 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13239 if test -n "$ac_ct_RANLIB"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13241 $as_echo "$ac_ct_RANLIB" >&6; }
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13244 $as_echo "no
" >&6; }
13247 if test "x
$ac_ct_RANLIB" = x; then
13250 case $cross_compiling:$ac_tool_warned in
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13253 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13254 ac_tool_warned=yes ;;
13256 RANLIB=$ac_ct_RANLIB
13259 RANLIB="$ac_cv_prog_RANLIB"
13262 test -z "$RANLIB" && RANLIB=:
13269 # Determine commands to create old-style static archives.
13270 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13271 old_postinstall_cmds='chmod 644 $oldlib'
13272 old_postuninstall_cmds=
13274 if test -n "$RANLIB"; then
13277 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13280 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13283 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13288 lock_old_archive_extraction=yes ;;
13290 lock_old_archive_extraction=no ;;
13331 # If no C compiler was specified, use CC.
13334 # If no C compiler flags were specified, use CFLAGS.
13335 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13337 # Allow CC to be a program name with arguments.
13341 # Check for command to grab the raw symbol name followed by C symbol from nm.
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13343 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13344 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13345 $as_echo_n "(cached
) " >&6
13348 # These are sane defaults that work on at least a few old systems.
13349 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13351 # Character class describing NM global symbol codes.
13352 symcode='[BCDEGRST]'
13354 # Regexp to match symbols that can be accessed directly from C.
13355 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13357 # Define system-specific variables.
13362 cygwin* | mingw* | pw32* | cegcc*)
13363 symcode='[ABCDGISTW]'
13366 if test "$host_cpu" = ia64; then
13367 symcode='[ABCDEGRST]'
13370 irix* | nonstopux*)
13371 symcode='[BCDEGRST]'
13374 symcode='[BCDEGQRST]'
13385 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13393 # If we're using GNU nm, then use its standard symbol codes.
13394 case `$NM -V 2>&1` in
13395 *GNU* | *'with BFD'*)
13396 symcode='[ABCDGIRSTW]' ;;
13399 # Transform an extracted symbol line into a proper C declaration.
13400 # Some systems (esp. on ia64) link data and code symbols differently,
13401 # so use this general approach.
13402 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13404 # Transform an extracted symbol line into symbol name and symbol address
13405 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13406 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'"
13408 # Handle CRLF in mingw tool chain
13412 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13416 # Try without a prefix underscore, then with it.
13417 for ac_symprfx in "" "_
"; do
13419 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13420 symxfrm="\\1 $ac_symprfx\\2 \\2"
13422 # Write the raw and C identifiers.
13423 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13424 # Fake it for dumpbin and say T for any non-static function
13425 # and D for any global variable.
13426 # Also find C++ and __fastcall symbols from MSVC++,
13427 # which start with @ or ?.
13428 lt_cv_sys_global_symbol_pipe="$AWK '"\
13429 " {last_section=section; section=\$ 3};"\
13430 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13431 " \$ 0!~/External *\|/{next};"\
13432 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13433 " {if(hide[section]) next};"\
13434 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13435 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13436 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13437 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13438 " ' prfx
=^
$ac_symprfx"
13440 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13443 # Check to see that the pipe works correctly.
13447 cat > conftest.$ac_ext <<_LT_EOF
13452 void nm_test_func(void);
13453 void nm_test_func(void){}
13457 int main(){nm_test_var='a';nm_test_func();return(0);}
13460 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13461 (eval $ac_compile) 2>&5
13463 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13464 test $ac_status = 0; }; then
13465 # Now try to grab the symbols.
13467 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13468 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13470 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13471 test $ac_status = 0; } && test -s "$nlist"; then
13472 # Try sorting and uniquifying the output.
13473 if sort "$nlist" | uniq > "$nlist"T; then
13474 mv -f "$nlist"T "$nlist"
13479 # Make sure that we snagged all the symbols we need.
13480 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13481 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13482 cat <<_LT_EOF > conftest.$ac_ext
13488 # Now generate the symbol file.
13489 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13491 cat <<_LT_EOF >> conftest.$ac_ext
13493 /* The mapping between symbol names and symbols. */
13498 lt__PROGRAM__LTX_preloaded_symbols[] =
13500 { "@PROGRAM@
", (void *) 0 },
13502 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13503 cat <<\_LT_EOF >> conftest.$ac_ext
13507 /* This works around a problem in FreeBSD linker */
13508 #ifdef FREEBSD_WORKAROUND
13509 static const void *lt_preloaded_setup() {
13510 return lt__PROGRAM__LTX_preloaded_symbols;
13518 # Now try linking the two files.
13519 mv conftest.$ac_objext conftstm.$ac_objext
13520 lt_save_LIBS="$LIBS"
13521 lt_save_CFLAGS="$CFLAGS"
13522 LIBS="conftstm.
$ac_objext"
13523 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13524 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13525 (eval $ac_link) 2>&5
13527 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13528 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13531 LIBS="$lt_save_LIBS"
13532 CFLAGS="$lt_save_CFLAGS"
13534 echo "cannot
find nm_test_func
in $nlist" >&5
13537 echo "cannot
find nm_test_var
in $nlist" >&5
13540 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13543 echo "$progname: failed program was
:" >&5
13544 cat conftest.$ac_ext >&5
13546 rm -rf conftest* conftst*
13548 # Do not use the global_symbol_pipe unless it works.
13549 if test "$pipe_works" = yes; then
13552 lt_cv_sys_global_symbol_pipe=
13558 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13559 lt_cv_sys_global_symbol_to_cdecl=
13561 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13563 $as_echo "failed
" >&6; }
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13566 $as_echo "ok
" >&6; }
13590 # Check whether --enable-libtool-lock was given.
13591 if test "${enable_libtool_lock+set}" = set; then :
13592 enableval=$enable_libtool_lock;
13595 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13597 # Some flags need to be propagated to the compiler or linker for good
13601 # Find out which ABI we are using.
13602 echo 'int i;' > conftest.$ac_ext
13603 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13604 (eval $ac_compile) 2>&5
13606 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13607 test $ac_status = 0; }; then
13608 case `/usr/bin/file conftest.$ac_objext` in
13610 HPUX_IA64_MODE="32"
13613 HPUX_IA64_MODE="64"
13620 # Find out which ABI we are using.
13621 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13622 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13623 (eval $ac_compile) 2>&5
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13626 test $ac_status = 0; }; then
13627 if test "$lt_cv_prog_gnu_ld" = yes; then
13628 case `/usr/bin/file conftest.$ac_objext` in
13630 LD="${LD-ld} -melf32bsmip"
13633 LD="${LD-ld} -melf32bmipn32"
13636 LD="${LD-ld} -melf64bmip"
13640 case `/usr/bin/file conftest.$ac_objext` in
13656 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13657 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13658 # Find out which ABI we are using.
13659 echo 'int i;' > conftest.$ac_ext
13660 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13661 (eval $ac_compile) 2>&5
13663 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13664 test $ac_status = 0; }; then
13665 case `/usr/bin/file conftest.o` in
13668 x86_64-*kfreebsd*-gnu)
13669 LD="${LD-ld} -m elf_i386_fbsd
"
13672 case `/usr/bin/file conftest.o` in
13674 LD="${LD-ld} -m elf32_x86_64
"
13677 LD="${LD-ld} -m elf_i386
"
13681 powerpc64le-*linux*)
13682 LD="${LD-ld} -m elf32lppclinux
"
13685 LD="${LD-ld} -m elf32ppclinux
"
13688 LD="${LD-ld} -m elf_s390
"
13691 LD="${LD-ld} -m elf32_sparc
"
13697 x86_64-*kfreebsd*-gnu)
13698 LD="${LD-ld} -m elf_x86_64_fbsd
"
13701 LD="${LD-ld} -m elf_x86_64
"
13704 LD="${LD-ld} -m elf64lppc
"
13707 LD="${LD-ld} -m elf64ppc
"
13709 s390*-*linux*|s390*-*tpf*)
13710 LD="${LD-ld} -m elf64_s390
"
13713 LD="${LD-ld} -m elf64_sparc
"
13723 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13724 SAVE_CFLAGS="$CFLAGS"
13725 CFLAGS="$CFLAGS -belf"
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13727 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13728 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13729 $as_echo_n "(cached
) " >&6
13732 ac_cpp='$CPP $CPPFLAGS'
13733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13748 if ac_fn_c_try_link "$LINENO"; then :
13749 lt_cv_cc_needs_belf=yes
13751 lt_cv_cc_needs_belf=no
13753 rm -f core conftest.err conftest.$ac_objext \
13754 conftest$ac_exeext conftest.$ac_ext
13756 ac_cpp='$CPP $CPPFLAGS'
13757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13763 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13764 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13765 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13766 CFLAGS="$SAVE_CFLAGS"
13770 # Find out which ABI we are using.
13771 echo 'int i;' > conftest.$ac_ext
13772 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13773 (eval $ac_compile) 2>&5
13775 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13776 test $ac_status = 0; }; then
13777 case `/usr/bin/file conftest.o` in
13779 case $lt_cv_prog_gnu_ld in
13780 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13782 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13794 need_locks="$enable_libtool_lock"
13798 rhapsody* | darwin*)
13799 if test -n "$ac_tool_prefix"; then
13800 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13801 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13803 $as_echo_n "checking
for $ac_word...
" >&6; }
13804 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13805 $as_echo_n "(cached
) " >&6
13807 if test -n "$DSYMUTIL"; then
13808 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811 for as_dir in $PATH
13814 test -z "$as_dir" && as_dir=.
13815 for ac_exec_ext in '' $ac_executable_extensions; do
13816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13817 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13818 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13827 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13828 if test -n "$DSYMUTIL"; then
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13830 $as_echo "$DSYMUTIL" >&6; }
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13833 $as_echo "no
" >&6; }
13838 if test -z "$ac_cv_prog_DSYMUTIL"; then
13839 ac_ct_DSYMUTIL=$DSYMUTIL
13840 # Extract the first word of "dsymutil
", so it can be a program name with args.
13841 set dummy dsymutil; ac_word=$2
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13843 $as_echo_n "checking
for $ac_word...
" >&6; }
13844 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13845 $as_echo_n "(cached
) " >&6
13847 if test -n "$ac_ct_DSYMUTIL"; then
13848 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13851 for as_dir in $PATH
13854 test -z "$as_dir" && as_dir=.
13855 for ac_exec_ext in '' $ac_executable_extensions; do
13856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13857 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13858 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13867 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13868 if test -n "$ac_ct_DSYMUTIL"; then
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13870 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13873 $as_echo "no
" >&6; }
13876 if test "x
$ac_ct_DSYMUTIL" = x; then
13879 case $cross_compiling:$ac_tool_warned in
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13882 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13883 ac_tool_warned=yes ;;
13885 DSYMUTIL=$ac_ct_DSYMUTIL
13888 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13891 if test -n "$ac_tool_prefix"; then
13892 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13893 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13895 $as_echo_n "checking
for $ac_word...
" >&6; }
13896 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13897 $as_echo_n "(cached
) " >&6
13899 if test -n "$NMEDIT"; then
13900 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH
13906 test -z "$as_dir" && as_dir=.
13907 for ac_exec_ext in '' $ac_executable_extensions; do
13908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13909 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13910 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13919 NMEDIT=$ac_cv_prog_NMEDIT
13920 if test -n "$NMEDIT"; then
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13922 $as_echo "$NMEDIT" >&6; }
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13925 $as_echo "no
" >&6; }
13930 if test -z "$ac_cv_prog_NMEDIT"; then
13931 ac_ct_NMEDIT=$NMEDIT
13932 # Extract the first word of "nmedit
", so it can be a program name with args.
13933 set dummy nmedit; ac_word=$2
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13935 $as_echo_n "checking
for $ac_word...
" >&6; }
13936 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13937 $as_echo_n "(cached
) " >&6
13939 if test -n "$ac_ct_NMEDIT"; then
13940 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13943 for as_dir in $PATH
13946 test -z "$as_dir" && as_dir=.
13947 for ac_exec_ext in '' $ac_executable_extensions; do
13948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13949 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13950 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13959 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13960 if test -n "$ac_ct_NMEDIT"; then
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13962 $as_echo "$ac_ct_NMEDIT" >&6; }
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13965 $as_echo "no
" >&6; }
13968 if test "x
$ac_ct_NMEDIT" = x; then
13971 case $cross_compiling:$ac_tool_warned in
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13974 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13975 ac_tool_warned=yes ;;
13977 NMEDIT=$ac_ct_NMEDIT
13980 NMEDIT="$ac_cv_prog_NMEDIT"
13983 if test -n "$ac_tool_prefix"; then
13984 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13985 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13987 $as_echo_n "checking
for $ac_word...
" >&6; }
13988 if test "${ac_cv_prog_LIPO+set}" = set; then :
13989 $as_echo_n "(cached
) " >&6
13991 if test -n "$LIPO"; then
13992 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13995 for as_dir in $PATH
13998 test -z "$as_dir" && as_dir=.
13999 for ac_exec_ext in '' $ac_executable_extensions; do
14000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14001 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14002 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14011 LIPO=$ac_cv_prog_LIPO
14012 if test -n "$LIPO"; then
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14014 $as_echo "$LIPO" >&6; }
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14017 $as_echo "no
" >&6; }
14022 if test -z "$ac_cv_prog_LIPO"; then
14024 # Extract the first word of "lipo
", so it can be a program name with args.
14025 set dummy lipo; ac_word=$2
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14027 $as_echo_n "checking
for $ac_word...
" >&6; }
14028 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14029 $as_echo_n "(cached
) " >&6
14031 if test -n "$ac_ct_LIPO"; then
14032 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035 for as_dir in $PATH
14038 test -z "$as_dir" && as_dir=.
14039 for ac_exec_ext in '' $ac_executable_extensions; do
14040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14041 ac_cv_prog_ac_ct_LIPO="lipo
"
14042 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14051 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14052 if test -n "$ac_ct_LIPO"; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14054 $as_echo "$ac_ct_LIPO" >&6; }
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14057 $as_echo "no
" >&6; }
14060 if test "x
$ac_ct_LIPO" = x; then
14063 case $cross_compiling:$ac_tool_warned in
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14066 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14067 ac_tool_warned=yes ;;
14072 LIPO="$ac_cv_prog_LIPO"
14075 if test -n "$ac_tool_prefix"; then
14076 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14077 set dummy ${ac_tool_prefix}otool; ac_word=$2
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14079 $as_echo_n "checking
for $ac_word...
" >&6; }
14080 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14081 $as_echo_n "(cached
) " >&6
14083 if test -n "$OTOOL"; then
14084 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14090 test -z "$as_dir" && as_dir=.
14091 for ac_exec_ext in '' $ac_executable_extensions; do
14092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14093 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14094 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14103 OTOOL=$ac_cv_prog_OTOOL
14104 if test -n "$OTOOL"; then
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14106 $as_echo "$OTOOL" >&6; }
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14109 $as_echo "no
" >&6; }
14114 if test -z "$ac_cv_prog_OTOOL"; then
14116 # Extract the first word of "otool
", so it can be a program name with args.
14117 set dummy otool; ac_word=$2
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14119 $as_echo_n "checking
for $ac_word...
" >&6; }
14120 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14121 $as_echo_n "(cached
) " >&6
14123 if test -n "$ac_ct_OTOOL"; then
14124 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14127 for as_dir in $PATH
14130 test -z "$as_dir" && as_dir=.
14131 for ac_exec_ext in '' $ac_executable_extensions; do
14132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14133 ac_cv_prog_ac_ct_OTOOL="otool
"
14134 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14143 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14144 if test -n "$ac_ct_OTOOL"; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14146 $as_echo "$ac_ct_OTOOL" >&6; }
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14149 $as_echo "no
" >&6; }
14152 if test "x
$ac_ct_OTOOL" = x; then
14155 case $cross_compiling:$ac_tool_warned in
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14158 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14159 ac_tool_warned=yes ;;
14164 OTOOL="$ac_cv_prog_OTOOL"
14167 if test -n "$ac_tool_prefix"; then
14168 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14169 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14171 $as_echo_n "checking
for $ac_word...
" >&6; }
14172 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14173 $as_echo_n "(cached
) " >&6
14175 if test -n "$OTOOL64"; then
14176 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179 for as_dir in $PATH
14182 test -z "$as_dir" && as_dir=.
14183 for ac_exec_ext in '' $ac_executable_extensions; do
14184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14185 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14186 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14195 OTOOL64=$ac_cv_prog_OTOOL64
14196 if test -n "$OTOOL64"; then
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14198 $as_echo "$OTOOL64" >&6; }
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14201 $as_echo "no
" >&6; }
14206 if test -z "$ac_cv_prog_OTOOL64"; then
14207 ac_ct_OTOOL64=$OTOOL64
14208 # Extract the first word of "otool64
", so it can be a program name with args.
14209 set dummy otool64; ac_word=$2
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14211 $as_echo_n "checking
for $ac_word...
" >&6; }
14212 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14213 $as_echo_n "(cached
) " >&6
14215 if test -n "$ac_ct_OTOOL64"; then
14216 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219 for as_dir in $PATH
14222 test -z "$as_dir" && as_dir=.
14223 for ac_exec_ext in '' $ac_executable_extensions; do
14224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14225 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14226 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14235 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14236 if test -n "$ac_ct_OTOOL64"; then
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14238 $as_echo "$ac_ct_OTOOL64" >&6; }
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14241 $as_echo "no
" >&6; }
14244 if test "x
$ac_ct_OTOOL64" = x; then
14247 case $cross_compiling:$ac_tool_warned in
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14250 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14251 ac_tool_warned=yes ;;
14253 OTOOL64=$ac_ct_OTOOL64
14256 OTOOL64="$ac_cv_prog_OTOOL64"
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14286 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14287 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14288 $as_echo_n "(cached
) " >&6
14290 lt_cv_apple_cc_single_mod=no
14291 if test -z "${LT_MULTI_MODULE}"; then
14292 # By default we will add the -single_module flag. You can override
14293 # by either setting the environment variable LT_MULTI_MODULE
14294 # non-empty at configure time, or by adding -multi_module to the
14296 rm -rf libconftest.dylib*
14297 echo "int foo
(void
){return 1;}" > conftest.c
14298 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14299 -dynamiclib -Wl,-single_module conftest.c
" >&5
14300 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14301 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14303 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14304 lt_cv_apple_cc_single_mod=yes
14306 cat conftest.err >&5
14308 rm -rf libconftest.dylib*
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14313 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14315 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14316 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14317 $as_echo_n "(cached
) " >&6
14319 lt_cv_ld_exported_symbols_list=no
14320 save_LDFLAGS=$LDFLAGS
14321 echo "_main
" > conftest.sym
14322 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14334 if ac_fn_c_try_link "$LINENO"; then :
14335 lt_cv_ld_exported_symbols_list=yes
14337 lt_cv_ld_exported_symbols_list=no
14339 rm -f core conftest.err conftest.$ac_objext \
14340 conftest$ac_exeext conftest.$ac_ext
14341 LDFLAGS="$save_LDFLAGS"
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14345 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14347 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14348 if test "${lt_cv_ld_force_load+set}" = set; then :
14349 $as_echo_n "(cached
) " >&6
14351 lt_cv_ld_force_load=no
14352 cat > conftest.c << _LT_EOF
14353 int forced_loaded() { return 2;}
14355 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14356 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14357 echo "$AR cru libconftest.a conftest.o
" >&5
14358 $AR cru libconftest.a conftest.o 2>&5
14359 cat > conftest.c << _LT_EOF
14360 int main() { return 0;}
14362 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14363 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14365 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14366 lt_cv_ld_force_load=yes
14368 cat conftest.err >&5
14370 rm -f conftest.err libconftest.a conftest conftest.c
14371 rm -rf conftest.dSYM
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14375 $as_echo "$lt_cv_ld_force_load" >&6; }
14377 rhapsody* | darwin1.[012])
14378 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14380 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14381 darwin*) # darwin 5.x on
14382 # if running on 10.5 or later, the deployment target defaults
14383 # to the OS version, if on x86, and 10.4, the deployment
14384 # target defaults to 10.4. Don't you love it?
14385 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14386 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14387 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14389 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14391 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14395 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14396 _lt_dar_single_mod='$single_module'
14398 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14399 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14401 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14403 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14404 _lt_dsymutil='~$DSYMUTIL $lib || :'
14411 for ac_header in dlfcn.h
14413 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14414 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14415 cat >>confdefs.h <<_ACEOF
14416 #define HAVE_DLFCN_H 1
14433 enable_win32_dll=no
14436 # Check whether --enable-shared was given.
14437 if test "${enable_shared+set}" = set; then :
14438 enableval=$enable_shared; p=${PACKAGE-default}
14440 yes) enable_shared=yes ;;
14441 no) enable_shared=no ;;
14444 # Look at the argument we got. We use all the common list separators.
14445 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14446 for pkg in $enableval; do
14448 if test "X
$pkg" = "X
$p"; then
14467 # Check whether --enable-static was given.
14468 if test "${enable_static+set}" = set; then :
14469 enableval=$enable_static; p=${PACKAGE-default}
14471 yes) enable_static=yes ;;
14472 no) enable_static=no ;;
14475 # Look at the argument we got. We use all the common list separators.
14476 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14477 for pkg in $enableval; do
14479 if test "X
$pkg" = "X
$p"; then
14499 # Check whether --with-pic was given.
14500 if test "${with_pic+set}" = set; then :
14501 withval=$with_pic; pic_mode="$withval"
14507 test -z "$pic_mode" && pic_mode=default
14515 # Check whether --enable-fast-install was given.
14516 if test "${enable_fast_install+set}" = set; then :
14517 enableval=$enable_fast_install; p=${PACKAGE-default}
14519 yes) enable_fast_install=yes ;;
14520 no) enable_fast_install=no ;;
14522 enable_fast_install=no
14523 # Look at the argument we got. We use all the common list separators.
14524 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14525 for pkg in $enableval; do
14527 if test "X
$pkg" = "X
$p"; then
14528 enable_fast_install=yes
14535 enable_fast_install=yes
14548 # This can be used to rebuild libtool when needed
14549 LIBTOOL_DEPS="$ltmain"
14551 # Always use our own libtool.
14552 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14579 test -z "$LN_S" && LN_S="ln -s"
14594 if test -n "${ZSH_VERSION+set}" ; then
14595 setopt NO_GLOB_SUBST
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14599 $as_echo_n "checking
for objdir...
" >&6; }
14600 if test "${lt_cv_objdir+set}" = set; then :
14601 $as_echo_n "(cached
) " >&6
14603 rm -f .libs 2>/dev/null
14604 mkdir .libs 2>/dev/null
14605 if test -d .libs; then
14608 # MS-DOS does not allow filenames that begin with a dot.
14611 rmdir .libs 2>/dev/null
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14614 $as_echo "$lt_cv_objdir" >&6; }
14615 objdir=$lt_cv_objdir
14621 cat >>confdefs.h <<_ACEOF
14622 #define LT_OBJDIR "$lt_cv_objdir/"
14630 # AIX sometimes has problems with the GCC collect2 program. For some
14631 # reason, if we set the COLLECT_NAMES environment variable, the problems
14632 # vanish in a puff of smoke.
14633 if test "X
${COLLECT_NAMES+set}" != Xset; then
14635 export COLLECT_NAMES
14640 # Global variables:
14642 can_build_shared=yes
14644 # All known linkers require a `.a' archive for static linking (except MSVC,
14645 # which needs '.lib').
14648 with_gnu_ld="$lt_cv_prog_gnu_ld"
14651 old_CFLAGS="$CFLAGS"
14653 # Set sane defaults for various variables
14654 test -z "$CC" && CC=cc
14655 test -z "$LTCC" && LTCC=$CC
14656 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14657 test -z "$LD" && LD=ld
14658 test -z "$ac_objext" && ac_objext=o
14660 for cc_temp in $compiler""; do
14662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14668 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14671 # Only perform the check for file, if the check method requires it
14672 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14673 case $deplibs_check_method in
14675 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14677 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14678 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14679 $as_echo_n "(cached
) " >&6
14683 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14686 lt_save_MAGIC_CMD="$MAGIC_CMD"
14687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14688 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14689 for ac_dir in $ac_dummy; do
14691 test -z "$ac_dir" && ac_dir=.
14692 if test -f $ac_dir/${ac_tool_prefix}file; then
14693 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14694 if test -n "$file_magic_test_file"; then
14695 case $deplibs_check_method in
14697 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14698 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14699 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14700 $EGREP "$file_magic_regex" > /dev/null; then
14705 *** Warning: the command libtool uses to detect shared libraries,
14706 *** $file_magic_cmd, produces output that libtool cannot recognize.
14707 *** The result is that libtool may fail to recognize shared libraries
14708 *** as such. This will affect the creation of libtool libraries that
14709 *** depend on shared libraries, but programs linked with such libtool
14710 *** libraries will work regardless of this problem. Nevertheless, you
14711 *** may want to report the problem to your system manager and/or to
14712 *** bug-libtool@gnu.org
14722 MAGIC_CMD="$lt_save_MAGIC_CMD"
14727 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14728 if test -n "$MAGIC_CMD"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14730 $as_echo "$MAGIC_CMD" >&6; }
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14733 $as_echo "no
" >&6; }
14740 if test -z "$lt_cv_path_MAGIC_CMD"; then
14741 if test -n "$ac_tool_prefix"; then
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14743 $as_echo_n "checking
for file...
" >&6; }
14744 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14745 $as_echo_n "(cached
) " >&6
14749 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14752 lt_save_MAGIC_CMD="$MAGIC_CMD"
14753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14754 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14755 for ac_dir in $ac_dummy; do
14757 test -z "$ac_dir" && ac_dir=.
14758 if test -f $ac_dir/file; then
14759 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14760 if test -n "$file_magic_test_file"; then
14761 case $deplibs_check_method in
14763 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14764 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14765 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14766 $EGREP "$file_magic_regex" > /dev/null; then
14771 *** Warning: the command libtool uses to detect shared libraries,
14772 *** $file_magic_cmd, produces output that libtool cannot recognize.
14773 *** The result is that libtool may fail to recognize shared libraries
14774 *** as such. This will affect the creation of libtool libraries that
14775 *** depend on shared libraries, but programs linked with such libtool
14776 *** libraries will work regardless of this problem. Nevertheless, you
14777 *** may want to report the problem to your system manager and/or to
14778 *** bug-libtool@gnu.org
14788 MAGIC_CMD="$lt_save_MAGIC_CMD"
14793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14794 if test -n "$MAGIC_CMD"; then
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14796 $as_echo "$MAGIC_CMD" >&6; }
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14799 $as_echo "no
" >&6; }
14812 # Use C for the default configuration in the libtool script
14816 ac_cpp='$CPP $CPPFLAGS'
14817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14822 # Source file extension for C test sources.
14825 # Object file extension for compiled C test sources.
14829 # Code to be used in simple compile tests
14830 lt_simple_compile_test_code="int some_variable
= 0;"
14832 # Code to be used in simple link tests
14833 lt_simple_link_test_code='int main(){return(0);}'
14841 # If no C compiler was specified, use CC.
14844 # If no C compiler flags were specified, use CFLAGS.
14845 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14847 # Allow CC to be a program name with arguments.
14850 # Save the default compiler, since it gets overwritten when the other
14851 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14852 compiler_DEFAULT=$CC
14854 # save warnings/boilerplate of simple test code
14855 ac_outfile=conftest.$ac_objext
14856 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14857 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14858 _lt_compiler_boilerplate=`cat conftest.err`
14861 ac_outfile=conftest.$ac_objext
14862 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14863 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14864 _lt_linker_boilerplate=`cat conftest.err`
14869 ## There is no encapsulation within the following macros, do not change
14870 ## the running order or otherwise move them around unless you know exactly
14871 ## what you are doing...
14872 if test -n "$compiler"; then
14874 lt_prog_compiler_no_builtin_flag=
14876 if test "$GCC" = yes; then
14877 case $cc_basename in
14879 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14881 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14885 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14886 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14887 $as_echo_n "(cached
) " >&6
14889 lt_cv_prog_compiler_rtti_exceptions=no
14890 ac_outfile=conftest.$ac_objext
14891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14892 lt_compiler_flag="-fno-rtti -fno-exceptions"
14893 # Insert the option either (1) after the last *FLAGS variable, or
14894 # (2) before a word containing "conftest.
", or (3) at the end.
14895 # Note that $ac_compile itself does not contain backslashes and begins
14896 # with a dollar sign (not a hyphen), so the echo should work correctly.
14897 # The option is referenced via a variable to avoid confusing sed.
14898 lt_compile=`echo "$ac_compile" | $SED \
14899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14901 -e 's:$: $lt_compiler_flag:'`
14902 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14903 (eval "$lt_compile" 2>conftest.err)
14905 cat conftest.err >&5
14906 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14907 if (exit $ac_status) && test -s "$ac_outfile"; then
14908 # The compiler can only warn and ignore the option if not recognized
14909 # So say no if there are warnings other than the usual output.
14910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14912 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14913 lt_cv_prog_compiler_rtti_exceptions=yes
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14920 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14922 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14923 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14935 lt_prog_compiler_wl=
14936 lt_prog_compiler_pic=
14937 lt_prog_compiler_static=
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14940 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14942 if test "$GCC" = yes; then
14943 lt_prog_compiler_wl='-Wl,'
14944 lt_prog_compiler_static='-static'
14948 # All AIX code is PIC.
14949 if test "$host_cpu" = ia64; then
14950 # AIX 5 now supports IA64 processor
14951 lt_prog_compiler_static='-Bstatic'
14953 lt_prog_compiler_pic='-fPIC'
14959 # see comment about AmigaOS4 .so support
14960 lt_prog_compiler_pic='-fPIC'
14963 # FIXME: we need at least 68020 code to build shared libraries, but
14964 # adding the `-m68020' flag to GCC prevents building anything better,
14966 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14971 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14972 # PIC is the default for these OSes.
14975 mingw* | cygwin* | pw32* | os2* | cegcc*)
14976 # This hack is so that the source file can tell whether it is being
14977 # built for inclusion in a dll (and should export symbols for example).
14978 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14979 # (--disable-auto-import) libraries
14980 lt_prog_compiler_pic='-DDLL_EXPORT'
14983 darwin* | rhapsody*)
14984 # PIC is the default on this platform
14985 # Common symbols not allowed in MH_DYLIB files
14986 lt_prog_compiler_pic='-fno-common'
14990 # PIC is the default for Haiku.
14991 # The "-static" flag exists, but is broken.
14992 lt_prog_compiler_static=
14996 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14997 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14998 # sets the default TLS model and affects inlining.
15004 lt_prog_compiler_pic='-fPIC'
15010 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15011 # Instead, we relocate shared libraries at runtime.
15015 # Just because we use GCC doesn't mean we suddenly get shared libraries
15016 # on systems that don't support them.
15017 lt_prog_compiler_can_build_shared=no
15022 # QNX uses GNU C++, but need to define -shared option too, otherwise
15023 # it will coredump.
15024 lt_prog_compiler_pic='-fPIC -shared'
15028 if test -d /usr/nec; then
15029 lt_prog_compiler_pic=-Kconform_pic
15034 lt_prog_compiler_pic='-fPIC'
15038 case $cc_basename in
15039 nvcc*) # Cuda Compiler Driver 2.2
15040 lt_prog_compiler_wl='-Xlinker '
15041 lt_prog_compiler_pic='-Xcompiler -fPIC'
15045 # PORTME Check for flag to pass linker flags through the system compiler.
15048 lt_prog_compiler_wl='-Wl,'
15049 if test "$host_cpu" = ia64; then
15050 # AIX 5 now supports IA64 processor
15051 lt_prog_compiler_static='-Bstatic'
15053 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15057 mingw* | cygwin* | pw32* | os2* | cegcc*)
15058 # This hack is so that the source file can tell whether it is being
15059 # built for inclusion in a dll (and should export symbols for example).
15060 lt_prog_compiler_pic='-DDLL_EXPORT'
15063 hpux9* | hpux10* | hpux11*)
15064 lt_prog_compiler_wl='-Wl,'
15065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15066 # not for PA HP-UX.
15072 lt_prog_compiler_pic='+Z'
15075 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15076 lt_prog_compiler_static='${wl}-a ${wl}archive'
15079 irix5* | irix6* | nonstopux*)
15080 lt_prog_compiler_wl='-Wl,'
15081 # PIC (with -KPIC) is the default.
15082 lt_prog_compiler_static='-non_shared'
15085 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15086 case $cc_basename in
15087 # old Intel for x86_64 which still supported -KPIC.
15089 lt_prog_compiler_wl='-Wl,'
15090 lt_prog_compiler_pic='-KPIC'
15091 lt_prog_compiler_static='-static'
15093 # icc used to be incompatible with GCC.
15094 # ICC 10 doesn't accept -KPIC any more.
15096 lt_prog_compiler_wl='-Wl,'
15097 lt_prog_compiler_pic='-fPIC'
15098 lt_prog_compiler_static='-static'
15100 # Lahey Fortran 8.1.
15102 lt_prog_compiler_wl='-Wl,'
15103 lt_prog_compiler_pic='--shared'
15104 lt_prog_compiler_static='--static'
15106 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15107 # Portland Group compilers (*not* the Pentium gcc compiler,
15108 # which looks to be a dead project)
15109 lt_prog_compiler_wl='-Wl,'
15110 lt_prog_compiler_pic='-fpic'
15111 lt_prog_compiler_static='-Bstatic'
15114 lt_prog_compiler_wl='-Wl,'
15115 # All Alpha code is PIC.
15116 lt_prog_compiler_static='-non_shared'
15118 xl* | bgxl* | bgf* | mpixl*)
15119 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15120 lt_prog_compiler_wl='-Wl,'
15121 lt_prog_compiler_pic='-qpic'
15122 lt_prog_compiler_static='-qstaticlink'
15125 case `$CC -V 2>&1 | sed 5q` in
15126 *Sun\ F* | *Sun*Fortran*)
15127 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15128 lt_prog_compiler_pic='-KPIC'
15129 lt_prog_compiler_static='-Bstatic'
15130 lt_prog_compiler_wl=''
15134 lt_prog_compiler_pic='-KPIC'
15135 lt_prog_compiler_static='-Bstatic'
15136 lt_prog_compiler_wl='-Wl,'
15144 lt_prog_compiler_pic='-KPIC'
15145 lt_prog_compiler_static='-Bstatic'
15149 # QNX uses GNU C++, but need to define -shared option too, otherwise
15150 # it will coredump.
15151 lt_prog_compiler_pic='-fPIC -shared'
15154 osf3* | osf4* | osf5*)
15155 lt_prog_compiler_wl='-Wl,'
15156 # All OSF/1 code is PIC.
15157 lt_prog_compiler_static='-non_shared'
15161 lt_prog_compiler_static='-non_shared'
15165 lt_prog_compiler_pic='-KPIC'
15166 lt_prog_compiler_static='-Bstatic'
15167 case $cc_basename in
15168 f77* | f90* | f95*)
15169 lt_prog_compiler_wl='-Qoption ld ';;
15171 lt_prog_compiler_wl='-Wl,';;
15176 lt_prog_compiler_wl='-Qoption ld '
15177 lt_prog_compiler_pic='-PIC'
15178 lt_prog_compiler_static='-Bstatic'
15181 sysv4 | sysv4.2uw2* | sysv4.3*)
15182 lt_prog_compiler_wl='-Wl,'
15183 lt_prog_compiler_pic='-KPIC'
15184 lt_prog_compiler_static='-Bstatic'
15188 if test -d /usr/nec ;then
15189 lt_prog_compiler_pic='-Kconform_pic'
15190 lt_prog_compiler_static='-Bstatic'
15194 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15195 lt_prog_compiler_wl='-Wl,'
15196 lt_prog_compiler_pic='-KPIC'
15197 lt_prog_compiler_static='-Bstatic'
15201 lt_prog_compiler_wl='-Wl,'
15202 lt_prog_compiler_can_build_shared=no
15206 lt_prog_compiler_pic='-pic'
15207 lt_prog_compiler_static='-Bstatic'
15211 lt_prog_compiler_can_build_shared=no
15217 # For platforms which do not support PIC, -DPIC is meaningless:
15219 lt_prog_compiler_pic=
15222 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15226 $as_echo "$lt_prog_compiler_pic" >&6; }
15234 # Check to make sure the PIC flag actually works.
15236 if test -n "$lt_prog_compiler_pic"; then
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15238 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15239 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15240 $as_echo_n "(cached
) " >&6
15242 lt_cv_prog_compiler_pic_works=no
15243 ac_outfile=conftest.$ac_objext
15244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15245 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15246 # Insert the option either (1) after the last *FLAGS variable, or
15247 # (2) before a word containing "conftest.
", or (3) at the end.
15248 # Note that $ac_compile itself does not contain backslashes and begins
15249 # with a dollar sign (not a hyphen), so the echo should work correctly.
15250 # The option is referenced via a variable to avoid confusing sed.
15251 lt_compile=`echo "$ac_compile" | $SED \
15252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15254 -e 's:$: $lt_compiler_flag:'`
15255 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15256 (eval "$lt_compile" 2>conftest.err)
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15260 if (exit $ac_status) && test -s "$ac_outfile"; then
15261 # The compiler can only warn and ignore the option if not recognized
15262 # So say no if there are warnings other than the usual output.
15263 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15265 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15266 lt_cv_prog_compiler_pic_works=yes
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15273 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15275 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15276 case $lt_prog_compiler_pic in
15278 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15281 lt_prog_compiler_pic=
15282 lt_prog_compiler_can_build_shared=no
15293 # Check to make sure the static flag actually works.
15295 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15297 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15298 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15299 $as_echo_n "(cached
) " >&6
15301 lt_cv_prog_compiler_static_works=no
15302 save_LDFLAGS="$LDFLAGS"
15303 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15304 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15305 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15306 # The linker can only warn and ignore the option if not recognized
15307 # So say no if there are warnings
15308 if test -s conftest.err; then
15309 # Append any errors to the config.log.
15310 cat conftest.err 1>&5
15311 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15313 if diff conftest.exp conftest.er2 >/dev/null; then
15314 lt_cv_prog_compiler_static_works=yes
15317 lt_cv_prog_compiler_static_works=yes
15321 LDFLAGS="$save_LDFLAGS"
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15325 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15327 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15330 lt_prog_compiler_static=
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15340 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15341 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15342 $as_echo_n "(cached
) " >&6
15344 lt_cv_prog_compiler_c_o=no
15345 $RM -r conftest 2>/dev/null
15349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15351 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15352 # Insert the option either (1) after the last *FLAGS variable, or
15353 # (2) before a word containing "conftest.
", or (3) at the end.
15354 # Note that $ac_compile itself does not contain backslashes and begins
15355 # with a dollar sign (not a hyphen), so the echo should work correctly.
15356 lt_compile=`echo "$ac_compile" | $SED \
15357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15359 -e 's:$: $lt_compiler_flag:'`
15360 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15361 (eval "$lt_compile" 2>out/conftest.err)
15363 cat out/conftest.err >&5
15364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15367 # The compiler can only warn and ignore the option if not recognized
15368 # So say no if there are warnings
15369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15372 lt_cv_prog_compiler_c_o=yes
15377 # SGI C++ compiler will create directory out/ii_files/ for
15378 # template instantiation
15379 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15380 $RM out/* && rmdir out
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15387 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15395 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15396 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15397 $as_echo_n "(cached
) " >&6
15399 lt_cv_prog_compiler_c_o=no
15400 $RM -r conftest 2>/dev/null
15404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15406 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15407 # Insert the option either (1) after the last *FLAGS variable, or
15408 # (2) before a word containing "conftest.
", or (3) at the end.
15409 # Note that $ac_compile itself does not contain backslashes and begins
15410 # with a dollar sign (not a hyphen), so the echo should work correctly.
15411 lt_compile=`echo "$ac_compile" | $SED \
15412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15414 -e 's:$: $lt_compiler_flag:'`
15415 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15416 (eval "$lt_compile" 2>out/conftest.err)
15418 cat out/conftest.err >&5
15419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15420 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15422 # The compiler can only warn and ignore the option if not recognized
15423 # So say no if there are warnings
15424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15427 lt_cv_prog_compiler_c_o=yes
15432 # SGI C++ compiler will create directory out/ii_files/ for
15433 # template instantiation
15434 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15435 $RM out/* && rmdir out
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15442 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15447 hard_links="nottested
"
15448 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15449 # do not overwrite the value of need_locks provided by the user
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15451 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15454 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15456 ln conftest.a conftest.b 2>&5 || hard_links=no
15457 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15459 $as_echo "$hard_links" >&6; }
15460 if test "$hard_links" = no; then
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15462 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15475 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15478 allow_undefined_flag=
15479 always_export_symbols=no
15481 archive_expsym_cmds=
15482 compiler_needs_object=no
15483 enable_shared_with_static_runtimes=no
15484 export_dynamic_flag_spec=
15485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15486 hardcode_automatic=no
15488 hardcode_direct_absolute=no
15489 hardcode_libdir_flag_spec=
15490 hardcode_libdir_flag_spec_ld=
15491 hardcode_libdir_separator=
15492 hardcode_minus_L=no
15493 hardcode_shlibpath_var=unsupported
15495 link_all_deplibs=unknown
15497 module_expsym_cmds=
15498 old_archive_from_new_cmds=
15499 old_archive_from_expsyms_cmds=
15500 thread_safe_flag_spec=
15501 whole_archive_flag_spec=
15502 # include_expsyms should be a list of space-separated symbols to be *always*
15503 # included in the symbol list
15505 # exclude_expsyms can be an extended regexp of symbols to exclude
15506 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15507 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15508 # as well as any symbol that contains `d'.
15509 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15510 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15511 # platforms (ab)use it in PIC code, but their linkers get confused if
15512 # the symbol is explicitly referenced. Since portable code cannot
15513 # rely on this symbol name, it's probably fine to never include it in
15514 # preloaded symbol tables.
15515 # Exclude shared library initialization/finalization symbols.
15516 extract_expsyms_cmds=
15519 cygwin* | mingw* | pw32* | cegcc*)
15520 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15521 # When not using gcc, we currently assume that we are using
15522 # Microsoft Visual C++.
15523 if test "$GCC" != yes; then
15528 # we just hope/assume this is gcc and not c89 (= MSVC++)
15538 # On some targets, GNU ld is compatible enough with the native linker
15539 # that we're better off using the native interface for both.
15540 lt_use_gnu_ld_interface=no
15541 if test "$with_gnu_ld" = yes; then
15544 # The AIX port of GNU ld has always aspired to compatibility
15545 # with the native linker. However, as the warning in the GNU ld
15546 # block says, versions before 2.19.5* couldn't really create working
15547 # shared libraries, regardless of the interface used.
15548 case `$LD -v 2>&1` in
15549 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15550 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15551 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15553 lt_use_gnu_ld_interface=yes
15558 lt_use_gnu_ld_interface=yes
15563 if test "$lt_use_gnu_ld_interface" = yes; then
15564 # If archive_cmds runs LD, not CC, wlarc should be empty
15567 # Set some defaults for GNU ld with shared library support. These
15568 # are reset later if shared libraries are not supported. Putting them
15569 # here allows them to be overridden if necessary.
15570 runpath_var=LD_RUN_PATH
15571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15572 export_dynamic_flag_spec='${wl}--export-dynamic'
15573 # ancient GNU ld didn't support --whole-archive et. al.
15574 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15575 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15577 whole_archive_flag_spec=
15579 supports_anon_versioning=no
15580 case `$LD -v 2>&1` in
15581 *GNU\ gold*) supports_anon_versioning=yes ;;
15582 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15583 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15584 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15585 *\ 2.11.*) ;; # other 2.11 versions
15586 *) supports_anon_versioning=yes ;;
15589 # See if GNU ld supports shared libraries.
15592 # On AIX/PPC, the GNU linker is very broken
15593 if test "$host_cpu" != ia64; then
15597 *** Warning: the GNU linker, at least up to release 2.19, is reported
15598 *** to be unable to reliably create shared libraries on AIX.
15599 *** Therefore, libtool is disabling shared libraries support. If you
15600 *** really care for shared libraries, you may want to install binutils
15601 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15602 *** You will then need to restart the configuration process.
15611 # see comment about AmigaOS4 .so support
15612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15613 archive_expsym_cmds=''
15616 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)'
15617 hardcode_libdir_flag_spec
='-L$libdir'
15618 hardcode_minus_L
=yes
15624 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15625 allow_undefined_flag
=unsupported
15626 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15627 # support --undefined. This deserves some investigation. FIXME
15628 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15634 cygwin
* | mingw
* | pw32
* | cegcc
*)
15635 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15636 # as there is no search path for DLLs.
15637 hardcode_libdir_flag_spec
='-L$libdir'
15638 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15639 allow_undefined_flag
=unsupported
15640 always_export_symbols
=no
15641 enable_shared_with_static_runtimes
=yes
15642 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15644 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15645 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15646 # If the export-symbols file already is a .def file (1st line
15647 # is EXPORTS), use it as is; otherwise, prepend...
15648 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15649 cp $export_symbols $output_objdir/$soname.def;
15651 echo EXPORTS > $output_objdir/$soname.def;
15652 cat $export_symbols >> $output_objdir/$soname.def;
15654 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15661 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15662 link_all_deplibs
=yes
15667 hardcode_shlibpath_var
=no
15668 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15669 export_dynamic_flag_spec
='${wl}-E'
15670 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15671 # Instead, shared libraries are loaded at an image base (0x10000000 by
15672 # default) and relocated if they conflict, which is a slow very memory
15673 # consuming and fragmenting process. To avoid this, we pick a random,
15674 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15675 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15676 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15677 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'
15680 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15682 if test "$host_os" = linux-dietlibc
; then
15683 case $cc_basename in
15684 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15687 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15688 && test "$tmp_diet" = no
15691 tmp_sharedflag
='-shared'
15692 case $cc_basename,$host_cpu in
15693 pgcc
*) # Portland Group C compiler
15694 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'
15695 tmp_addflag
=' $pic_flag'
15697 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15698 # Portland Group f77 and f90 compilers
15699 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'
15700 tmp_addflag
=' $pic_flag -Mnomain' ;;
15701 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15702 tmp_addflag
=' -i_dynamic' ;;
15703 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15704 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15705 ifc
* | ifort
*) # Intel Fortran compiler
15706 tmp_addflag
=' -nofor_main' ;;
15707 lf95
*) # Lahey Fortran 8.1
15708 whole_archive_flag_spec
=
15709 tmp_sharedflag
='--shared' ;;
15710 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15711 tmp_sharedflag
='-qmkshrobj'
15713 nvcc
*) # Cuda Compiler Driver 2.2
15714 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'
15715 compiler_needs_object
=yes
15718 case `$CC -V 2>&1 | sed 5q` in
15719 *Sun\ C
*) # Sun C 5.9
15720 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'
15721 compiler_needs_object
=yes
15722 tmp_sharedflag
='-G' ;;
15723 *Sun\ F
*) # Sun Fortran 8.3
15724 tmp_sharedflag
='-G' ;;
15726 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15728 if test "x$supports_anon_versioning" = xyes
; then
15729 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15731 echo "local: *; };" >> $output_objdir/$libname.ver~
15732 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15735 case $cc_basename in
15736 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15737 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15738 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15739 hardcode_libdir_flag_spec
=
15740 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15741 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15742 if test "x$supports_anon_versioning" = xyes
; then
15743 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15745 echo "local: *; };" >> $output_objdir/$libname.ver~
15746 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15756 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15757 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15760 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15761 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15766 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15770 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15771 *** create shared libraries on Solaris systems. Therefore, libtool
15772 *** is disabling shared libraries support. We urge you to upgrade GNU
15773 *** binutils to release 2.9.1 or newer. Another option is to modify
15774 *** your PATH or compiler configuration so that the native linker is
15775 *** used, and then restart.
15778 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15779 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15780 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15786 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15787 case `$LD -v 2>&1` in
15788 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15792 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15793 *** reliably create shared libraries on SCO systems. Therefore, libtool
15794 *** is disabling shared libraries support. We urge you to upgrade GNU
15795 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15796 *** your PATH or compiler configuration so that the native linker is
15797 *** used, and then restart.
15802 # For security reasons, it is highly recommended that you always
15803 # use absolute paths for naming shared libraries, and exclude the
15804 # DT_RUNPATH tag from executables and libraries. But doing so
15805 # requires that you compile everything twice, which is a pain.
15806 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15807 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15808 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15818 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15820 hardcode_direct
=yes
15821 hardcode_shlibpath_var
=no
15825 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15826 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15827 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15834 if test "$ld_shlibs" = no
; then
15836 hardcode_libdir_flag_spec
=
15837 export_dynamic_flag_spec
=
15838 whole_archive_flag_spec
=
15841 # PORTME fill in a description of your system's linker (not GNU ld)
15844 allow_undefined_flag
=unsupported
15845 always_export_symbols
=yes
15846 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'
15847 # Note: this linker hardcodes the directories in LIBPATH if there
15848 # are no directories specified by -L.
15849 hardcode_minus_L
=yes
15850 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15851 # Neither direct hardcoding nor static linking is supported with a
15853 hardcode_direct
=unsupported
15858 if test "$host_cpu" = ia64
; then
15859 # On IA64, the linker does run time linking by default, so we don't
15860 # have to do anything special.
15861 aix_use_runtimelinking
=no
15862 exp_sym_flag
='-Bexport'
15865 # If we're using GNU nm, then we don't want the "-C" option.
15866 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15867 # Also, AIX nm treats weak defined symbols like other global
15868 # defined symbols, whereas GNU nm marks them as "W".
15869 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15870 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'
15872 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'
15874 aix_use_runtimelinking
=no
15876 # Test if we are trying to use run time linking or normal
15877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15878 # need to do runtime linking.
15879 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15880 for ld_flag
in $LDFLAGS; do
15881 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15882 aix_use_runtimelinking
=yes
15889 exp_sym_flag
='-bexport'
15890 no_entry_flag
='-bnoentry'
15893 # When large executables or shared objects are built, AIX ld can
15894 # have problems creating the table of contents. If linking a library
15895 # or program results in "error TOC overflow" add -mminimal-toc to
15896 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15897 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15900 hardcode_direct
=yes
15901 hardcode_direct_absolute
=yes
15902 hardcode_libdir_separator
=':'
15903 link_all_deplibs
=yes
15904 file_list_spec
='${wl}-f,'
15906 if test "$GCC" = yes; then
15907 case $host_os in aix4.
[012]|aix4.
[012].
*)
15908 # We only want to do this on AIX 4.2 and lower, the check
15909 # below for broken collect2 doesn't work under 4.3+
15910 collect2name
=`${CC} -print-prog-name=collect2`
15911 if test -f "$collect2name" &&
15912 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15914 # We have reworked collect2
15917 # We have old collect2
15918 hardcode_direct
=unsupported
15919 # It fails to find uninstalled libraries when the uninstalled
15920 # path is not listed in the libpath. Setting hardcode_minus_L
15921 # to unsupported forces relinking
15922 hardcode_minus_L
=yes
15923 hardcode_libdir_flag_spec
='-L$libdir'
15924 hardcode_libdir_separator
=
15928 shared_flag
='-shared'
15929 if test "$aix_use_runtimelinking" = yes; then
15930 shared_flag
="$shared_flag "'${wl}-G'
15934 if test "$host_cpu" = ia64
; then
15935 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15936 # chokes on -Wl,-G. The following line is correct:
15939 if test "$aix_use_runtimelinking" = yes; then
15940 shared_flag
='${wl}-G'
15942 shared_flag
='${wl}-bM:SRE'
15947 export_dynamic_flag_spec
='${wl}-bexpall'
15948 # It seems that -bexpall does not export symbols beginning with
15949 # underscore (_), so it is better to generate a list of symbols to export.
15950 always_export_symbols
=yes
15951 if test "$aix_use_runtimelinking" = yes; then
15952 # Warning - without using the other runtime loading flags (-brtl),
15953 # -berok will link without error, but may produce a broken library.
15954 allow_undefined_flag
='-berok'
15955 # Determine the default libpath from the value encoded in an
15956 # empty executable.
15957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h. */
15968 if ac_fn_c_try_link
"$LINENO"; then :
15970 lt_aix_libpath_sed
='
15971 /Import File Strings/,/^$/ {
15977 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15978 # Check for a 64-bit object if we didn't find anything.
15979 if test -z "$aix_libpath"; then
15980 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15983 rm -f core conftest.err conftest.
$ac_objext \
15984 conftest
$ac_exeext conftest.
$ac_ext
15985 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15987 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15988 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"
15990 if test "$host_cpu" = ia64
; then
15991 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15992 allow_undefined_flag
="-z nodefs"
15993 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"
15995 # Determine the default libpath from the value encoded in an
15996 # empty executable.
15997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
16008 if ac_fn_c_try_link
"$LINENO"; then :
16010 lt_aix_libpath_sed
='
16011 /Import File Strings/,/^$/ {
16017 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16018 # Check for a 64-bit object if we didn't find anything.
16019 if test -z "$aix_libpath"; then
16020 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16023 rm -f core conftest.err conftest.
$ac_objext \
16024 conftest
$ac_exeext conftest.
$ac_ext
16025 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16027 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16028 # Warning - without using the other run time loading flags,
16029 # -berok will link without error, but may produce a broken library.
16030 no_undefined_flag
=' ${wl}-bernotok'
16031 allow_undefined_flag
=' ${wl}-berok'
16032 if test "$with_gnu_ld" = yes; then
16033 # We only use this code for GNU lds that support --whole-archive.
16034 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16036 # Exported symbols can be pulled into shared objects from archives
16037 whole_archive_flag_spec
='$convenience'
16039 archive_cmds_need_lc
=yes
16040 # This is similar to how AIX traditionally builds its shared libraries.
16041 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'
16049 # see comment about AmigaOS4 .so support
16050 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16051 archive_expsym_cmds
=''
16054 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)'
16055 hardcode_libdir_flag_spec
='-L$libdir'
16056 hardcode_minus_L
=yes
16062 export_dynamic_flag_spec
=-rdynamic
16065 cygwin
* | mingw
* | pw32
* | cegcc
*)
16066 # When not using gcc, we currently assume that we are using
16067 # Microsoft Visual C++.
16068 # hardcode_libdir_flag_spec is actually meaningless, as there is
16069 # no search path for DLLs.
16070 hardcode_libdir_flag_spec
=' '
16071 allow_undefined_flag
=unsupported
16072 # Tell ltmain to make .lib files, not .a files.
16074 # Tell ltmain to make .dll files, not .so files.
16076 # FIXME: Setting linknames here is a bad hack.
16077 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16078 # The linker will automatically build a .lib file if we build a DLL.
16079 old_archive_from_new_cmds
='true'
16080 # FIXME: Should let the user specify the lib program.
16081 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16082 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16083 enable_shared_with_static_runtimes
=yes
16086 darwin
* | rhapsody
*)
16089 archive_cmds_need_lc
=no
16091 hardcode_automatic
=yes
16092 hardcode_shlibpath_var
=unsupported
16093 if test "$lt_cv_ld_force_load" = "yes"; then
16094 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\"`'
16096 whole_archive_flag_spec
=''
16098 link_all_deplibs
=yes
16099 allow_undefined_flag
="$_lt_dar_allow_undefined"
16100 case $cc_basename in
16101 ifort
*) _lt_dar_can_shared
=yes ;;
16102 *) _lt_dar_can_shared
=$GCC ;;
16104 if test "$_lt_dar_can_shared" = "yes"; then
16105 output_verbose_link_cmd
=func_echo_all
16106 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16107 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16108 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}"
16109 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}"
16118 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119 hardcode_libdir_flag_spec
='-L$libdir'
16120 hardcode_shlibpath_var
=no
16123 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16124 # support. Future versions do this automatically, but an explicit c++rt0.o
16125 # does not break anything, and helps significantly (at the cost of a little
16128 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16129 hardcode_libdir_flag_spec
='-R$libdir'
16130 hardcode_direct
=yes
16131 hardcode_shlibpath_var
=no
16134 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16136 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16137 hardcode_direct
=yes
16138 hardcode_minus_L
=yes
16139 hardcode_shlibpath_var
=no
16142 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16143 freebsd
* | dragonfly
*)
16144 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16145 hardcode_libdir_flag_spec
='-R$libdir'
16146 hardcode_direct
=yes
16147 hardcode_shlibpath_var
=no
16151 if test "$GCC" = yes; then
16152 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'
16154 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'
16156 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16157 hardcode_libdir_separator
=:
16158 hardcode_direct
=yes
16160 # hardcode_minus_L: Not really in the search PATH,
16161 # but as the default location of the library.
16162 hardcode_minus_L
=yes
16163 export_dynamic_flag_spec
='${wl}-E'
16167 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16168 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16170 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16172 if test "$with_gnu_ld" = no
; then
16173 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16174 hardcode_libdir_flag_spec_ld
='+b $libdir'
16175 hardcode_libdir_separator
=:
16176 hardcode_direct
=yes
16177 hardcode_direct_absolute
=yes
16178 export_dynamic_flag_spec
='${wl}-E'
16179 # hardcode_minus_L: Not really in the search PATH,
16180 # but as the default location of the library.
16181 hardcode_minus_L
=yes
16186 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16189 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16192 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16195 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16201 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16204 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16208 # Older versions of the 11.00 compiler do not understand -b yet
16209 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16211 $as_echo_n "checking if $CC understands -b... " >&6; }
16212 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16213 $as_echo_n "(cached) " >&6
16215 lt_cv_prog_compiler__b
=no
16216 save_LDFLAGS
="$LDFLAGS"
16217 LDFLAGS
="$LDFLAGS -b"
16218 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16219 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16220 # The linker can only warn and ignore the option if not recognized
16221 # So say no if there are warnings
16222 if test -s conftest.err
; then
16223 # Append any errors to the config.log.
16224 cat conftest.err
1>&5
16225 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16226 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16227 if diff conftest.exp conftest.er2
>/dev
/null
; then
16228 lt_cv_prog_compiler__b
=yes
16231 lt_cv_prog_compiler__b
=yes
16235 LDFLAGS
="$save_LDFLAGS"
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16239 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16241 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16242 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16244 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16250 if test "$with_gnu_ld" = no
; then
16251 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16252 hardcode_libdir_separator
=:
16257 hardcode_shlibpath_var
=no
16260 hardcode_direct
=yes
16261 hardcode_direct_absolute
=yes
16262 export_dynamic_flag_spec
='${wl}-E'
16264 # hardcode_minus_L: Not really in the search PATH,
16265 # but as the default location of the library.
16266 hardcode_minus_L
=yes
16272 irix5
* | irix6
* | nonstopux
*)
16273 if test "$GCC" = yes; then
16274 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'
16275 # Try to use the -exported_symbol ld option, if it does not
16276 # work, assume that -exports_file does not work either and
16277 # implicitly export all symbols.
16278 save_LDFLAGS
="$LDFLAGS"
16279 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16281 /* end confdefs.h. */
16284 if ac_fn_c_try_link
"$LINENO"; then :
16285 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'
16288 rm -f core conftest.err conftest.
$ac_objext \
16289 conftest
$ac_exeext conftest.
$ac_ext
16290 LDFLAGS
="$save_LDFLAGS"
16292 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'
16293 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'
16295 archive_cmds_need_lc
='no'
16296 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16297 hardcode_libdir_separator
=:
16299 link_all_deplibs
=yes
16303 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16304 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16306 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16308 hardcode_libdir_flag_spec
='-R$libdir'
16309 hardcode_direct
=yes
16310 hardcode_shlibpath_var
=no
16314 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16315 hardcode_direct
=yes
16316 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16317 hardcode_libdir_separator
=:
16318 hardcode_shlibpath_var
=no
16325 if test -f /usr
/libexec
/ld.so
; then
16326 hardcode_direct
=yes
16327 hardcode_shlibpath_var
=no
16328 hardcode_direct_absolute
=yes
16329 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16330 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16331 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16332 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16333 export_dynamic_flag_spec
='${wl}-E'
16336 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16337 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16338 hardcode_libdir_flag_spec
='-R$libdir'
16341 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16342 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16352 hardcode_libdir_flag_spec
='-L$libdir'
16353 hardcode_minus_L
=yes
16354 allow_undefined_flag
=unsupported
16355 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'
16356 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16360 if test "$GCC" = yes; then
16361 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16362 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'
16364 allow_undefined_flag
=' -expect_unresolved \*'
16365 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'
16367 archive_cmds_need_lc
='no'
16368 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16369 hardcode_libdir_separator
=:
16372 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16373 if test "$GCC" = yes; then
16374 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16375 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'
16376 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16378 allow_undefined_flag
=' -expect_unresolved \*'
16379 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'
16380 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~
16381 $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'
16383 # Both c and cxx compiler support -rpath directly
16384 hardcode_libdir_flag_spec
='-rpath $libdir'
16386 archive_cmds_need_lc
='no'
16387 hardcode_libdir_separator
=:
16391 no_undefined_flag
=' -z defs'
16392 if test "$GCC" = yes; then
16394 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16395 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16396 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16398 case `$CC -V 2>&1` in
16401 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16402 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16403 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16407 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16408 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16409 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16413 hardcode_libdir_flag_spec
='-R$libdir'
16414 hardcode_shlibpath_var
=no
16416 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16418 # The compiler driver will combine and reorder linker options,
16419 # but understands `-z linker_flag'. GCC discards it without `$wl',
16420 # but is careful enough not to reorder.
16421 # Supported since Solaris 2.6 (maybe 2.5.1?)
16422 if test "$GCC" = yes; then
16423 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16425 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16429 link_all_deplibs
=yes
16433 if test "x$host_vendor" = xsequent
; then
16434 # Use $CC to link under sequent, because it throws in some extra .o
16435 # files that make .init and .fini sections work.
16436 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16438 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16440 hardcode_libdir_flag_spec
='-L$libdir'
16441 hardcode_direct
=yes
16442 hardcode_minus_L
=yes
16443 hardcode_shlibpath_var
=no
16447 case $host_vendor in
16449 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16450 hardcode_direct
=yes # is this really true???
16453 ## LD is ld it makes a PLAMLIB
16454 ## CC just makes a GrossModule.
16455 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16456 reload_cmds
='$CC -r -o $output$reload_objs'
16460 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16461 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16464 runpath_var
='LD_RUN_PATH'
16465 hardcode_shlibpath_var
=no
16469 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16470 hardcode_shlibpath_var
=no
16471 export_dynamic_flag_spec
='-Bexport'
16475 if test -d /usr
/nec
; then
16476 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_shlibpath_var
=no
16478 runpath_var
=LD_RUN_PATH
16479 hardcode_runpath_var
=yes
16484 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16485 no_undefined_flag
='${wl}-z,text'
16486 archive_cmds_need_lc
=no
16487 hardcode_shlibpath_var
=no
16488 runpath_var
='LD_RUN_PATH'
16490 if test "$GCC" = yes; then
16491 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16492 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16494 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16495 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16499 sysv5
* | sco3.2v5
* | sco5v6
*)
16500 # Note: We can NOT use -z defs as we might desire, because we do not
16501 # link with -lc, and that would cause any symbols used from libc to
16502 # always be unresolved, which means just about no library would
16503 # ever link correctly. If we're not using GNU ld we use -z text
16504 # though, which does catch some bad symbols but isn't as heavy-handed
16506 no_undefined_flag
='${wl}-z,text'
16507 allow_undefined_flag
='${wl}-z,nodefs'
16508 archive_cmds_need_lc
=no
16509 hardcode_shlibpath_var
=no
16510 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16511 hardcode_libdir_separator
=':'
16512 link_all_deplibs
=yes
16513 export_dynamic_flag_spec
='${wl}-Bexport'
16514 runpath_var
='LD_RUN_PATH'
16516 if test "$GCC" = yes; then
16517 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16518 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16520 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16521 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16526 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16527 hardcode_libdir_flag_spec
='-L$libdir'
16528 hardcode_shlibpath_var
=no
16536 if test x
$host_vendor = xsni
; then
16538 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16539 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16546 $as_echo "$ld_shlibs" >&6; }
16547 test "$ld_shlibs" = no
&& can_build_shared
=no
16549 with_gnu_ld
=$with_gnu_ld
16566 # Do we need to explicitly link libc?
16568 case "x$archive_cmds_need_lc" in
16570 # Assume -lc should be added
16571 archive_cmds_need_lc
=yes
16573 if test "$enable_shared" = yes && test "$GCC" = yes; then
16574 case $archive_cmds in
16576 # FIXME: we may have to deal with multi-command sequences.
16579 # Test whether the compiler implicitly links with -lc since on some
16580 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16581 # to ld, don't add -lc before -lgcc.
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16583 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16584 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16585 $as_echo_n "(cached) " >&6
16588 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16591 (eval $ac_compile) 2>&5
16593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16594 test $ac_status = 0; } 2>conftest.err
; then
16597 libobjs
=conftest.
$ac_objext
16599 wl
=$lt_prog_compiler_wl
16600 pic_flag
=$lt_prog_compiler_pic
16606 lt_save_allow_undefined_flag
=$allow_undefined_flag
16607 allow_undefined_flag
=
16608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16609 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16612 test $ac_status = 0; }
16614 lt_cv_archive_cmds_need_lc
=no
16616 lt_cv_archive_cmds_need_lc
=yes
16618 allow_undefined_flag
=$lt_save_allow_undefined_flag
16620 cat conftest.err
1>&5
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16626 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16627 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16791 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16793 if test "$GCC" = yes; then
16795 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16796 *) lt_awk_arg
="/^libraries:/" ;;
16799 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16800 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16802 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16803 case $lt_search_path_spec in
16805 # if the path contains ";" then we assume it to be the separator
16806 # otherwise default to the standard path separator (i.e. ":") - it is
16807 # assumed that no part of a normal pathname contains ";" but that should
16808 # okay in the real world where ";" in dirpaths is itself problematic.
16809 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16812 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16815 # Ok, now we have the path, separated by spaces, we can step through it
16816 # and add multilib dir if necessary.
16817 lt_tmp_lt_search_path_spec
=
16818 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16819 for lt_sys_path
in $lt_search_path_spec; do
16820 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16821 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16823 test -d "$lt_sys_path" && \
16824 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16827 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16828 BEGIN {RS=" "; FS="/|\n";} {
16831 for (lt_i = NF; lt_i > 0; lt_i--) {
16832 if ($lt_i != "" && $lt_i != ".") {
16833 if ($lt_i == "..") {
16836 if (lt_count == 0) {
16837 lt_foo="/" $lt_i lt_foo;
16844 if (lt_foo != "") { lt_freq[lt_foo]++; }
16845 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16847 # AWK program above erroneously prepends '/' to C:/dos/paths
16850 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16851 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16853 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16855 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16857 library_names_spec
=
16858 libname_spec
='lib$name'
16862 postuninstall_cmds
=
16866 shlibpath_overrides_runpath
=unknown
16868 dynamic_linker
="$host_os ld.so"
16869 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16870 need_lib_prefix
=unknown
16871 hardcode_into_libs
=no
16873 # when you set need_version to no, make sure it does not cause -set_version
16874 # flags to be left without arguments
16875 need_version
=unknown
16880 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16881 shlibpath_var
=LIBPATH
16883 # AIX 3 has no versioning support, so we append a major version to the name.
16884 soname_spec
='${libname}${release}${shared_ext}$major'
16891 hardcode_into_libs
=yes
16892 if test "$host_cpu" = ia64
; then
16893 # AIX 5 supports IA64
16894 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16895 shlibpath_var
=LD_LIBRARY_PATH
16897 # With GCC up to 2.95.x, collect2 would create an import file
16898 # for dependence libraries. The import file would start with
16899 # the line `#! .'. This would cause the generated library to
16900 # depend on `.', always an invalid library. This was fixed in
16901 # development snapshots of GCC prior to 3.0.
16903 aix4 | aix4.
[01] | aix4.
[01].
*)
16904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16906 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16909 can_build_shared
=no
16913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16914 # soname into executable. Probably we can add versioning support to
16915 # collect2, so additional links can be useful in future.
16916 if test "$aix_use_runtimelinking" = yes; then
16917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16918 # instead of lib<name>.a to let people know that these are not
16919 # typical AIX shared libraries.
16920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16922 # We preserve .a as extension for shared libraries through AIX4.2
16923 # and later when we are not doing run time linking.
16924 library_names_spec
='${libname}${release}.a $libname.a'
16925 soname_spec
='${libname}${release}${shared_ext}$major'
16927 shlibpath_var
=LIBPATH
16934 # Since July 2007 AmigaOS4 officially supports .so libraries.
16935 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939 library_names_spec
='$libname.ixlibrary $libname.a'
16940 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16941 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'
16947 library_names_spec
='${libname}${shared_ext}'
16948 dynamic_linker
="$host_os ld.so"
16949 shlibpath_var
=LIBRARY_PATH
16955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956 soname_spec
='${libname}${release}${shared_ext}$major'
16957 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16958 shlibpath_var
=LD_LIBRARY_PATH
16959 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16960 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16961 # the default ld.so.conf also contains /usr/contrib/lib and
16962 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16963 # libtool to hard-code these into programs
16966 cygwin
* | mingw
* | pw32
* | cegcc
*)
16967 version_type
=windows
16972 case $GCC,$host_os in
16973 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16974 library_names_spec
='$libname.dll.a'
16975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16976 postinstall_cmds
='base_file=`basename \${file}`~
16977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16978 dldir=$destdir/`dirname \$dlpath`~
16979 test -d \$dldir || mkdir -p \$dldir~
16980 $install_prog $dir/$dlname \$dldir/$dlname~
16981 chmod a+x \$dldir/$dlname~
16982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16985 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16986 dlpath=$dir/\$dldll~
16988 shlibpath_overrides_runpath
=yes
16992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16993 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16995 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16998 # MinGW DLLs use traditional 'lib' prefix
16999 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17002 # pw32 DLLs use 'pw' prefix rather than 'lib'
17003 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17009 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17012 dynamic_linker
='Win32 ld.exe'
17013 # FIXME: first we should search . and the directory the executable is in
17017 darwin
* | rhapsody
*)
17018 dynamic_linker
="$host_os dyld"
17019 version_type
=darwin
17022 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17023 soname_spec
='${libname}${release}${major}$shared_ext'
17024 shlibpath_overrides_runpath
=yes
17025 shlibpath_var
=DYLD_LIBRARY_PATH
17026 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17028 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17029 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17037 soname_spec
='${libname}${release}${shared_ext}$major'
17038 shlibpath_var
=LD_LIBRARY_PATH
17041 freebsd
* | dragonfly
*)
17042 # DragonFly does not have aout. When/if they implement a new
17043 # versioning mechanism, adjust this.
17044 if test -x /usr
/bin
/objformat
; then
17045 objformat
=`/usr/bin/objformat`
17048 freebsd
[23].
*) objformat
=aout
;;
17049 *) objformat
=elf
;;
17052 version_type
=freebsd-
$objformat
17053 case $version_type in
17055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17060 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17064 shlibpath_var
=LD_LIBRARY_PATH
17067 shlibpath_overrides_runpath
=yes
17069 freebsd3.
[01]* | freebsdelf3.
[01]*)
17070 shlibpath_overrides_runpath
=yes
17071 hardcode_into_libs
=yes
17073 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17074 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17075 shlibpath_overrides_runpath
=no
17076 hardcode_into_libs
=yes
17078 *) # from 4.6 on, and DragonFly
17079 shlibpath_overrides_runpath
=yes
17080 hardcode_into_libs
=yes
17089 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17090 soname_spec
='${libname}${release}${shared_ext}$major'
17091 shlibpath_var
=LD_LIBRARY_PATH
17092 hardcode_into_libs
=yes
17099 dynamic_linker
="$host_os runtime_loader"
17100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17101 soname_spec
='${libname}${release}${shared_ext}$major'
17102 shlibpath_var
=LIBRARY_PATH
17103 shlibpath_overrides_runpath
=yes
17104 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17105 hardcode_into_libs
=yes
17108 hpux9
* | hpux10
* | hpux11
*)
17109 # Give a soname corresponding to the major version so that dld.sl refuses to
17110 # link against other versions.
17117 hardcode_into_libs
=yes
17118 dynamic_linker
="$host_os dld.so"
17119 shlibpath_var
=LD_LIBRARY_PATH
17120 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17121 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17122 soname_spec
='${libname}${release}${shared_ext}$major'
17123 if test "X$HPUX_IA64_MODE" = X32
; then
17124 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17126 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17128 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17132 hardcode_into_libs
=yes
17133 dynamic_linker
="$host_os dld.sl"
17134 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17135 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17136 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17137 soname_spec
='${libname}${release}${shared_ext}$major'
17138 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17139 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17143 dynamic_linker
="$host_os dld.sl"
17144 shlibpath_var
=SHLIB_PATH
17145 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17147 soname_spec
='${libname}${release}${shared_ext}$major'
17150 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17151 postinstall_cmds
='chmod 555 $lib'
17152 # or fails outright, so override atomically:
17153 install_override_mode
=555
17160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17161 soname_spec
='${libname}${release}${shared_ext}$major'
17162 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17163 shlibpath_var
=LD_LIBRARY_PATH
17164 shlibpath_overrides_runpath
=no
17165 hardcode_into_libs
=yes
17168 irix5
* | irix6
* | nonstopux
*)
17170 nonstopux
*) version_type
=nonstopux
;;
17172 if test "$lt_cv_prog_gnu_ld" = yes; then
17180 soname_spec
='${libname}${release}${shared_ext}$major'
17181 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17183 irix5
* | nonstopux
*)
17184 libsuff
= shlibsuff
=
17187 case $LD in # libtool.m4 will add one of these switches to LD
17188 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17189 libsuff
= shlibsuff
= libmagic
=32-bit;;
17190 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17191 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17192 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17193 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17194 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17198 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17199 shlibpath_overrides_runpath
=no
17200 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17201 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17202 hardcode_into_libs
=yes
17205 # No shared lib support for Linux oldld, aout, or coff.
17206 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17210 # This must be Linux ELF.
17211 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17216 soname_spec
='${libname}${release}${shared_ext}$major'
17217 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17218 shlibpath_var
=LD_LIBRARY_PATH
17219 shlibpath_overrides_runpath
=no
17221 # Some binutils ld are patched to set DT_RUNPATH
17222 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17223 $as_echo_n "(cached) " >&6
17225 lt_cv_shlibpath_overrides_runpath
=no
17226 save_LDFLAGS
=$LDFLAGS
17227 save_libdir
=$libdir
17228 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17229 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17231 /* end confdefs.h. */
17241 if ac_fn_c_try_link
"$LINENO"; then :
17242 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17243 lt_cv_shlibpath_overrides_runpath
=yes
17246 rm -f core conftest.err conftest.
$ac_objext \
17247 conftest
$ac_exeext conftest.
$ac_ext
17248 LDFLAGS
=$save_LDFLAGS
17249 libdir
=$save_libdir
17253 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17255 # This implies no fast_install, which is unacceptable.
17256 # Some rework will be needed to allow for fast_install
17257 # before this can be enabled.
17258 hardcode_into_libs
=yes
17260 # Append ld.so.conf contents to the search path
17261 if test -f /etc
/ld.so.conf
; then
17262 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' ' '`
17263 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17266 # We used to test for /lib/ld.so.1 and disable shared libraries on
17267 # powerpc, because MkLinux only supported shared libraries with the
17268 # GNU dynamic linker. Since this was broken with cross compilers,
17269 # most powerpc-linux boxes support dynamic linking these days and
17270 # people can always --disable-shared, the test was removed, and we
17271 # assume the GNU/Linux dynamic linker is in use.
17272 dynamic_linker
='GNU/Linux ld.so'
17279 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17281 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17282 dynamic_linker
='NetBSD (a.out) ld.so'
17284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17285 soname_spec
='${libname}${release}${shared_ext}$major'
17286 dynamic_linker
='NetBSD ld.elf_so'
17288 shlibpath_var
=LD_LIBRARY_PATH
17289 shlibpath_overrides_runpath
=yes
17290 hardcode_into_libs
=yes
17295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296 shlibpath_var
=LD_LIBRARY_PATH
17297 shlibpath_overrides_runpath
=yes
17304 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 soname_spec
='${libname}${release}${shared_ext}$major'
17306 shlibpath_var
=LD_LIBRARY_PATH
17307 shlibpath_overrides_runpath
=no
17308 hardcode_into_libs
=yes
17309 dynamic_linker
='ldqnx.so'
17314 sys_lib_dlsearch_path_spec
="/usr/lib"
17316 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17318 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17319 *) need_version
=no
;;
17321 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17322 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17323 shlibpath_var
=LD_LIBRARY_PATH
17324 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17326 openbsd2.
[89] | openbsd2.
[89].
*)
17327 shlibpath_overrides_runpath
=no
17330 shlibpath_overrides_runpath
=yes
17334 shlibpath_overrides_runpath
=yes
17339 libname_spec
='$name'
17342 library_names_spec
='$libname${shared_ext} $libname.a'
17343 dynamic_linker
='OS/2 ld.exe'
17344 shlibpath_var
=LIBPATH
17347 osf3
* | osf4
* | osf5
*)
17351 soname_spec
='${libname}${release}${shared_ext}$major'
17352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353 shlibpath_var
=LD_LIBRARY_PATH
17354 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17355 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17366 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17367 soname_spec
='${libname}${release}${shared_ext}$major'
17368 shlibpath_var
=LD_LIBRARY_PATH
17369 shlibpath_overrides_runpath
=yes
17370 hardcode_into_libs
=yes
17371 # ldd complains unless libraries are executable
17372 postinstall_cmds
='chmod +x $lib'
17377 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17378 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17379 shlibpath_var
=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath
=yes
17381 if test "$with_gnu_ld" = yes; then
17389 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17390 soname_spec
='${libname}${release}${shared_ext}$major'
17391 shlibpath_var
=LD_LIBRARY_PATH
17392 case $host_vendor in
17394 shlibpath_overrides_runpath
=no
17396 runpath_var
=LD_RUN_PATH
17404 shlibpath_overrides_runpath
=no
17405 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17411 if test -d /usr
/nec
;then
17413 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17414 soname_spec
='$libname${shared_ext}.$major'
17415 shlibpath_var
=LD_LIBRARY_PATH
17419 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17420 version_type
=freebsd-elf
17423 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17424 soname_spec
='${libname}${release}${shared_ext}$major'
17425 shlibpath_var
=LD_LIBRARY_PATH
17426 shlibpath_overrides_runpath
=yes
17427 hardcode_into_libs
=yes
17428 if test "$with_gnu_ld" = yes; then
17429 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17431 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17434 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17438 sys_lib_dlsearch_path_spec
='/usr/lib'
17442 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17446 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17447 shlibpath_var
=LD_LIBRARY_PATH
17448 shlibpath_overrides_runpath
=no
17449 hardcode_into_libs
=yes
17454 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455 soname_spec
='${libname}${release}${shared_ext}$major'
17456 shlibpath_var
=LD_LIBRARY_PATH
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17464 $as_echo "$dynamic_linker" >&6; }
17465 test "$dynamic_linker" = no
&& can_build_shared
=no
17467 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17468 if test "$GCC" = yes; then
17469 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17472 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17473 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17475 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17476 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17571 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17573 if test -n "$hardcode_libdir_flag_spec" ||
17574 test -n "$runpath_var" ||
17575 test "X$hardcode_automatic" = "Xyes" ; then
17577 # We can hardcode non-existent directories.
17578 if test "$hardcode_direct" != no
&&
17579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17580 # have to relink, otherwise we might link with an installed library
17581 # when we should be linking with a yet-to-be-installed one
17582 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17583 test "$hardcode_minus_L" != no
; then
17584 # Linking always hardcodes the temporary library directory.
17585 hardcode_action
=relink
17587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17588 hardcode_action
=immediate
17591 # We cannot hardcode anything, or else we can only hardcode existing
17593 hardcode_action
=unsupported
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17596 $as_echo "$hardcode_action" >&6; }
17598 if test "$hardcode_action" = relink ||
17599 test "$inherit_rpath" = yes; then
17600 # Fast installation is not supported
17601 enable_fast_install
=no
17602 elif test "$shlibpath_overrides_runpath" = yes ||
17603 test "$enable_shared" = no
; then
17604 # Fast installation is not necessary
17605 enable_fast_install
=needless
17613 if test "x$enable_dlopen" != xyes
; then
17614 enable_dlopen
=unknown
17615 enable_dlopen_self
=unknown
17616 enable_dlopen_self_static
=unknown
17623 lt_cv_dlopen
="load_add_on"
17625 lt_cv_dlopen_self
=yes
17628 mingw
* | pw32
* | cegcc
*)
17629 lt_cv_dlopen
="LoadLibrary"
17634 lt_cv_dlopen
="dlopen"
17639 # if libdl is installed we need to link against it
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17641 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17642 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17643 $as_echo_n "(cached) " >&6
17645 ac_check_lib_save_LIBS
=$LIBS
17647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17648 /* end confdefs.h. */
17650 /* Override any GCC internal prototype to avoid an error.
17651 Use char because int might match the return type of a GCC
17652 builtin and then its argument prototype would still apply. */
17665 if ac_fn_c_try_link
"$LINENO"; then :
17666 ac_cv_lib_dl_dlopen
=yes
17668 ac_cv_lib_dl_dlopen
=no
17670 rm -f core conftest.err conftest.
$ac_objext \
17671 conftest
$ac_exeext conftest.
$ac_ext
17672 LIBS
=$ac_check_lib_save_LIBS
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17675 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17676 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17677 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17680 lt_cv_dlopen
="dyld"
17682 lt_cv_dlopen_self
=yes
17689 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17690 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17691 lt_cv_dlopen
="shl_load"
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17694 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17695 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17696 $as_echo_n "(cached) " >&6
17698 ac_check_lib_save_LIBS
=$LIBS
17700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17701 /* end confdefs.h. */
17703 /* Override any GCC internal prototype to avoid an error.
17704 Use char because int might match the return type of a GCC
17705 builtin and then its argument prototype would still apply. */
17713 return shl_load ();
17718 if ac_fn_c_try_link
"$LINENO"; then :
17719 ac_cv_lib_dld_shl_load
=yes
17721 ac_cv_lib_dld_shl_load
=no
17723 rm -f core conftest.err conftest.
$ac_objext \
17724 conftest
$ac_exeext conftest.
$ac_ext
17725 LIBS
=$ac_check_lib_save_LIBS
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17728 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17729 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17730 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17732 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17733 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17734 lt_cv_dlopen
="dlopen"
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17737 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17738 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17739 $as_echo_n "(cached) " >&6
17741 ac_check_lib_save_LIBS
=$LIBS
17743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17746 /* Override any GCC internal prototype to avoid an error.
17747 Use char because int might match the return type of a GCC
17748 builtin and then its argument prototype would still apply. */
17761 if ac_fn_c_try_link
"$LINENO"; then :
17762 ac_cv_lib_dl_dlopen
=yes
17764 ac_cv_lib_dl_dlopen
=no
17766 rm -f core conftest.err conftest.
$ac_objext \
17767 conftest
$ac_exeext conftest.
$ac_ext
17768 LIBS
=$ac_check_lib_save_LIBS
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17771 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17772 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17773 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17776 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17777 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17778 $as_echo_n "(cached) " >&6
17780 ac_check_lib_save_LIBS
=$LIBS
17781 LIBS
="-lsvld $LIBS"
17782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17783 /* end confdefs.h. */
17785 /* Override any GCC internal prototype to avoid an error.
17786 Use char because int might match the return type of a GCC
17787 builtin and then its argument prototype would still apply. */
17800 if ac_fn_c_try_link
"$LINENO"; then :
17801 ac_cv_lib_svld_dlopen
=yes
17803 ac_cv_lib_svld_dlopen
=no
17805 rm -f core conftest.err conftest.
$ac_objext \
17806 conftest
$ac_exeext conftest.
$ac_ext
17807 LIBS
=$ac_check_lib_save_LIBS
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17810 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17811 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17812 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17815 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17816 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17817 $as_echo_n "(cached) " >&6
17819 ac_check_lib_save_LIBS
=$LIBS
17821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17822 /* end confdefs.h. */
17824 /* Override any GCC internal prototype to avoid an error.
17825 Use char because int might match the return type of a GCC
17826 builtin and then its argument prototype would still apply. */
17834 return dld_link ();
17839 if ac_fn_c_try_link
"$LINENO"; then :
17840 ac_cv_lib_dld_dld_link
=yes
17842 ac_cv_lib_dld_dld_link
=no
17844 rm -f core conftest.err conftest.
$ac_objext \
17845 conftest
$ac_exeext conftest.
$ac_ext
17846 LIBS
=$ac_check_lib_save_LIBS
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17849 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17850 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17851 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17872 if test "x$lt_cv_dlopen" != xno
; then
17878 case $lt_cv_dlopen in
17880 save_CPPFLAGS
="$CPPFLAGS"
17881 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17883 save_LDFLAGS
="$LDFLAGS"
17884 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17887 LIBS
="$lt_cv_dlopen_libs $LIBS"
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17890 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17891 if test "${lt_cv_dlopen_self+set}" = set; then :
17892 $as_echo_n "(cached) " >&6
17894 if test "$cross_compiling" = yes; then :
17895 lt_cv_dlopen_self
=cross
17897 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17898 lt_status
=$lt_dlunknown
17899 cat > conftest.
$ac_ext <<_LT_EOF
17900 #line 17900 "configure"
17901 #include "confdefs.h"
17910 # define LT_DLGLOBAL RTLD_GLOBAL
17913 # define LT_DLGLOBAL DL_GLOBAL
17915 # define LT_DLGLOBAL 0
17919 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17920 find out it does not work in some platform. */
17921 #ifndef LT_DLLAZY_OR_NOW
17923 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17926 # define LT_DLLAZY_OR_NOW DL_LAZY
17929 # define LT_DLLAZY_OR_NOW RTLD_NOW
17932 # define LT_DLLAZY_OR_NOW DL_NOW
17934 # define LT_DLLAZY_OR_NOW 0
17941 /* When -fvisbility=hidden is used, assume the code has been annotated
17942 correspondingly for the symbols needed. */
17943 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17944 void fnord () __attribute__((visibility("default")));
17947 void fnord () { int i=42; }
17950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17951 int status = $lt_dlunknown;
17955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17958 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17959 else puts (dlerror ());
17961 /* dlclose (self); */
17969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17970 (eval $ac_link) 2>&5
17972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17973 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17974 (.
/conftest
; exit; ) >&5 2>/dev
/null
17976 case x
$lt_status in
17977 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17978 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17979 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17982 # compilation failed
17983 lt_cv_dlopen_self
=no
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17991 $as_echo "$lt_cv_dlopen_self" >&6; }
17993 if test "x$lt_cv_dlopen_self" = xyes
; then
17994 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17996 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17997 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17998 $as_echo_n "(cached) " >&6
18000 if test "$cross_compiling" = yes; then :
18001 lt_cv_dlopen_self_static
=cross
18003 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18004 lt_status
=$lt_dlunknown
18005 cat > conftest.
$ac_ext <<_LT_EOF
18006 #line 18006 "configure"
18007 #include "confdefs.h"
18016 # define LT_DLGLOBAL RTLD_GLOBAL
18019 # define LT_DLGLOBAL DL_GLOBAL
18021 # define LT_DLGLOBAL 0
18025 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18026 find out it does not work in some platform. */
18027 #ifndef LT_DLLAZY_OR_NOW
18029 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18032 # define LT_DLLAZY_OR_NOW DL_LAZY
18035 # define LT_DLLAZY_OR_NOW RTLD_NOW
18038 # define LT_DLLAZY_OR_NOW DL_NOW
18040 # define LT_DLLAZY_OR_NOW 0
18047 /* When -fvisbility=hidden is used, assume the code has been annotated
18048 correspondingly for the symbols needed. */
18049 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18050 void fnord () __attribute__((visibility("default")));
18053 void fnord () { int i=42; }
18056 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18057 int status = $lt_dlunknown;
18061 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18064 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18065 else puts (dlerror ());
18067 /* dlclose (self); */
18075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18076 (eval $ac_link) 2>&5
18078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18079 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18080 (.
/conftest
; exit; ) >&5 2>/dev
/null
18082 case x
$lt_status in
18083 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18084 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18085 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18088 # compilation failed
18089 lt_cv_dlopen_self_static
=no
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18097 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18100 CPPFLAGS
="$save_CPPFLAGS"
18101 LDFLAGS
="$save_LDFLAGS"
18106 case $lt_cv_dlopen_self in
18107 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18108 *) enable_dlopen_self
=unknown
;;
18111 case $lt_cv_dlopen_self_static in
18112 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18113 *) enable_dlopen_self_static
=unknown
;;
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18136 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18137 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18138 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18139 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18141 $as_echo "yes" >&6; }
18143 # FIXME - insert some real tests, host_os isn't really good enough
18146 if test -n "$STRIP" ; then
18147 striplib
="$STRIP -x"
18148 old_striplib
="$STRIP -S"
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18150 $as_echo "yes" >&6; }
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18153 $as_echo "no" >&6; }
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18158 $as_echo "no" >&6; }
18174 # Report which library types will actually be built
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18176 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18178 $as_echo "$can_build_shared" >&6; }
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18181 $as_echo_n "checking whether to build shared libraries... " >&6; }
18182 test "$can_build_shared" = "no" && enable_shared
=no
18184 # On AIX, shared libraries and static libraries use the same namespace, and
18185 # are all built from PIC.
18188 test "$enable_shared" = yes && enable_static
=no
18189 if test -n "$RANLIB"; then
18190 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18191 postinstall_cmds
='$RANLIB $lib'
18196 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18197 test "$enable_shared" = yes && enable_static
=no
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18202 $as_echo "$enable_shared" >&6; }
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18205 $as_echo_n "checking whether to build static libraries... " >&6; }
18206 # Make sure either enable_shared or enable_static is yes.
18207 test "$enable_shared" = yes || enable_static
=yes
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18209 $as_echo "$enable_static" >&6; }
18216 ac_cpp
='$CPP $CPPFLAGS'
18217 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18218 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18219 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18223 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18224 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18225 (test "X$CXX" != "Xg++"))) ; then
18227 ac_cpp
='$CXXCPP $CPPFLAGS'
18228 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18229 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18230 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18232 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18233 if test -z "$CXXCPP"; then
18234 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18235 $as_echo_n "(cached) " >&6
18237 # Double quotes because CXXCPP needs to be expanded
18238 for CXXCPP
in "$CXX -E" "/lib/cpp"
18240 ac_preproc_ok
=false
18241 for ac_cxx_preproc_warn_flag
in '' yes
18243 # Use a header file that comes with gcc, so configuring glibc
18244 # with a fresh cross-compiler works.
18245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18246 # <limits.h> exists even on freestanding compilers.
18247 # On the NeXT, cc -E runs the code through the compiler's parser,
18248 # not just through cpp. "Syntax error" is here to catch this case.
18249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18252 # include <limits.h>
18254 # include <assert.h>
18258 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18261 # Broken: fails on valid input.
18264 rm -f conftest.err conftest.
$ac_ext
18266 # OK, works on sane cases. Now check whether nonexistent headers
18267 # can be detected and how.
18268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18270 #include <ac_nonexistent.h>
18272 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18273 # Broken: success on invalid input.
18276 # Passes both tests.
18280 rm -f conftest.err conftest.
$ac_ext
18283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18284 rm -f conftest.err conftest.
$ac_ext
18285 if $ac_preproc_ok; then :
18290 ac_cv_prog_CXXCPP
=$CXXCPP
18293 CXXCPP
=$ac_cv_prog_CXXCPP
18295 ac_cv_prog_CXXCPP
=$CXXCPP
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18298 $as_echo "$CXXCPP" >&6; }
18299 ac_preproc_ok
=false
18300 for ac_cxx_preproc_warn_flag
in '' yes
18302 # Use a header file that comes with gcc, so configuring glibc
18303 # with a fresh cross-compiler works.
18304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18305 # <limits.h> exists even on freestanding compilers.
18306 # On the NeXT, cc -E runs the code through the compiler's parser,
18307 # not just through cpp. "Syntax error" is here to catch this case.
18308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18309 /* end confdefs.h. */
18311 # include <limits.h>
18313 # include <assert.h>
18317 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18320 # Broken: fails on valid input.
18323 rm -f conftest.err conftest.
$ac_ext
18325 # OK, works on sane cases. Now check whether nonexistent headers
18326 # can be detected and how.
18327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18329 #include <ac_nonexistent.h>
18331 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18332 # Broken: success on invalid input.
18335 # Passes both tests.
18339 rm -f conftest.err conftest.
$ac_ext
18342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18343 rm -f conftest.err conftest.
$ac_ext
18344 if $ac_preproc_ok; then :
18347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18349 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18350 See \`config.log' for more details." "$LINENO" 5; }
18354 ac_cpp
='$CPP $CPPFLAGS'
18355 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18356 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18357 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18360 _lt_caught_CXX_error
=yes
18364 ac_cpp
='$CXXCPP $CPPFLAGS'
18365 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18366 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18367 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18369 archive_cmds_need_lc_CXX
=no
18370 allow_undefined_flag_CXX
=
18371 always_export_symbols_CXX
=no
18372 archive_expsym_cmds_CXX
=
18373 compiler_needs_object_CXX
=no
18374 export_dynamic_flag_spec_CXX
=
18375 hardcode_direct_CXX
=no
18376 hardcode_direct_absolute_CXX
=no
18377 hardcode_libdir_flag_spec_CXX
=
18378 hardcode_libdir_flag_spec_ld_CXX
=
18379 hardcode_libdir_separator_CXX
=
18380 hardcode_minus_L_CXX
=no
18381 hardcode_shlibpath_var_CXX
=unsupported
18382 hardcode_automatic_CXX
=no
18383 inherit_rpath_CXX
=no
18385 module_expsym_cmds_CXX
=
18386 link_all_deplibs_CXX
=unknown
18387 old_archive_cmds_CXX
=$old_archive_cmds
18388 reload_flag_CXX
=$reload_flag
18389 reload_cmds_CXX
=$reload_cmds
18390 no_undefined_flag_CXX
=
18391 whole_archive_flag_spec_CXX
=
18392 enable_shared_with_static_runtimes_CXX
=no
18394 # Source file extension for C++ test sources.
18397 # Object file extension for compiled C++ test sources.
18401 # No sense in running all these tests if we already determined that
18402 # the CXX compiler isn't working. Some variables (like enable_shared)
18403 # are currently assumed to apply to all compilers on this platform,
18404 # and will be corrupted by setting them based on a non-working compiler.
18405 if test "$_lt_caught_CXX_error" != yes; then
18406 # Code to be used in simple compile tests
18407 lt_simple_compile_test_code
="int some_variable = 0;"
18409 # Code to be used in simple link tests
18410 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18412 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18419 # If no C compiler was specified, use CC.
18422 # If no C compiler flags were specified, use CFLAGS.
18423 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18425 # Allow CC to be a program name with arguments.
18429 # save warnings/boilerplate of simple test code
18430 ac_outfile
=conftest.
$ac_objext
18431 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18432 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18433 _lt_compiler_boilerplate
=`cat conftest.err`
18436 ac_outfile
=conftest.
$ac_objext
18437 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18438 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18439 _lt_linker_boilerplate
=`cat conftest.err`
18443 # Allow CC to be a program name with arguments.
18448 lt_save_with_gnu_ld
=$with_gnu_ld
18449 lt_save_path_LD
=$lt_cv_path_LD
18450 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18451 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18453 $as_unset lt_cv_prog_gnu_ld
18455 if test -n "${lt_cv_path_LDCXX+set}"; then
18456 lt_cv_path_LD
=$lt_cv_path_LDCXX
18458 $as_unset lt_cv_path_LD
18460 test -z "${LDCXX+set}" || LD
=$LDCXX
18464 for cc_temp
in $compiler""; do
18466 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18467 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18472 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18475 if test -n "$compiler"; then
18476 # We don't want -fno-exception when compiling C++ code, so set the
18477 # no_builtin_flag separately
18478 if test "$GXX" = yes; then
18479 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18481 lt_prog_compiler_no_builtin_flag_CXX
=
18484 if test "$GXX" = yes; then
18485 # Set up default GNU C++ configuration
18489 # Check whether --with-gnu-ld was given.
18490 if test "${with_gnu_ld+set}" = set; then :
18491 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18497 if test "$GCC" = yes; then
18498 # Check if gcc -print-prog-name=ld gives a path.
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18500 $as_echo_n "checking for ld used by $CC... " >&6; }
18503 # gcc leaves a trailing carriage return which upsets mingw
18504 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18506 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18509 # Accept absolute paths.
18511 re_direlt
='/[^/][^/]*/\.\./'
18512 # Canonicalize the pathname of ld
18513 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18514 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18515 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18517 test -z "$LD" && LD
="$ac_prog"
18520 # If it fails, then pretend we aren't using GCC.
18524 # If it is relative, then search for the first ld in PATH.
18525 with_gnu_ld
=unknown
18528 elif test "$with_gnu_ld" = yes; then
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18530 $as_echo_n "checking for GNU ld... " >&6; }
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18533 $as_echo_n "checking for non-GNU ld... " >&6; }
18535 if test "${lt_cv_path_LD+set}" = set; then :
18536 $as_echo_n "(cached) " >&6
18538 if test -z "$LD"; then
18539 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18540 for ac_dir
in $PATH; do
18542 test -z "$ac_dir" && ac_dir
=.
18543 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18544 lt_cv_path_LD
="$ac_dir/$ac_prog"
18545 # Check to see if the program is GNU ld. I'd rather use --version,
18546 # but apparently some variants of GNU ld only accept -v.
18547 # Break only if it was the GNU/non-GNU ld that we prefer.
18548 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18549 *GNU
* |
*'with BFD'*)
18550 test "$with_gnu_ld" != no
&& break
18553 test "$with_gnu_ld" != yes && break
18560 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18564 LD
="$lt_cv_path_LD"
18565 if test -n "$LD"; then
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18567 $as_echo "$LD" >&6; }
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18570 $as_echo "no" >&6; }
18572 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18574 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18575 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18576 $as_echo_n "(cached) " >&6
18578 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18579 case `$LD -v 2>&1 </dev/null` in
18580 *GNU
* |
*'with BFD'*)
18581 lt_cv_prog_gnu_ld
=yes
18584 lt_cv_prog_gnu_ld
=no
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18589 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18590 with_gnu_ld
=$lt_cv_prog_gnu_ld
18598 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18599 # archiving commands below assume that GNU ld is being used.
18600 if test "$with_gnu_ld" = yes; then
18601 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18602 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'
18604 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18605 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18607 # If archive_cmds runs LD, not CC, wlarc should be empty
18608 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18609 # investigate it a little bit more. (MM)
18612 # ancient GNU ld didn't support --whole-archive et. al.
18613 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18614 $GREP 'no-whole-archive' > /dev
/null
; then
18615 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18617 whole_archive_flag_spec_CXX
=
18623 # A generic and very simple default shared library creation
18624 # command for GNU C++ for the case where it uses the native
18625 # linker, instead of GNU ld. If possible, this setting should
18626 # overridden to take advantage of the native linker features on
18627 # the platform it is being used on.
18628 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18631 # Commands to make compiler produce verbose output that lists
18632 # what "hidden" libraries, object files and flags are used when
18633 # linking a shared library.
18634 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18642 # PORTME: fill in a description of your system's C++ link characteristics
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18644 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18648 # FIXME: insert proper C++ library support
18652 if test "$host_cpu" = ia64
; then
18653 # On IA64, the linker does run time linking by default, so we don't
18654 # have to do anything special.
18655 aix_use_runtimelinking
=no
18656 exp_sym_flag
='-Bexport'
18659 aix_use_runtimelinking
=no
18661 # Test if we are trying to use run time linking or normal
18662 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18663 # need to do runtime linking.
18664 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18665 for ld_flag
in $LDFLAGS; do
18668 aix_use_runtimelinking
=yes
18676 exp_sym_flag
='-bexport'
18677 no_entry_flag
='-bnoentry'
18680 # When large executables or shared objects are built, AIX ld can
18681 # have problems creating the table of contents. If linking a library
18682 # or program results in "error TOC overflow" add -mminimal-toc to
18683 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18684 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18686 archive_cmds_CXX
=''
18687 hardcode_direct_CXX
=yes
18688 hardcode_direct_absolute_CXX
=yes
18689 hardcode_libdir_separator_CXX
=':'
18690 link_all_deplibs_CXX
=yes
18691 file_list_spec_CXX
='${wl}-f,'
18693 if test "$GXX" = yes; then
18694 case $host_os in aix4.
[012]|aix4.
[012].
*)
18695 # We only want to do this on AIX 4.2 and lower, the check
18696 # below for broken collect2 doesn't work under 4.3+
18697 collect2name
=`${CC} -print-prog-name=collect2`
18698 if test -f "$collect2name" &&
18699 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18701 # We have reworked collect2
18704 # We have old collect2
18705 hardcode_direct_CXX
=unsupported
18706 # It fails to find uninstalled libraries when the uninstalled
18707 # path is not listed in the libpath. Setting hardcode_minus_L
18708 # to unsupported forces relinking
18709 hardcode_minus_L_CXX
=yes
18710 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18711 hardcode_libdir_separator_CXX
=
18714 shared_flag
='-shared'
18715 if test "$aix_use_runtimelinking" = yes; then
18716 shared_flag
="$shared_flag "'${wl}-G'
18720 if test "$host_cpu" = ia64
; then
18721 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18722 # chokes on -Wl,-G. The following line is correct:
18725 if test "$aix_use_runtimelinking" = yes; then
18726 shared_flag
='${wl}-G'
18728 shared_flag
='${wl}-bM:SRE'
18733 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18734 # It seems that -bexpall does not export symbols beginning with
18735 # underscore (_), so it is better to generate a list of symbols to
18737 always_export_symbols_CXX
=yes
18738 if test "$aix_use_runtimelinking" = yes; then
18739 # Warning - without using the other runtime loading flags (-brtl),
18740 # -berok will link without error, but may produce a broken library.
18741 allow_undefined_flag_CXX
='-berok'
18742 # Determine the default libpath from the value encoded in an empty
18744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18745 /* end confdefs.h. */
18755 if ac_fn_cxx_try_link
"$LINENO"; then :
18757 lt_aix_libpath_sed
='
18758 /Import File Strings/,/^$/ {
18764 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18765 # Check for a 64-bit object if we didn't find anything.
18766 if test -z "$aix_libpath"; then
18767 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18770 rm -f core conftest.err conftest.
$ac_objext \
18771 conftest
$ac_exeext conftest.
$ac_ext
18772 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18774 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18776 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"
18778 if test "$host_cpu" = ia64
; then
18779 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18780 allow_undefined_flag_CXX
="-z nodefs"
18781 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"
18783 # Determine the default libpath from the value encoded in an
18784 # empty executable.
18785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18786 /* end confdefs.h. */
18796 if ac_fn_cxx_try_link
"$LINENO"; then :
18798 lt_aix_libpath_sed
='
18799 /Import File Strings/,/^$/ {
18805 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18806 # Check for a 64-bit object if we didn't find anything.
18807 if test -z "$aix_libpath"; then
18808 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18811 rm -f core conftest.err conftest.
$ac_objext \
18812 conftest
$ac_exeext conftest.
$ac_ext
18813 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18815 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18816 # Warning - without using the other run time loading flags,
18817 # -berok will link without error, but may produce a broken library.
18818 no_undefined_flag_CXX
=' ${wl}-bernotok'
18819 allow_undefined_flag_CXX
=' ${wl}-berok'
18820 if test "$with_gnu_ld" = yes; then
18821 # We only use this code for GNU lds that support --whole-archive.
18822 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18824 # Exported symbols can be pulled into shared objects from archives
18825 whole_archive_flag_spec_CXX
='$convenience'
18827 archive_cmds_need_lc_CXX
=yes
18828 # This is similar to how AIX traditionally builds its shared
18830 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'
18836 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18837 allow_undefined_flag_CXX
=unsupported
18838 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18839 # support --undefined. This deserves some investigation. FIXME
18840 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18847 case $cc_basename in
18849 # FIXME: insert proper C++ library support
18855 cygwin
* | mingw
* | pw32
* | cegcc
*)
18856 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18857 # as there is no search path for DLLs.
18858 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18859 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18860 allow_undefined_flag_CXX
=unsupported
18861 always_export_symbols_CXX
=no
18862 enable_shared_with_static_runtimes_CXX
=yes
18864 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18865 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'
18866 # If the export-symbols file already is a .def file (1st line
18867 # is EXPORTS), use it as is; otherwise, prepend...
18868 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18869 cp $export_symbols $output_objdir/$soname.def;
18871 echo EXPORTS > $output_objdir/$soname.def;
18872 cat $export_symbols >> $output_objdir/$soname.def;
18874 $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'
18879 darwin
* | rhapsody
*)
18882 archive_cmds_need_lc_CXX
=no
18883 hardcode_direct_CXX
=no
18884 hardcode_automatic_CXX
=yes
18885 hardcode_shlibpath_var_CXX
=unsupported
18886 if test "$lt_cv_ld_force_load" = "yes"; then
18887 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\"`'
18889 whole_archive_flag_spec_CXX
=''
18891 link_all_deplibs_CXX
=yes
18892 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18893 case $cc_basename in
18894 ifort
*) _lt_dar_can_shared
=yes ;;
18895 *) _lt_dar_can_shared
=$GCC ;;
18897 if test "$_lt_dar_can_shared" = "yes"; then
18898 output_verbose_link_cmd
=func_echo_all
18899 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}"
18900 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18901 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}"
18902 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}"
18903 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18904 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}"
18905 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}"
18915 case $cc_basename in
18917 # FIXME: insert proper C++ library support
18921 # Green Hills C++ Compiler
18922 # FIXME: insert proper C++ library support
18926 # FIXME: insert proper C++ library support
18933 # C++ shared libraries reported to be fairly broken before
18939 archive_cmds_need_lc_CXX
=no
18942 freebsd
* | dragonfly
*)
18943 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18952 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18953 link_all_deplibs_CXX
=yes
18957 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18958 hardcode_libdir_separator_CXX
=:
18959 export_dynamic_flag_spec_CXX
='${wl}-E'
18960 hardcode_direct_CXX
=yes
18961 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18962 # but as the default
18963 # location of the library.
18965 case $cc_basename in
18967 # FIXME: insert proper C++ library support
18971 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'
18972 # Commands to make compiler produce verbose output that lists
18973 # what "hidden" libraries, object files and flags are used when
18974 # linking a shared library.
18976 # There doesn't appear to be a way to prevent this compiler from
18977 # explicitly linking system object files so we need to strip them
18978 # from the output so that they don't get included in the library
18980 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"'
18983 if test "$GXX" = yes; then
18984 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'
18986 # FIXME: insert proper C++ library support
18994 if test $with_gnu_ld = no
; then
18995 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18996 hardcode_libdir_separator_CXX
=:
19002 export_dynamic_flag_spec_CXX
='${wl}-E'
19008 hardcode_direct_CXX
=no
19009 hardcode_shlibpath_var_CXX
=no
19012 hardcode_direct_CXX
=yes
19013 hardcode_direct_absolute_CXX
=yes
19014 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19015 # but as the default
19016 # location of the library.
19020 case $cc_basename in
19022 # FIXME: insert proper C++ library support
19028 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19031 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19034 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19037 # Commands to make compiler produce verbose output that lists
19038 # what "hidden" libraries, object files and flags are used when
19039 # linking a shared library.
19041 # There doesn't appear to be a way to prevent this compiler from
19042 # explicitly linking system object files so we need to strip them
19043 # from the output so that they don't get included in the library
19045 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"'
19048 if test "$GXX" = yes; then
19049 if test $with_gnu_ld = no
; then
19052 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19055 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19058 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'
19063 # FIXME: insert proper C++ library support
19071 hardcode_direct_CXX
=no
19072 hardcode_shlibpath_var_CXX
=no
19073 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19074 export_dynamic_flag_spec_CXX
='${wl}-E'
19075 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19076 # Instead, shared libraries are loaded at an image base (0x10000000 by
19077 # default) and relocated if they conflict, which is a slow very memory
19078 # consuming and fragmenting process. To avoid this, we pick a random,
19079 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19080 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19081 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'
19082 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'
19085 case $cc_basename in
19088 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'
19090 # Archives containing C++ object files must be created using
19091 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19092 # necessary to make sure instantiated templates are included
19094 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19097 if test "$GXX" = yes; then
19098 if test "$with_gnu_ld" = no
; then
19099 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'
19101 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'
19104 link_all_deplibs_CXX
=yes
19107 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19108 hardcode_libdir_separator_CXX
=:
19109 inherit_rpath_CXX
=yes
19112 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19113 case $cc_basename in
19115 # Kuck and Associates, Inc. (KAI) C++ Compiler
19117 # KCC will only create a shared library if the output file
19118 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19119 # to its proper name (with version) after linking.
19120 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'
19121 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'
19122 # Commands to make compiler produce verbose output that lists
19123 # what "hidden" libraries, object files and flags are used when
19124 # linking a shared library.
19126 # There doesn't appear to be a way to prevent this compiler from
19127 # explicitly linking system object files so we need to strip them
19128 # from the output so that they don't get included in the library
19130 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"'
19132 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19133 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19135 # Archives containing C++ object files must be created using
19136 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19137 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19142 # version 8.0 and above of icpc choke on multiply defined symbols
19143 # if we add $predep_objects and $postdep_objects, however 7.1 and
19144 # earlier do not add the objects themselves.
19145 case `$CC -V 2>&1` in
19147 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19148 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'
19150 *) # Version 8.0 or newer
19153 ia64
*) tmp_idyn
=' -i_dynamic';;
19155 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19156 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'
19159 archive_cmds_need_lc_CXX
=no
19160 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19161 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19162 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19165 # Portland Group C++ compiler
19167 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19168 prelink_cmds_CXX
='tpldir=Template.dir~
19170 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19171 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19172 old_archive_cmds_CXX
='tpldir=Template.dir~
19174 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19175 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19177 archive_cmds_CXX
='tpldir=Template.dir~
19179 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19180 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19181 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19183 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19184 $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'
19186 *) # Version 6 and above use weak symbols
19187 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19188 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'
19192 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19193 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19194 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'
19198 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19199 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'
19201 runpath_var
=LD_RUN_PATH
19202 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19203 hardcode_libdir_separator_CXX
=:
19205 # Commands to make compiler produce verbose output that lists
19206 # what "hidden" libraries, object files and flags are used when
19207 # linking a shared library.
19209 # There doesn't appear to be a way to prevent this compiler from
19210 # explicitly linking system object files so we need to strip them
19211 # from the output so that they don't get included in the library
19213 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'
19215 xl
* | mpixl
* | bgxl
*)
19216 # IBM XL 8.0 on PPC, with GNU ld
19217 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19218 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19219 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19220 if test "x$supports_anon_versioning" = xyes
; then
19221 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19223 echo "local: *; };" >> $output_objdir/$libname.ver~
19224 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19228 case `$CC -V 2>&1 | sed 5q` in
19231 no_undefined_flag_CXX
=' -zdefs'
19232 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19233 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'
19234 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19235 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'
19236 compiler_needs_object_CXX
=yes
19238 # Not sure whether something based on
19239 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19241 output_verbose_link_cmd
='func_echo_all'
19243 # Archives containing C++ object files must be created using
19244 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19245 # necessary to make sure instantiated templates are included
19247 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19255 # FIXME: insert proper C++ library support
19260 # FIXME: insert proper C++ library support
19265 case $cc_basename in
19267 # FIXME: insert proper C++ library support
19271 # FIXME: insert proper C++ library support
19278 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19279 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19281 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19282 hardcode_direct_CXX
=yes
19283 hardcode_shlibpath_var_CXX
=no
19285 # Workaround some broken pre-1.5 toolchains
19286 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19294 # C++ shared libraries are fairly broken
19299 if test -f /usr
/libexec
/ld.so
; then
19300 hardcode_direct_CXX
=yes
19301 hardcode_shlibpath_var_CXX
=no
19302 hardcode_direct_absolute_CXX
=yes
19303 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19304 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19306 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19307 export_dynamic_flag_spec_CXX
='${wl}-E'
19308 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19310 output_verbose_link_cmd
=func_echo_all
19316 osf3
* | osf4
* | osf5
*)
19317 case $cc_basename in
19319 # Kuck and Associates, Inc. (KAI) C++ Compiler
19321 # KCC will only create a shared library if the output file
19322 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19323 # to its proper name (with version) after linking.
19324 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'
19326 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19327 hardcode_libdir_separator_CXX
=:
19329 # Archives containing C++ object files must be created using
19330 # the KAI C++ compiler.
19332 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19333 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19337 # Rational C++ 2.4.1
19338 # FIXME: insert proper C++ library support
19344 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19345 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'
19346 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19349 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19350 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'
19351 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19352 echo "-hidden">> $lib.exp~
19353 $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~
19355 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19359 hardcode_libdir_separator_CXX
=:
19361 # Commands to make compiler produce verbose output that lists
19362 # what "hidden" libraries, object files and flags are used when
19363 # linking a shared library.
19365 # There doesn't appear to be a way to prevent this compiler from
19366 # explicitly linking system object files so we need to strip them
19367 # from the output so that they don't get included in the library
19369 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"'
19372 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19373 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19376 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'
19379 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'
19383 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19384 hardcode_libdir_separator_CXX
=:
19386 # Commands to make compiler produce verbose output that lists
19387 # what "hidden" libraries, object files and flags are used when
19388 # linking a shared library.
19389 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19392 # FIXME: insert proper C++ library support
19400 # FIXME: insert proper C++ library support
19405 case $cc_basename in
19408 # FIXME: insert proper C++ library support
19413 # FIXME: insert proper C++ library support
19417 # FIXME: insert proper C++ library support
19424 case $cc_basename in
19426 # Sun C++ 4.2, 5.x and Centerline C++
19427 archive_cmds_need_lc_CXX
=yes
19428 no_undefined_flag_CXX
=' -zdefs'
19429 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19430 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19431 $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'
19433 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19434 hardcode_shlibpath_var_CXX
=no
19436 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19438 # The compiler driver will combine and reorder linker options,
19439 # but understands `-z linker_flag'.
19440 # Supported since Solaris 2.6 (maybe 2.5.1?)
19441 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19444 link_all_deplibs_CXX
=yes
19446 output_verbose_link_cmd
='func_echo_all'
19448 # Archives containing C++ object files must be created using
19449 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19450 # necessary to make sure instantiated templates are included
19452 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19455 # Green Hills C++ Compiler
19456 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19458 # The C++ compiler must be used to create the archive.
19459 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19462 # GNU C++ compiler with Solaris linker
19463 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19464 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19465 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19466 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19467 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19468 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19470 # Commands to make compiler produce verbose output that lists
19471 # what "hidden" libraries, object files and flags are used when
19472 # linking a shared library.
19473 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19475 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19477 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19478 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19479 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19481 # Commands to make compiler produce verbose output that lists
19482 # what "hidden" libraries, object files and flags are used when
19483 # linking a shared library.
19484 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19487 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19489 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19491 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19499 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19500 no_undefined_flag_CXX
='${wl}-z,text'
19501 archive_cmds_need_lc_CXX
=no
19502 hardcode_shlibpath_var_CXX
=no
19503 runpath_var
='LD_RUN_PATH'
19505 case $cc_basename in
19507 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19508 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19511 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19512 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19517 sysv5
* | sco3.2v5
* | sco5v6
*)
19518 # Note: We can NOT use -z defs as we might desire, because we do not
19519 # link with -lc, and that would cause any symbols used from libc to
19520 # always be unresolved, which means just about no library would
19521 # ever link correctly. If we're not using GNU ld we use -z text
19522 # though, which does catch some bad symbols but isn't as heavy-handed
19524 no_undefined_flag_CXX
='${wl}-z,text'
19525 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19526 archive_cmds_need_lc_CXX
=no
19527 hardcode_shlibpath_var_CXX
=no
19528 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19529 hardcode_libdir_separator_CXX
=':'
19530 link_all_deplibs_CXX
=yes
19531 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19532 runpath_var
='LD_RUN_PATH'
19534 case $cc_basename in
19536 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19537 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19538 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19539 '"$old_archive_cmds_CXX"
19540 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19541 '"$reload_cmds_CXX"
19544 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19545 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19551 case $cc_basename in
19553 # NonStop-UX NCC 3.20
19554 # FIXME: insert proper C++ library support
19558 # FIXME: insert proper C++ library support
19565 # FIXME: insert proper C++ library support
19570 # FIXME: insert proper C++ library support
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19576 $as_echo "$ld_shlibs_CXX" >&6; }
19577 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19583 ## There is no encapsulation within the following macros, do not change
19584 ## the running order or otherwise move them around unless you know exactly
19585 ## what you are doing...
19586 # Dependencies to place before and after the object being linked:
19587 predep_objects_CXX
=
19588 postdep_objects_CXX
=
19591 compiler_lib_search_path_CXX
=
19593 cat > conftest.
$ac_ext <<_LT_EOF
19597 Foo (void) { a = 0; }
19603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19604 (eval $ac_compile) 2>&5
19606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19607 test $ac_status = 0; }; then
19608 # Parse the compiler output and extract the necessary
19609 # objects, libraries and library flags.
19611 # Sentinel used to keep track of whether or not we are before
19612 # the conftest object file.
19613 pre_test_object_deps_done
=no
19615 for p
in `eval "$output_verbose_link_cmd"`; do
19619 # Some compilers place space between "-{L,R}" and the path.
19620 # Remove the space.
19621 if test $p = "-L" ||
19622 test $p = "-R"; then
19629 if test "$pre_test_object_deps_done" = no
; then
19632 # Internal compiler library paths should come after those
19633 # provided the user. The postdeps already come after the
19634 # user supplied libs so there is no need to process them.
19635 if test -z "$compiler_lib_search_path_CXX"; then
19636 compiler_lib_search_path_CXX
="${prev}${p}"
19638 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19641 # The "-l" case would never come before the object being
19642 # linked, so don't bother handling this case.
19645 if test -z "$postdeps_CXX"; then
19646 postdeps_CXX
="${prev}${p}"
19648 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19654 # This assumes that the test object file only shows up
19655 # once in the compiler output.
19656 if test "$p" = "conftest.$objext"; then
19657 pre_test_object_deps_done
=yes
19661 if test "$pre_test_object_deps_done" = no
; then
19662 if test -z "$predep_objects_CXX"; then
19663 predep_objects_CXX
="$p"
19665 predep_objects_CXX
="$predep_objects_CXX $p"
19668 if test -z "$postdep_objects_CXX"; then
19669 postdep_objects_CXX
="$p"
19671 postdep_objects_CXX
="$postdep_objects_CXX $p"
19676 *) ;; # Ignore the rest.
19684 echo "libtool.m4: error: problem compiling CXX test program"
19687 $RM -f confest.
$objext
19689 # PORTME: override above test on systems where it is broken
19692 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19693 # hack all around it, let's just trust "g++" to DTRT.
19694 predep_objects_CXX
=
19695 postdep_objects_CXX
=
19700 case `$CC -V 2>&1 | sed 5q` in
19704 # The more standards-conforming stlport4 library is
19705 # incompatible with the Cstd library. Avoid specifying
19706 # it if it's in CXXFLAGS. Ignore libCrun as
19707 # -library=stlport4 depends on it.
19708 case " $CXX $CXXFLAGS " in
19709 *" -library=stlport4 "*)
19710 solaris_use_stlport4
=yes
19714 if test "$solaris_use_stlport4" != yes; then
19715 postdeps_CXX
='-library=Cstd -library=Crun'
19722 case $cc_basename in
19724 # The more standards-conforming stlport4 library is
19725 # incompatible with the Cstd library. Avoid specifying
19726 # it if it's in CXXFLAGS. Ignore libCrun as
19727 # -library=stlport4 depends on it.
19728 case " $CXX $CXXFLAGS " in
19729 *" -library=stlport4 "*)
19730 solaris_use_stlport4
=yes
19734 # Adding this requires a known-good setup of shared libraries for
19735 # Sun compiler versions before 5.6, else PIC objects from an old
19736 # archive will be linked into the output, leading to subtle bugs.
19737 if test "$solaris_use_stlport4" != yes; then
19738 postdeps_CXX
='-library=Cstd -library=Crun'
19746 case " $postdeps_CXX " in
19747 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19749 compiler_lib_search_dirs_CXX
=
19750 if test -n "${compiler_lib_search_path_CXX}"; then
19751 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19784 lt_prog_compiler_wl_CXX
=
19785 lt_prog_compiler_pic_CXX
=
19786 lt_prog_compiler_static_CXX
=
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19789 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19791 # C++ specific cases for pic, static, wl, etc.
19792 if test "$GXX" = yes; then
19793 lt_prog_compiler_wl_CXX
='-Wl,'
19794 lt_prog_compiler_static_CXX
='-static'
19798 # All AIX code is PIC.
19799 if test "$host_cpu" = ia64
; then
19800 # AIX 5 now supports IA64 processor
19801 lt_prog_compiler_static_CXX
='-Bstatic'
19803 lt_prog_compiler_pic_CXX
='-fPIC'
19809 # see comment about AmigaOS4 .so support
19810 lt_prog_compiler_pic_CXX
='-fPIC'
19813 # FIXME: we need at least 68020 code to build shared libraries, but
19814 # adding the `-m68020' flag to GCC prevents building anything better,
19816 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19821 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19822 # PIC is the default for these OSes.
19824 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19825 # This hack is so that the source file can tell whether it is being
19826 # built for inclusion in a dll (and should export symbols for example).
19827 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19828 # (--disable-auto-import) libraries
19829 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19831 darwin
* | rhapsody
*)
19832 # PIC is the default on this platform
19833 # Common symbols not allowed in MH_DYLIB files
19834 lt_prog_compiler_pic_CXX
='-fno-common'
19837 # DJGPP does not support shared libraries at all
19838 lt_prog_compiler_pic_CXX
=
19841 # PIC is the default for Haiku.
19842 # The "-static" flag exists, but is broken.
19843 lt_prog_compiler_static_CXX
=
19846 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19847 # Instead, we relocate shared libraries at runtime.
19850 if test -d /usr
/nec
; then
19851 lt_prog_compiler_pic_CXX
=-Kconform_pic
19855 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19856 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19857 # sets the default TLS model and affects inlining.
19862 lt_prog_compiler_pic_CXX
='-fPIC'
19867 # QNX uses GNU C++, but need to define -shared option too, otherwise
19868 # it will coredump.
19869 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19872 lt_prog_compiler_pic_CXX
='-fPIC'
19878 # All AIX code is PIC.
19879 if test "$host_cpu" = ia64
; then
19880 # AIX 5 now supports IA64 processor
19881 lt_prog_compiler_static_CXX
='-Bstatic'
19883 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19887 case $cc_basename in
19889 # Green Hills C++ Compiler
19890 # _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"
19895 case $cc_basename in
19897 lt_prog_compiler_pic_CXX
='-KPIC'
19900 # Green Hills C++ Compiler
19901 lt_prog_compiler_pic_CXX
='-pic'
19907 freebsd
* | dragonfly
*)
19908 # FreeBSD uses GNU C++
19910 hpux9
* | hpux10
* | hpux11
*)
19911 case $cc_basename in
19913 lt_prog_compiler_wl_CXX
='-Wl,'
19914 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19915 if test "$host_cpu" != ia64
; then
19916 lt_prog_compiler_pic_CXX
='+Z'
19920 lt_prog_compiler_wl_CXX
='-Wl,'
19921 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19927 lt_prog_compiler_pic_CXX
='+Z'
19936 # This is c89, which is MS Visual C++ (no shared libs)
19937 # Anyone wants to do a port?
19939 irix5
* | irix6
* | nonstopux
*)
19940 case $cc_basename in
19942 lt_prog_compiler_wl_CXX
='-Wl,'
19943 lt_prog_compiler_static_CXX
='-non_shared'
19944 # CC pic flag -KPIC is the default.
19950 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19951 case $cc_basename in
19954 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19955 lt_prog_compiler_pic_CXX
='-fPIC'
19958 # old Intel C++ for x86_64 which still supported -KPIC.
19959 lt_prog_compiler_wl_CXX
='-Wl,'
19960 lt_prog_compiler_pic_CXX
='-KPIC'
19961 lt_prog_compiler_static_CXX
='-static'
19964 # Intel C++, used to be incompatible with GCC.
19965 # ICC 10 doesn't accept -KPIC any more.
19966 lt_prog_compiler_wl_CXX
='-Wl,'
19967 lt_prog_compiler_pic_CXX
='-fPIC'
19968 lt_prog_compiler_static_CXX
='-static'
19971 # Portland Group C++ compiler
19972 lt_prog_compiler_wl_CXX
='-Wl,'
19973 lt_prog_compiler_pic_CXX
='-fpic'
19974 lt_prog_compiler_static_CXX
='-Bstatic'
19978 # Make sure the PIC flag is empty. It appears that all Alpha
19979 # Linux and Compaq Tru64 Unix objects are PIC.
19980 lt_prog_compiler_pic_CXX
=
19981 lt_prog_compiler_static_CXX
='-non_shared'
19983 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19984 # IBM XL 8.0, 9.0 on PPC and BlueGene
19985 lt_prog_compiler_wl_CXX
='-Wl,'
19986 lt_prog_compiler_pic_CXX
='-qpic'
19987 lt_prog_compiler_static_CXX
='-qstaticlink'
19990 case `$CC -V 2>&1 | sed 5q` in
19993 lt_prog_compiler_pic_CXX
='-KPIC'
19994 lt_prog_compiler_static_CXX
='-Bstatic'
19995 lt_prog_compiler_wl_CXX
='-Qoption ld '
20006 case $cc_basename in
20008 lt_prog_compiler_pic_CXX
='-W c,exportall'
20017 # QNX uses GNU C++, but need to define -shared option too, otherwise
20018 # it will coredump.
20019 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20021 osf3
* | osf4
* | osf5
*)
20022 case $cc_basename in
20024 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20027 # Rational C++ 2.4.1
20028 lt_prog_compiler_pic_CXX
='-pic'
20031 # Digital/Compaq C++
20032 lt_prog_compiler_wl_CXX
='-Wl,'
20033 # Make sure the PIC flag is empty. It appears that all Alpha
20034 # Linux and Compaq Tru64 Unix objects are PIC.
20035 lt_prog_compiler_pic_CXX
=
20036 lt_prog_compiler_static_CXX
='-non_shared'
20045 case $cc_basename in
20047 # Sun C++ 4.2, 5.x and Centerline C++
20048 lt_prog_compiler_pic_CXX
='-KPIC'
20049 lt_prog_compiler_static_CXX
='-Bstatic'
20050 lt_prog_compiler_wl_CXX
='-Qoption ld '
20053 # Green Hills C++ Compiler
20054 lt_prog_compiler_pic_CXX
='-PIC'
20061 case $cc_basename in
20064 lt_prog_compiler_pic_CXX
='-pic'
20065 lt_prog_compiler_static_CXX
='-Bstatic'
20069 lt_prog_compiler_pic_CXX
='-pic'
20075 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20076 case $cc_basename in
20078 lt_prog_compiler_wl_CXX
='-Wl,'
20079 lt_prog_compiler_pic_CXX
='-KPIC'
20080 lt_prog_compiler_static_CXX
='-Bstatic'
20085 case $cc_basename in
20087 # NonStop-UX NCC 3.20
20088 lt_prog_compiler_pic_CXX
='-KPIC'
20097 lt_prog_compiler_can_build_shared_CXX
=no
20103 # For platforms which do not support PIC, -DPIC is meaningless:
20105 lt_prog_compiler_pic_CXX
=
20108 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20112 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20117 # Check to make sure the PIC flag actually works.
20119 if test -n "$lt_prog_compiler_pic_CXX"; then
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20121 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20122 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20123 $as_echo_n "(cached) " >&6
20125 lt_cv_prog_compiler_pic_works_CXX
=no
20126 ac_outfile
=conftest.
$ac_objext
20127 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20128 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20129 # Insert the option either (1) after the last *FLAGS variable, or
20130 # (2) before a word containing "conftest.", or (3) at the end.
20131 # Note that $ac_compile itself does not contain backslashes and begins
20132 # with a dollar sign (not a hyphen), so the echo should work correctly.
20133 # The option is referenced via a variable to avoid confusing sed.
20134 lt_compile
=`echo "$ac_compile" | $SED \
20135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20137 -e 's:$: $lt_compiler_flag:'`
20138 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20139 (eval "$lt_compile" 2>conftest.err
)
20141 cat conftest.err
>&5
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 if (exit $ac_status) && test -s "$ac_outfile"; then
20144 # The compiler can only warn and ignore the option if not recognized
20145 # So say no if there are warnings other than the usual output.
20146 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20147 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20148 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20149 lt_cv_prog_compiler_pic_works_CXX
=yes
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20156 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20158 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20159 case $lt_prog_compiler_pic_CXX in
20161 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20164 lt_prog_compiler_pic_CXX
=
20165 lt_prog_compiler_can_build_shared_CXX
=no
20173 # Check to make sure the static flag actually works.
20175 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20177 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20178 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20179 $as_echo_n "(cached) " >&6
20181 lt_cv_prog_compiler_static_works_CXX
=no
20182 save_LDFLAGS
="$LDFLAGS"
20183 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20184 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20185 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20186 # The linker can only warn and ignore the option if not recognized
20187 # So say no if there are warnings
20188 if test -s conftest.err
; then
20189 # Append any errors to the config.log.
20190 cat conftest.err
1>&5
20191 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20192 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20193 if diff conftest.exp conftest.er2
>/dev
/null
; then
20194 lt_cv_prog_compiler_static_works_CXX
=yes
20197 lt_cv_prog_compiler_static_works_CXX
=yes
20201 LDFLAGS
="$save_LDFLAGS"
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20205 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20207 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20210 lt_prog_compiler_static_CXX
=
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20217 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20218 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20219 $as_echo_n "(cached) " >&6
20221 lt_cv_prog_compiler_c_o_CXX
=no
20222 $RM -r conftest
2>/dev
/null
20226 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20228 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20229 # Insert the option either (1) after the last *FLAGS variable, or
20230 # (2) before a word containing "conftest.", or (3) at the end.
20231 # Note that $ac_compile itself does not contain backslashes and begins
20232 # with a dollar sign (not a hyphen), so the echo should work correctly.
20233 lt_compile
=`echo "$ac_compile" | $SED \
20234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20236 -e 's:$: $lt_compiler_flag:'`
20237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20238 (eval "$lt_compile" 2>out
/conftest.err
)
20240 cat out
/conftest.err
>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20244 # The compiler can only warn and ignore the option if not recognized
20245 # So say no if there are warnings
20246 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20247 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20248 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20249 lt_cv_prog_compiler_c_o_CXX
=yes
20254 # SGI C++ compiler will create directory out/ii_files/ for
20255 # template instantiation
20256 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20257 $RM out
/* && rmdir out
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20264 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20269 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20270 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20271 $as_echo_n "(cached) " >&6
20273 lt_cv_prog_compiler_c_o_CXX
=no
20274 $RM -r conftest
2>/dev
/null
20278 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20280 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20281 # Insert the option either (1) after the last *FLAGS variable, or
20282 # (2) before a word containing "conftest.", or (3) at the end.
20283 # Note that $ac_compile itself does not contain backslashes and begins
20284 # with a dollar sign (not a hyphen), so the echo should work correctly.
20285 lt_compile
=`echo "$ac_compile" | $SED \
20286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20288 -e 's:$: $lt_compiler_flag:'`
20289 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20290 (eval "$lt_compile" 2>out
/conftest.err
)
20292 cat out
/conftest.err
>&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20296 # The compiler can only warn and ignore the option if not recognized
20297 # So say no if there are warnings
20298 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20299 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20300 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20301 lt_cv_prog_compiler_c_o_CXX
=yes
20306 # SGI C++ compiler will create directory out/ii_files/ for
20307 # template instantiation
20308 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20309 $RM out
/* && rmdir out
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20316 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20321 hard_links
="nottested"
20322 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20323 # do not overwrite the value of need_locks provided by the user
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20325 $as_echo_n "checking if we can lock with hard links... " >&6; }
20328 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20330 ln conftest.a conftest.b
2>&5 || hard_links
=no
20331 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20333 $as_echo "$hard_links" >&6; }
20334 if test "$hard_links" = no
; then
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20336 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20346 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20348 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20351 # If we're using GNU nm, then we don't want the "-C" option.
20352 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20353 # Also, AIX nm treats weak defined symbols like other global defined
20354 # symbols, whereas GNU nm marks them as "W".
20355 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20356 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'
20358 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'
20362 export_symbols_cmds_CXX
="$ltdll_cmds"
20364 cygwin
* | mingw
* | cegcc
*)
20365 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'
20368 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20371 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20374 $as_echo "$ld_shlibs_CXX" >&6; }
20375 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20377 with_gnu_ld_CXX
=$with_gnu_ld
20385 # Do we need to explicitly link libc?
20387 case "x$archive_cmds_need_lc_CXX" in
20389 # Assume -lc should be added
20390 archive_cmds_need_lc_CXX
=yes
20392 if test "$enable_shared" = yes && test "$GCC" = yes; then
20393 case $archive_cmds_CXX in
20395 # FIXME: we may have to deal with multi-command sequences.
20398 # Test whether the compiler implicitly links with -lc since on some
20399 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20400 # to ld, don't add -lc before -lgcc.
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20402 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20403 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20404 $as_echo_n "(cached) " >&6
20407 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20410 (eval $ac_compile) 2>&5
20412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20413 test $ac_status = 0; } 2>conftest.err
; then
20416 libobjs
=conftest.
$ac_objext
20418 wl
=$lt_prog_compiler_wl_CXX
20419 pic_flag
=$lt_prog_compiler_pic_CXX
20425 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20426 allow_undefined_flag_CXX
=
20427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20428 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20431 test $ac_status = 0; }
20433 lt_cv_archive_cmds_need_lc_CXX
=no
20435 lt_cv_archive_cmds_need_lc_CXX
=yes
20437 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20439 cat conftest.err
1>&5
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20445 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20446 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20517 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20519 library_names_spec
=
20520 libname_spec
='lib$name'
20524 postuninstall_cmds
=
20528 shlibpath_overrides_runpath
=unknown
20530 dynamic_linker
="$host_os ld.so"
20531 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20532 need_lib_prefix
=unknown
20533 hardcode_into_libs
=no
20535 # when you set need_version to no, make sure it does not cause -set_version
20536 # flags to be left without arguments
20537 need_version
=unknown
20542 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20543 shlibpath_var
=LIBPATH
20545 # AIX 3 has no versioning support, so we append a major version to the name.
20546 soname_spec
='${libname}${release}${shared_ext}$major'
20553 hardcode_into_libs
=yes
20554 if test "$host_cpu" = ia64
; then
20555 # AIX 5 supports IA64
20556 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20557 shlibpath_var
=LD_LIBRARY_PATH
20559 # With GCC up to 2.95.x, collect2 would create an import file
20560 # for dependence libraries. The import file would start with
20561 # the line `#! .'. This would cause the generated library to
20562 # depend on `.', always an invalid library. This was fixed in
20563 # development snapshots of GCC prior to 3.0.
20565 aix4 | aix4.
[01] | aix4.
[01].
*)
20566 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20568 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20571 can_build_shared
=no
20575 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20576 # soname into executable. Probably we can add versioning support to
20577 # collect2, so additional links can be useful in future.
20578 if test "$aix_use_runtimelinking" = yes; then
20579 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20580 # instead of lib<name>.a to let people know that these are not
20581 # typical AIX shared libraries.
20582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20584 # We preserve .a as extension for shared libraries through AIX4.2
20585 # and later when we are not doing run time linking.
20586 library_names_spec
='${libname}${release}.a $libname.a'
20587 soname_spec
='${libname}${release}${shared_ext}$major'
20589 shlibpath_var
=LIBPATH
20596 # Since July 2007 AmigaOS4 officially supports .so libraries.
20597 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20601 library_names_spec
='$libname.ixlibrary $libname.a'
20602 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20603 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'
20609 library_names_spec
='${libname}${shared_ext}'
20610 dynamic_linker
="$host_os ld.so"
20611 shlibpath_var
=LIBRARY_PATH
20617 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20618 soname_spec
='${libname}${release}${shared_ext}$major'
20619 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20620 shlibpath_var
=LD_LIBRARY_PATH
20621 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20622 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20623 # the default ld.so.conf also contains /usr/contrib/lib and
20624 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20625 # libtool to hard-code these into programs
20628 cygwin
* | mingw
* | pw32
* | cegcc
*)
20629 version_type
=windows
20634 case $GCC,$host_os in
20635 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20636 library_names_spec
='$libname.dll.a'
20637 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20638 postinstall_cmds
='base_file=`basename \${file}`~
20639 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20640 dldir=$destdir/`dirname \$dlpath`~
20641 test -d \$dldir || mkdir -p \$dldir~
20642 $install_prog $dir/$dlname \$dldir/$dlname~
20643 chmod a+x \$dldir/$dlname~
20644 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20645 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20647 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20648 dlpath=$dir/\$dldll~
20650 shlibpath_overrides_runpath
=yes
20654 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20655 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20659 # MinGW DLLs use traditional 'lib' prefix
20660 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20663 # pw32 DLLs use 'pw' prefix rather than 'lib'
20664 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20670 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20673 dynamic_linker
='Win32 ld.exe'
20674 # FIXME: first we should search . and the directory the executable is in
20678 darwin
* | rhapsody
*)
20679 dynamic_linker
="$host_os dyld"
20680 version_type
=darwin
20683 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20684 soname_spec
='${libname}${release}${major}$shared_ext'
20685 shlibpath_overrides_runpath
=yes
20686 shlibpath_var
=DYLD_LIBRARY_PATH
20687 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20689 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20697 soname_spec
='${libname}${release}${shared_ext}$major'
20698 shlibpath_var
=LD_LIBRARY_PATH
20701 freebsd
* | dragonfly
*)
20702 # DragonFly does not have aout. When/if they implement a new
20703 # versioning mechanism, adjust this.
20704 if test -x /usr
/bin
/objformat
; then
20705 objformat
=`/usr/bin/objformat`
20708 freebsd
[23].
*) objformat
=aout
;;
20709 *) objformat
=elf
;;
20712 version_type
=freebsd-
$objformat
20713 case $version_type in
20715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20720 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20724 shlibpath_var
=LD_LIBRARY_PATH
20727 shlibpath_overrides_runpath
=yes
20729 freebsd3.
[01]* | freebsdelf3.
[01]*)
20730 shlibpath_overrides_runpath
=yes
20731 hardcode_into_libs
=yes
20733 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20734 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20735 shlibpath_overrides_runpath
=no
20736 hardcode_into_libs
=yes
20738 *) # from 4.6 on, and DragonFly
20739 shlibpath_overrides_runpath
=yes
20740 hardcode_into_libs
=yes
20749 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20750 soname_spec
='${libname}${release}${shared_ext}$major'
20751 shlibpath_var
=LD_LIBRARY_PATH
20752 hardcode_into_libs
=yes
20759 dynamic_linker
="$host_os runtime_loader"
20760 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20761 soname_spec
='${libname}${release}${shared_ext}$major'
20762 shlibpath_var
=LIBRARY_PATH
20763 shlibpath_overrides_runpath
=yes
20764 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20765 hardcode_into_libs
=yes
20768 hpux9
* | hpux10
* | hpux11
*)
20769 # Give a soname corresponding to the major version so that dld.sl refuses to
20770 # link against other versions.
20777 hardcode_into_libs
=yes
20778 dynamic_linker
="$host_os dld.so"
20779 shlibpath_var
=LD_LIBRARY_PATH
20780 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20781 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20782 soname_spec
='${libname}${release}${shared_ext}$major'
20783 if test "X$HPUX_IA64_MODE" = X32
; then
20784 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20786 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20788 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20792 hardcode_into_libs
=yes
20793 dynamic_linker
="$host_os dld.sl"
20794 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20795 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20796 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20797 soname_spec
='${libname}${release}${shared_ext}$major'
20798 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20799 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20803 dynamic_linker
="$host_os dld.sl"
20804 shlibpath_var
=SHLIB_PATH
20805 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20807 soname_spec
='${libname}${release}${shared_ext}$major'
20810 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20811 postinstall_cmds
='chmod 555 $lib'
20812 # or fails outright, so override atomically:
20813 install_override_mode
=555
20820 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20821 soname_spec
='${libname}${release}${shared_ext}$major'
20822 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20823 shlibpath_var
=LD_LIBRARY_PATH
20824 shlibpath_overrides_runpath
=no
20825 hardcode_into_libs
=yes
20828 irix5
* | irix6
* | nonstopux
*)
20830 nonstopux
*) version_type
=nonstopux
;;
20832 if test "$lt_cv_prog_gnu_ld" = yes; then
20840 soname_spec
='${libname}${release}${shared_ext}$major'
20841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20843 irix5
* | nonstopux
*)
20844 libsuff
= shlibsuff
=
20847 case $LD in # libtool.m4 will add one of these switches to LD
20848 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20849 libsuff
= shlibsuff
= libmagic
=32-bit;;
20850 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20851 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20852 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20853 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20854 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20858 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20859 shlibpath_overrides_runpath
=no
20860 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20861 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20862 hardcode_into_libs
=yes
20865 # No shared lib support for Linux oldld, aout, or coff.
20866 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20870 # This must be Linux ELF.
20871 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20875 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20876 soname_spec
='${libname}${release}${shared_ext}$major'
20877 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20878 shlibpath_var
=LD_LIBRARY_PATH
20879 shlibpath_overrides_runpath
=no
20881 # Some binutils ld are patched to set DT_RUNPATH
20882 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20883 $as_echo_n "(cached) " >&6
20885 lt_cv_shlibpath_overrides_runpath
=no
20886 save_LDFLAGS
=$LDFLAGS
20887 save_libdir
=$libdir
20888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20891 /* end confdefs.h. */
20901 if ac_fn_cxx_try_link
"$LINENO"; then :
20902 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20903 lt_cv_shlibpath_overrides_runpath
=yes
20906 rm -f core conftest.err conftest.
$ac_objext \
20907 conftest
$ac_exeext conftest.
$ac_ext
20908 LDFLAGS
=$save_LDFLAGS
20909 libdir
=$save_libdir
20913 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20915 # This implies no fast_install, which is unacceptable.
20916 # Some rework will be needed to allow for fast_install
20917 # before this can be enabled.
20918 hardcode_into_libs
=yes
20920 # Append ld.so.conf contents to the search path
20921 if test -f /etc
/ld.so.conf
; then
20922 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' ' '`
20923 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20926 # We used to test for /lib/ld.so.1 and disable shared libraries on
20927 # powerpc, because MkLinux only supported shared libraries with the
20928 # GNU dynamic linker. Since this was broken with cross compilers,
20929 # most powerpc-linux boxes support dynamic linking these days and
20930 # people can always --disable-shared, the test was removed, and we
20931 # assume the GNU/Linux dynamic linker is in use.
20932 dynamic_linker
='GNU/Linux ld.so'
20939 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20941 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20942 dynamic_linker
='NetBSD (a.out) ld.so'
20944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20945 soname_spec
='${libname}${release}${shared_ext}$major'
20946 dynamic_linker
='NetBSD ld.elf_so'
20948 shlibpath_var
=LD_LIBRARY_PATH
20949 shlibpath_overrides_runpath
=yes
20950 hardcode_into_libs
=yes
20955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20956 shlibpath_var
=LD_LIBRARY_PATH
20957 shlibpath_overrides_runpath
=yes
20964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20965 soname_spec
='${libname}${release}${shared_ext}$major'
20966 shlibpath_var
=LD_LIBRARY_PATH
20967 shlibpath_overrides_runpath
=no
20968 hardcode_into_libs
=yes
20969 dynamic_linker
='ldqnx.so'
20974 sys_lib_dlsearch_path_spec
="/usr/lib"
20976 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20978 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20979 *) need_version
=no
;;
20981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20982 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20983 shlibpath_var
=LD_LIBRARY_PATH
20984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20986 openbsd2.
[89] | openbsd2.
[89].
*)
20987 shlibpath_overrides_runpath
=no
20990 shlibpath_overrides_runpath
=yes
20994 shlibpath_overrides_runpath
=yes
20999 libname_spec
='$name'
21002 library_names_spec
='$libname${shared_ext} $libname.a'
21003 dynamic_linker
='OS/2 ld.exe'
21004 shlibpath_var
=LIBPATH
21007 osf3
* | osf4
* | osf5
*)
21011 soname_spec
='${libname}${release}${shared_ext}$major'
21012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21013 shlibpath_var
=LD_LIBRARY_PATH
21014 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21015 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21027 soname_spec
='${libname}${release}${shared_ext}$major'
21028 shlibpath_var
=LD_LIBRARY_PATH
21029 shlibpath_overrides_runpath
=yes
21030 hardcode_into_libs
=yes
21031 # ldd complains unless libraries are executable
21032 postinstall_cmds
='chmod +x $lib'
21037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21038 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21039 shlibpath_var
=LD_LIBRARY_PATH
21040 shlibpath_overrides_runpath
=yes
21041 if test "$with_gnu_ld" = yes; then
21049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21050 soname_spec
='${libname}${release}${shared_ext}$major'
21051 shlibpath_var
=LD_LIBRARY_PATH
21052 case $host_vendor in
21054 shlibpath_overrides_runpath
=no
21056 runpath_var
=LD_RUN_PATH
21064 shlibpath_overrides_runpath
=no
21065 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21071 if test -d /usr
/nec
;then
21073 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21074 soname_spec
='$libname${shared_ext}.$major'
21075 shlibpath_var
=LD_LIBRARY_PATH
21079 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21080 version_type
=freebsd-elf
21083 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21084 soname_spec
='${libname}${release}${shared_ext}$major'
21085 shlibpath_var
=LD_LIBRARY_PATH
21086 shlibpath_overrides_runpath
=yes
21087 hardcode_into_libs
=yes
21088 if test "$with_gnu_ld" = yes; then
21089 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21091 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21094 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21098 sys_lib_dlsearch_path_spec
='/usr/lib'
21102 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21107 shlibpath_var
=LD_LIBRARY_PATH
21108 shlibpath_overrides_runpath
=no
21109 hardcode_into_libs
=yes
21114 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21115 soname_spec
='${libname}${release}${shared_ext}$major'
21116 shlibpath_var
=LD_LIBRARY_PATH
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21124 $as_echo "$dynamic_linker" >&6; }
21125 test "$dynamic_linker" = no
&& can_build_shared
=no
21127 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21128 if test "$GCC" = yes; then
21129 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21132 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21133 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21135 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21136 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21177 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21178 hardcode_action_CXX
=
21179 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21180 test -n "$runpath_var_CXX" ||
21181 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21183 # We can hardcode non-existent directories.
21184 if test "$hardcode_direct_CXX" != no
&&
21185 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21186 # have to relink, otherwise we might link with an installed library
21187 # when we should be linking with a yet-to-be-installed one
21188 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21189 test "$hardcode_minus_L_CXX" != no
; then
21190 # Linking always hardcodes the temporary library directory.
21191 hardcode_action_CXX
=relink
21193 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21194 hardcode_action_CXX
=immediate
21197 # We cannot hardcode anything, or else we can only hardcode existing
21199 hardcode_action_CXX
=unsupported
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21202 $as_echo "$hardcode_action_CXX" >&6; }
21204 if test "$hardcode_action_CXX" = relink ||
21205 test "$inherit_rpath_CXX" = yes; then
21206 # Fast installation is not supported
21207 enable_fast_install
=no
21208 elif test "$shlibpath_overrides_runpath" = yes ||
21209 test "$enable_shared" = no
; then
21210 # Fast installation is not necessary
21211 enable_fast_install
=needless
21220 fi # test -n "$compiler"
21226 with_gnu_ld
=$lt_save_with_gnu_ld
21227 lt_cv_path_LDCXX
=$lt_cv_path_LD
21228 lt_cv_path_LD
=$lt_save_path_LD
21229 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21230 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21231 fi # test "$_lt_caught_CXX_error" != yes
21234 ac_cpp
='$CPP $CPPFLAGS'
21235 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21236 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21237 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21254 # Only expand once:
21260 # Identify the assembler which will work hand-in-glove with the newly
21261 # built GCC, so that we can examine its features. This is the assembler
21262 # which will be driven by the driver program.
21264 # If build != host, and we aren't building gas in-tree, we identify a
21265 # build->target assembler and hope that it will have the same features
21266 # as the host->target assembler we'll be using.
21267 gcc_cv_gas_major_version
=
21268 gcc_cv_gas_minor_version
=
21269 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21271 if test "${gcc_cv_as+set}" = set; then :
21275 if test -x "$DEFAULT_ASSEMBLER"; then
21276 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21277 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21278 && test -f ..
/gas
/Makefile \
21279 && test x
$build = x
$host; then
21280 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21281 elif test -x as
$build_exeext; then
21282 # Build using assembler in the current directory.
21283 gcc_cv_as
=.
/as
$build_exeext
21284 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21285 gcc_cv_as
="$AS_FOR_TARGET"
21287 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21288 set dummy
$AS_FOR_TARGET; ac_word
=$2
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21290 $as_echo_n "checking for $ac_word... " >&6; }
21291 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21292 $as_echo_n "(cached) " >&6
21296 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21300 for as_dir
in $PATH
21303 test -z "$as_dir" && as_dir
=.
21304 for ac_exec_ext
in '' $ac_executable_extensions; do
21305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21306 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21317 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21318 if test -n "$gcc_cv_as"; then
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21320 $as_echo "$gcc_cv_as" >&6; }
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21323 $as_echo "no" >&6; }
21330 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21332 case "$ORIGINAL_AS_FOR_TARGET" in
21333 .
/as | .
/as
$build_exeext) ;;
21334 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21339 $as_echo_n "checking what assembler to use... " >&6; }
21340 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21341 # Single tree build which includes gas. We want to prefer it
21342 # over whatever linker top-level may have detected, since
21343 # we'll use what we're building after installation anyway.
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21345 $as_echo "newly built gas" >&6; }
21347 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21348 for f
in $gcc_cv_as_bfd_srcdir/configure \
21349 $gcc_cv_as_gas_srcdir/configure \
21350 $gcc_cv_as_gas_srcdir/configure.
in \
21351 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21352 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21353 if test x
$gcc_cv_gas_version != x
; then
21357 case $gcc_cv_gas_version in
21359 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21361 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21362 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21363 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21364 case $gcc_cv_gas_patch_version in
21365 "") gcc_cv_gas_patch_version
="0" ;;
21367 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21368 + $gcc_cv_gas_minor_version \) \* 1000 \
21369 + $gcc_cv_gas_patch_version`
21371 in_tree_gas_is_elf
=no
21372 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21373 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21374 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21376 in_tree_gas_is_elf
=yes
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21380 $as_echo "$gcc_cv_as" >&6; }
21384 # Identify the linker which will work hand-in-glove with the newly
21385 # built GCC, so that we can examine its features. This is the linker
21386 # which will be driven by the driver program.
21388 # If build != host, and we aren't building gas in-tree, we identify a
21389 # build->target linker and hope that it will have the same features
21390 # as the host->target linker we'll be using.
21391 gcc_cv_gld_major_version
=
21392 gcc_cv_gld_minor_version
=
21393 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21394 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21396 if test "${gcc_cv_ld+set}" = set; then :
21400 if test -x "$DEFAULT_LINKER"; then
21401 gcc_cv_ld
="$DEFAULT_LINKER"
21402 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21403 && test -f ..
/ld
/Makefile \
21404 && test x
$build = x
$host; then
21405 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21406 elif test -x collect-ld
$build_exeext; then
21407 # Build using linker in the current directory.
21408 gcc_cv_ld
=.
/collect-ld
$build_exeext
21409 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21410 gcc_cv_ld
="$LD_FOR_TARGET"
21412 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21413 set dummy
$LD_FOR_TARGET; ac_word
=$2
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21415 $as_echo_n "checking for $ac_word... " >&6; }
21416 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21417 $as_echo_n "(cached) " >&6
21421 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21425 for as_dir
in $PATH
21428 test -z "$as_dir" && as_dir
=.
21429 for ac_exec_ext
in '' $ac_executable_extensions; do
21430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21431 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21442 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21443 if test -n "$gcc_cv_ld"; then
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21445 $as_echo "$gcc_cv_ld" >&6; }
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21448 $as_echo "no" >&6; }
21455 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21456 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21457 # if the PLUGIN_LD is set ld-new, just have it as ld
21458 # as that is the installed named.
21459 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21460 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21461 PLUGIN_LD_SUFFIX
=ld
21464 # Check whether --with-plugin-ld was given.
21465 if test "${with_plugin_ld+set}" = set; then :
21466 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21467 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21468 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21474 cat >>confdefs.h
<<_ACEOF
21475 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21479 # Check to see if we are using gold instead of ld
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21481 $as_echo_n "checking whether we are using gold... " >&6; }
21483 if test x
$gcc_cv_ld != x
; then
21484 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21485 |
grep "GNU gold" > /dev
/null
; then
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21490 $as_echo "$ld_is_gold" >&6; }
21492 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21494 case "$ORIGINAL_LD_FOR_TARGET" in
21495 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21496 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21501 $as_echo_n "checking what linker to use... " >&6; }
21502 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21503 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21504 # Single tree build which includes ld. We want to prefer it
21505 # over whatever linker top-level may have detected, since
21506 # we'll use what we're building after installation anyway.
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21508 $as_echo "newly built ld" >&6; }
21510 in_tree_ld_is_elf
=no
21511 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21512 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21513 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21514 in_tree_ld_is_elf
=yes
21515 elif test "$ld_is_gold" = yes; then
21516 in_tree_ld_is_elf
=yes
21518 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
21520 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21521 if test x
$gcc_cv_gld_version != x
; then
21525 case $gcc_cv_gld_version in
21527 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21529 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21530 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21533 $as_echo "$gcc_cv_ld" >&6; }
21537 # Figure out what nm we will be using.
21538 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21539 if test "${gcc_cv_nm+set}" = set; then :
21543 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21544 && test -f ..
/binutils
/Makefile \
21545 && test x
$build = x
$host; then
21546 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21547 elif test -x nm
$build_exeext; then
21548 gcc_cv_nm
=.
/nm
$build_exeext
21549 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21550 gcc_cv_nm
="$NM_FOR_TARGET"
21552 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21553 set dummy
$NM_FOR_TARGET; ac_word
=$2
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21555 $as_echo_n "checking for $ac_word... " >&6; }
21556 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21557 $as_echo_n "(cached) " >&6
21561 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21565 for as_dir
in $PATH
21568 test -z "$as_dir" && as_dir
=.
21569 for ac_exec_ext
in '' $ac_executable_extensions; do
21570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21571 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21582 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21583 if test -n "$gcc_cv_nm"; then
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21585 $as_echo "$gcc_cv_nm" >&6; }
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21588 $as_echo "no" >&6; }
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21596 $as_echo_n "checking what nm to use... " >&6; }
21597 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21598 # Single tree build which includes binutils.
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21600 $as_echo "newly built nm" >&6; }
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21604 $as_echo "$gcc_cv_nm" >&6; }
21608 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21610 case "$ORIGINAL_NM_FOR_TARGET" in
21611 .
/nm | .
/nm
$build_exeext) ;;
21612 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21617 # Figure out what objdump we will be using.
21618 if test "${gcc_cv_objdump+set}" = set; then :
21622 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21623 && test -f ..
/binutils
/Makefile \
21624 && test x
$build = x
$host; then
21625 # Single tree build which includes binutils.
21626 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21627 elif test -x objdump
$build_exeext; then
21628 gcc_cv_objdump
=.
/objdump
$build_exeext
21629 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21630 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21632 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21633 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21635 $as_echo_n "checking for $ac_word... " >&6; }
21636 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21637 $as_echo_n "(cached) " >&6
21639 case $gcc_cv_objdump in
21641 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21645 for as_dir
in $PATH
21648 test -z "$as_dir" && as_dir
=.
21649 for ac_exec_ext
in '' $ac_executable_extensions; do
21650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21651 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21662 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21663 if test -n "$gcc_cv_objdump"; then
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21665 $as_echo "$gcc_cv_objdump" >&6; }
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21668 $as_echo "no" >&6; }
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21676 $as_echo_n "checking what objdump to use... " >&6; }
21677 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21678 # Single tree build which includes binutils.
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21680 $as_echo "newly built objdump" >&6; }
21681 elif test x
$gcc_cv_objdump = x
; then
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21683 $as_echo "not found" >&6; }
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21686 $as_echo "$gcc_cv_objdump" >&6; }
21689 # Figure out what readelf we will be using.
21690 if test "${gcc_cv_readelf+set}" = set; then :
21694 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21695 && test -f ..
/binutils
/Makefile \
21696 && test x
$build = x
$host; then
21697 # Single tree build which includes binutils.
21698 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21699 elif test -x readelf
$build_exeext; then
21700 gcc_cv_readelf
=.
/readelf
$build_exeext
21702 # Extract the first word of "readelf", so it can be a program name with args.
21703 set dummy readelf
; ac_word
=$2
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21705 $as_echo_n "checking for $ac_word... " >&6; }
21706 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21707 $as_echo_n "(cached) " >&6
21709 case $gcc_cv_readelf in
21711 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21715 for as_dir
in $PATH
21718 test -z "$as_dir" && as_dir
=.
21719 for ac_exec_ext
in '' $ac_executable_extensions; do
21720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21721 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21732 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21733 if test -n "$gcc_cv_readelf"; then
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21735 $as_echo "$gcc_cv_readelf" >&6; }
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21738 $as_echo "no" >&6; }
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21746 $as_echo_n "checking what readelf to use... " >&6; }
21747 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21748 # Single tree build which includes binutils.
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21750 $as_echo "newly built readelf" >&6; }
21751 elif test x
$gcc_cv_readelf = x
; then
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21753 $as_echo "not found" >&6; }
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21756 $as_echo "$gcc_cv_readelf" >&6; }
21759 # Figure out what assembler alignment features are present.
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21761 $as_echo_n "checking assembler flags... " >&6; }
21762 if test "${gcc_cv_as_flags+set}" = set; then :
21763 $as_echo_n "(cached) " >&6
21766 i
[34567]86-*-linux*)
21767 gcc_cv_as_flags
=--32
21769 x86_64-
*-linux-gnux32)
21770 gcc_cv_as_flags
=--x32
21773 gcc_cv_as_flags
=--64
21775 powerpc
*-*-darwin*)
21776 gcc_cv_as_flags
="-arch ppc"
21779 gcc_cv_as_flags
=" "
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21784 $as_echo "$gcc_cv_as_flags" >&6; }
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21787 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21788 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21789 $as_echo_n "(cached) " >&6
21791 gcc_cv_as_balign_and_p2align
=no
21792 if test $in_tree_gas = yes; then
21793 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21794 then gcc_cv_as_balign_and_p2align
=yes
21796 elif test x
$gcc_cv_as != x
; then
21797 $as_echo '.balign 4
21798 .p2align 2' > conftest.s
21799 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21801 (eval $ac_try) 2>&5
21803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21804 test $ac_status = 0; }; }
21806 gcc_cv_as_balign_and_p2align
=yes
21808 echo "configure: failed program was" >&5
21811 rm -f conftest.o conftest.s
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21815 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21816 if test $gcc_cv_as_balign_and_p2align = yes; then
21818 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21823 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21824 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21825 $as_echo_n "(cached) " >&6
21827 gcc_cv_as_max_skip_p2align
=no
21828 if test $in_tree_gas = yes; then
21829 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21830 then gcc_cv_as_max_skip_p2align
=yes
21832 elif test x
$gcc_cv_as != x
; then
21833 $as_echo '.p2align 4,,7' > conftest.s
21834 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21836 (eval $ac_try) 2>&5
21838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21839 test $ac_status = 0; }; }
21841 gcc_cv_as_max_skip_p2align
=yes
21843 echo "configure: failed program was" >&5
21846 rm -f conftest.o conftest.s
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21850 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21851 if test $gcc_cv_as_max_skip_p2align = yes; then
21853 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21858 $as_echo_n "checking assembler for .literal16... " >&6; }
21859 if test "${gcc_cv_as_literal16+set}" = set; then :
21860 $as_echo_n "(cached) " >&6
21862 gcc_cv_as_literal16
=no
21863 if test $in_tree_gas = yes; then
21864 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21865 then gcc_cv_as_literal16
=yes
21867 elif test x
$gcc_cv_as != x
; then
21868 $as_echo '.literal16' > conftest.s
21869 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21871 (eval $ac_try) 2>&5
21873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21874 test $ac_status = 0; }; }
21876 gcc_cv_as_literal16
=yes
21878 echo "configure: failed program was" >&5
21881 rm -f conftest.o conftest.s
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21885 $as_echo "$gcc_cv_as_literal16" >&6; }
21886 if test $gcc_cv_as_literal16 = yes; then
21888 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21893 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21894 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21895 $as_echo_n "(cached) " >&6
21897 gcc_cv_as_subsection_m1
=no
21898 if test $in_tree_gas = yes; then
21899 if test $in_tree_gas_is_elf = yes \
21900 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21901 then gcc_cv_as_subsection_m1
=yes
21903 elif test x
$gcc_cv_as != x
; then
21904 $as_echo 'conftest_label1: .word 0
21906 conftest_label2: .word 0
21907 .previous' > conftest.s
21908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21910 (eval $ac_try) 2>&5
21912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21913 test $ac_status = 0; }; }
21915 if test x
$gcc_cv_nm != x
; then
21916 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21917 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21918 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21920 else gcc_cv_as_subsection_m1
=yes
21922 rm -f conftest.nm1 conftest.nm2
21925 echo "configure: failed program was" >&5
21928 rm -f conftest.o conftest.s
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21932 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21933 if test $gcc_cv_as_subsection_m1 = yes; then
21935 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21940 $as_echo_n "checking assembler for .weak... " >&6; }
21941 if test "${gcc_cv_as_weak+set}" = set; then :
21942 $as_echo_n "(cached) " >&6
21945 if test $in_tree_gas = yes; then
21946 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21947 then gcc_cv_as_weak
=yes
21949 elif test x
$gcc_cv_as != x
; then
21950 $as_echo ' .weak foobar' > conftest.s
21951 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21953 (eval $ac_try) 2>&5
21955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21956 test $ac_status = 0; }; }
21960 echo "configure: failed program was" >&5
21963 rm -f conftest.o conftest.s
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21967 $as_echo "$gcc_cv_as_weak" >&6; }
21968 if test $gcc_cv_as_weak = yes; then
21970 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21975 $as_echo_n "checking assembler for .weakref... " >&6; }
21976 if test "${gcc_cv_as_weakref+set}" = set; then :
21977 $as_echo_n "(cached) " >&6
21979 gcc_cv_as_weakref
=no
21980 if test $in_tree_gas = yes; then
21981 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21982 then gcc_cv_as_weakref
=yes
21984 elif test x
$gcc_cv_as != x
; then
21985 $as_echo ' .weakref foobar, barfnot' > conftest.s
21986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21988 (eval $ac_try) 2>&5
21990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21991 test $ac_status = 0; }; }
21993 gcc_cv_as_weakref
=yes
21995 echo "configure: failed program was" >&5
21998 rm -f conftest.o conftest.s
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22002 $as_echo "$gcc_cv_as_weakref" >&6; }
22003 if test $gcc_cv_as_weakref = yes; then
22005 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22010 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22011 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22012 $as_echo_n "(cached) " >&6
22014 gcc_cv_as_nsubspa_comdat
=no
22015 if test $in_tree_gas = yes; then
22016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22017 then gcc_cv_as_nsubspa_comdat
=yes
22019 elif test x
$gcc_cv_as != x
; then
22020 $as_echo ' .SPACE $TEXT$
22021 .NSUBSPA $CODE$,COMDAT' > conftest.s
22022 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22024 (eval $ac_try) 2>&5
22026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22027 test $ac_status = 0; }; }
22029 gcc_cv_as_nsubspa_comdat
=yes
22031 echo "configure: failed program was" >&5
22034 rm -f conftest.o conftest.s
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22038 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22039 if test $gcc_cv_as_nsubspa_comdat = yes; then
22041 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22045 # .hidden needs to be supported in both the assembler and the linker,
22046 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22047 # This is irritatingly difficult to feature test for; we have to check the
22048 # date string after the version number. If we've got an in-tree
22049 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22051 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22053 $as_echo_n "checking assembler for .hidden... " >&6; }
22054 if test "${gcc_cv_as_hidden+set}" = set; then :
22055 $as_echo_n "(cached) " >&6
22057 gcc_cv_as_hidden
=no
22058 if test $in_tree_gas = yes; then
22059 if test $in_tree_gas_is_elf = yes \
22060 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22061 then gcc_cv_as_hidden
=yes
22063 elif test x
$gcc_cv_as != x
; then
22064 $as_echo ' .hidden foobar
22065 foobar:' > conftest.s
22066 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22068 (eval $ac_try) 2>&5
22070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22071 test $ac_status = 0; }; }
22074 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22075 # STV_HIDDEN, so disable .hidden support if so.
22076 case "${target}" in
22077 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22078 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22079 cat > conftest.s
<<EOF
22084 .set default,hidden
22086 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22087 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22088 grep '\.hidden default' > /dev
/null
; then
22089 gcc_cv_as_hidden
=no
22091 gcc_cv_as_hidden
=yes
22094 # Assume bug is present if objdump is missing.
22095 gcc_cv_as_hidden
=no
22099 gcc_cv_as_hidden
=yes
22103 echo "configure: failed program was" >&5
22106 rm -f conftest.o conftest.s
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22110 $as_echo "$gcc_cv_as_hidden" >&6; }
22112 case "${target}" in
22114 # Darwin as has some visibility support, though with a different syntax.
22115 gcc_cv_as_hidden
=yes
22119 # gnu_indirect_function type is an extension proposed at
22120 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22121 # selection of function implementation
22122 # Check whether --enable-gnu-indirect-function was given.
22123 if test "${enable_gnu_indirect_function+set}" = set; then :
22124 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22126 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22127 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22130 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22134 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22136 cat >>confdefs.h
<<_ACEOF
22137 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22142 if test $in_tree_ld != yes ; then
22143 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22144 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22145 if test x
"$ld_is_gold" = xyes
; then
22146 # GNU gold --version looks like this:
22148 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22150 # We extract the binutils version which is more familiar and specific
22151 # than the gold version.
22152 ld_vers
=`echo $ld_ver | sed -n \
22153 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22155 # GNU ld --version looks like this:
22157 # GNU ld (GNU Binutils) 2.21.51.20110225
22158 ld_vers
=`echo $ld_ver | sed -n \
22159 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22161 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
22162 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22163 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22164 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22166 case "${target}" in
22168 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22171 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22172 # /usr/ccs/bin/ld has been configured.
22173 ld_ver
=`$gcc_cv_ld -V 2>&1`
22174 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22175 ld_vers
=`echo $ld_ver | sed -n \
22176 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22177 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22178 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22186 $as_echo_n "checking linker for .hidden support... " >&6; }
22187 if test "${gcc_cv_ld_hidden+set}" = set; then :
22188 $as_echo_n "(cached) " >&6
22190 if test $in_tree_ld = yes ; then
22191 gcc_cv_ld_hidden
=no
22192 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 \
22193 && test $in_tree_ld_is_elf = yes; then
22194 gcc_cv_ld_hidden
=yes
22197 gcc_cv_ld_hidden
=yes
22198 if test x
"$ld_is_gold" = xyes
; then
22200 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22201 case "${target}" in
22202 mmix-knuth-mmixware
)
22203 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22204 gcc_cv_ld_hidden
=no
22207 if test 0"$ld_date" -lt 20020404; then
22208 if test -n "$ld_date"; then
22209 # If there was date string, but was earlier than 2002-04-04, fail
22210 gcc_cv_ld_hidden
=no
22211 elif test -z "$ld_vers"; then
22212 # If there was no date string nor ld version number, something is wrong
22213 gcc_cv_ld_hidden
=no
22215 test -z "$ld_vers_patch" && ld_vers_patch
=0
22216 if test "$ld_vers_major" -lt 2; then
22217 gcc_cv_ld_hidden
=no
22218 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22219 gcc_cv_ld_hidden
="no"
22220 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22221 gcc_cv_ld_hidden
=no
22226 case "${target}" in
22228 # Darwin ld has some visibility support.
22229 gcc_cv_ld_hidden
=yes
22231 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22232 gcc_cv_ld_hidden
=yes
22234 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22235 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22236 # .symbolic was only added in Solaris 9 12/02.
22237 gcc_cv_ld_hidden
=yes
22240 gcc_cv_ld_hidden
=no
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22247 $as_echo "$gcc_cv_ld_hidden" >&6; }
22248 libgcc_visibility
=no
22251 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22252 libgcc_visibility
=yes
22254 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22259 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22260 gcc_cv_ld_ro_rw_mix
=unknown
22261 if test $in_tree_ld = yes ; then
22262 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 \
22263 && test $in_tree_ld_is_elf = yes; then
22264 gcc_cv_ld_ro_rw_mix
=read-write
22266 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22267 echo '.section myfoosect, "a"' > conftest1.s
22268 echo '.section myfoosect, "aw"' > conftest2.s
22269 echo '.byte 1' >> conftest2.s
22270 echo '.section myfoosect, "a"' > conftest3.s
22271 echo '.byte 0' >> conftest3.s
22272 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22273 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22274 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22275 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22276 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22277 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22278 | sed -e '/myfoosect/!d' -e N`
22279 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22280 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22281 gcc_cv_ld_ro_rw_mix
=read-only
22283 gcc_cv_ld_ro_rw_mix
=read-write
22287 rm -f conftest.
* conftest
[123].
*
22289 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22291 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22295 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22297 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22298 case "${target}" in
22301 # Solaris 2 ld -V output looks like this for a regular version:
22303 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22305 # but test versions add stuff at the end:
22307 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22309 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22310 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22311 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22312 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22313 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22314 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22320 # Check whether --enable-initfini-array was given.
22321 if test "${enable_initfini_array+set}" = set; then :
22322 enableval
=$enable_initfini_array;
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22326 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22327 if test "${gcc_cv_initfini_array+set}" = set; then :
22328 $as_echo_n "(cached) " >&6
22330 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22331 case "${target}" in
22333 if test "$cross_compiling" = yes; then :
22334 gcc_cv_initfini_array
=no
22336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22337 /* end confdefs.h. */
22340 #error Not an ELF OS
22342 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22343 if it can be used. */
22345 int main (void) { return x; }
22346 int foo (void) { x = 0; }
22347 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22350 if ac_fn_c_try_run
"$LINENO"; then :
22351 gcc_cv_initfini_array
=yes
22353 gcc_cv_initfini_array
=no
22355 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22356 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22360 gcc_cv_initfini_array
=no
22361 if test $in_tree_ld = yes ; then
22362 if test "$gcc_cv_gld_major_version" -eq 2 \
22363 -a "$gcc_cv_gld_minor_version" -ge 22 \
22364 -o "$gcc_cv_gld_major_version" -gt 2 \
22365 && test $in_tree_ld_is_elf = yes; then
22366 gcc_cv_initfini_array
=yes
22368 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22369 cat > conftest.s
<<\EOF
22370 .section .dtors
,"a",%progbits
22372 .byte
'A', 'A', 'A', 'A'
22373 .section .ctors
,"a",%progbits
22375 .byte
'B', 'B', 'B', 'B'
22376 .section .fini_array
.65530,"a",%progbits
22378 .byte
'C', 'C', 'C', 'C'
22379 .section .init_array
.65530,"a",%progbits
22381 .byte
'D', 'D', 'D', 'D'
22382 .section .dtors
.64528,"a",%progbits
22384 .byte
'E', 'E', 'E', 'E'
22385 .section .ctors
.64528,"a",%progbits
22387 .byte
'F', 'F', 'F', 'F'
22388 .section .fini_array
.01005,"a",%progbits
22390 .byte
'G', 'G', 'G', 'G'
22391 .section .init_array
.01005,"a",%progbits
22393 .byte
'H', 'H', 'H', 'H'
22398 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22399 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22400 && $gcc_cv_objdump -s -j .init_array conftest \
22401 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22402 && $gcc_cv_objdump -s -j .fini_array conftest \
22403 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22404 gcc_cv_initfini_array
=yes
22406 rm -f conftest conftest.
*
22408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22409 /* end confdefs.h. */
22412 # error Not an ELF OS
22414 #include <stdlib.h>
22415 #if defined __GLIBC_PREREQ
22416 # if __GLIBC_PREREQ (2, 4)
22418 # error GLIBC 2.4 required
22421 # if defined __sun__ && defined __svr4__
22422 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22424 # error The C library not known to support .init_array/.fini_array
22429 if ac_fn_c_try_cpp
"$LINENO"; then :
22432 gcc_cv_initfini_array
=no
22434 rm -f conftest.err conftest.
$ac_ext;;
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22438 $as_echo_n "checking cross compile... guessing... " >&6; }
22439 gcc_cv_initfini_array
=no
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22443 $as_echo "$gcc_cv_initfini_array" >&6; }
22444 enable_initfini_array
=$gcc_cv_initfini_array
22448 if test $enable_initfini_array = yes; then
22450 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22454 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22456 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22457 if test "${gcc_cv_as_leb128+set}" = set; then :
22458 $as_echo_n "(cached) " >&6
22460 gcc_cv_as_leb128
=no
22461 if test $in_tree_gas = yes; then
22462 if test $in_tree_gas_is_elf = yes \
22463 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22464 then gcc_cv_as_leb128
=yes
22466 elif test x
$gcc_cv_as != x
; then
22473 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22475 (eval $ac_try) 2>&5
22477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22478 test $ac_status = 0; }; }
22480 # GAS versions before 2.11 do not support uleb128,
22481 # despite appearing to.
22482 # ??? There exists an elf-specific test that will crash
22483 # the assembler. Perhaps it's better to figure out whether
22484 # arbitrary sections are supported and try the test.
22485 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22486 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22487 as_vers
=`echo $as_ver | sed -n \
22488 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22489 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22490 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22491 if test $as_major -eq 2 && test $as_minor -lt 11
22493 else gcc_cv_as_leb128
=yes
22497 echo "configure: failed program was" >&5
22500 rm -f conftest.o conftest.s
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22504 $as_echo "$gcc_cv_as_leb128" >&6; }
22505 if test $gcc_cv_as_leb128 = yes; then
22507 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22511 # Check if we have assembler support for unwind directives.
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22513 $as_echo_n "checking assembler for cfi directives... " >&6; }
22514 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22515 $as_echo_n "(cached) " >&6
22517 gcc_cv_as_cfi_directive
=no
22518 if test x
$gcc_cv_as != x
; then
22524 .cfi_escape 1, 2, 3, 4, 5
22525 .cfi_endproc' > conftest.s
22526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22528 (eval $ac_try) 2>&5
22530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22531 test $ac_status = 0; }; }
22535 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22536 # read-only and read-write sections, we need to make sure that the
22537 # assembler used emits read-write .eh_frame sections.
22538 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22539 if test "x$gcc_cv_objdump" != x
; then
22540 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22541 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22542 gcc_cv_as_cfi_directive
=no
22545 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22546 # On Solaris/x86, make sure that GCC and gas agree on using
22547 # read-only .eh_frame sections for 64-bit.
22548 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22549 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22550 sed -e /.eh_frame
/!d
-e N | \
22551 grep READONLY
> /dev
/null
; then
22552 gcc_cv_as_cfi_directive
=yes
22554 gcc_cv_as_cfi_directive
=no
22558 gcc_cv_as_cfi_directive
=yes
22563 # no objdump, err on the side of caution
22564 gcc_cv_as_cfi_directive
=no
22567 gcc_cv_as_cfi_directive
=yes
22571 gcc_cv_as_cfi_directive
=yes
22575 echo "configure: failed program was" >&5
22578 rm -f conftest.o conftest.s
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22582 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22584 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22586 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22587 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22588 $as_echo_n "(cached) " >&6
22590 gcc_cv_as_cfi_advance_working
=no
22591 if test x
$gcc_cv_as != x
; then
22594 .cfi_adjust_cfa_offset 64
22596 .cfi_adjust_cfa_offset 128
22597 .cfi_endproc' > conftest.s
22598 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22600 (eval $ac_try) 2>&5
22602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22603 test $ac_status = 0; }; }
22606 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22607 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22608 gcc_cv_as_cfi_advance_working
=yes
22612 echo "configure: failed program was" >&5
22615 rm -f conftest.o conftest.s
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22619 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22622 # no objdump, err on the side of caution
22623 gcc_cv_as_cfi_advance_working
=no
22627 cat >>confdefs.h
<<_ACEOF
22628 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22629 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22635 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22636 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22637 $as_echo_n "(cached) " >&6
22639 gcc_cv_as_cfi_personality_directive
=no
22640 if test x
$gcc_cv_as != x
; then
22643 .cfi_personality 0, symbol
22644 .cfi_endproc' > conftest.s
22645 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22647 (eval $ac_try) 2>&5
22649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22650 test $ac_status = 0; }; }
22652 gcc_cv_as_cfi_personality_directive
=yes
22654 echo "configure: failed program was" >&5
22657 rm -f conftest.o conftest.s
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22661 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22664 cat >>confdefs.h
<<_ACEOF
22665 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22666 then echo 1; else echo 0; fi`
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22671 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22672 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22673 $as_echo_n "(cached) " >&6
22675 gcc_cv_as_cfi_sections_directive
=no
22676 if test x
$gcc_cv_as != x
; then
22678 .cfi_sections .debug_frame, .eh_frame
22680 .cfi_endproc' > conftest.s
22681 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22683 (eval $ac_try) 2>&5
22685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22686 test $ac_status = 0; }; }
22689 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22690 # Need to check that we generated the correct relocation for the
22691 # .debug_frame section. This was fixed for binutils 2.21.
22692 gcc_cv_as_cfi_sections_directive
=no
22693 if test "x$gcc_cv_objdump" != x
; then
22694 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22695 grep secrel
> /dev
/null
; then
22696 gcc_cv_as_cfi_sections_directive
=yes
22701 gcc_cv_as_cfi_sections_directive
=yes
22705 echo "configure: failed program was" >&5
22708 rm -f conftest.o conftest.s
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22712 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22716 cat >>confdefs.h
<<_ACEOF
22717 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22718 then echo 1; else echo 0; fi`
22722 # GAS versions up to and including 2.11.0 may mis-optimize
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22725 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22726 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22727 $as_echo_n "(cached) " >&6
22729 gcc_cv_as_eh_frame
=no
22730 if test $in_tree_gas = yes; then
22731 if test $in_tree_gas_is_elf = yes \
22732 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22733 then gcc_cv_as_eh_frame
=yes
22735 elif test x
$gcc_cv_as != x
; then
22742 .section .eh_frame,"aw",@progbits
22744 .4byte .LECIE1-.LSCIE1
22758 .4byte .LEFDE1-.LASFDE1
22760 .4byte .LASFDE1-__FRAME_BEGIN__
22767 .LEFDE1:' > conftest.s
22768 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22770 (eval $ac_try) 2>&5
22772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22773 test $ac_status = 0; }; }
22775 cat > conftest.lit
<<EOF
22776 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22777 0010 01000000 12000000 18000000 00000000 ................
22778 0020 08000000 04080000 0044 .........D
22780 cat > conftest.big
<<EOF
22781 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22782 0010 00000001 00000012 00000018 00000000 ................
22783 0020 00000008 04000000 0844 .........D
22785 # If the assembler didn't choke, and we can objdump,
22786 # and we got the correct data, then succeed.
22787 # The text in the here-document typically retains its unix-style line
22788 # endings, while the output of objdump will use host line endings.
22789 # Therefore, use diff -b for the comparisons.
22790 if test x
$gcc_cv_objdump != x \
22791 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22792 |
tail -3 > conftest.got \
22793 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22794 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22796 gcc_cv_as_eh_frame
=yes
22797 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22799 (eval $ac_try) 2>&5
22801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22802 test $ac_status = 0; }; }; then
22803 gcc_cv_as_eh_frame
=buggy
22805 # Uh oh, what do we do now?
22806 gcc_cv_as_eh_frame
=no
22809 echo "configure: failed program was" >&5
22812 rm -f conftest.o conftest.s
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22816 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22819 if test $gcc_cv_as_eh_frame = buggy
; then
22821 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22826 $as_echo_n "checking assembler for section merging support... " >&6; }
22827 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22828 $as_echo_n "(cached) " >&6
22830 gcc_cv_as_shf_merge
=no
22831 if test $in_tree_gas = yes; then
22832 if test $in_tree_gas_is_elf = yes \
22833 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22834 then gcc_cv_as_shf_merge
=yes
22836 elif test x
$gcc_cv_as != x
; then
22837 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22838 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22840 (eval $ac_try) 2>&5
22842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22843 test $ac_status = 0; }; }
22845 gcc_cv_as_shf_merge
=yes
22847 echo "configure: failed program was" >&5
22850 rm -f conftest.o conftest.s
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22854 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22856 if test $gcc_cv_as_shf_merge = no
; then
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22858 $as_echo_n "checking assembler for section merging support... " >&6; }
22859 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22860 $as_echo_n "(cached) " >&6
22862 gcc_cv_as_shf_merge
=no
22863 if test $in_tree_gas = yes; then
22864 if test $in_tree_gas_is_elf = yes \
22865 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22866 then gcc_cv_as_shf_merge
=yes
22868 elif test x
$gcc_cv_as != x
; then
22869 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22872 (eval $ac_try) 2>&5
22874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22875 test $ac_status = 0; }; }
22877 gcc_cv_as_shf_merge
=yes
22879 echo "configure: failed program was" >&5
22882 rm -f conftest.o conftest.s
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22886 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22890 cat >>confdefs.h
<<_ACEOF
22891 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22896 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22897 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22898 $as_echo_n "(cached) " >&6
22900 gcc_cv_as_comdat_group
=no
22901 if test $in_tree_gas = yes; then
22902 if test $in_tree_gas_is_elf = yes \
22903 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22904 then gcc_cv_as_comdat_group
=yes
22906 elif test x
$gcc_cv_as != x
; then
22907 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22910 (eval $ac_try) 2>&5
22912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22913 test $ac_status = 0; }; }
22915 gcc_cv_as_comdat_group
=yes
22917 echo "configure: failed program was" >&5
22920 rm -f conftest.o conftest.s
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22924 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22926 if test $gcc_cv_as_comdat_group = yes; then
22927 gcc_cv_as_comdat_group_percent
=no
22928 gcc_cv_as_comdat_group_group
=no
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22931 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22932 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22933 $as_echo_n "(cached) " >&6
22935 gcc_cv_as_comdat_group_percent
=no
22936 if test $in_tree_gas = yes; then
22937 if test $in_tree_gas_is_elf = yes \
22938 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22939 then gcc_cv_as_comdat_group_percent
=yes
22941 elif test x
$gcc_cv_as != x
; then
22942 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22943 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22945 (eval $ac_try) 2>&5
22947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22948 test $ac_status = 0; }; }
22950 gcc_cv_as_comdat_group_percent
=yes
22952 echo "configure: failed program was" >&5
22955 rm -f conftest.o conftest.s
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22959 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22961 if test $gcc_cv_as_comdat_group_percent = yes; then
22962 gcc_cv_as_comdat_group_group
=no
22964 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22965 gcc_cv_as_comdat_group_group
=no
22967 case "${target}" in
22968 # Sun as uses a completely different syntax.
22970 case "${target}" in
22971 sparc
*-*-solaris2*)
22973 .group foo,".text%foo",#comdat
22974 .section ".text%foo", #alloc,#execinstr,#progbits
22979 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22981 .group foo,.text%foo,#comdat
22982 .section .text%foo, "ax", @progbits
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22989 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22990 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22993 gcc_cv_as_comdat_group_group
=no
22994 if test x
$gcc_cv_as != x
; then
22995 $as_echo "$conftest_s" > conftest.s
22996 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22998 (eval $ac_try) 2>&5
23000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23001 test $ac_status = 0; }; }
23003 gcc_cv_as_comdat_group_group
=yes
23005 echo "configure: failed program was" >&5
23008 rm -f conftest.o conftest.s
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23012 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23018 if test x
"$ld_is_gold" = xyes
; then
23020 elif test $in_tree_ld = yes ; then
23022 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 \
23023 && test $in_tree_ld_is_elf = yes; then
23026 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23028 if test 0"$ld_date" -lt 20050308; then
23029 if test -n "$ld_date"; then
23030 # If there was date string, but was earlier than 2005-03-08, fail
23032 elif test "$ld_vers_major" -lt 2; then
23034 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23039 case "${target}" in
23040 *-*-solaris2.1
[1-9]*)
23042 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23043 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23046 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23047 # least ld version 1.2267.
23048 if test "$ld_vers_major" -gt 1; then
23050 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23052 elif test "$ld_vers_minor" -ge 2267; then
23057 # Assume linkers other than GNU ld don't support COMDAT group.
23062 # Allow overriding the automatic COMDAT group tests above.
23063 # Check whether --enable-comdat was given.
23064 if test "${enable_comdat+set}" = set; then :
23065 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23068 if test $comdat_group = no
; then
23069 gcc_cv_as_comdat_group
=no
23070 gcc_cv_as_comdat_group_percent
=no
23071 gcc_cv_as_comdat_group_group
=no
23074 cat >>confdefs.h
<<_ACEOF
23075 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23076 || test $gcc_cv_as_comdat_group_percent = yes \
23077 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23082 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23083 if test "${gcc_cv_as_discriminator+set}" = set; then :
23084 $as_echo_n "(cached) " >&6
23086 gcc_cv_as_discriminator
=no
23087 if test $in_tree_gas = yes; then
23088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23089 then gcc_cv_as_discriminator
=yes
23091 elif test x
$gcc_cv_as != x
; then
23094 .loc 1 1 0 discriminator 1' > conftest.s
23095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23097 (eval $ac_try) 2>&5
23099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23100 test $ac_status = 0; }; }
23102 gcc_cv_as_discriminator
=yes
23104 echo "configure: failed program was" >&5
23107 rm -f conftest.o conftest.s
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23111 $as_echo "$gcc_cv_as_discriminator" >&6; }
23112 if test $gcc_cv_as_discriminator = yes; then
23114 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23118 # Thread-local storage - the check is heavily parameterized.
23126 .section ".tdata","awT",@progbits
23129 ldq $27,__tls_get_addr($29) !literal!1
23130 lda $16,foo($29) !tlsgd!1
23131 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23132 ldq $27,__tls_get_addr($29) !literal!2
23133 lda $16,foo($29) !tlsldm!2
23134 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23135 ldq $1,foo($29) !gotdtprel
23136 ldah $2,foo($29) !dtprelhi
23137 lda $3,foo($2) !dtprello
23138 lda $4,foo($29) !dtprel
23139 ldq $1,foo($29) !gottprel
23140 ldah $2,foo($29) !tprelhi
23141 lda $3,foo($2) !tprello
23142 lda $4,foo($29) !tprel'
23145 tls_as_opt
=--fatal-warnings
23147 cris-
*-*|crisv32-
*-*)
23149 .section ".tdata","awT",@progbits
23156 tls_as_opt
=--fatal-warnings
23160 .section ".tdata","awT",@progbits
23163 call #gettlsoff(x)'
23172 .section ".tdata","awT",@progbits
23176 addil LT%foo-$tls_gdidx$,gp
23177 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23180 addil LT%foo-$tls_ldidx$,gp
23182 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23183 addil LR%foo-$tls_dtpoff$,%ret0
23184 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23186 addil LT%foo-$tls_ieoff$,gp
23187 ldw RT%foo-$tls_ieoff$(%r1),%t2
23190 addil LR%foo-$tls_leoff$,%t1
23191 ldo RR%foo-$tls_leoff$(%r1),%t2'
23194 tls_as_opt
=--fatal-warnings
23198 .section ".tdata","awT",%progbits
23201 .word foo(gottpoff)
23209 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23211 i
[34567]86-*-solaris2.
*)
23213 tga_func
=___tls_get_addr
23215 x86_64-
*-solaris2.1
[0-9]*)
23217 tga_func
=__tls_get_addr
23223 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23225 .section .tdata,"awt",@progbits'
23229 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23233 .section ".tdata","awT",@progbits'
23236 tls_as_opt
="--fatal-warnings"
23238 conftest_s
="$conftest_s
23242 leal foo@tlsgd(,%ebx,1), %eax
23243 leal foo@tlsldm(%ebx), %eax
23244 leal foo@dtpoff(%eax), %edx
23245 movl foo@gottpoff(%ebx), %eax
23246 subl foo@gottpoff(%ebx), %eax
23247 addl foo@gotntpoff(%ebx), %eax
23248 movl foo@indntpoff, %eax
23249 movl \$foo@tpoff, %eax
23250 subl \$foo@tpoff, %eax
23251 leal foo@ntpoff(%ecx), %eax"
23255 .section ".tdata","awT",@progbits
23259 leaq foo@TLSGD(%rip), %rdi
23260 leaq foo@TLSLD(%rip), %rdi
23261 leaq foo@DTPOFF(%rax), %rdx
23262 movq foo@GOTTPOFF(%rip), %rax
23263 movq $foo@TPOFF, %rax'
23266 tls_as_opt
=--fatal-warnings
23270 .section ".tdata","awT",@progbits
23273 addl r16 = @ltoff(@dtpmod(foo#)), gp
23274 addl r17 = @ltoff(@dtprel(foo#)), gp
23275 addl r18 = @ltoff(@tprel(foo#)), gp
23276 addl r19 = @dtprel(foo#), gp
23277 adds r21 = @dtprel(foo#), r13
23278 movl r23 = @dtprel(foo#)
23279 addl r20 = @tprel(foo#), gp
23280 adds r22 = @tprel(foo#), r13
23281 movl r24 = @tprel(foo#)'
23284 tls_as_opt
=--fatal-warnings
23288 .section .tdata,"awT",@progbits
23292 addik r5,r20,x@TLSGD
23293 addik r5,r20,x@TLSLDM'
23296 tls_as_opt
='--fatal-warnings'
23300 .section .tdata,"awT",@progbits
23304 addiu $4, $28, %tlsgd(x)
23305 addiu $4, $28, %tlsldm(x)
23306 lui $4, %dtprel_hi(x)
23307 addiu $4, $4, %dtprel_lo(x)
23308 lw $4, %gottprel(x)($28)
23309 lui $4, %tprel_hi(x)
23310 addiu $4, $4, %tprel_lo(x)'
23313 tls_as_opt
='-32 --fatal-warnings'
23317 .section .tdata,"awT",@progbits
23322 move.l x@TLSGD(%a5),%a0
23323 move.l x@TLSLDM(%a5),%a0
23324 move.l x@TLSLDO(%a5),%a0
23325 move.l x@TLSIE(%a5),%a0
23326 move.l x@TLSLE(%a5),%a0'
23329 tls_as_opt
='--fatal-warnings'
23333 .section ".tdata","awT",%progbits
23337 add x0, x0, #:tlsgd_lo12:x
23342 tls_as_opt
='--fatal-warnings'
23346 .extern __get_tpointer
23364 .section ".tdata","awT",@progbits
23372 addi 3,2,ld0@got@tlsgd
23378 addi 3,2,x1@got@tlsld
23384 addis 9,3,x2@dtprel@ha
23385 addi 9,9,x2@dtprel@l
23388 ld 9,x3@got@dtprel(2)
23394 tls_as_opt
="-a64 --fatal-warnings"
23398 .section ".tdata","awT",@progbits
23406 addi 3,31,ld0@got@tlsgd
23408 addi 3,31,x1@got@tlsld
23411 addis 9,3,x2@dtprel@ha
23412 addi 9,9,x2@dtprel@l
23413 lwz 9,x3@got@tprel(31)
23416 addis 9,2,x2@tprel@ha
23417 addi 9,9,x2@tprel@l'
23420 tls_as_opt
="-a32 --fatal-warnings"
23424 .section ".tdata","awT",@progbits
23431 .long foo@GOTNTPOFF
23432 .long foo@INDNTPOFF
23433 l %r1,foo@GOTNTPOFF(%r12)
23434 l %r1,0(%r1):tls_load:foo
23435 bas %r14,0(%r1,%r13):tls_gdcall:foo
23436 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23439 tls_as_opt
="-m31 --fatal-warnings"
23443 .section ".tdata","awT",@progbits
23450 .quad foo@GOTNTPOFF
23451 lg %r1,foo@GOTNTPOFF(%r12)
23452 larl %r1,foo@INDNTPOFF
23453 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23454 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23457 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23459 sh-
*-* | sh
[34]-*-*)
23461 .section ".tdata","awT",@progbits
23471 tls_as_opt
=--fatal-warnings
23475 sparc
*-sun-solaris2.
*)
23477 tga_func
=__tls_get_addr
23483 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23485 .section ".tdata",#alloc,#write,#tls'
23490 .section ".tdata","awT",@progbits'
23493 tls_as_opt
="-32 --fatal-warnings"
23495 conftest_s
="$conftest_s
23498 sethi %tgd_hi22(foo), %o0
23499 add %o0, %tgd_lo10(foo), %o1
23500 add %l7, %o1, %o0, %tgd_add(foo)
23501 call __tls_get_addr, %tgd_call(foo)
23502 sethi %tldm_hi22(foo), %l1
23503 add %l1, %tldm_lo10(foo), %l2
23504 add %l7, %l2, %o0, %tldm_add(foo)
23505 call __tls_get_addr, %tldm_call(foo)
23506 sethi %tldo_hix22(foo), %l3
23507 xor %l3, %tldo_lox10(foo), %l4
23508 add %o0, %l4, %l5, %tldo_add(foo)
23509 sethi %tie_hi22(foo), %o3
23510 add %o3, %tie_lo10(foo), %o3
23511 ld [%l7 + %o3], %o2, %tie_ld(foo)
23512 add %g7, %o2, %o4, %tie_add(foo)
23513 sethi %tle_hix22(foo), %l1
23514 xor %l1, %tle_lox10(foo), %o5
23515 ld [%g7 + %o5], %o1"
23519 .section ".tdata","awT",@progbits
23522 addli r0, zero, tls_gd(foo)
23523 auli r0, zero, tls_gd_ha16(foo)
23524 addli r0, r0, tls_gd_lo16(foo)
23526 addli r0, zero, tls_ie(foo)
23527 auli r0, r0, tls_ie_ha16(foo)
23528 addli r0, r0, tls_ie_lo16(foo)'
23531 tls_as_opt
="--fatal-warnings"
23535 .section ".tdata","awT",@progbits
23538 shl16insli r0, zero, hw0_last_tls_gd(foo)
23539 shl16insli r0, zero, hw1_last_tls_gd(foo)
23540 shl16insli r0, r0, hw0_tls_gd(foo)
23542 shl16insli r0, zero, hw1_last_tls_ie(foo)
23543 shl16insli r0, r0, hw0_tls_ie(foo)'
23546 tls_as_opt
="--fatal-warnings"
23550 .section ".tdata","awT",@progbits
23553 movi a8, foo@TLSFUNC
23554 movi a10, foo@TLSARG
23555 callx8.tls a8, foo@TLSCALL'
23561 if test "x$enable_tls" = xno
; then
23562 : # TLS explicitly disabled.
23563 elif test "x$enable_tls" = xyes
; then
23564 set_have_as_tls
=yes # TLS explicitly enabled.
23565 elif test -z "$tls_first_major"; then
23566 : # If we don't have a check, assume no support.
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23569 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23570 if test "${gcc_cv_as_tls+set}" = set; then :
23571 $as_echo_n "(cached) " >&6
23574 if test $in_tree_gas = yes; then
23575 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23576 then gcc_cv_as_tls
=yes
23578 elif test x
$gcc_cv_as != x
; then
23579 $as_echo "$conftest_s" > conftest.s
23580 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23582 (eval $ac_try) 2>&5
23584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23585 test $ac_status = 0; }; }
23589 echo "configure: failed program was" >&5
23592 rm -f conftest.o conftest.s
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23596 $as_echo "$gcc_cv_as_tls" >&6; }
23597 if test $gcc_cv_as_tls = yes; then
23598 set_have_as_tls
=yes
23602 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23603 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23604 # Sun style that Sun ld and GCC don't support any longer.
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23607 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23609 # Check ld and ld.so.1 TLS support.
23610 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23611 # Assume all interesting versions of GNU ld have TLS support.
23612 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23616 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23618 min_tls_ld_vers_minor
=374
23620 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23621 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23622 min_tls_ld_vers_minor
=343
23625 if test "$ld_vers_major" -gt 1 || \
23626 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23633 $as_echo "$ld_tls_support" >&6; }
23636 save_LDFLAGS
="$LDFLAGS"
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23641 $as_echo_n "checking library containing $tga_func... " >&6; }
23642 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23643 # (32-bit x86) only lived in libthread, so check for that. Keep
23644 # set_have_as_tls if found, disable if not.
23645 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23647 $as_echo_n "checking for library containing $tga_func... " >&6; }
23648 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23649 $as_echo_n "(cached) " >&6
23651 ac_func_search_save_LIBS
=$LIBS
23652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23653 /* end confdefs.h. */
23655 /* Override any GCC internal prototype to avoid an error.
23656 Use char because int might match the return type of a GCC
23657 builtin and then its argument prototype would still apply. */
23665 return $tga_func ();
23670 for ac_lib
in '' thread
; do
23671 if test -z "$ac_lib"; then
23672 ac_res
="none required"
23675 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23677 if ac_fn_c_try_link
"$LINENO"; then :
23678 eval "$as_ac_Search=\$ac_res"
23680 rm -f core conftest.err conftest.
$ac_objext \
23682 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23686 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23689 eval "$as_ac_Search=no"
23691 rm conftest.
$ac_ext
23692 LIBS
=$ac_func_search_save_LIBS
23694 eval ac_res
=\$
$as_ac_Search
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23696 $as_echo "$ac_res" >&6; }
23697 eval ac_res
=\$
$as_ac_Search
23698 if test "$ac_res" != no
; then :
23699 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23705 # Clear LIBS if we cannot support TLS.
23706 if test $set_have_as_tls = no
; then
23709 # Always define LIB_TLS_SPEC, even without TLS support.
23711 cat >>confdefs.h
<<_ACEOF
23712 #define LIB_TLS_SPEC "$LIBS"
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23716 $as_echo "$LIBS" >&6; }
23719 LDFLAGS
="$save_LDFLAGS"
23722 if test $set_have_as_tls = yes ; then
23724 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23728 # Target-specific assembler checks.
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23731 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23732 gcc_cv_ld_static_dynamic
=no
23733 gcc_cv_ld_static_option
='-Bstatic'
23734 gcc_cv_ld_dynamic_option
='-Bdynamic'
23735 if test $in_tree_ld = yes ; then
23736 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
23737 gcc_cv_ld_static_dynamic
=yes
23739 elif test x
$gcc_cv_ld != x
; then
23740 # Check if linker supports -Bstatic/-Bdynamic option
23741 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23742 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23743 gcc_cv_ld_static_dynamic
=yes
23746 # AIX ld uses -b flags
23747 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23748 gcc_cv_ld_static_dynamic
=yes
23749 gcc_cv_ld_static_option
="-bstatic"
23750 gcc_cv_ld_dynamic_option
="-bdynamic"
23752 # HP-UX ld uses -a flags to select between shared and archive.
23754 if test x
"$gnu_ld" = xno
; then
23755 gcc_cv_ld_static_dynamic
=yes
23756 gcc_cv_ld_static_option
="-aarchive_shared"
23757 gcc_cv_ld_dynamic_option
="-adefault"
23760 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23762 gcc_cv_ld_static_dynamic
=yes
23767 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23769 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23772 cat >>confdefs.h
<<_ACEOF
23773 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23777 cat >>confdefs.h
<<_ACEOF
23778 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23783 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23785 if test x
"$demangler_in_ld" = xyes
; then
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23787 $as_echo_n "checking linker --demangle support... " >&6; }
23788 gcc_cv_ld_demangle
=no
23789 if test $in_tree_ld = yes; then
23790 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 \
23791 gcc_cv_ld_demangle
=yes
23793 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23794 # Check if the GNU linker supports --demangle option
23795 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23796 gcc_cv_ld_demangle
=yes
23799 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23801 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23805 $as_echo "$gcc_cv_ld_demangle" >&6; }
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23809 $as_echo_n "checking linker plugin support... " >&6; }
23810 gcc_cv_lto_plugin
=0
23811 if test -f liblto_plugin.la
; then
23812 save_ld_ver
="$ld_ver"
23813 save_ld_vers_major
="$ld_vers_major"
23814 save_ld_vers_minor
="$ld_vers_minor"
23815 save_ld_is_gold
="$ld_is_gold"
23819 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23821 # FIXME: ld_is_gold?
23822 ld_vers_major
="$gcc_cv_gld_major_version"
23823 ld_vers_minor
="$gcc_cv_gld_minor_version"
23825 # Determine plugin linker version.
23826 # FIXME: Partial duplicate from above, generalize.
23827 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23828 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23829 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23831 ld_vers
=`echo $ld_ver | sed -n \
23832 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23834 ld_vers
=`echo $ld_ver | sed -n \
23835 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23837 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23838 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23842 # Determine plugin support.
23843 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23844 # Require GNU ld or gold 2.21+ for plugin support by default.
23845 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23846 gcc_cv_lto_plugin
=2
23847 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23848 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23849 gcc_cv_lto_plugin
=1
23853 ld_ver
="$save_ld_ver"
23854 ld_vers_major
="$save_ld_vers_major"
23855 ld_vers_minor
="$save_ld_vers_minor"
23856 ld_is_gold
="$save_ld_is_gold"
23859 cat >>confdefs.h
<<_ACEOF
23860 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23864 $as_echo "$gcc_cv_lto_plugin" >&6; }
23867 # All TARGET_ABI_OSF targets.
23868 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23870 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23871 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23872 $as_echo_n "(cached) " >&6
23874 gcc_cv_as_alpha_explicit_relocs
=no
23875 if test $in_tree_gas = yes; then
23876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23877 then gcc_cv_as_alpha_explicit_relocs
=yes
23879 elif test x
$gcc_cv_as != x
; then
23880 $as_echo ' .set nomacro
23882 extbl $3, $2, $3 !lituse_bytoff!1
23883 ldq $2, a($29) !literal!1
23884 ldq $4, b($29) !literal!2
23885 ldq_u $3, 0($2) !lituse_base!1
23886 ldq $27, f($29) !literal!5
23887 jsr $26, ($27), f !lituse_jsr!5
23888 ldah $29, 0($26) !gpdisp!3
23889 lda $0, c($29) !gprel
23890 ldah $1, d($29) !gprelhigh
23891 lda $1, d($1) !gprellow
23892 lda $29, 0($29) !gpdisp!3' > conftest.s
23893 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23895 (eval $ac_try) 2>&5
23897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23898 test $ac_status = 0; }; }
23900 gcc_cv_as_alpha_explicit_relocs
=yes
23902 echo "configure: failed program was" >&5
23905 rm -f conftest.o conftest.s
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23909 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23910 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23912 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23916 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23917 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23918 $as_echo_n "(cached) " >&6
23920 gcc_cv_as_alpha_jsrdirect_relocs
=no
23921 if test $in_tree_gas = yes; then
23922 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23923 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23925 elif test x
$gcc_cv_as != x
; then
23926 $as_echo ' .set nomacro
23928 ldq $27, a($29) !literal!1
23929 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23930 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23932 (eval $ac_try) 2>&5
23934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23935 test $ac_status = 0; }; }
23937 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23939 echo "configure: failed program was" >&5
23942 rm -f conftest.o conftest.s
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23946 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23947 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23949 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23956 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23957 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23958 $as_echo_n "(cached) " >&6
23960 gcc_cv_as_cris_no_mul_bug
=no
23961 if test $in_tree_gas = yes; then
23962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23963 then gcc_cv_as_cris_no_mul_bug
=yes
23965 elif test x
$gcc_cv_as != x
; then
23966 $as_echo '.text' > conftest.s
23967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23969 (eval $ac_try) 2>&5
23971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23972 test $ac_status = 0; }; }
23974 gcc_cv_as_cris_no_mul_bug
=yes
23976 echo "configure: failed program was" >&5
23979 rm -f conftest.o conftest.s
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23983 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23984 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23986 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23993 $as_echo_n "checking assembler for .register... " >&6; }
23994 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23995 $as_echo_n "(cached) " >&6
23997 gcc_cv_as_sparc_register_op
=no
23998 if test x
$gcc_cv_as != x
; then
23999 $as_echo '.register %g2, #scratch' > conftest.s
24000 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24002 (eval $ac_try) 2>&5
24004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24005 test $ac_status = 0; }; }
24007 gcc_cv_as_sparc_register_op
=yes
24009 echo "configure: failed program was" >&5
24012 rm -f conftest.o conftest.s
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24016 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24017 if test $gcc_cv_as_sparc_register_op = yes; then
24019 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24024 $as_echo_n "checking assembler for #nobits... " >&6; }
24025 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24026 $as_echo_n "(cached) " >&6
24028 gcc_cv_as_sparc_nobits
=no
24029 if test x
$gcc_cv_as != x
; then
24030 $as_echo '.section "nobits",#alloc,#write,#nobits
24031 .section "progbits",#alloc,#write,#progbits' > conftest.s
24032 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24034 (eval $ac_try) 2>&5
24036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24037 test $ac_status = 0; }; }
24039 gcc_cv_as_sparc_nobits
=yes
24041 echo "configure: failed program was" >&5
24044 rm -f conftest.o conftest.s
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24048 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24051 cat >>confdefs.h
<<_ACEOF
24052 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24057 $as_echo_n "checking assembler for -relax option... " >&6; }
24058 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24059 $as_echo_n "(cached) " >&6
24061 gcc_cv_as_sparc_relax
=no
24062 if test x
$gcc_cv_as != x
; then
24063 $as_echo '.text' > conftest.s
24064 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24066 (eval $ac_try) 2>&5
24068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24069 test $ac_status = 0; }; }
24071 gcc_cv_as_sparc_relax
=yes
24073 echo "configure: failed program was" >&5
24076 rm -f conftest.o conftest.s
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24080 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24081 if test $gcc_cv_as_sparc_relax = yes; then
24083 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24088 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24089 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24090 $as_echo_n "(cached) " >&6
24092 gcc_cv_as_sparc_gotdata_op
=no
24093 if test x
$gcc_cv_as != x
; then
24099 sethi %gdop_hix22(foo), %g1
24100 xor %g1, %gdop_lox10(foo), %g1
24101 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24102 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24104 (eval $ac_try) 2>&5
24106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24107 test $ac_status = 0; }; }
24109 if test x
$gcc_cv_ld != x \
24110 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24111 if test x
$gcc_cv_objdump != x
; then
24112 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24113 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24114 gcc_cv_as_sparc_gotdata_op
=no
24116 gcc_cv_as_sparc_gotdata_op
=yes
24122 echo "configure: failed program was" >&5
24125 rm -f conftest.o conftest.s
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24129 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24130 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24132 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24137 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24138 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24139 $as_echo_n "(cached) " >&6
24141 gcc_cv_as_sparc_ua_pcrel
=no
24142 if test x
$gcc_cv_as != x
; then
24149 .uaword %r_disp32(foo)' > conftest.s
24150 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24152 (eval $ac_try) 2>&5
24154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24155 test $ac_status = 0; }; }
24157 if test x
$gcc_cv_ld != x \
24158 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24159 gcc_cv_as_sparc_ua_pcrel
=yes
24163 echo "configure: failed program was" >&5
24166 rm -f conftest.o conftest.s
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24170 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24171 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24173 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24177 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24178 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24179 $as_echo_n "(cached) " >&6
24181 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24182 if test x
$gcc_cv_as != x
; then
24186 .uaword %r_disp32(foo)
24187 .byte 0x32, 0x33, 0x34
24191 .skip 4' > conftest.s
24192 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24194 (eval $ac_try) 2>&5
24196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24197 test $ac_status = 0; }; }
24199 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24200 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24201 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24202 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24203 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24204 |
grep 'DISP32' > /dev
/null
2>&1; then
24207 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24212 echo "configure: failed program was" >&5
24215 rm -f conftest.o conftest.s
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24219 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24220 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24222 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24226 fi # unaligned pcrel relocs
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24229 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24230 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24231 $as_echo_n "(cached) " >&6
24233 gcc_cv_as_sparc_offsetable_lo10
=no
24234 if test x
$gcc_cv_as != x
; then
24236 or %g1, %lo(ab) + 12, %g1
24237 or %g1, %lo(ab + 12), %g1' > conftest.s
24238 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24240 (eval $ac_try) 2>&5
24242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24243 test $ac_status = 0; }; }
24245 if test x
$gcc_cv_objdump != x \
24246 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24247 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24248 gcc_cv_as_sparc_offsetable_lo10
=yes
24251 echo "configure: failed program was" >&5
24254 rm -f conftest.o conftest.s
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24258 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24259 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24261 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24266 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24267 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24268 $as_echo_n "(cached) " >&6
24270 gcc_cv_as_sparc_fmaf
=no
24271 if test x
$gcc_cv_as != x
; then
24273 .register %g2, #scratch
24274 .register %g3, #scratch
24276 fmaddd %f0, %f2, %f4, %f6
24277 addxccc %g1, %g2, %g3
24278 fsrl32 %f2, %f4, %f8
24279 fnaddd %f10, %f12, %f14' > conftest.s
24280 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24282 (eval $ac_try) 2>&5
24284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24285 test $ac_status = 0; }; }
24287 gcc_cv_as_sparc_fmaf
=yes
24289 echo "configure: failed program was" >&5
24292 rm -f conftest.o conftest.s
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24296 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24297 if test $gcc_cv_as_sparc_fmaf = yes; then
24299 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24304 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24305 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24306 $as_echo_n "(cached) " >&6
24308 gcc_cv_as_sparc_sparc4
=no
24309 if test x
$gcc_cv_as != x
; then
24311 .register %g2, #scratch
24312 .register %g3, #scratch
24315 1: cwbneg %g2, %g3, 1f
24318 aes_kexpand0 %f4, %f6, %f8
24319 des_round %f38, %f40, %f42, %f44
24320 camellia_f %f54, %f56, %f58, %f60
24321 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24322 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24324 (eval $ac_try) 2>&5
24326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24327 test $ac_status = 0; }; }
24329 gcc_cv_as_sparc_sparc4
=yes
24331 echo "configure: failed program was" >&5
24334 rm -f conftest.o conftest.s
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24338 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24339 if test $gcc_cv_as_sparc_sparc4 = yes; then
24341 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24346 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24347 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24348 $as_echo_n "(cached) " >&6
24350 gcc_cv_as_sparc_leon
=no
24351 if test x
$gcc_cv_as != x
; then
24353 .register %g2, #scratch
24354 .register %g3, #scratch
24358 cas [%g2], %g3, %g1' > conftest.s
24359 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24361 (eval $ac_try) 2>&5
24363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24364 test $ac_status = 0; }; }
24366 gcc_cv_as_sparc_leon
=yes
24368 echo "configure: failed program was" >&5
24371 rm -f conftest.o conftest.s
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24375 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24376 if test $gcc_cv_as_sparc_leon = yes; then
24378 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24383 i
[34567]86-*-* | x86_64-
*-*)
24386 # Full C++ conformance when using a shared libstdc++-v3 requires some
24387 # support from the Cygwin DLL, which in more recent versions exports
24388 # wrappers to aid in interposing and redirecting operators new, delete,
24389 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24390 # are configuring for a version of Cygwin that exports the wrappers.
24391 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24392 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24393 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24394 gcc_ac_cygwin_dll_wrappers
=yes
24396 gcc_ac_cygwin_dll_wrappers
=no
24400 # Can't check presence of libc functions during cross-compile, so
24401 # we just have to assume we're building for an up-to-date target.
24402 gcc_ac_cygwin_dll_wrappers
=yes
24405 cat >>confdefs.h
<<_ACEOF
24406 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24411 cygwin
* | pe | mingw32
* | interix
*)
24412 # Recent binutils allows the three-operand form of ".comm" on PE. This
24413 # definition is used unconditionally to initialise the default state of
24414 # the target option variable that governs usage of the feature.
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24416 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24417 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24418 $as_echo_n "(cached) " >&6
24420 gcc_cv_as_comm_has_align
=no
24421 if test $in_tree_gas = yes; then
24422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24423 then gcc_cv_as_comm_has_align
=yes
24425 elif test x
$gcc_cv_as != x
; then
24426 $as_echo '.comm foo,1,32' > conftest.s
24427 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24429 (eval $ac_try) 2>&5
24431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24432 test $ac_status = 0; }; }
24434 gcc_cv_as_comm_has_align
=yes
24436 echo "configure: failed program was" >&5
24439 rm -f conftest.o conftest.s
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24443 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24446 cat >>confdefs.h
<<_ACEOF
24447 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24450 # Used for DWARF 2 in PE
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24452 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24453 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24454 $as_echo_n "(cached) " >&6
24456 gcc_cv_as_ix86_pe_secrel32
=no
24457 if test $in_tree_gas = yes; then
24458 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24459 then gcc_cv_as_ix86_pe_secrel32
=yes
24461 elif test x
$gcc_cv_as != x
; then
24465 .secrel32 foo' > conftest.s
24466 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24468 (eval $ac_try) 2>&5
24470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24471 test $ac_status = 0; }; }
24473 if test x
$gcc_cv_ld != x \
24474 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24475 gcc_cv_as_ix86_pe_secrel32
=yes
24479 echo "configure: failed program was" >&5
24482 rm -f conftest.o conftest.s
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24486 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24487 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24489 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24492 # Test if the assembler supports the extended form of the .section
24493 # directive that specifies section alignment. LTO support uses this,
24494 # but normally only after installation, so we warn but don't fail the
24495 # configure if LTO is enabled but the assembler does not support it.
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24497 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24498 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24499 $as_echo_n "(cached) " >&6
24501 gcc_cv_as_section_has_align
=no
24502 if test $in_tree_gas = yes; then
24503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24504 then gcc_cv_as_section_has_align
=yes
24506 elif test x
$gcc_cv_as != x
; then
24507 $as_echo '.section lto_test,"dr0"' > conftest.s
24508 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510 (eval $ac_try) 2>&5
24512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513 test $ac_status = 0; }; }
24515 gcc_cv_as_section_has_align
=yes
24517 echo "configure: failed program was" >&5
24520 rm -f conftest.o conftest.s
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24524 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24526 if test x
$gcc_cv_as_section_has_align != xyes
; then
24527 case ",$enable_languages," in
24529 { $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
24530 $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;}
24534 # Test if the assembler supports the section flag 'e' for specifying
24535 # an excluded section.
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24537 $as_echo_n "checking assembler for .section with e... " >&6; }
24538 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24539 $as_echo_n "(cached) " >&6
24541 gcc_cv_as_section_has_e
=no
24542 if test $in_tree_gas = yes; then
24543 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24544 then gcc_cv_as_section_has_e
=yes
24546 elif test x
$gcc_cv_as != x
; then
24547 $as_echo '.section foo1,"e"
24548 .byte 0,0,0,0' > conftest.s
24549 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24551 (eval $ac_try) 2>&5
24553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24554 test $ac_status = 0; }; }
24556 gcc_cv_as_section_has_e
=yes
24558 echo "configure: failed program was" >&5
24561 rm -f conftest.o conftest.s
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24565 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24568 cat >>confdefs.h
<<_ACEOF
24569 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24576 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24577 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24578 $as_echo_n "(cached) " >&6
24580 gcc_cv_as_ix86_filds
=no
24581 if test x
$gcc_cv_as != x
; then
24582 $as_echo 'filds mem; fists mem' > conftest.s
24583 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24585 (eval $ac_try) 2>&5
24587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24588 test $ac_status = 0; }; }
24590 gcc_cv_as_ix86_filds
=yes
24592 echo "configure: failed program was" >&5
24595 rm -f conftest.o conftest.s
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24599 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24600 if test $gcc_cv_as_ix86_filds = yes; then
24602 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24607 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24608 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24609 $as_echo_n "(cached) " >&6
24611 gcc_cv_as_ix86_fildq
=no
24612 if test x
$gcc_cv_as != x
; then
24613 $as_echo 'fildq mem; fistpq mem' > conftest.s
24614 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24616 (eval $ac_try) 2>&5
24618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24619 test $ac_status = 0; }; }
24621 gcc_cv_as_ix86_fildq
=yes
24623 echo "configure: failed program was" >&5
24626 rm -f conftest.o conftest.s
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24630 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24631 if test $gcc_cv_as_ix86_fildq = yes; then
24633 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24638 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24639 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24640 $as_echo_n "(cached) " >&6
24642 gcc_cv_as_ix86_cmov_sun_syntax
=no
24643 if test x
$gcc_cv_as != x
; then
24644 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24645 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24647 (eval $ac_try) 2>&5
24649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650 test $ac_status = 0; }; }
24652 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24654 echo "configure: failed program was" >&5
24657 rm -f conftest.o conftest.s
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24661 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24662 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24664 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24669 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24670 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24671 $as_echo_n "(cached) " >&6
24673 gcc_cv_as_ix86_ffreep
=no
24674 if test x
$gcc_cv_as != x
; then
24675 $as_echo 'ffreep %st(1)' > conftest.s
24676 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24678 (eval $ac_try) 2>&5
24680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24681 test $ac_status = 0; }; }
24683 gcc_cv_as_ix86_ffreep
=yes
24685 echo "configure: failed program was" >&5
24688 rm -f conftest.o conftest.s
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24692 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24693 if test $gcc_cv_as_ix86_ffreep = yes; then
24695 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24700 $as_echo_n "checking assembler for .quad directive... " >&6; }
24701 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24702 $as_echo_n "(cached) " >&6
24704 gcc_cv_as_ix86_quad
=no
24705 if test x
$gcc_cv_as != x
; then
24706 $as_echo '.quad 0' > conftest.s
24707 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24709 (eval $ac_try) 2>&5
24711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24712 test $ac_status = 0; }; }
24714 gcc_cv_as_ix86_quad
=yes
24716 echo "configure: failed program was" >&5
24719 rm -f conftest.o conftest.s
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24723 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24724 if test $gcc_cv_as_ix86_quad = yes; then
24726 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24731 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24732 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24733 $as_echo_n "(cached) " >&6
24735 gcc_cv_as_ix86_sahf
=no
24736 if test x
$gcc_cv_as != x
; then
24739 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24741 (eval $ac_try) 2>&5
24743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24744 test $ac_status = 0; }; }
24746 gcc_cv_as_ix86_sahf
=yes
24748 echo "configure: failed program was" >&5
24751 rm -f conftest.o conftest.s
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24755 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24756 if test $gcc_cv_as_ix86_sahf = yes; then
24758 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24763 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24764 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24765 $as_echo_n "(cached) " >&6
24767 gcc_cv_as_ix86_interunit_movq
=no
24768 if test x
$gcc_cv_as != x
; then
24771 movq %rax, %xmm0' > conftest.s
24772 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24774 (eval $ac_try) 2>&5
24776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24777 test $ac_status = 0; }; }
24779 gcc_cv_as_ix86_interunit_movq
=yes
24781 echo "configure: failed program was" >&5
24784 rm -f conftest.o conftest.s
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24788 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24789 if test $gcc_cv_as_ix86_interunit_movq = yes; then
24791 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24796 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24797 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24798 $as_echo_n "(cached) " >&6
24800 gcc_cv_as_ix86_hle
=no
24801 if test x
$gcc_cv_as != x
; then
24802 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24803 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24805 (eval $ac_try) 2>&5
24807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808 test $ac_status = 0; }; }
24810 gcc_cv_as_ix86_hle
=yes
24812 echo "configure: failed program was" >&5
24815 rm -f conftest.o conftest.s
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24819 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24820 if test $gcc_cv_as_ix86_hle = yes; then
24822 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24827 $as_echo_n "checking assembler for swap suffix... " >&6; }
24828 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24829 $as_echo_n "(cached) " >&6
24831 gcc_cv_as_ix86_swap
=no
24832 if test x
$gcc_cv_as != x
; then
24833 $as_echo 'movl.s %esp, %ebp' > conftest.s
24834 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24836 (eval $ac_try) 2>&5
24838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24839 test $ac_status = 0; }; }
24841 gcc_cv_as_ix86_swap
=yes
24843 echo "configure: failed program was" >&5
24846 rm -f conftest.o conftest.s
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24850 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24851 if test $gcc_cv_as_ix86_swap = yes; then
24853 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24858 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24859 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24860 $as_echo_n "(cached) " >&6
24862 gcc_cv_as_ix86_diff_sect_delta
=no
24863 if test x
$gcc_cv_as != x
; then
24864 $as_echo '.section .rodata
24870 .L2: nop' > conftest.s
24871 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24873 (eval $ac_try) 2>&5
24875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24876 test $ac_status = 0; }; }
24878 gcc_cv_as_ix86_diff_sect_delta
=yes
24880 echo "configure: failed program was" >&5
24883 rm -f conftest.o conftest.s
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24887 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24888 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24890 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24894 # These two are used unconditionally by i386.[ch]; it is to be defined
24895 # to 1 if the feature is present, 0 otherwise.
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24897 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24898 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24899 $as_echo_n "(cached) " >&6
24901 gcc_cv_as_ix86_gotoff_in_data
=no
24902 if test $in_tree_gas = yes; then
24903 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24904 then gcc_cv_as_ix86_gotoff_in_data
=yes
24906 elif test x
$gcc_cv_as != x
; then
24911 .long .L0@GOTOFF' > conftest.s
24912 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24914 (eval $ac_try) 2>&5
24916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24917 test $ac_status = 0; }; }
24919 gcc_cv_as_ix86_gotoff_in_data
=yes
24921 echo "configure: failed program was" >&5
24924 rm -f conftest.o conftest.s
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24928 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24931 cat >>confdefs.h
<<_ACEOF
24932 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24937 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24938 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24939 $as_echo_n "(cached) " >&6
24941 gcc_cv_as_ix86_rep_lock_prefix
=no
24942 if test x
$gcc_cv_as != x
; then
24943 $as_echo 'rep movsl
24948 lock addl %edi, (%eax,%esi)
24949 lock orl $0, (%esp)' > conftest.s
24950 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24952 (eval $ac_try) 2>&5
24954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24955 test $ac_status = 0; }; }
24957 gcc_cv_as_ix86_rep_lock_prefix
=yes
24959 echo "configure: failed program was" >&5
24962 rm -f conftest.o conftest.s
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24966 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24967 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24969 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24974 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24975 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24978 gcc_cv_as_ix86_tlsgdplt
=no
24979 if test x
$gcc_cv_as != x
; then
24980 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24981 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24983 (eval $ac_try) 2>&5
24985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24986 test $ac_status = 0; }; }
24988 if test x
$gcc_cv_ld != x \
24989 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24990 gcc_cv_as_ix86_tlsgdplt
=yes
24994 echo "configure: failed program was" >&5
24997 rm -f conftest.o conftest.s
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25001 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25002 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25004 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25009 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25010 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25011 $as_echo_n "(cached) " >&6
25013 gcc_cv_as_ix86_tlsldmplt
=no
25014 if test x
$gcc_cv_as != x
; then
25016 call tls_ld@tlsldmplt' > conftest.s
25017 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25019 (eval $ac_try) 2>&5
25021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25022 test $ac_status = 0; }; }
25024 if test x
$gcc_cv_ld != x \
25025 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25026 gcc_cv_as_ix86_tlsldmplt
=yes
25030 echo "configure: failed program was" >&5
25033 rm -f conftest.o conftest.s
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25037 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25038 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25040 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25048 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25049 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25050 $as_echo_n "(cached) " >&6
25052 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25053 if test $in_tree_gas = yes; then
25054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25055 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25057 elif test x
$gcc_cv_as != x
; then
25059 addl r15 = @ltoffx(x#), gp
25061 ld8.mov r16 = [r15], x#' > conftest.s
25062 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25064 (eval $ac_try) 2>&5
25066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25067 test $ac_status = 0; }; }
25069 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25071 echo "configure: failed program was" >&5
25074 rm -f conftest.o conftest.s
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25078 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25079 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25081 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25089 *-*-aix*) conftest_s
=' .machine "pwr5"
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25094 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25095 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25096 $as_echo_n "(cached) " >&6
25098 gcc_cv_as_machine_directive
=no
25099 if test x
$gcc_cv_as != x
; then
25100 $as_echo ' .machine ppc7400' > conftest.s
25101 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25103 (eval $ac_try) 2>&5
25105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106 test $ac_status = 0; }; }
25108 gcc_cv_as_machine_directive
=yes
25110 echo "configure: failed program was" >&5
25113 rm -f conftest.o conftest.s
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25117 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25119 if test x
$gcc_cv_as_machine_directive != xyes
; then
25120 echo "*** This target requires an assembler supporting \".machine\"" >&2
25121 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25122 test x
$build = x
$target && exit 1
25126 *) conftest_s
=' .machine power4
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25132 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25133 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25134 $as_echo_n "(cached) " >&6
25136 gcc_cv_as_powerpc_mfcrf
=no
25137 if test $in_tree_gas = yes; then
25138 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25139 then gcc_cv_as_powerpc_mfcrf
=yes
25141 elif test x
$gcc_cv_as != x
; then
25142 $as_echo "$conftest_s" > conftest.s
25143 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25145 (eval $ac_try) 2>&5
25147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25148 test $ac_status = 0; }; }
25150 gcc_cv_as_powerpc_mfcrf
=yes
25152 echo "configure: failed program was" >&5
25155 rm -f conftest.o conftest.s
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25159 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25160 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25162 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25167 *-*-aix*) conftest_s
=' .machine "pwr5"
25170 *) conftest_s
=' .machine power5
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25176 $as_echo_n "checking assembler for popcntb support... " >&6; }
25177 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25178 $as_echo_n "(cached) " >&6
25180 gcc_cv_as_powerpc_popcntb
=no
25181 if test $in_tree_gas = yes; then
25182 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25183 then gcc_cv_as_powerpc_popcntb
=yes
25185 elif test x
$gcc_cv_as != x
; then
25186 $as_echo "$conftest_s" > conftest.s
25187 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25189 (eval $ac_try) 2>&5
25191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25192 test $ac_status = 0; }; }
25194 gcc_cv_as_powerpc_popcntb
=yes
25196 echo "configure: failed program was" >&5
25199 rm -f conftest.o conftest.s
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25203 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25204 if test $gcc_cv_as_powerpc_popcntb = yes; then
25206 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25211 *-*-aix*) conftest_s
=' .machine "pwr5x"
25214 *) conftest_s
=' .machine power5
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25220 $as_echo_n "checking assembler for fp round support... " >&6; }
25221 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25222 $as_echo_n "(cached) " >&6
25224 gcc_cv_as_powerpc_fprnd
=no
25225 if test $in_tree_gas = yes; then
25226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25227 then gcc_cv_as_powerpc_fprnd
=yes
25229 elif test x
$gcc_cv_as != x
; then
25230 $as_echo "$conftest_s" > conftest.s
25231 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25233 (eval $ac_try) 2>&5
25235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25236 test $ac_status = 0; }; }
25238 gcc_cv_as_powerpc_fprnd
=yes
25240 echo "configure: failed program was" >&5
25243 rm -f conftest.o conftest.s
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25247 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25248 if test $gcc_cv_as_powerpc_fprnd = yes; then
25250 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25255 *-*-aix*) conftest_s
=' .machine "pwr6"
25258 *) conftest_s
=' .machine power6
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25264 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25265 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25266 $as_echo_n "(cached) " >&6
25268 gcc_cv_as_powerpc_mfpgpr
=no
25269 if test $in_tree_gas = yes; then
25270 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25271 then gcc_cv_as_powerpc_mfpgpr
=yes
25273 elif test x
$gcc_cv_as != x
; then
25274 $as_echo "$conftest_s" > conftest.s
25275 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25277 (eval $ac_try) 2>&5
25279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25280 test $ac_status = 0; }; }
25282 gcc_cv_as_powerpc_mfpgpr
=yes
25284 echo "configure: failed program was" >&5
25287 rm -f conftest.o conftest.s
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25291 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25292 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25294 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25299 *-*-aix*) conftest_s
=' .csect .text[PR]
25301 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25305 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25306 *) conftest_s
=' .text
25308 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25312 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25313 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25314 $as_echo_n "(cached) " >&6
25316 gcc_cv_as_powerpc_rel16
=no
25317 if test $in_tree_gas = yes; then
25318 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25319 then gcc_cv_as_powerpc_rel16
=yes
25321 elif test x
$gcc_cv_as != x
; then
25322 $as_echo "$conftest_s" > conftest.s
25323 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25325 (eval $ac_try) 2>&5
25327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25328 test $ac_status = 0; }; }
25330 gcc_cv_as_powerpc_rel16
=yes
25332 echo "configure: failed program was" >&5
25335 rm -f conftest.o conftest.s
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25339 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25340 if test $gcc_cv_as_powerpc_rel16 = yes; then
25342 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25347 *-*-aix*) conftest_s
=' .machine "pwr6"
25350 *) conftest_s
=' .machine power6
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25356 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25357 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25358 $as_echo_n "(cached) " >&6
25360 gcc_cv_as_powerpc_cmpb
=no
25361 if test $in_tree_gas = yes; then
25362 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25363 then gcc_cv_as_powerpc_cmpb
=yes
25365 elif test x
$gcc_cv_as != x
; then
25366 $as_echo "$conftest_s" > conftest.s
25367 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25369 (eval $ac_try) 2>&5
25371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25372 test $ac_status = 0; }; }
25374 gcc_cv_as_powerpc_cmpb
=yes
25376 echo "configure: failed program was" >&5
25379 rm -f conftest.o conftest.s
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25383 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25384 if test $gcc_cv_as_powerpc_cmpb = yes; then
25386 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25391 *-*-aix*) conftest_s
=' .machine "pwr6"
25394 *) conftest_s
=' .machine power6
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25400 $as_echo_n "checking assembler for decimal float support... " >&6; }
25401 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25402 $as_echo_n "(cached) " >&6
25404 gcc_cv_as_powerpc_dfp
=no
25405 if test $in_tree_gas = yes; then
25406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25407 then gcc_cv_as_powerpc_dfp
=yes
25409 elif test x
$gcc_cv_as != x
; then
25410 $as_echo "$conftest_s" > conftest.s
25411 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25413 (eval $ac_try) 2>&5
25415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25416 test $ac_status = 0; }; }
25418 gcc_cv_as_powerpc_dfp
=yes
25420 echo "configure: failed program was" >&5
25423 rm -f conftest.o conftest.s
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25427 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25428 if test $gcc_cv_as_powerpc_dfp = yes; then
25430 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25435 *-*-aix*) conftest_s
=' .machine "pwr7"
25438 *) conftest_s
=' .machine power7
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25444 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25445 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25446 $as_echo_n "(cached) " >&6
25448 gcc_cv_as_powerpc_vsx
=no
25449 if test $in_tree_gas = yes; then
25450 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25451 then gcc_cv_as_powerpc_vsx
=yes
25453 elif test x
$gcc_cv_as != x
; then
25454 $as_echo "$conftest_s" > conftest.s
25455 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25457 (eval $ac_try) 2>&5
25459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25460 test $ac_status = 0; }; }
25462 gcc_cv_as_powerpc_vsx
=yes
25464 echo "configure: failed program was" >&5
25467 rm -f conftest.o conftest.s
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25471 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25472 if test $gcc_cv_as_powerpc_vsx = yes; then
25474 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25479 *-*-aix*) conftest_s
=' .machine "pwr7"
25482 *) conftest_s
=' .machine power7
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25488 $as_echo_n "checking assembler for popcntd support... " >&6; }
25489 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25490 $as_echo_n "(cached) " >&6
25492 gcc_cv_as_powerpc_popcntd
=no
25493 if test $in_tree_gas = yes; then
25494 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25495 then gcc_cv_as_powerpc_popcntd
=yes
25497 elif test x
$gcc_cv_as != x
; then
25498 $as_echo "$conftest_s" > conftest.s
25499 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25501 (eval $ac_try) 2>&5
25503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25504 test $ac_status = 0; }; }
25506 gcc_cv_as_powerpc_popcntd
=yes
25508 echo "configure: failed program was" >&5
25511 rm -f conftest.o conftest.s
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25515 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25516 if test $gcc_cv_as_powerpc_popcntd = yes; then
25518 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25523 *-*-aix*) conftest_s
=' .machine "pwr8"
25524 .csect .text[PR]';;
25525 *) conftest_s
=' .machine power8
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25530 $as_echo_n "checking assembler for power8 support... " >&6; }
25531 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25532 $as_echo_n "(cached) " >&6
25534 gcc_cv_as_powerpc_power8
=no
25535 if test $in_tree_gas = yes; then
25536 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25537 then gcc_cv_as_powerpc_power8
=yes
25539 elif test x
$gcc_cv_as != x
; then
25540 $as_echo "$conftest_s" > conftest.s
25541 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25543 (eval $ac_try) 2>&5
25545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25546 test $ac_status = 0; }; }
25548 gcc_cv_as_powerpc_power8
=yes
25550 echo "configure: failed program was" >&5
25553 rm -f conftest.o conftest.s
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25557 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25558 if test $gcc_cv_as_powerpc_power8 = yes; then
25560 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25565 *-*-aix*) conftest_s
=' .csect .text[PR]
25567 *) conftest_s
=' .text
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25572 $as_echo_n "checking assembler for lwsync support... " >&6; }
25573 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25574 $as_echo_n "(cached) " >&6
25576 gcc_cv_as_powerpc_lwsync
=no
25577 if test $in_tree_gas = yes; then
25578 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25579 then gcc_cv_as_powerpc_lwsync
=yes
25581 elif test x
$gcc_cv_as != x
; then
25582 $as_echo "$conftest_s" > conftest.s
25583 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25585 (eval $ac_try) 2>&5
25587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25588 test $ac_status = 0; }; }
25590 gcc_cv_as_powerpc_lwsync
=yes
25592 echo "configure: failed program was" >&5
25595 rm -f conftest.o conftest.s
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25599 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25600 if test $gcc_cv_as_powerpc_lwsync = yes; then
25602 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25607 *-*-aix*) conftest_s
=' .machine "476"
25610 *) conftest_s
=' .machine "476"
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25616 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25617 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25618 $as_echo_n "(cached) " >&6
25620 gcc_cv_as_powerpc_dci
=no
25621 if test $in_tree_gas = yes; then
25622 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25623 then gcc_cv_as_powerpc_dci
=yes
25625 elif test x
$gcc_cv_as != x
; then
25626 $as_echo "$conftest_s" > conftest.s
25627 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25629 (eval $ac_try) 2>&5
25631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25632 test $ac_status = 0; }; }
25634 gcc_cv_as_powerpc_dci
=yes
25636 echo "configure: failed program was" >&5
25639 rm -f conftest.o conftest.s
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25643 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25644 if test $gcc_cv_as_powerpc_dci = yes; then
25646 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25651 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25652 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25653 $as_echo_n "(cached) " >&6
25655 gcc_cv_as_powerpc_gnu_attribute
=no
25656 if test $in_tree_gas = yes; then
25657 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25658 then gcc_cv_as_powerpc_gnu_attribute
=yes
25660 elif test x
$gcc_cv_as != x
; then
25661 $as_echo '.gnu_attribute 4,1' > conftest.s
25662 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25664 (eval $ac_try) 2>&5
25666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25667 test $ac_status = 0; }; }
25669 gcc_cv_as_powerpc_gnu_attribute
=yes
25671 echo "configure: failed program was" >&5
25674 rm -f conftest.o conftest.s
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25678 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25679 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25681 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25686 $as_echo_n "checking assembler for tls marker support... " >&6; }
25687 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25690 gcc_cv_as_powerpc_tls_markers
=no
25691 if test $in_tree_gas = yes; then
25692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25693 then gcc_cv_as_powerpc_tls_markers
=yes
25695 elif test x
$gcc_cv_as != x
; then
25696 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25699 (eval $ac_try) 2>&5
25701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25702 test $ac_status = 0; }; }
25704 gcc_cv_as_powerpc_tls_markers
=yes
25706 echo "configure: failed program was" >&5
25709 rm -f conftest.o conftest.s
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25713 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25714 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25716 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25723 $as_echo_n "checking assembler for .ref support... " >&6; }
25724 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25725 $as_echo_n "(cached) " >&6
25727 gcc_cv_as_aix_ref
=no
25728 if test $in_tree_gas = yes; then
25729 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25730 then gcc_cv_as_aix_ref
=yes
25732 elif test x
$gcc_cv_as != x
; then
25733 $as_echo ' .csect stuff[rw]
25739 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25741 (eval $ac_try) 2>&5
25743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25744 test $ac_status = 0; }; }
25746 gcc_cv_as_aix_ref
=yes
25748 echo "configure: failed program was" >&5
25751 rm -f conftest.o conftest.s
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25755 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25756 if test $gcc_cv_as_aix_ref = yes; then
25758 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25767 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25768 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25769 $as_echo_n "(cached) " >&6
25771 gcc_cv_as_mips_explicit_relocs
=no
25772 if test $in_tree_gas = yes; then
25773 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25774 then gcc_cv_as_mips_explicit_relocs
=yes
25776 elif test x
$gcc_cv_as != x
; then
25777 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25778 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25780 (eval $ac_try) 2>&5
25782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25783 test $ac_status = 0; }; }
25785 gcc_cv_as_mips_explicit_relocs
=yes
25787 echo "configure: failed program was" >&5
25790 rm -f conftest.o conftest.s
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25794 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25795 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25796 if test x
$target_cpu_default = x
25797 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25798 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25802 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25803 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25804 $as_echo_n "(cached) " >&6
25806 gcc_cv_as_mips_no_shared
=no
25807 if test $in_tree_gas = yes; then
25808 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25809 then gcc_cv_as_mips_no_shared
=yes
25811 elif test x
$gcc_cv_as != x
; then
25812 $as_echo 'nop' > conftest.s
25813 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25815 (eval $ac_try) 2>&5
25817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25818 test $ac_status = 0; }; }
25820 gcc_cv_as_mips_no_shared
=yes
25822 echo "configure: failed program was" >&5
25825 rm -f conftest.o conftest.s
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25829 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25830 if test $gcc_cv_as_mips_no_shared = yes; then
25832 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25837 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25838 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25839 $as_echo_n "(cached) " >&6
25841 gcc_cv_as_mips_gnu_attribute
=no
25842 if test $in_tree_gas = yes; then
25843 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25844 then gcc_cv_as_mips_gnu_attribute
=yes
25846 elif test x
$gcc_cv_as != x
; then
25847 $as_echo '.gnu_attribute 4,1' > conftest.s
25848 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25850 (eval $ac_try) 2>&5
25852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25853 test $ac_status = 0; }; }
25855 gcc_cv_as_mips_gnu_attribute
=yes
25857 echo "configure: failed program was" >&5
25860 rm -f conftest.o conftest.s
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25864 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25865 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25867 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25872 $as_echo_n "checking assembler for .micromips support... " >&6; }
25873 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25874 $as_echo_n "(cached) " >&6
25876 gcc_cv_as_micromips_support
=no
25877 if test x
$gcc_cv_as != x
; then
25878 $as_echo '.set micromips' > conftest.s
25879 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25881 (eval $ac_try) 2>&5
25883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25884 test $ac_status = 0; }; }
25886 gcc_cv_as_micromips_support
=yes
25888 echo "configure: failed program was" >&5
25891 rm -f conftest.o conftest.s
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25895 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25896 if test $gcc_cv_as_micromips_support = yes; then
25898 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25903 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25904 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25905 $as_echo_n "(cached) " >&6
25907 gcc_cv_as_mips_dtprelword
=no
25908 if test $in_tree_gas = yes; then
25909 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25910 then gcc_cv_as_mips_dtprelword
=yes
25912 elif test x
$gcc_cv_as != x
; then
25913 $as_echo '.section .tdata,"awT",@progbits
25917 .dtprelword x+0x8000' > conftest.s
25918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25920 (eval $ac_try) 2>&5
25922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25923 test $ac_status = 0; }; }
25925 gcc_cv_as_mips_dtprelword
=yes
25927 echo "configure: failed program was" >&5
25930 rm -f conftest.o conftest.s
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25934 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25935 if test $gcc_cv_as_mips_dtprelword = yes; then
25937 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25942 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25943 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25944 $as_echo_n "(cached) " >&6
25946 gcc_cv_as_mips_dspr1_mult
=no
25947 if test x
$gcc_cv_as != x
; then
25948 $as_echo ' .set mips32r2
25956 multu $ac3,$4,$5' > conftest.s
25957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25959 (eval $ac_try) 2>&5
25961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25962 test $ac_status = 0; }; }
25964 gcc_cv_as_mips_dspr1_mult
=yes
25966 echo "configure: failed program was" >&5
25969 rm -f conftest.o conftest.s
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25973 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25974 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25976 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25981 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25982 gcc_cv_as_ld_jalr_reloc
=no
25983 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25984 if test $in_tree_ld = yes ; then
25985 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 \
25986 && test $in_tree_ld_is_elf = yes; then
25987 gcc_cv_as_ld_jalr_reloc
=yes
25989 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25990 echo ' .ent x' > conftest.s
25991 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25992 echo ' ld $25,%call16(y)($28)' >> conftest.s
25993 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25994 echo '1: jalr $25' >> conftest.s
25995 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25996 echo '1: jalr $25' >> conftest.s
25997 echo ' .end x' >> conftest.s
25998 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25999 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26000 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26001 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26002 gcc_cv_as_ld_jalr_reloc
=yes
26008 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26009 if test x
$target_cpu_default = x
; then
26010 target_cpu_default
=MASK_RELAX_PIC_CALLS
26012 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26016 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26019 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26020 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26021 $as_echo_n "(cached) " >&6
26023 gcc_cv_ld_mips_personality_relaxation
=no
26024 if test $in_tree_ld = yes ; then
26025 if test "$gcc_cv_gld_major_version" -eq 2 \
26026 -a "$gcc_cv_gld_minor_version" -ge 21 \
26027 -o "$gcc_cv_gld_major_version" -gt 2; then
26028 gcc_cv_ld_mips_personality_relaxation
=yes
26030 elif test x
$gcc_cv_as != x \
26031 -a x
$gcc_cv_ld != x \
26032 -a x
$gcc_cv_readelf != x
; then
26033 cat > conftest.s
<<EOF
26035 .cfi_personality 0x80,indirect_ptr
26042 .section .data,"aw",@progbits
26046 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26047 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26048 if $gcc_cv_readelf -d conftest
2>&1 \
26049 |
grep TEXTREL
> /dev
/null
2>&1; then
26051 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26052 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26055 gcc_cv_ld_mips_personality_relaxation
=yes
26059 rm -f conftest.s conftest.o conftest
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26062 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26063 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26065 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26070 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26071 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26072 $as_echo_n "(cached) " >&6
26074 gcc_cv_as_mips_nan
=no
26075 if test x
$gcc_cv_as != x
; then
26076 $as_echo '' > conftest.s
26077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26079 (eval $ac_try) 2>&5
26081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26082 test $ac_status = 0; }; }
26084 gcc_cv_as_mips_nan
=yes
26086 echo "configure: failed program was" >&5
26089 rm -f conftest.o conftest.s
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26093 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26094 if test $gcc_cv_as_mips_nan = yes; then
26096 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26099 if test x
$gcc_cv_as_mips_nan = xno \
26100 && test x
$with_nan != x
; then
26101 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26106 # Mips and HP-UX need the GNU assembler.
26107 # Linux on IA64 might be able to use the Intel assembler.
26110 mips
*-*-* |
*-*-hpux* )
26111 if test x
$gas_flag = xyes \
26112 ||
test x
"$host" != x
"$build" \
26113 ||
test ! -x "$gcc_cv_as" \
26114 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26117 echo "*** This configuration requires the GNU assembler" >&2
26123 # ??? Not all targets support dwarf2 debug_line, even within a version
26124 # of gas. Moreover, we need to emit a valid instruction to trigger any
26125 # info to the output file. So, as supported targets are added to gas 2.11,
26126 # add some instruction here to (also) show we expect this might work.
26127 # ??? Once 2.11 is released, probably need to add first known working
26128 # version to the per-target configury.
26129 case "$cpu_type" in
26130 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26131 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26142 if test x
"$insn" != x
; then
26144 .file 1 \"conftest.s\"
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26148 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26149 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26150 $as_echo_n "(cached) " >&6
26152 gcc_cv_as_dwarf2_debug_line
=no
26153 if test $in_tree_gas = yes; then
26154 if test $in_tree_gas_is_elf = yes \
26155 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26156 then gcc_cv_as_dwarf2_debug_line
=yes
26158 elif test x
$gcc_cv_as != x
; then
26159 $as_echo "$conftest_s" > conftest.s
26160 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26162 (eval $ac_try) 2>&5
26164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26165 test $ac_status = 0; }; }
26167 if test x
$gcc_cv_objdump != x \
26168 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26169 |
grep debug_line
> /dev
/null
2>&1; then
26170 gcc_cv_as_dwarf2_debug_line
=yes
26173 echo "configure: failed program was" >&5
26176 rm -f conftest.o conftest.s
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26180 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26183 # The .debug_line file table must be in the exact order that
26184 # we specified the files, since these indices are also used
26185 # by DW_AT_decl_file. Approximate this test by testing if
26186 # the assembler bitches if the same index is assigned twice.
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26188 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26189 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26190 $as_echo_n "(cached) " >&6
26192 gcc_cv_as_dwarf2_file_buggy
=no
26193 if test x
$gcc_cv_as != x
; then
26194 $as_echo ' .file 1 "foo.s"
26195 .file 1 "bar.s"' > conftest.s
26196 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26198 (eval $ac_try) 2>&5
26200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26201 test $ac_status = 0; }; }
26203 gcc_cv_as_dwarf2_file_buggy
=yes
26205 echo "configure: failed program was" >&5
26208 rm -f conftest.o conftest.s
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26212 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26215 if test $gcc_cv_as_dwarf2_debug_line = yes \
26216 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26218 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26223 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26224 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26225 $as_echo_n "(cached) " >&6
26227 gcc_cv_as_gdwarf2_flag
=no
26228 if test $in_tree_gas = yes; then
26229 if test $in_tree_gas_is_elf = yes \
26230 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26231 then gcc_cv_as_gdwarf2_flag
=yes
26233 elif test x
$gcc_cv_as != x
; then
26234 $as_echo "$insn" > conftest.s
26235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26237 (eval $ac_try) 2>&5
26239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26240 test $ac_status = 0; }; }
26242 gcc_cv_as_gdwarf2_flag
=yes
26244 echo "configure: failed program was" >&5
26247 rm -f conftest.o conftest.s
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26251 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26252 if test $gcc_cv_as_gdwarf2_flag = yes; then
26254 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26259 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26260 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26261 $as_echo_n "(cached) " >&6
26263 gcc_cv_as_gstabs_flag
=no
26264 if test $in_tree_gas = yes; then
26265 if test $in_tree_gas_is_elf = yes \
26266 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26267 then gcc_cv_as_gstabs_flag
=yes
26269 elif test x
$gcc_cv_as != x
; then
26270 $as_echo "$insn" > conftest.s
26271 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26273 (eval $ac_try) 2>&5
26275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26276 test $ac_status = 0; }; }
26278 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26279 # and warns about it, but still exits successfully. So check for
26281 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26283 (eval $ac_try) 2>&5
26285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26286 test $ac_status = 0; }; }
26288 else gcc_cv_as_gstabs_flag
=yes
26291 echo "configure: failed program was" >&5
26294 rm -f conftest.o conftest.s
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26298 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26299 if test $gcc_cv_as_gstabs_flag = yes; then
26301 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26306 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26307 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26308 $as_echo_n "(cached) " >&6
26310 gcc_cv_as_debug_prefix_map_flag
=no
26311 if test $in_tree_gas = yes; then
26312 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26313 then gcc_cv_as_debug_prefix_map_flag
=yes
26315 elif test x
$gcc_cv_as != x
; then
26316 $as_echo "$insn" > conftest.s
26317 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26319 (eval $ac_try) 2>&5
26321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26322 test $ac_status = 0; }; }
26324 gcc_cv_as_debug_prefix_map_flag
=yes
26326 echo "configure: failed program was" >&5
26329 rm -f conftest.o conftest.s
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26333 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26334 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26336 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26342 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26343 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26344 $as_echo_n "(cached) " >&6
26346 gcc_cv_as_lcomm_with_alignment
=no
26347 if test x
$gcc_cv_as != x
; then
26348 $as_echo '.lcomm bar,4,16' > conftest.s
26349 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26351 (eval $ac_try) 2>&5
26353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26354 test $ac_status = 0; }; }
26356 gcc_cv_as_lcomm_with_alignment
=yes
26358 echo "configure: failed program was" >&5
26361 rm -f conftest.o conftest.s
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26365 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26366 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26368 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26372 # Check whether --enable-gnu-unique-object was given.
26373 if test "${enable_gnu_unique_object+set}" = set; then :
26374 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26376 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26377 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26381 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26382 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26383 $as_echo_n "(cached) " >&6
26385 gcc_cv_as_gnu_unique_object
=no
26386 if test $in_tree_gas = yes; then
26387 if test $in_tree_gas_is_elf = yes \
26388 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26389 then gcc_cv_as_gnu_unique_object
=yes
26391 elif test x
$gcc_cv_as != x
; then
26392 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26393 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26395 (eval $ac_try) 2>&5
26397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26398 test $ac_status = 0; }; }
26400 gcc_cv_as_gnu_unique_object
=yes
26402 echo "configure: failed program was" >&5
26405 rm -f conftest.o conftest.s
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26409 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26410 if test $gcc_cv_as_gnu_unique_object = yes; then
26411 # We need to unquote above to to use the definition from config.gcc.
26412 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26413 if test x
$host = x
$build -a x
$host = x
$target &&
26414 ldd
--version 2>/dev
/null
&&
26415 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26416 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26417 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26418 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26419 if test "$glibcnum" -ge 2011 ; then
26420 enable_gnu_unique_object
=yes
26426 if test x
$enable_gnu_unique_object = xyes
; then
26428 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26433 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26434 if test "${gcc_cv_as_line_zero+set}" = set; then :
26435 $as_echo_n "(cached) " >&6
26437 gcc_cv_as_line_zero
=no
26438 if test $in_tree_gas = yes; then
26439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26440 then gcc_cv_as_line_zero
=yes
26442 elif test "x$gcc_cv_as" != x
; then
26443 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26444 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26446 (eval $ac_try) 2>&5
26448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26449 test $ac_status = 0; }; } &&
26450 test "x`cat conftest.out`" = x
26452 gcc_cv_as_line_zero
=yes
26454 echo "configure: failed program was" >&5
26456 echo "configure: error output was" >&5
26457 cat conftest.out
>&5
26459 rm -f conftest.o conftest.s conftest.out
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26463 $as_echo "$gcc_cv_as_line_zero" >&6; }
26464 if test "x$gcc_cv_as_line_zero" = xyes
; then
26466 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26471 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26472 gcc_cv_ld_eh_frame_hdr
=no
26473 if test $in_tree_ld = yes ; then
26474 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 \
26475 && test $in_tree_ld_is_elf = yes; then
26476 gcc_cv_ld_eh_frame_hdr
=yes
26478 elif test x
$gcc_cv_ld != x
; then
26479 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26480 # Check if linker supports --eh-frame-hdr option
26481 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26482 gcc_cv_ld_eh_frame_hdr
=yes
26487 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26488 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26489 gcc_cv_ld_eh_frame_hdr
=yes
26496 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26498 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26502 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26505 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26506 gcc_cv_ld_eh_frame_ciev3
=no
26507 if test $in_tree_ld = yes ; then
26508 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 \
26509 && test $in_tree_ld_is_elf = yes; then
26510 gcc_cv_ld_eh_frame_ciev3
=yes
26512 elif test x
$gcc_cv_ld != x
; then
26513 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26514 gcc_cv_ld_eh_frame_ciev3
=yes
26515 if test 0"$ld_date" -lt 20040513; then
26516 if test -n "$ld_date"; then
26517 # If there was date string, but was earlier than 2004-05-13, fail
26518 gcc_cv_ld_eh_frame_ciev3
=no
26519 elif test "$ld_vers_major" -lt 2; then
26520 gcc_cv_ld_eh_frame_ciev3
=no
26521 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26522 gcc_cv_ld_eh_frame_ciev3
=no
26528 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26529 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26530 gcc_cv_ld_eh_frame_ciev3
=yes
26537 cat >>confdefs.h
<<_ACEOF
26538 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26542 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26545 $as_echo_n "checking linker position independent executable support... " >&6; }
26547 if test $in_tree_ld = yes ; then
26548 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 \
26549 && test $in_tree_ld_is_elf = yes; then
26552 elif test x
$gcc_cv_ld != x
; then
26553 # Check if linker supports -pie option
26554 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26558 if test x
"$gcc_cv_ld_pie" = xyes
; then
26560 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26564 $as_echo "$gcc_cv_ld_pie" >&6; }
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26567 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26568 gcc_cv_ld_eh_gc_sections
=no
26569 if test $in_tree_ld = yes ; then
26570 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 \
26571 && test $in_tree_ld_is_elf = yes; then
26572 gcc_cv_ld_eh_gc_sections
=yes
26574 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26575 cat > conftest.s
<<EOF
26578 .type _start, @function
26581 .size _start, .-_start
26582 .section .text.foo,"ax",@progbits
26583 .type foo, @function
26587 .section .gcc_except_table.foo,"a",@progbits
26590 .section .eh_frame,"a",@progbits
26593 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26594 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26595 |
grep "gc-sections option ignored" > /dev
/null
; then
26596 gcc_cv_ld_eh_gc_sections
=no
26597 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26598 |
grep gcc_except_table
> /dev
/null
; then
26599 gcc_cv_ld_eh_gc_sections
=yes
26600 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26601 if test x
$gcc_cv_as_comdat_group != xyes
; then
26602 gcc_cv_ld_eh_gc_sections
=no
26603 cat > conftest.s
<<EOF
26606 .type _start, @function
26609 .size _start, .-_start
26610 .section .gnu.linkonce.t.foo,"ax",@progbits
26611 .type foo, @function
26615 .section .gcc_except_table.foo,"a",@progbits
26618 .section .eh_frame,"a",@progbits
26621 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26622 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26623 |
grep "gc-sections option ignored" > /dev
/null
; then
26624 gcc_cv_ld_eh_gc_sections
=no
26625 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26626 |
grep gcc_except_table
> /dev
/null
; then
26627 gcc_cv_ld_eh_gc_sections
=yes
26633 rm -f conftest.s conftest.o conftest
26637 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26638 gcc_cv_ld_eh_gc_sections
=no
26641 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26643 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26647 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26650 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26651 gcc_cv_ld_eh_gc_sections_bug
=no
26652 if test $in_tree_ld = yes ; then
26653 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 \
26654 && test $in_tree_ld_is_elf = yes; then
26655 gcc_cv_ld_eh_gc_sections_bug
=yes
26657 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
26658 gcc_cv_ld_eh_gc_sections_bug
=yes
26659 cat > conftest.s
<<EOF
26662 .type _start, @function
26665 .size _start, .-_start
26666 .section .text.startup.foo,"ax",@progbits
26667 .type foo, @function
26671 .section .gcc_except_table.foo,"a",@progbits
26674 .section .eh_frame,"a",@progbits
26677 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26678 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26679 |
grep "gc-sections option ignored" > /dev
/null
; then
26681 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26682 |
grep gcc_except_table
> /dev
/null
; then
26683 gcc_cv_ld_eh_gc_sections_bug
=no
26686 rm -f conftest.s conftest.o conftest
26688 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26690 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26694 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26701 $as_echo_n "checking linker --as-needed support... " >&6; }
26702 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26703 $as_echo_n "(cached) " >&6
26705 gcc_cv_ld_as_needed
=no
26706 gcc_cv_ld_as_needed_option
='--as-needed'
26707 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
26708 if test $in_tree_ld = yes ; then
26709 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 \
26710 && test $in_tree_ld_is_elf = yes; then
26711 gcc_cv_ld_as_needed
=yes
26713 elif test x
$gcc_cv_ld != x
; then
26714 # Check if linker supports --as-needed and --no-as-needed options
26715 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26716 gcc_cv_ld_as_needed
=yes
26719 # Solaris 2 ld always supports -z ignore/-z record.
26721 gcc_cv_ld_as_needed
=yes
26722 gcc_cv_ld_as_needed_option
="-z ignore"
26723 gcc_cv_ld_no_as_needed_option
="-z record"
26728 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26729 # dl_iterate_phdr, i.e. since Solaris 11.
26731 *-*-solaris2.1
[1-9]*)
26733 i?
86-*-* | x86_64-
*-*)
26734 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26735 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26736 gcc_cv_ld_as_needed
=no
26742 gcc_cv_ld_as_needed
=no
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26748 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26749 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26751 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26754 cat >>confdefs.h
<<_ACEOF
26755 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26759 cat >>confdefs.h
<<_ACEOF
26760 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26765 case "$target:$tm_file" in
26766 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26769 emul_name
="-melf64lppc"
26772 emul_name
="-melf64ppc"
26775 emul_name
="-melf64ppc_fbsd"
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26779 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26780 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26781 $as_echo_n "(cached) " >&6
26783 gcc_cv_ld_no_dot_syms
=no
26784 if test x
"$ld_is_gold" = xyes
; then
26785 gcc_cv_ld_no_dot_syms
=yes
26786 elif test $in_tree_ld = yes ; then
26787 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
26788 gcc_cv_ld_no_dot_syms
=yes
26790 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26791 cat > conftest1.s
<<EOF
26795 cat > conftest2.s
<<EOF
26796 .section ".opd","aw"
26799 .type foo,@function
26801 .quad .LEfoo,.TOC.@tocbase,0
26807 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26808 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26809 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26810 gcc_cv_ld_no_dot_syms
=yes
26812 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26817 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26818 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26820 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26825 $as_echo_n "checking linker large toc support... " >&6; }
26826 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26827 $as_echo_n "(cached) " >&6
26829 gcc_cv_ld_large_toc
=no
26830 if test x
"$ld_is_gold" = xyes
; then
26831 gcc_cv_ld_large_toc
=yes
26832 elif test $in_tree_ld = yes ; then
26833 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
26834 gcc_cv_ld_large_toc
=yes
26836 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26837 cat > conftest.s
<<EOF
26838 .section ".tbss","awT",@nobits
26844 addis 9,13,ie0@got@tprel@ha
26845 ld 9,ie0@got@tprel@l(9)
26847 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26848 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26849 gcc_cv_ld_large_toc
=yes
26851 rm -f conftest conftest.o conftest.s
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26856 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26857 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26859 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26868 $as_echo_n "checking linker large toc support... " >&6; }
26869 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26870 $as_echo_n "(cached) " >&6
26872 gcc_cv_ld_large_toc
=no
26873 if test x
$gcc_cv_as != x
; then
26874 cat > conftest.s
<<EOF
26884 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26885 gcc_cv_ld_large_toc
=yes
26887 rm -f conftest conftest.o conftest.s
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26892 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26893 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26895 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26902 $as_echo_n "checking linker --build-id support... " >&6; }
26903 if test "${gcc_cv_ld_buildid+set}" = set; then :
26904 $as_echo_n "(cached) " >&6
26906 gcc_cv_ld_buildid
=no
26907 if test $in_tree_ld = yes ; then
26908 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26909 "$gcc_cv_gld_minor_version" -ge 18 -o \
26910 "$gcc_cv_gld_major_version" -gt 2 \
26911 && test $in_tree_ld_is_elf = yes; then
26912 gcc_cv_ld_buildid
=yes
26914 elif test x
$gcc_cv_ld != x
; then
26915 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26916 gcc_cv_ld_buildid
=yes
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26921 $as_echo "$gcc_cv_ld_buildid" >&6; }
26922 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26924 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26928 # Check whether --enable-linker-build-id was given.
26929 if test "${enable_linker_build_id+set}" = set; then :
26930 enableval
=$enable_linker_build_id;
26932 enable_linker_build_id
=no
26936 if test x
"$enable_linker_build_id" = xyes
; then
26937 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26939 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26943 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26947 # In binutils 2.21, GNU ld gained support for new emulations fully
26948 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26950 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26951 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26952 $as_echo_n "(cached) " >&6
26954 gcc_cv_ld_sol2_emulation
=no
26955 if test $in_tree_ld = yes ; then
26956 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26957 "$gcc_cv_gld_minor_version" -ge 21 -o \
26958 "$gcc_cv_gld_major_version" -gt 2 \
26959 && test $in_tree_ld_is_elf = yes; then
26960 gcc_cv_ld_sol2_emulation
=yes
26962 elif test x
$gcc_cv_ld != x
; then
26963 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26964 grep _sol2
> /dev
/null
; then
26965 gcc_cv_ld_sol2_emulation
=yes
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26970 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26971 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26973 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26978 $as_echo_n "checking linker --sysroot support... " >&6; }
26979 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26980 $as_echo_n "(cached) " >&6
26982 gcc_cv_ld_sysroot
=no
26983 if test $in_tree_ld = yes ; then
26984 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
26985 gcc_cv_ld_sysroot
=yes
26987 elif test x
$gcc_cv_ld != x
; then
26988 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26989 gcc_cv_ld_sysroot
=yes
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26994 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26995 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26997 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27001 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27002 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27003 && test "$prefix" != "NONE"; then
27005 cat >>confdefs.h
<<_ACEOF
27006 #define PREFIX_INCLUDE_DIR "$prefix/include"
27011 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
27012 if test "x$with_headers" != x
; then
27013 target_header_dir
=$with_headers
27014 elif test "x$with_sysroot" = x
; then
27015 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
27016 elif test "x$with_build_sysroot" != "x"; then
27017 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
27018 elif test "x$with_sysroot" = xyes
; then
27019 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
27021 target_header_dir
="${with_sysroot}${native_system_header_dir}"
27024 target_header_dir
=${native_system_header_dir}
27027 # Test for stack protector support in target C library.
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27029 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27030 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27031 $as_echo_n "(cached) " >&6
27033 gcc_cv_libc_provides_ssp
=no
27035 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27036 # glibc 2.4 and later provides __stack_chk_fail and
27037 # either __stack_chk_guard, or TLS access to stack guard canary.
27038 if test -f $target_header_dir/features.h \
27039 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27040 $target_header_dir/features.h
> /dev
/null
; then
27041 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
27042 $target_header_dir/features.h
> /dev
/null
; then
27043 gcc_cv_libc_provides_ssp
=yes
27044 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
27045 $target_header_dir/features.h
> /dev
/null \
27046 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
27047 $target_header_dir/features.h
> /dev
/null
; then
27048 gcc_cv_libc_provides_ssp
=yes
27049 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27050 $target_header_dir/features.h
> /dev
/null
&& \
27051 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27052 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27053 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27054 gcc_cv_libc_provides_ssp
=yes
27056 # all versions of Bionic support stack protector
27057 elif test -f $target_header_dir/sys
/cdefs.h \
27058 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27059 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27060 gcc_cv_libc_provides_ssp
=yes
27064 # Avoid complicated tests (see
27065 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27066 # simply assert that glibc does provide this, which is true for all
27067 # realistically usable GNU/Hurd configurations.
27068 gcc_cv_libc_provides_ssp
=yes;;
27069 *-*-darwin* |
*-*-freebsd*)
27070 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27071 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27072 gcc_cv_libc_provides_ssp
=yes
27074 echo "no __stack_chk_fail on this target"
27078 *) gcc_cv_libc_provides_ssp
=no
;;
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27082 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27084 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27086 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27090 # Test for <sys/sdt.h> on the target.
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27093 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27095 if test -f $target_header_dir/sys
/sdt.h
; then
27098 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27102 $as_echo "$have_sys_sdt_h" >&6; }
27104 # Check if TFmode long double should be used by default or not.
27105 # Some glibc targets used DFmode long double, but with glibc 2.4
27106 # and later they can use TFmode.
27108 powerpc
*-*-linux* | \
27109 sparc
*-*-linux* | \
27113 # Check whether --with-long-double-128 was given.
27114 if test "${with_long_double_128+set}" = set; then :
27115 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27117 gcc_cv_target_ldbl128
=no
27118 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27119 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27120 && gcc_cv_target_ldbl128
=yes
27126 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27128 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27133 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27134 gcc_cv_target_dl_iterate_phdr
=unknown
27136 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27137 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27138 # libdl there, both complicating its use and breaking compatibility
27139 # between Solaris 10 updates.
27140 *-*-solaris2.1
[1-9]*)
27141 # <link.h> needs both a dl_iterate_phdr declaration and support for
27142 # compilation with largefile support.
27143 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27144 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27145 gcc_cv_target_dl_iterate_phdr
=yes
27147 gcc_cv_target_dl_iterate_phdr
=no
27152 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27154 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27158 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27160 # We no longer support different GC mechanisms. Emit an error if
27161 # the user configures with --with-gc.
27163 # Check whether --with-gc was given.
27164 if test "${with_gc+set}" = set; then :
27165 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27169 # Libraries to use on the host. This will normally be set by the top
27170 # level Makefile. Here we simply capture the value for our Makefile.
27171 if test -z "${HOST_LIBS+set}"; then
27176 # Use the system's zlib library.
27178 zlibinc
="-I\$(srcdir)/../zlib"
27180 # Check whether --with-system-zlib was given.
27181 if test "${with_system_zlib+set}" = set; then :
27182 withval
=$with_system_zlib; zlibdir
=
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27192 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27193 # Check whether --enable-maintainer-mode was given.
27194 if test "${enable_maintainer_mode+set}" = set; then :
27195 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27202 $as_echo "$maintainer_mode" >&6; }
27204 if test "$maintainer_mode" = "yes"; then
27211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27212 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27213 # Check whether --enable-link-mutex was given.
27214 if test "${enable_link_mutex+set}" = set; then :
27215 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27221 $as_echo "$do_link_mutex" >&6; }
27223 if test "$do_link_mutex" = "yes"; then
27226 DO_LINK_MUTEX
=false
27234 # Make empty files to contain the specs and options for each language.
27235 # Then add #include lines to for a compiler that has specs and/or options.
27241 # These (without "all_") are set in each config-lang.in.
27242 # `language' must be a single word so is spelled singularly.
27245 all_outputs
='Makefile'
27246 # List of language makefile fragments.
27247 all_lang_makefrags
=
27248 # Additional files for gengtype
27249 all_gtfiles
="$target_gtfiles"
27251 # These are the languages that are set in --enable-languages,
27252 # and are available in the GCC tree.
27253 all_selected_languages
=
27255 # Add the language fragments.
27256 # Languages are added via two mechanisms. Some information must be
27257 # recorded in makefile variables, these are defined in config-lang.in.
27258 # We accumulate them and plug them into the main Makefile.
27259 # The other mechanism is a set of hooks for each of the main targets
27260 # like `clean', `install', etc.
27262 language_hooks
="Make-hooks"
27264 for lang
in ${srcdir}/*/config-lang.
in
27266 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27268 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27269 if test "x$lang_alias" = x
27271 echo "$lang doesn't set \$language." 1>&2
27274 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27275 subdirs
="$subdirs $subdir"
27277 # $gcc_subdir is where the gcc integration files are to be found
27278 # for a language, both for internal compiler purposes (compiler
27279 # sources implementing front-end to GCC tree converters), and for
27280 # build infrastructure purposes (Make-lang.in, etc.)
27282 # This will be <subdir> (relative to $srcdir) if a line like
27283 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27284 # is found in <langdir>/config-lang.in, and will remain <langdir>
27287 # Except for the language alias (fetched above), the regular
27288 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27289 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27290 # only this and the language alias.
27292 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27293 if [ "$gcc_subdir" = "" ]; then
27294 gcc_subdir
="$subdir"
27297 case ",$enable_languages," in
27299 all_selected_languages
="$all_selected_languages $lang_alias"
27300 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27301 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27312 .
${srcdir}/$gcc_subdir/config-lang.
in
27313 if test "x$language" = x
27315 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27320 case ",$enable_languages," in
27321 *,$lang_alias,*) ;;
27323 for i
in $subdir_requires; do
27324 test -f "${srcdir}/$i/config-lang.in" && continue
27332 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27333 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27334 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27335 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27337 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27338 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27340 all_languages
="$all_languages $language"
27341 all_compilers
="$all_compilers $compilers"
27342 all_outputs
="$all_outputs $outputs"
27343 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27344 case ",$enable_languages," in
27347 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27357 for language
in $all_selected_languages
27359 check_languages
="$check_languages check-$language"
27362 # We link each language in with a set of hooks, reached indirectly via
27363 # lang.${target}. Only do so for selected languages.
27367 target_list
="all.cross start.encap rest.encap tags \
27368 install-common install-man install-info install-pdf install-html dvi \
27369 pdf html uninstall info man srcextra srcman srcinfo \
27370 mostlyclean clean distclean maintainer-clean install-plugin"
27372 for t
in $target_list
27375 for lang
in $all_selected_languages
27379 echo "lang.$t: $x" >> Make-hooks
27383 # Option include files
27386 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27387 option_includes
="option-includes.mk"
27396 echo "dir ." > .gdbinit
27397 echo "dir ${srcdir}" >> .gdbinit
27398 if test x
$gdb_needs_out_file_path = xyes
27400 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27402 if test "x$subdirs" != x
; then
27405 echo "dir ${srcdir}/$s" >> .gdbinit
27408 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27409 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27411 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27415 # Find a directory in which to install a shared libgcc.
27417 # Check whether --enable-version-specific-runtime-libs was given.
27418 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27419 enableval
=$enable_version_specific_runtime_libs;
27423 # Substitute configuration variables
27487 if test x
${build} = x
${host} ; then
27488 if test x
${host} = x
${target} ; then
27489 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27491 echo "Links are now set up to build a cross-compiler" 1>&2
27492 echo " from ${host} to ${target}." 1>&2
27495 if test x
${host} = x
${target} ; then
27496 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27497 echo " for ${target}." 1>&2
27499 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27500 echo " from ${host} to ${target}." 1>&2
27512 if test "x${CLOOGLIBS}" != "x" ; then
27514 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27518 # Check for plugin support
27519 # Check whether --enable-plugin was given.
27520 if test "${enable_plugin+set}" = set; then :
27521 enableval
=$enable_plugin; enable_plugin
=$enableval
27523 enable_plugin
=yes; default_plugin
=yes
27531 if test x
$build = x
$host; then
27532 export_sym_check
="nm${exeext} -g"
27533 elif test x
$host = x
$target; then
27534 export_sym_check
="$gcc_cv_nm -g"
27540 if test x
$build = x
$host; then
27541 export_sym_check
="objdump${exeext} -T"
27542 elif test x
$host = x
$target; then
27543 export_sym_check
="$gcc_cv_objdump -T"
27550 if test x
"$enable_plugin" = x
"yes"; then
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27553 $as_echo_n "checking for exported symbols... " >&6; }
27554 if test "x$export_sym_check" != x
; then
27555 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27556 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27557 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27558 : # No need to use a flag
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27560 $as_echo "yes" >&6; }
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27563 $as_echo "yes" >&6; }
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27565 $as_echo_n "checking for -rdynamic... " >&6; }
27566 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27567 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27568 plugin_rdynamic
=yes
27569 pluginlibs
="-rdynamic"
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27575 $as_echo "$plugin_rdynamic" >&6; }
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27579 $as_echo "unable to check" >&6; }
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27585 $as_echo_n "checking for library containing dlopen... " >&6; }
27586 if test "${ac_cv_search_dlopen+set}" = set; then :
27587 $as_echo_n "(cached) " >&6
27589 ac_func_search_save_LIBS
=$LIBS
27590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27591 /* end confdefs.h. */
27593 /* Override any GCC internal prototype to avoid an error.
27594 Use char because int might match the return type of a GCC
27595 builtin and then its argument prototype would still apply. */
27608 for ac_lib
in '' dl
; do
27609 if test -z "$ac_lib"; then
27610 ac_res
="none required"
27613 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27615 if ac_fn_c_try_link
"$LINENO"; then :
27616 ac_cv_search_dlopen
=$ac_res
27618 rm -f core conftest.err conftest.
$ac_objext \
27620 if test "${ac_cv_search_dlopen+set}" = set; then :
27624 if test "${ac_cv_search_dlopen+set}" = set; then :
27627 ac_cv_search_dlopen
=no
27629 rm conftest.
$ac_ext
27630 LIBS
=$ac_func_search_save_LIBS
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27633 $as_echo "$ac_cv_search_dlopen" >&6; }
27634 ac_res
=$ac_cv_search_dlopen
27635 if test "$ac_res" != no
; then :
27636 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27640 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27641 pluginlibs
="$pluginlibs -ldl"
27645 # Check that we can build shared objects with -fPIC -shared
27646 saved_LDFLAGS
="$LDFLAGS"
27647 saved_CFLAGS
="$CFLAGS"
27650 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27651 CFLAGS
="$CFLAGS -fPIC"
27652 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27655 CFLAGS
="$CFLAGS -fPIC"
27656 LDFLAGS
="$LDFLAGS -fPIC -shared"
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27660 $as_echo_n "checking for -fPIC -shared... " >&6; }
27661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27662 /* end confdefs.h. */
27672 if ac_fn_c_try_link
"$LINENO"; then :
27673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27674 $as_echo "yes" >&6; }; have_pic_shared
=yes
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27677 $as_echo "no" >&6; }; have_pic_shared
=no
27679 rm -f core conftest.err conftest.
$ac_objext \
27680 conftest
$ac_exeext conftest.
$ac_ext
27681 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27685 LDFLAGS
="$saved_LDFLAGS"
27686 CFLAGS
="$saved_CFLAGS"
27688 # If plugin support had been requested but not available, fail.
27689 if test x
"$enable_plugin" = x
"no" ; then
27690 if test x
"$default_plugin" != x
"yes"; then
27692 Building GCC with plugin support requires a host that supports
27693 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27700 if test x
"$enable_plugin" = x
"yes"; then
27702 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27707 # Enable --enable-host-shared
27708 # Check whether --enable-host-shared was given.
27709 if test "${enable_host_shared+set}" = set; then :
27710 enableval
=$enable_host_shared; PICFLAG
=-fPIC
27719 # Check whether --enable-libquadmath-support was given.
27720 if test "${enable_libquadmath_support+set}" = set; then :
27721 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27723 ENABLE_LIBQUADMATH_SUPPORT
=yes
27726 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27728 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27733 # Specify what hash style to use by default.
27735 # Check whether --with-linker-hash-style was given.
27736 if test "${with_linker_hash_style+set}" = set; then :
27737 withval
=$with_linker_hash_style; case x
"$withval" in
27739 LINKER_HASH_STYLE
=sysv
27742 LINKER_HASH_STYLE
=gnu
27745 LINKER_HASH_STYLE
=both
27748 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27752 LINKER_HASH_STYLE
=''
27755 if test x
"${LINKER_HASH_STYLE}" != x
; then
27757 cat >>confdefs.h
<<_ACEOF
27758 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27763 # Configure the subdirectories
27764 # AC_CONFIG_SUBDIRS($subdirs)
27766 # Create the Makefile
27767 # and configure language subdirectories
27768 ac_config_files
="$ac_config_files $all_outputs"
27771 ac_config_commands
="$ac_config_commands default"
27773 cat >confcache
<<\_ACEOF
27774 # This file is a shell script that caches the results of configure
27775 # tests run on this system so they can be shared between configure
27776 # scripts and configure runs, see configure's option --config-cache.
27777 # It is not useful on other systems. If it contains results you don't
27778 # want to keep, you may remove or edit it.
27780 # config.status only pays attention to the cache file if you give it
27781 # the --recheck option to rerun configure.
27783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27785 # following values.
27789 # The following way of writing the cache mishandles newlines in values,
27790 # but we know of no workaround that is simple, portable, and efficient.
27791 # So, we kill variables containing newlines.
27792 # Ultrix sh set writes to stderr and can't be redirected directly,
27793 # and sets the high bit in the cache file unless we assign to the vars.
27795 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27796 eval ac_val
=\$
$ac_var
27800 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27801 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27804 _ | IFS | as_nl
) ;; #(
27805 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27806 *) { eval $ac_var=; unset $ac_var;} ;;
27812 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27813 *${as_nl}ac_space
=\
*)
27814 # `set' does not quote correctly, so add quotes: double-quote
27815 # substitution turns \\\\ into \\, and sed turns \\ into \.
27818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27821 # `set' quotes correctly as required by POSIX, so do not add quotes.
27822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27833 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27835 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27836 if test -w "$cache_file"; then
27837 test "x$cache_file" != "x/dev/null" &&
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27839 $as_echo "$as_me: updating cache $cache_file" >&6;}
27840 cat confcache
>$cache_file
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27843 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27848 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27849 # Let make expand exec_prefix.
27850 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27852 DEFS
=-DHAVE_CONFIG_H
27856 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27857 # 1. Remove the extension, and $U if already installed.
27858 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27859 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27860 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27861 # will be set to the directory where LIBOBJS objects are built.
27862 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27863 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27865 LIBOBJS
=$ac_libobjs
27867 LTLIBOBJS
=$ac_ltlibobjs
27872 : ${CONFIG_STATUS=./config.status}
27874 ac_clean_files_save
=$ac_clean_files
27875 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27877 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27879 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27881 # Generated by $as_me.
27882 # Run this file to recreate the current configuration.
27883 # Compiler output produced by configure, useful for debugging
27884 # configure, is in config.log if it exists.
27887 ac_cs_recheck=false
27890 SHELL=\${CONFIG_SHELL-$SHELL}
27893 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27894 ## -------------------- ##
27895 ## M4sh Initialization. ##
27896 ## -------------------- ##
27898 # Be more Bourne compatible
27899 DUALCASE
=1; export DUALCASE
# for MKS sh
27900 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27903 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27904 # is contrary to our usage. Disable this feature.
27905 alias -g '${1+"$@"}'='"$@"'
27906 setopt NO_GLOB_SUBST
27908 case `(set -o) 2>/dev/null` in #(
27920 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27921 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27922 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27923 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27924 # Prefer a ksh shell builtin over an external printf program on Solaris,
27925 # but without wasting forks for bash or zsh.
27926 if test -z "$BASH_VERSION$ZSH_VERSION" \
27927 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27928 as_echo='print
-r --'
27929 as_echo_n='print
-rn --'
27930 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27931 as_echo='printf %s
\n'
27932 as_echo_n='printf %s
'
27934 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27935 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27936 as_echo_n='/usr
/ucb
/echo -n'
27938 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27939 as_echo_n_body='eval
27943 expr "X$arg" : "X\\(.*\\)$as_nl";
27944 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27946 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27948 export as_echo_n_body
27949 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27951 export as_echo_body
27952 as_echo='sh
-c $as_echo_body as_echo
'
27955 # The user is always right.
27956 if test "${PATH_SEPARATOR+set}" != set; then
27958 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27959 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27966 # We need space, tab and new line, in precisely that order. Quoting is
27967 # there to prevent editors from complaining about space-tab.
27968 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27969 # splitting by setting IFS to empty value.)
27972 # Find who we are. Look in the path if we contain no directory separator.
27974 *[\\/]* ) as_myself=$0 ;;
27975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27976 for as_dir in $PATH
27979 test -z "$as_dir" && as_dir=.
27980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27986 # We did not find ourselves, most probably we were run as `sh COMMAND'
27987 # in which case we are not to be found in the path.
27988 if test "x$as_myself" = x
; then
27991 if test ! -f "$as_myself"; then
27992 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27996 # Unset variables that we do not need and which cause bugs (e.g. in
27997 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27998 # suppresses any "Segmentation fault" message there. '((' could
27999 # trigger a bug in pdksh 5.2.14.
28000 for as_var
in BASH_ENV ENV MAIL MAILPATH
28001 do eval test x\
${$as_var+set} = xset \
28002 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28015 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28018 # as_fn_error ERROR [LINENO LOG_FD]
28019 # ---------------------------------
28020 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28021 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28022 # script with status $?, using 1 if that was 0.
28025 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28027 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28028 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28030 $as_echo "$as_me: error: $1" >&2
28031 as_fn_exit
$as_status
28035 # as_fn_set_status STATUS
28036 # -----------------------
28037 # Set $? to STATUS, without forking.
28038 as_fn_set_status
()
28041 } # as_fn_set_status
28043 # as_fn_exit STATUS
28044 # -----------------
28045 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28049 as_fn_set_status
$1
28055 # Portably unset VAR.
28058 { eval $1=; unset $1;}
28060 as_unset
=as_fn_unset
28061 # as_fn_append VAR VALUE
28062 # ----------------------
28063 # Append the text in VALUE to the end of the definition contained in VAR. Take
28064 # advantage of any shell optimizations that allow amortized linear growth over
28065 # repeated appends, instead of the typical quadratic growth present in naive
28067 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28068 eval 'as_fn_append ()
28079 # as_fn_arith ARG...
28080 # ------------------
28081 # Perform arithmetic evaluation on the ARGs, and store the result in the
28082 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28083 # must be portable across $(()) and expr.
28084 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28085 eval 'as_fn_arith ()
28092 as_val
=`expr "$@" || test $? -eq 1`
28097 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28098 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28104 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28105 as_basename
=basename
28110 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28116 as_me
=`$as_basename -- "$0" ||
28117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28118 X"$0" : 'X\(//\)$' \| \
28119 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28121 sed '/^.*\/\([^/][^/]*\)\/*$/{
28135 # Avoid depending upon Character Ranges.
28136 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28137 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28138 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28139 as_cr_digits
='0123456789'
28140 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28142 ECHO_C
= ECHO_N
= ECHO_T
=
28143 case `echo -n x` in #(((((
28145 case `echo 'xy\c'` in
28146 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28148 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28155 rm -f conf$$ conf$$.exe conf$$.
file
28156 if test -d conf$$.dir
; then
28157 rm -f conf$$.dir
/conf$$.
file
28160 mkdir conf$$.dir
2>/dev
/null
28162 if (echo >conf$$.
file) 2>/dev
/null
; then
28163 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28165 # ... but there are two gotchas:
28166 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28167 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28168 # In both cases, we have to default to `cp -p'.
28169 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28171 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28179 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28180 rmdir conf$$.dir
2>/dev
/null
28185 # Create "$as_dir" as a directory, including parents if necessary.
28190 -*) as_dir
=.
/$as_dir;;
28192 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28196 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28197 *) as_qdir
=$as_dir;;
28199 as_dirs
="'$as_qdir' $as_dirs"
28200 as_dir
=`$as_dirname -- "$as_dir" ||
28201 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28202 X"$as_dir" : 'X\(//\)[^/]' \| \
28203 X"$as_dir" : 'X\(//\)$' \| \
28204 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28205 $as_echo X"$as_dir" |
28206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28210 /^X\(\/\/\)[^/].*/{
28223 test -d "$as_dir" && break
28225 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28226 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28230 if mkdir
-p .
2>/dev
/null
; then
28231 as_mkdir_p
='mkdir -p "$as_dir"'
28233 test -d .
/-p && rmdir .
/-p
28237 if test -x / >/dev
/null
2>&1; then
28238 as_test_x
='test -x'
28240 if ls -dL / >/dev
/null
2>&1; then
28247 if test -d "$1"; then
28253 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28254 ???[sx]*):;;*)false;;esac;fi
28258 as_executable_p
=$as_test_x
28260 # Sed expression to map a string onto a valid CPP name.
28261 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28263 # Sed expression to map a string onto a valid variable name.
28264 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28268 ## ----------------------------------- ##
28269 ## Main body of $CONFIG_STATUS script. ##
28270 ## ----------------------------------- ##
28272 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28275 # Save the log message, to keep $0 and so on meaningful, and to
28276 # report actual input values of CONFIG_FILES etc. instead of their
28277 # values after options handling.
28279 This file was extended by $as_me, which was
28280 generated by GNU Autoconf 2.64. Invocation command line was
28282 CONFIG_FILES = $CONFIG_FILES
28283 CONFIG_HEADERS = $CONFIG_HEADERS
28284 CONFIG_LINKS = $CONFIG_LINKS
28285 CONFIG_COMMANDS = $CONFIG_COMMANDS
28288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28293 case $ac_config_files in *"
28294 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28297 case $ac_config_headers in *"
28298 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28303 # Files that config.status was made for.
28304 config_files="$ac_config_files"
28305 config_headers="$ac_config_headers"
28306 config_commands="$ac_config_commands"
28310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28312 \`$as_me' instantiates files and other configuration actions
28313 from templates according to the current configuration. Unless the files
28314 and actions are specified as TAGs, all are instantiated by default.
28316 Usage: $0 [OPTION]... [TAG]...
28318 -h, --help print this help, then exit
28319 -V, --version print version number and configuration settings, then exit
28320 -q, --quiet, --silent
28321 do not print progress messages
28322 -d, --debug don't remove temporary files
28323 --recheck update $as_me by reconfiguring in the same conditions
28324 --file=FILE[:TEMPLATE]
28325 instantiate the configuration file FILE
28326 --header=FILE[:TEMPLATE]
28327 instantiate the configuration header FILE
28329 Configuration files:
28332 Configuration headers:
28335 Configuration commands:
28338 Report bugs to the package provider."
28341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28344 configured by $0, generated by GNU Autoconf 2.64,
28345 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28347 Copyright (C) 2009 Free Software Foundation, Inc.
28348 This config.status script is free software; the Free Software Foundation
28349 gives unlimited permission to copy, distribute and modify it."
28354 test -n "\$AWK" || AWK=awk
28357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28358 # The default lists apply if the user does not specify any file.
28364 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28365 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28376 # Handling of the options.
28377 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28379 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28380 $as_echo "$ac_cs_version"; exit ;;
28381 --debug |
--debu |
--deb |
--de |
--d |
-d )
28383 --file |
--fil |
--fi |
--f )
28386 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28388 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28389 ac_need_defaults
=false
;;
28390 --header |
--heade |
--head |
--hea )
28393 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28395 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28396 ac_need_defaults
=false
;;
28398 # Conflict between --help and --header
28399 as_fn_error
"ambiguous option: \`$1'
28400 Try \`$0 --help' for more information.";;
28401 --help |
--hel |
-h )
28402 $as_echo "$ac_cs_usage"; exit ;;
28403 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28404 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28407 # This is an error.
28408 -*) as_fn_error
"unrecognized option: \`$1'
28409 Try \`$0 --help' for more information." ;;
28411 *) as_fn_append ac_config_targets
" $1"
28412 ac_need_defaults
=false
;;
28418 ac_configure_extra_args
=
28420 if $ac_cs_silent; then
28422 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28427 if \$ac_cs_recheck; then
28428 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28430 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28431 CONFIG_SHELL='$SHELL'
28432 export CONFIG_SHELL
28437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28442 ## Running $as_me. ##
28448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28452 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28453 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28460 # Handling of arguments.
28461 for ac_config_target
in $ac_config_targets
28463 case $ac_config_target in
28464 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28465 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
28466 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
28467 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28468 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28469 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28470 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28471 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28473 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28478 # If the user did not use the arguments to specify the items to instantiate,
28479 # then the envvar interface is used. Set only those that are not.
28480 # We use the long form for the default assignment because of an extremely
28481 # bizarre bug on SunOS 4.1.3.
28482 if $ac_need_defaults; then
28483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28485 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28488 # Have a temporary directory for convenience. Make it in the build tree
28489 # simply because there is no reason against having it here, and in addition,
28490 # creating and moving files from /tmp can sometimes cause problems.
28491 # Hook for its removal unless debugging.
28492 # Note that there is a small window in which the directory will not be cleaned:
28493 # after its creation but before its name has been assigned to `$tmp'.
28497 trap 'exit_status=$?
28498 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28500 trap 'as_fn_exit 1' 1 2 13 15
28502 # Create a (secure) tmp directory for tmp files.
28505 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28506 test -n "$tmp" && test -d "$tmp"
28509 tmp
=.
/conf$$
-$RANDOM
28510 (umask 077 && mkdir
"$tmp")
28511 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28513 # Set up the scripts for CONFIG_FILES section.
28514 # No need to generate them if there are no CONFIG_FILES.
28515 # This happens for instance with `./config.status config.h'.
28516 if test -n "$CONFIG_FILES"; then
28518 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28519 ac_cs_awk_getline
=:
28520 ac_cs_awk_pipe_init
=
28521 ac_cs_awk_read_file
='
28522 while ((getline aline < (F[key])) > 0)
28525 ac_cs_awk_pipe_fini
=
28527 ac_cs_awk_getline
=false
28528 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28529 ac_cs_awk_read_file
='
28531 print "cat " F[key] " &&"
28532 '$ac_cs_awk_pipe_init
28533 # The final `:' finishes the AND list.
28534 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28536 ac_cr
=`echo X | tr X '\015'`
28537 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28538 # But we know of no other shell where ac_cr would be empty at this
28539 # point, so we can use a bashism as a fallback.
28540 if test "x$ac_cr" = x
; then
28541 eval ac_cr
=\$
\'\\r
\'
28543 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28544 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28547 ac_cs_awk_cr
=$ac_cr
28550 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28553 # Create commands to substitute file output variables.
28555 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28556 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28557 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28560 } >conf$
$files.sh
&&
28561 . .
/conf$
$files.sh ||
28562 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28563 rm -f conf$
$files.sh
28566 echo "cat >conf$$subs.awk <<_ACEOF" &&
28567 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28569 } >conf$$subs.sh ||
28570 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28571 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28573 for ac_last_try in false false false false false :; do
28574 . ./conf$$subs.sh ||
28575 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28577 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28578 if test $ac_delim_n = $ac_delim_num; then
28580 elif $ac_last_try; then
28581 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28583 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28586 rm -f conf$$subs.sh
28588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28589 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28593 s/^/S["/; s
/!.
*/"]=/
28603 s/\(.\{148\}\).*/\1/
28605 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28610 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28617 s/\(.\{148\}\).*/\1/
28619 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28623 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28628 ' <conf$$subs.awk | sed '
28633 ' >>$CONFIG_STATUS || ac_write_fail=1
28634 rm -f conf$$subs.awk
28635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28637 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28638 for (key in S) S_is_set[key] = 1
28640 \$ac_cs_awk_pipe_init
28644 nfields = split(line, field, "@
")
28646 len = length(field[1])
28647 for (i = 2; i < nfields; i++) {
28649 keylen = length(key)
28650 if (S_is_set[key]) {
28652 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28653 len += length(value) + length(field[++i])
28658 if (nfields == 3 && !substed) {
28660 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28661 \$ac_cs_awk_read_file
28667 \$ac_cs_awk_pipe_fini
28670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28671 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28672 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28675 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28676 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28679 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28680 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28681 # trailing colons and then remove the whole line if VPATH becomes empty
28682 # (actually we leave an empty line to preserve line numbers).
28683 if test "x
$srcdir" = x.; then
28684 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28685 s/:*\$(srcdir):*/:/
28686 s/:*\${srcdir}:*/:/
28688 s/^\([^=]*=[ ]*\):*/\1/
28694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28695 fi # test -n "$CONFIG_FILES"
28697 # Set up the scripts for CONFIG_HEADERS section.
28698 # No need to generate them if there are no CONFIG_HEADERS.
28699 # This happens for instance with `./config.status Makefile'.
28700 if test -n "$CONFIG_HEADERS"; then
28701 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28705 # Transform confdefs.h into an awk script `defines.awk', embedded as
28706 # here-document in config.status, that substitutes the proper values into
28707 # config.h.in to produce config.h.
28709 # Create a delimiter string that does not exist in confdefs.h, to ease
28710 # handling of long lines.
28712 for ac_last_try in false false :; do
28713 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28714 if test -z "$ac_t"; then
28716 elif $ac_last_try; then
28717 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28719 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28723 # For the awk script, D is an array of macro values keyed by name,
28724 # likewise P contains macro parameters if any. Preserve backslash
28725 # newline sequences.
28727 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28729 s/.\{148\}/&'"$ac_delim"'/g
28732 s/^[ ]*#[ ]*define[ ][ ]*/ /
28739 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28741 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28745 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28746 D["\
1"]=" \
3\\\\\\n
"\\/p
28748 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28753 s/.\{148\}/&'"$ac_delim"'/g
28758 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28761 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28763 ' <confdefs.h | sed '
28764 s/'"$ac_delim"'/"\\\
28765 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28768 for (key in D) D_is_set[key] = 1
28771 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28773 split(line, arg, " ")
28774 if (arg[1] == "#") {
28778 defundef
= substr
(arg
[1], 2)
28781 split(mac1
, mac2
, "(") #)
28783 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28784 if (D_is_set
[macro
]) {
28785 # Preserve the white space surrounding the "#".
28786 print prefix
"define", macro P
[macro
] D
[macro
]
28789 # Replace #undef with comments. This is necessary, for example,
28790 # in the case of _POSIX_SOURCE, which is predefined and required
28791 # on some systems where configure will not decide to define it.
28792 if (defundef
== "undef") {
28793 print
"/*", prefix defundef
, macro
, "*/"
28801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28802 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28803 fi # test -n "$CONFIG_HEADERS"
28806 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28811 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28813 case $ac_mode$ac_tag in
28815 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28816 :[FH
]-) ac_tag
=-:-;;
28817 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28834 -) ac_f
="$tmp/stdin";;
28835 *) # Look for the file first in the build tree, then in the source tree
28836 # (if the path is not absolute). The absolute path cannot be DOS-style,
28837 # because $ac_f cannot contain `:'.
28841 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28843 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28845 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28846 as_fn_append ac_file_inputs
" '$ac_f'"
28849 # Let's still pretend it is `configure' which instantiates (i.e., don't
28850 # use $as_me), people would be surprised to read:
28851 # /* config.h. Generated by config.status. */
28852 configure_input
='Generated from '`
28853 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28855 if test x
"$ac_file" != x-
; then
28856 configure_input
="$ac_file. $configure_input"
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28858 $as_echo "$as_me: creating $ac_file" >&6;}
28860 # Neutralize special characters interpreted by sed in replacement strings.
28861 case $configure_input in #(
28862 *\
&* |
*\|
* |
*\\* )
28863 ac_sed_conf_input
=`$as_echo "$configure_input" |
28864 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28865 *) ac_sed_conf_input
=$configure_input;;
28869 *:-:* |
*:-) cat >"$tmp/stdin" \
28870 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28875 ac_dir
=`$as_dirname -- "$ac_file" ||
28876 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28877 X"$ac_file" : 'X\(//\)[^/]' \| \
28878 X"$ac_file" : 'X\(//\)$' \| \
28879 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28880 $as_echo X"$ac_file" |
28881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28885 /^X\(\/\/\)[^/].*/{
28898 as_dir
="$ac_dir"; as_fn_mkdir_p
28902 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28904 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28905 # A ".." for each directory in $ac_dir_suffix.
28906 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28907 case $ac_top_builddir_sub in
28908 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28909 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28912 ac_abs_top_builddir
=$ac_pwd
28913 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28914 # for backward compatibility:
28915 ac_top_builddir
=$ac_top_build_prefix
28918 .
) # We are building in place.
28920 ac_top_srcdir
=$ac_top_builddir_sub
28921 ac_abs_top_srcdir
=$ac_pwd ;;
28922 [\\/]* | ?
:[\\/]* ) # Absolute name.
28923 ac_srcdir
=$srcdir$ac_dir_suffix;
28924 ac_top_srcdir
=$srcdir
28925 ac_abs_top_srcdir
=$srcdir ;;
28926 *) # Relative name.
28927 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28928 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28929 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28931 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28943 # If the template does not know about datarootdir, expand it.
28944 # FIXME: This hack should be removed a few years after 2.60.
28945 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28956 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28957 *datarootdir
*) ac_datarootdir_seen
=yes;;
28958 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28960 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28963 ac_datarootdir_hack='
28964 s&@datadir@&$datadir&g
28965 s&@docdir@&$docdir&g
28966 s&@infodir@&$infodir&g
28967 s&@localedir@&$localedir&g
28968 s&@mandir@&$mandir&g
28969 s&\\\${datarootdir}&$datarootdir&g' ;;
28973 # Neutralize VPATH when `$srcdir' = `.'.
28974 # Shell code in configure.ac might set extrasub.
28975 # FIXME: do we really want to maintain this feature?
28976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28977 ac_sed_extra="$ac_vpsub
28980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28982 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28983 s|@configure_input@|
$ac_sed_conf_input|
;t t
28984 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28985 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28986 s
&@srcdir@
&$ac_srcdir&;t t
28987 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28988 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28989 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28990 s
&@builddir@
&$ac_builddir&;t t
28991 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28992 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28993 $ac_datarootdir_hack
28995 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28996 if $ac_cs_awk_getline; then
28997 $AWK -f "$tmp/subs.
awk"
28999 $AWK -f "$tmp/subs.
awk" | $SHELL
29001 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29003 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29004 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29005 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29007 which seems to be undefined. Please make sure it is defined." >&5
29008 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29009 which seems to be undefined. Please make sure it is defined." >&2;}
29013 -) cat "$tmp/out" && rm -f "$tmp/out";;
29014 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29016 || as_fn_error "could not create $ac_file" "$LINENO" 5
29022 if test x"$ac_file" != x-; then
29024 $as_echo "/* $configure_input */" \
29025 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29026 } >"$tmp/config.h" \
29027 || as_fn_error "could not create $ac_file" "$LINENO" 5
29028 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29030 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29033 mv "$tmp/config.h" "$ac_file" \
29034 || as_fn_error "could not create $ac_file" "$LINENO" 5
29037 $as_echo "/* $configure_input */" \
29038 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29039 || as_fn_error "could not create -" "$LINENO" 5
29043 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29044 $as_echo "$as_me: executing $ac_file commands" >&6;}
29049 case $ac_file$ac_mode in
29050 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29052 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29053 for lang in $subdirs c-family common
29055 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29057 "as":F) chmod +x as ;;
29058 "collect-ld":F) chmod +x collect-ld ;;
29059 "nm":F) chmod +x nm ;;
29061 case ${CONFIG_HEADERS} in
29062 *auto-host.h:config.in*)
29065 # Make sure all the subdirs exist.
29066 for d in $subdirs doc build common c-family
29068 test -d $d || mkdir $d
29078 ac_clean_files=$ac_clean_files_save
29080 test $ac_write_fail = 0 ||
29081 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29084 # configure is writing to config.log, and then calls config.status.
29085 # config.status does its own redirection, appending to config.log.
29086 # Unfortunately, on DOS this fails, as config.log is still kept open
29087 # by configure, so config.status won't be able to
write to it
; its
29088 # output is simply discarded. So we exec the FD to /dev/null,
29089 # effectively closing config.log, so it can be properly (re)opened and
29090 # appended to by config.status. When coming back to configure, we
29091 # need to make the FD available again.
29092 if test "$no_create" != yes; then
29094 ac_config_status_args
=
29095 test "$silent" = yes &&
29096 ac_config_status_args
="$ac_config_status_args --quiet"
29098 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29100 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29101 # would make configure fail if this is the last instruction.
29102 $ac_cs_success || as_fn_exit $?
29104 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29106 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}