2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 ORIGINAL_AS_FOR_TARGET
728 NATIVE_SYSTEM_HEADER_DIR
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
774 valgrind_path_defines
849 program_transform_name
860 ac_subst_files
='option_includes
863 enable_option_checking
868 enable_generated_files_in_srcdir
878 enable_gather_detailed_mem_stats
890 with_native_system_header_dir
900 enable_sjlj_exceptions
902 enable_leading_mingw64_underscores
905 enable_win32_registry
911 enable_gnu_indirect_function
912 enable_initfini_array
914 enable_gnu_unique_object
915 enable_linker_build_id
919 enable_maintainer_mode
921 enable_version_specific_runtime_libs
923 enable_libquadmath_support
924 with_linker_hash_style
926 ac_precious_vars
='build_alias
947 # Initialize some variables set by options.
949 ac_init_version
=false
950 ac_unrecognized_opts
=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
961 program_transform_name
=s
,x
,x
,
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir
='${exec_prefix}/bin'
976 sbindir
='${exec_prefix}/sbin'
977 libexecdir
='${exec_prefix}/libexec'
978 datarootdir
='${prefix}/share'
979 datadir
='${datarootdir}'
980 sysconfdir
='${prefix}/etc'
981 sharedstatedir
='${prefix}/com'
982 localstatedir
='${prefix}/var'
983 includedir
='${prefix}/include'
984 oldincludedir
='/usr/include'
985 docdir
='${datarootdir}/doc/${PACKAGE}'
986 infodir
='${datarootdir}/info'
991 libdir
='${exec_prefix}/lib'
992 localedir
='${datarootdir}/locale'
993 mandir
='${datarootdir}/man'
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\
$ac_option
1007 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1013 case $ac_dashdash$ac_option in
1017 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1019 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1020 bindir
=$ac_optarg ;;
1022 -build |
--build |
--buil |
--bui |
--bu)
1023 ac_prev
=build_alias
;;
1024 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1025 build_alias
=$ac_optarg ;;
1027 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1028 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1029 ac_prev
=cache_file
;;
1030 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1031 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1032 cache_file
=$ac_optarg ;;
1034 --config-cache |
-C)
1035 cache_file
=config.cache
;;
1037 -datadir |
--datadir |
--datadi |
--datad)
1039 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1040 datadir
=$ac_optarg ;;
1042 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1043 |
--dataroo |
--dataro |
--datar)
1044 ac_prev
=datarootdir
;;
1045 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1046 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1047 datarootdir
=$ac_optarg ;;
1049 -disable-* |
--disable-*)
1050 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1053 as_fn_error
"invalid feature name: $ac_useropt"
1054 ac_useropt_orig
=$ac_useropt
1055 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_
$ac_useropt"
1060 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep
=', ';;
1063 eval enable_
$ac_useropt=no
;;
1065 -docdir |
--docdir |
--docdi |
--doc |
--do)
1067 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1068 docdir
=$ac_optarg ;;
1070 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1072 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1073 dvidir
=$ac_optarg ;;
1075 -enable-* |
--enable-*)
1076 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1079 as_fn_error
"invalid feature name: $ac_useropt"
1080 ac_useropt_orig
=$ac_useropt
1081 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_
$ac_useropt"
1086 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep
=', ';;
1089 eval enable_
$ac_useropt=\
$ac_optarg ;;
1091 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1092 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1093 |
--exec |
--exe |
--ex)
1094 ac_prev
=exec_prefix
;;
1095 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1096 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1097 |
--exec=* |
--exe=* |
--ex=*)
1098 exec_prefix
=$ac_optarg ;;
1100 -gas |
--gas |
--ga |
--g)
1101 # Obsolete; use --with-gas.
1104 -help |
--help |
--hel |
--he |
-h)
1105 ac_init_help
=long
;;
1106 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1107 ac_init_help
=recursive
;;
1108 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1109 ac_init_help
=short
;;
1111 -host |
--host |
--hos |
--ho)
1112 ac_prev
=host_alias
;;
1113 -host=* |
--host=* |
--hos=* |
--ho=*)
1114 host_alias
=$ac_optarg ;;
1116 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1118 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1120 htmldir
=$ac_optarg ;;
1122 -includedir |
--includedir |
--includedi |
--included |
--include \
1123 |
--includ |
--inclu |
--incl |
--inc)
1124 ac_prev
=includedir
;;
1125 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1126 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1127 includedir
=$ac_optarg ;;
1129 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1131 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1132 infodir
=$ac_optarg ;;
1134 -libdir |
--libdir |
--libdi |
--libd)
1136 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1137 libdir
=$ac_optarg ;;
1139 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1140 |
--libexe |
--libex |
--libe)
1141 ac_prev
=libexecdir
;;
1142 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1143 |
--libexe=* |
--libex=* |
--libe=*)
1144 libexecdir
=$ac_optarg ;;
1146 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1147 ac_prev
=localedir
;;
1148 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1149 localedir
=$ac_optarg ;;
1151 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1152 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1153 ac_prev
=localstatedir
;;
1154 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1155 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1156 localstatedir
=$ac_optarg ;;
1158 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1160 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1161 mandir
=$ac_optarg ;;
1163 -nfp |
--nfp |
--nf)
1164 # Obsolete; use --without-fp.
1167 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1168 |
--no-cr |
--no-c |
-n)
1171 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1172 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1175 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1176 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1177 |
--oldin |
--oldi |
--old |
--ol |
--o)
1178 ac_prev
=oldincludedir
;;
1179 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1180 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1181 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1182 oldincludedir
=$ac_optarg ;;
1184 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1186 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1187 prefix
=$ac_optarg ;;
1189 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1190 |
--program-pre |
--program-pr |
--program-p)
1191 ac_prev
=program_prefix
;;
1192 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1193 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1194 program_prefix
=$ac_optarg ;;
1196 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1197 |
--program-suf |
--program-su |
--program-s)
1198 ac_prev
=program_suffix
;;
1199 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1200 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1201 program_suffix
=$ac_optarg ;;
1203 -program-transform-name |
--program-transform-name \
1204 |
--program-transform-nam |
--program-transform-na \
1205 |
--program-transform-n |
--program-transform- \
1206 |
--program-transform |
--program-transfor \
1207 |
--program-transfo |
--program-transf \
1208 |
--program-trans |
--program-tran \
1209 |
--progr-tra |
--program-tr |
--program-t)
1210 ac_prev
=program_transform_name
;;
1211 -program-transform-name=* |
--program-transform-name=* \
1212 |
--program-transform-nam=* |
--program-transform-na=* \
1213 |
--program-transform-n=* |
--program-transform-=* \
1214 |
--program-transform=* |
--program-transfor=* \
1215 |
--program-transfo=* |
--program-transf=* \
1216 |
--program-trans=* |
--program-tran=* \
1217 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1218 program_transform_name
=$ac_optarg ;;
1220 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1222 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1223 pdfdir
=$ac_optarg ;;
1225 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1227 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1230 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1231 |
-silent |
--silent |
--silen |
--sile |
--sil)
1234 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1236 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1238 sbindir
=$ac_optarg ;;
1240 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1241 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1242 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1244 ac_prev
=sharedstatedir
;;
1245 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1246 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1247 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1249 sharedstatedir
=$ac_optarg ;;
1251 -site |
--site |
--sit)
1253 -site=* |
--site=* |
--sit=*)
1256 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1258 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1259 srcdir
=$ac_optarg ;;
1261 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1262 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1263 ac_prev
=sysconfdir
;;
1264 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1265 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1266 sysconfdir
=$ac_optarg ;;
1268 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1269 ac_prev
=target_alias
;;
1270 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1271 target_alias
=$ac_optarg ;;
1273 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1276 -version |
--version |
--versio |
--versi |
--vers |
-V)
1277 ac_init_version
=: ;;
1280 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1283 as_fn_error
"invalid package name: $ac_useropt"
1284 ac_useropt_orig
=$ac_useropt
1285 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1290 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep
=', ';;
1293 eval with_
$ac_useropt=\
$ac_optarg ;;
1295 -without-* |
--without-*)
1296 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1299 as_fn_error
"invalid package name: $ac_useropt"
1300 ac_useropt_orig
=$ac_useropt
1301 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1306 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep
=', ';;
1309 eval with_
$ac_useropt=no
;;
1312 # Obsolete; use --with-x.
1315 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1316 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1317 ac_prev
=x_includes
;;
1318 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1319 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1320 x_includes
=$ac_optarg ;;
1322 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1323 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1324 ac_prev
=x_libraries
;;
1325 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1326 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1327 x_libraries
=$ac_optarg ;;
1329 -*) as_fn_error
"unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1334 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1338 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1340 eval $ac_envvar=\
$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 if test -n "$ac_prev"; then
1355 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error
"missing argument to $ac_option"
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1362 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 # Check all directory arguments for consistency.
1368 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1373 eval ac_val
=\$
$ac_var
1374 # Remove trailing slashes.
1377 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\
$ac_val;;
1380 # Be sure to have absolute directory names.
1382 [\\/$
]* | ?
:[\\/]* ) continue;;
1383 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1385 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1393 target
=$target_alias
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x
; then
1397 if test "x$build_alias" = x
; then
1398 cross_compiling
=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1407 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1409 test "$silent" = yes && exec 6>/dev
/null
1412 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di
=`ls -di .` &&
1414 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error
"working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error
"pwd does not report name of working directory"
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted
=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir
=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1452 ac_srcdir_defaulted
=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1456 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1458 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1470 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 for ac_var
in $ac_precious_vars; do
1473 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1475 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1486 \`configure' configures this package to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1549 --build=BUILD configure
for building on BUILD
[guessed
]
1550 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1551 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1555 if test -n "$ac_init_help"; then
1560 --disable-option-checking ignore unrecognized
--enable/--with options
1561 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1562 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1563 --enable-generated-files-in-srcdir
1564 put copies of generated files
in source dir intended
1565 for creating
source tarballs
for users without
1566 texinfo bison or flex
1567 --disable-largefile omit support
for large files
1568 --enable-werror-always enable -Werror despite compiler version
1569 --enable-checking[=LIST
]
1570 enable expensive run-time checks. With LIST
, enable
1571 only specific categories of checks. Categories are
:
1572 yes,no
,all
,none
,release. Flags are
:
1573 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1574 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1575 --enable-coverage[=LEVEL
]
1576 enable compiler
's code coverage collection. Use to
1577 measure compiler performance and locate unused parts
1578 of the compiler. With LEVEL, specify optimization.
1579 Values are opt, noopt, default is noopt
1580 --enable-gather-detailed-mem-stats
1581 enable detailed memory allocation stats gathering
1582 --enable-multilib enable library support for multiple ABIs
1583 --enable-multiarch enable support for multiarch paths
1584 --enable-__cxa_atexit enable __cxa_atexit for C++
1585 --enable-decimal-float={no,yes,bid,dpd}
1586 enable decimal float extension to C. Selecting 'bid
'
1587 or 'dpd
' choses which decimal floating point format
1589 --enable-fixed-point enable fixed-point arithmetic extension to C
1590 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1592 --enable-tls enable or disable generation of tls code overriding
1593 the assembler check for tls support
1594 --enable-objc-gc enable the use of Boehm's garbage collector with the
1595 GNU Objective-C runtime
1596 --disable-shared don
't provide a shared libgcc
1597 --enable-languages=LIST specify which front-ends to build
1598 --disable-rpath do not hardcode runtime library paths
1599 --enable-sjlj-exceptions
1600 arrange to use setjmp/longjmp exception handling
1601 --enable-secureplt enable -msecure-plt by default for PowerPC
1602 --enable-leading-mingw64-underscores
1603 enable leading underscores on 64 bit mingw targets
1604 --enable-cld enable -mcld by default for 32bit x86
1605 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1607 --disable-win32-registry
1608 disable lookup of installation paths in the Registry
1610 --enable-win32-registry enable registry lookup (default)
1611 --enable-win32-registry=KEY
1612 use KEY instead of GCC version as the last portion
1614 --enable-shared[=PKGS] build shared libraries [default=yes]
1615 --enable-static[=PKGS] build static libraries [default=yes]
1616 --enable-fast-install[=PKGS]
1617 optimize for fast installation [default=yes]
1618 --disable-libtool-lock avoid locking (might break parallel builds)
1619 --enable-gnu-indirect-function
1620 enable the use of the @gnu_indirect_function to
1622 --enable-initfini-array use .init_array/.fini_array sections
1623 --enable-comdat enable COMDAT group support
1624 --enable-gnu-unique-object
1625 enable the use of the @gnu_unique_object ELF
1626 extension on glibc systems
1627 --enable-linker-build-id
1628 compiler will always pass --build-id to linker
1629 --enable-maintainer-mode
1630 enable make rules and dependencies not useful (and
1631 sometimes confusing) to the casual installer
1632 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1633 thrashing on the build machine
1634 --enable-version-specific-runtime-libs
1635 specify that runtime libraries should be installed
1636 in a compiler-specific directory
1637 --enable-plugin enable plugin support
1638 --disable-libquadmath-support
1639 disable libquadmath support for Fortran
1642 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1643 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1644 --with-build-libsubdir=DIR Directory where to find libraries for build system
1645 --with-local-prefix=DIR specifies directory to put local include
1646 --with-gxx-include-dir=DIR
1647 specifies directory to put g++ header files
1648 --with-cpp-install-dir=DIR
1649 install the user visible C preprocessor in DIR
1650 (relative to PREFIX) as well as PREFIX/bin
1651 --with-gnu-ld arrange to work with GNU ld
1652 --with-ld arrange to use the specified ld (full pathname)
1653 --with-demangler-in-ld try to use demangler in GNU ld
1654 --with-gnu-as arrange to work with GNU as
1655 --with-as arrange to use the specified as (full pathname)
1656 --with-stabs arrange to use stabs instead of host debug format
1657 --with-dwarf2 force the default debug format to be DWARF 2
1658 --with-native-system-header-dir=dir
1659 use dir as the directory to look for standard
1660 system header files in. Defaults to /usr/include.
1661 --with-build-sysroot=sysroot
1662 use sysroot as the system root during the build
1663 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1664 --with-specs=SPECS add SPECS to driver command-line processing
1665 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1666 --with-bugurl=URL Direct users to URL to report a bug
1667 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1668 --with-gnu-ld assume the C compiler uses GNU ld default=no
1669 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1670 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1671 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1673 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1674 --with-plugin-ld=[ARG
] specify the plugin linker
1675 --with-long-double-128 use
128-bit long double by default
1676 --with-gc={page
,zone
} this option is not supported anymore. It used to
1677 choose the garbage collection mechanism to use with
1679 --with-system-zlib use installed libz
1680 --with-linker-hash-style={sysv
,gnu
,both
}
1681 specify the linker
hash style
1683 Some influential environment variables
:
1684 CC C compiler
command
1685 CFLAGS C compiler flags
1686 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1687 nonstandard directory
<lib dir
>
1688 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1689 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1690 you have headers
in a nonstandard directory
<include dir
>
1691 CXX C
++ compiler
command
1692 CXXFLAGS C
++ compiler flags
1694 CXXCPP C
++ preprocessor
1695 GMPLIBS How to link GMP
1696 GMPINC How to
find GMP include files
1697 ISLLIBS How to link ISL
1698 ISLINC How to
find ISL include files
1699 CLOOGLIBS How to link CLOOG
1700 CLOOGINC How to
find CLOOG include files
1702 Use these variables to override the choices made by
`configure' or to help
1703 it to find libraries and programs with nonstandard names/locations.
1705 Report bugs to the package provider.
1710 if test "$ac_init_help" = "recursive"; then
1711 # If there are subdirs, report their specific --help.
1712 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1713 test -d "$ac_dir" ||
1714 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1722 # A ".." for each directory in $ac_dir_suffix.
1723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1724 case $ac_top_builddir_sub in
1725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1729 ac_abs_top_builddir=$ac_pwd
1730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1731 # for backward compatibility:
1732 ac_top_builddir=$ac_top_build_prefix
1735 .) # We are building in place.
1737 ac_top_srcdir=$ac_top_builddir_sub
1738 ac_abs_top_srcdir=$ac_pwd ;;
1739 [\\/]* | ?:[\\/]* ) # Absolute name.
1740 ac_srcdir=$srcdir$ac_dir_suffix;
1741 ac_top_srcdir=$srcdir
1742 ac_abs_top_srcdir=$srcdir ;;
1744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1745 ac_top_srcdir=$ac_top_build_prefix$srcdir
1746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1750 cd "$ac_dir" || { ac_status=$?; continue; }
1751 # Check for guested configure.
1752 if test -f "$ac_srcdir/configure.gnu"; then
1754 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1755 elif test -f "$ac_srcdir/configure"; then
1757 $SHELL "$ac_srcdir/configure" --help=recursive
1759 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1761 cd "$ac_pwd" || { ac_status=$?; break; }
1765 test -n "$ac_init_help" && exit $ac_status
1766 if $ac_init_version; then
1769 generated by GNU Autoconf 2.64
1771 Copyright (C) 2009 Free Software Foundation, Inc.
1772 This configure script is free software; the Free Software Foundation
1773 gives unlimited permission to copy, distribute and modify it.
1778 ## ------------------------ ##
1779 ## Autoconf initialization. ##
1780 ## ------------------------ ##
1782 # ac_fn_c_try_compile LINENO
1783 # --------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_compile ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext
1789 if { { ac_try="$ac_compile"
1791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1792 *) ac_try_echo
=$ac_try;;
1794 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1798 if test -s conftest.err
; then
1799 grep -v '^ *+' conftest.err
>conftest.er1
1800 cat conftest.er1
>&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.
$ac_objext; then :
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.
$ac_ext >&5
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1818 } # ac_fn_c_try_compile
1820 # ac_fn_cxx_try_compile LINENO
1821 # ----------------------------
1822 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_cxx_try_compile
()
1825 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1826 rm -f conftest.
$ac_objext
1827 if { { ac_try
="$ac_compile"
1829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_compile") 2>conftest.err
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest.$ac_objext; then :
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 } # ac_fn_cxx_try_compile
1858 # ac_fn_c_try_cpp LINENO
1859 # ----------------------
1860 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_cpp conftest.$ac_ext"
1866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1867 *) ac_try_echo
=$ac_try;;
1869 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1873 if test -s conftest.err
; then
1874 grep -v '^ *+' conftest.err
>conftest.er1
1875 cat conftest.er1
>&5
1876 mv -f conftest.er1 conftest.err
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } >/dev
/null
&& {
1880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1881 test ! -s conftest.err
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.
$ac_ext >&5
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1895 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1896 # -------------------------------------------------------
1897 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1898 # the include files in INCLUDES and setting the cache variable VAR
1900 ac_fn_c_check_header_mongrel
()
1902 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1903 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907 $as_echo_n "(cached) " >&6
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1913 # Is the header compilable?
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1915 $as_echo_n "checking $2 usability... " >&6; }
1916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1921 if ac_fn_c_try_compile
"$LINENO"; then :
1922 ac_header_compiler
=yes
1924 ac_header_compiler
=no
1926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1928 $as_echo "$ac_header_compiler" >&6; }
1930 # Is the header present?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1932 $as_echo_n "checking $2 presence... " >&6; }
1933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1937 if ac_fn_c_try_cpp
"$LINENO"; then :
1938 ac_header_preproc
=yes
1940 ac_header_preproc
=no
1942 rm -f conftest.err conftest.
$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1944 $as_echo "$ac_header_preproc" >&6; }
1946 # So? What about this header?
1947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1950 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1952 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1956 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1958 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1960 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1962 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1972 eval "$3=\$ac_header_compiler"
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1980 } # ac_fn_c_check_header_mongrel
1982 # ac_fn_c_try_run LINENO
1983 # ----------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1985 # that executables *can* be run.
1988 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1989 if { { ac_try
="$ac_link"
1991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>&5
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2000 { { case "(($ac_try" in
2001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2002 *) ac_try_echo
=$ac_try;;
2004 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_try") 2>&5
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; }; }; then :
2012 $as_echo "$as_me: program exited with status $ac_status" >&5
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.
$ac_ext >&5
2016 ac_retval
=$ac_status
2018 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2019 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2024 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2025 # -------------------------------------------------------
2026 # Tests whether HEADER exists and can be compiled using the include files in
2027 # INCLUDES, setting the cache variable VAR accordingly.
2028 ac_fn_c_check_header_compile
()
2030 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2034 $as_echo_n "(cached) " >&6
2036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2041 if ac_fn_c_try_compile
"$LINENO"; then :
2046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2053 } # ac_fn_c_check_header_compile
2055 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2056 # --------------------------------------------
2057 # Tries to find the compile-time value of EXPR in a program that includes
2058 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2060 ac_fn_c_compute_int
()
2062 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2063 if test "$cross_compiling" = yes; then
2064 # Depending upon the size, compute the lo and hi bounds.
2065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2071 static int test_array [1 - 2 * !(($2) >= 0)];
2078 if ac_fn_c_try_compile
"$LINENO"; then :
2081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2094 if ac_fn_c_try_compile
"$LINENO"; then :
2095 ac_hi
=$ac_mid; break
2097 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2098 if test $ac_lo -le $ac_mid; then
2102 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2113 static int test_array [1 - 2 * !(($2) < 0)];
2120 if ac_fn_c_try_compile
"$LINENO"; then :
2123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2129 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2136 if ac_fn_c_try_compile
"$LINENO"; then :
2137 ac_lo
=$ac_mid; break
2139 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2140 if test $ac_mid -le $ac_hi; then
2144 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 # Binary search between lo and hi bounds.
2155 while test "x$ac_lo" != "x$ac_hi"; do
2156 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2163 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2170 if ac_fn_c_try_compile
"$LINENO"; then :
2173 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2178 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2185 static long int longval () { return $2; }
2186 static unsigned long int ulongval () { return $2; }
2193 FILE *f = fopen ("conftest.val", "w");
2198 long int i = longval ();
2201 fprintf (f, "%ld", i);
2205 unsigned long int i = ulongval ();
2208 fprintf (f, "%lu", i);
2210 /* Do not output a trailing newline, as this causes \r\n confusion
2211 on some platforms. */
2212 return ferror (f) || fclose (f) != 0;
2218 if ac_fn_c_try_run
"$LINENO"; then :
2219 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2223 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2224 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2231 } # ac_fn_c_compute_int
2233 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2234 # -------------------------------------------
2235 # Tests whether TYPE exists after having included INCLUDES, setting cache
2236 # variable VAR accordingly.
2237 ac_fn_c_check_type
()
2239 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243 $as_echo_n "(cached) " >&6
2246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2258 if ac_fn_c_try_compile
"$LINENO"; then :
2259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2271 if ac_fn_c_try_compile
"$LINENO"; then :
2276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2285 } # ac_fn_c_check_type
2287 # ac_fn_c_find_intX_t LINENO BITS VAR
2288 # -----------------------------------
2289 # Finds a signed integer type with width BITS, setting cache variable VAR
2291 ac_fn_c_find_intX_t
()
2293 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2295 $as_echo_n "checking for int$2_t... " >&6; }
2296 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2297 $as_echo_n "(cached) " >&6
2300 for ac_type
in int
$2_t 'int' 'long int' \
2301 'long long int' 'short int' 'signed char'; do
2302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 $ac_includes_default
2308 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2315 if ac_fn_c_try_compile
"$LINENO"; then :
2316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2318 $ac_includes_default
2322 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2323 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2330 if ac_fn_c_try_compile
"$LINENO"; then :
2337 eval "$3=\$ac_type" ;;
2340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2344 if test "x$as_val" = x
""no
; then :
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2356 } # ac_fn_c_find_intX_t
2358 # ac_fn_c_try_link LINENO
2359 # -----------------------
2360 # Try to link conftest.$ac_ext, and return whether this succeeded.
2363 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2364 rm -f conftest.
$ac_objext conftest
$ac_exeext
2365 if { { ac_try
="$ac_link"
2367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2371 $as_echo "$ac_try_echo"; } >&5
2372 (eval "$ac_link") 2>conftest.err
2374 if test -s conftest.err; then
2375 grep -v '^ *+' conftest.err >conftest.er1
2376 cat conftest.er1 >&5
2377 mv -f conftest.er1 conftest.err
2379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2380 test $ac_status = 0; } && {
2381 test -z "$ac_c_werror_flag" ||
2382 test ! -s conftest.err
2383 } && test -s conftest$ac_exeext && {
2384 test "$cross_compiling" = yes ||
2385 $as_test_x conftest$ac_exeext
2389 $as_echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2394 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2395 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2396 # interfere with the next link command; also delete a directory that is
2397 # left behind by Apple's compiler. We do this before executing the actions.
2398 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2399 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402 } # ac_fn_c_try_link
2404 # ac_fn_c_find_uintX_t LINENO BITS VAR
2405 # ------------------------------------
2406 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2408 ac_fn_c_find_uintX_t ()
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2412 $as_echo_n "checking for uint$2_t... " >&6; }
2413 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2414 $as_echo_n "(cached) " >&6
2417 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2418 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $ac_includes_default
2425 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2432 if ac_fn_c_try_compile "$LINENO"; then :
2437 eval "$3=\$ac_type" ;;
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 if test "x$as_val" = x""no; then :
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2454 } # ac_fn_c_find_uintX_t
2456 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2457 # ----------------------------------------------
2458 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2459 ac_fn_c_check_header_preproc ()
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465 $as_echo_n "(cached) " >&6
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2471 if ac_fn_c_try_cpp "$LINENO"; then :
2476 rm -f conftest.err conftest.$ac_ext
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483 } # ac_fn_c_check_header_preproc
2485 # ac_fn_cxx_try_cpp LINENO
2486 # ------------------------
2487 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2488 ac_fn_cxx_try_cpp ()
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 if { { ac_try="$ac_cpp conftest.$ac_ext"
2493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2494 *) ac_try_echo
=$ac_try;;
2496 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497 $as_echo "$ac_try_echo"; } >&5
2498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2500 if test -s conftest.err
; then
2501 grep -v '^ *+' conftest.err
>conftest.er1
2502 cat conftest.er1
>&5
2503 mv -f conftest.er1 conftest.err
2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 test $ac_status = 0; } >/dev
/null
&& {
2507 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2508 test ! -s conftest.err
2512 $as_echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.
$ac_ext >&5
2517 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2520 } # ac_fn_cxx_try_cpp
2522 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2523 # ------------------------------------------------
2524 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2525 ac_fn_cxx_check_header_preproc
()
2527 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2529 $as_echo_n "checking for $2... " >&6; }
2530 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2531 $as_echo_n "(cached) " >&6
2533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2537 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2542 rm -f conftest.err conftest.
$ac_ext
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2549 } # ac_fn_cxx_check_header_preproc
2551 # ac_fn_c_check_func LINENO FUNC VAR
2552 # ----------------------------------
2553 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2554 ac_fn_c_check_func
()
2556 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2564 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2566 #define $2 innocuous_$2
2568 /* System header to define __stub macros and hopefully few prototypes,
2569 which can conflict with char $2 (); below.
2570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2571 <limits.h> exists even on freestanding compilers. */
2574 # include <limits.h>
2576 # include <assert.h>
2581 /* Override any GCC internal prototype to avoid an error.
2582 Use char because int might match the return type of a GCC
2583 builtin and then its argument prototype would still apply. */
2588 /* The GNU C library defines this for functions which it implements
2589 to always fail with ENOSYS. Some functions are actually named
2590 something starting with __ and the normal name is an alias. */
2591 #if defined __stub_$2 || defined __stub___$2
2603 if ac_fn_c_try_link
"$LINENO"; then :
2608 rm -f core conftest.err conftest.
$ac_objext \
2609 conftest
$ac_exeext conftest.
$ac_ext
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2616 } # ac_fn_c_check_func
2618 # ac_fn_cxx_try_link LINENO
2619 # -------------------------
2620 # Try to link conftest.$ac_ext, and return whether this succeeded.
2621 ac_fn_cxx_try_link
()
2623 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2624 rm -f conftest.
$ac_objext conftest
$ac_exeext
2625 if { { ac_try
="$ac_link"
2627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632 (eval "$ac_link") 2>conftest.err
2634 if test -s conftest.err; then
2635 grep -v '^ *+' conftest.err >conftest.er1
2636 cat conftest.er1 >&5
2637 mv -f conftest.er1 conftest.err
2639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2640 test $ac_status = 0; } && {
2641 test -z "$ac_cxx_werror_flag" ||
2642 test ! -s conftest.err
2643 } && test -s conftest$ac_exeext && {
2644 test "$cross_compiling" = yes ||
2645 $as_test_x conftest$ac_exeext
2649 $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2654 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2655 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2656 # interfere with the next link command; also delete a directory that is
2657 # left behind by Apple's compiler. We do this before executing the actions.
2658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2662 } # ac_fn_cxx_try_link
2663 cat >config.log <<_ACEOF
2664 This file contains any messages produced by compilers while
2665 running configure, to aid debugging if configure makes a mistake.
2667 It was created by $as_me, which was
2668 generated by GNU Autoconf 2.64. Invocation command line was
2680 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2681 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2682 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2683 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2684 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2686 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2687 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2689 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2690 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2691 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2692 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2693 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2694 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2695 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir=.
2704 $as_echo "PATH: $as_dir"
2720 # Keep a trace of the command line.
2721 # Strip out --no-create and --no-recursion so they do not pile up.
2722 # Strip out --silent because we don't want to record it for future runs.
2723 # Also quote any args containing shell meta-characters.
2724 # Make two passes to allow for proper duplicate-argument suppression.
2728 ac_must_keep_next=false
2734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2736 | -silent | --silent | --silen | --sile | --sil)
2739 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2742 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2744 as_fn_append ac_configure_args1 " '$ac_arg'"
2745 if test $ac_must_keep_next = true; then
2746 ac_must_keep_next=false # Got value, back to normal.
2749 *=* | --config-cache | -C | -disable-* | --disable-* \
2750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2752 | -with-* | --with-* | -without-* | --without-* | --x)
2753 case "$ac_configure_args0 " in
2754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2757 -* ) ac_must_keep_next=true ;;
2760 as_fn_append ac_configure_args " '$ac_arg'"
2765 { ac_configure_args0=; unset ac_configure_args0;}
2766 { ac_configure_args1=; unset ac_configure_args1;}
2768 # When interrupted or exit'd, cleanup temporary files, and complete
2769 # config.log. We remove comments because anyway the quotes in there
2770 # would cause problems or look ugly.
2771 # WARNING: Use '\'' to represent an apostrophe within the trap.
2772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2773 trap 'exit_status=$?
2774 # Save into config.log some information that might help in debugging.
2779 ## ---------------- ##
2780 ## Cache variables. ##
2781 ## ---------------- ##
2784 # The following way of writing the cache mishandles newlines in values,
2786 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2787 eval ac_val=\$$ac_var
2791 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2795 _ | IFS | as_nl) ;; #(
2796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2797 *) { eval $ac_var=; unset $ac_var;} ;;
2802 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2803 *${as_nl}ac_space=\ *)
2805 "s/'\''/'\''\\\\'\'''\''/g;
2806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2817 ## ----------------- ##
2818 ## Output variables. ##
2819 ## ----------------- ##
2822 for ac_var in $ac_subst_vars
2824 eval ac_val=\$$ac_var
2826 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2828 $as_echo "$ac_var='\''$ac_val'\''"
2832 if test -n "$ac_subst_files"; then
2834 ## ------------------- ##
2835 ## File substitutions. ##
2836 ## ------------------- ##
2839 for ac_var in $ac_subst_files
2841 eval ac_val=\$$ac_var
2843 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2845 $as_echo "$ac_var='\''$ac_val'\''"
2850 if test -s confdefs.h; then
2860 test "$ac_signal" != 0 &&
2861 $as_echo "$as_me: caught signal $ac_signal"
2862 $as_echo "$as_me: exit $exit_status"
2864 rm -f core *.core core.conftest.* &&
2865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2868 for ac_signal in 1 2 13 15; do
2869 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2874 rm -f -r conftest* confdefs.h
2876 $as_echo "/* confdefs.h */" > confdefs.h
2878 # Predefined preprocessor variables.
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_NAME "$PACKAGE_NAME"
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_STRING "$PACKAGE_STRING"
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_URL "$PACKAGE_URL"
2905 # Let the site file select an alternate cache file if it wants to.
2906 # Prefer an explicitly selected file to automatically selected ones.
2909 if test -n "$CONFIG_SITE"; then
2910 ac_site_file1=$CONFIG_SITE
2911 elif test "x$prefix" != xNONE; then
2912 ac_site_file1=$prefix/share/config.site
2913 ac_site_file2=$prefix/etc/config.site
2915 ac_site_file1=$ac_default_prefix/share/config.site
2916 ac_site_file2=$ac_default_prefix/etc/config.site
2918 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2920 test "x$ac_site_file" = xNONE && continue
2921 if test -r "$ac_site_file"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2924 sed 's/^/| /' "$ac_site_file" >&5
2929 if test -r "$cache_file"; then
2930 # Some versions of bash will fail to source /dev/null (special
2931 # files actually), so we avoid doing that.
2932 if test -f "$cache_file"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2934 $as_echo "$as_me: loading cache $cache_file" >&6;}
2936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2937 *) . "./$cache_file";;
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2942 $as_echo "$as_me: creating cache $cache_file" >&6;}
2946 # Check that the precious variables saved in the cache have kept the same
2948 ac_cache_corrupted=false
2949 for ac_var in $ac_precious_vars; do
2950 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2951 eval ac_new_set=\$ac_env_${ac_var}_set
2952 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2953 eval ac_new_val=\$ac_env_${ac_var}_value
2954 case $ac_old_set,$ac_new_set in
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2957 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2958 ac_cache_corrupted=: ;;
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2961 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2962 ac_cache_corrupted=: ;;
2965 if test "x$ac_old_val" != "x$ac_new_val"; then
2966 # differences in whitespace do not lead to failure.
2967 ac_old_val_w=`echo x
$ac_old_val`
2968 ac_new_val_w=`echo x
$ac_new_val`
2969 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2971 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2972 ac_cache_corrupted=:
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2975 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2976 eval $ac_var=\$ac_old_val
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2979 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2981 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2984 # Pass precious variables to config.status.
2985 if test "$ac_new_set" = set; then
2987 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2988 *) ac_arg=$ac_var=$ac_new_val ;;
2990 case " $ac_configure_args " in
2991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2992 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2996 if $ac_cache_corrupted; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3000 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3001 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3003 ## -------------------- ##
3004 ## Main body of script. ##
3005 ## -------------------- ##
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3021 gcc_version=`cat $srcdir/BASE-VER
`
3023 # Determine the host, build, and target systems
3025 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3026 for ac_t in install-sh install.sh shtool; do
3027 if test -f "$ac_dir/$ac_t"; then
3029 ac_install_sh="$ac_aux_dir/$ac_t -c"
3034 if test -z "$ac_aux_dir"; then
3035 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3038 # These three variables are undocumented and unsupported,
3039 # and are intended to be withdrawn in a future Autoconf release.
3040 # They can cause serious problems if a builder's source tree is in a directory
3041 # whose full name contains unusual characters.
3042 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3043 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3044 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3047 # Make sure we can run config.sub.
3048 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3049 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3052 $as_echo_n "checking build system type... " >&6; }
3053 if test "${ac_cv_build+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3056 ac_build_alias=$build_alias
3057 test "x$ac_build_alias" = x &&
3058 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3059 test "x$ac_build_alias" = x &&
3060 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3061 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3062 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3066 $as_echo "$ac_cv_build" >&6; }
3067 case $ac_cv_build in
3069 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3072 ac_save_IFS=$IFS; IFS='-'
3078 # Remember, the first character of IFS is used to create $*,
3079 # except with old shells:
3082 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3086 $as_echo_n "checking host system type... " >&6; }
3087 if test "${ac_cv_host+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3090 if test "x$host_alias" = x; then
3091 ac_cv_host=$ac_cv_build
3093 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3094 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3099 $as_echo "$ac_cv_host" >&6; }
3102 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3105 ac_save_IFS=$IFS; IFS='-'
3111 # Remember, the first character of IFS is used to create $*,
3112 # except with old shells:
3115 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3119 $as_echo_n "checking target system type... " >&6; }
3120 if test "${ac_cv_target+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3123 if test "x$target_alias" = x; then
3124 ac_cv_target=$ac_cv_host
3126 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3127 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3132 $as_echo "$ac_cv_target" >&6; }
3133 case $ac_cv_target in
3135 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3137 target=$ac_cv_target
3138 ac_save_IFS=$IFS; IFS='-'
3144 # Remember, the first character of IFS is used to create $*,
3145 # except with old shells:
3148 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3151 # The aliases save the names the user supplied, while $host etc.
3152 # will get canonicalized.
3153 test -n "$target_alias" &&
3154 test "$program_prefix$program_suffix$program_transform_name" = \
3156 program_prefix=${target_alias}-
3158 # Determine the noncanonical target name, for directory use.
3159 case ${build_alias} in
3160 "") build_noncanonical=${build} ;;
3161 *) build_noncanonical=${build_alias} ;;
3164 case ${host_alias} in
3165 "") host_noncanonical=${build_noncanonical} ;;
3166 *) host_noncanonical=${host_alias} ;;
3169 case ${target_alias} in
3170 "") target_noncanonical=${host_noncanonical} ;;
3171 *) target_noncanonical=${target_alias} ;;
3177 # Determine the target- and build-specific subdirectories
3179 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3180 # have matching libraries, they should use host libraries: Makefile.tpl
3181 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3182 # However, they still use the build modules, because the corresponding
3183 # host modules (e.g. bison) are only built for the host when bootstrap
3185 # - build_subdir is where we find build modules, and never changes.
3186 # - build_libsubdir is where we find build libraries, and can be overridden.
3188 # Prefix 'build-' so this never conflicts with target_subdir.
3189 build_subdir="build-${build_noncanonical}"
3191 # Check whether --with-build-libsubdir was given.
3192 if test "${with_build_libsubdir+set}" = set; then :
3193 withval=$with_build_libsubdir; build_libsubdir="$withval"
3195 build_libsubdir="$build_subdir"
3198 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3199 if ( test $srcdir = . && test -d gcc ) \
3200 || test -d $srcdir/../host-${host_noncanonical}; then
3201 host_subdir="host-${host_noncanonical}"
3206 target_subdir=${target_noncanonical}
3209 # Set program_transform_name
3210 test "$program_prefix" != NONE &&
3211 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3212 # Use a double $ so make ignores it.
3213 test "$program_suffix" != NONE &&
3214 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3215 # Double any \ or $.
3216 # By default was `s
,x
,x
', remove it if useless.
3217 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3218 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3221 # Check for bogus environment variables.
3222 # Test if LIBRARY_PATH contains the notation for the current directory
3223 # since this would lead to problems installing/building glibc.
3224 # LIBRARY_PATH contains the current directory if one of the following
3226 # - one of the terminals (":" and ";") is the first or last sign
3227 # - two terminals occur directly after each other
3228 # - the path contains an element with a dot in it
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3230 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3231 case ${LIBRARY_PATH} in
3232 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3233 library_path_setting="contains current directory"
3236 library_path_setting="ok"
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3240 $as_echo "$library_path_setting" >&6; }
3241 if test "$library_path_setting" != "ok"; then
3243 *** LIBRARY_PATH shouldn't contain the current directory when
3244 *** building gcc. Please change the environment variable
3245 *** and run configure again.
" "$LINENO" 5
3248 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3249 # since this would lead to problems installing/building glibc.
3250 # GCC_EXEC_PREFIX contains the current directory if one of the following
3252 # - one of the terminals (":" and ";") is the first or last sign
3253 # - two terminals occur directly after each other
3254 # - the path contains an element with a dot in it
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3256 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3257 case ${GCC_EXEC_PREFIX} in
3258 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3259 gcc_exec_prefix_setting="contains current directory
"
3262 gcc_exec_prefix_setting="ok
"
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3266 $as_echo "$gcc_exec_prefix_setting" >&6; }
3267 if test "$gcc_exec_prefix_setting" != "ok
"; then
3269 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3270 *** building gcc. Please change the environment variable
3271 *** and run configure again." "$LINENO" 5
3278 # Specify the local prefix
3281 # Check whether --with-local-prefix was given.
3282 if test "${with_local_prefix+set}" = set; then :
3283 withval=$with_local_prefix; case "${withval}" in
3284 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3286 *) local_prefix=$with_local_prefix ;;
3291 # Default local prefix if it is empty
3292 if test x$local_prefix = x; then
3293 local_prefix=/usr/local
3296 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3297 # passed in by the toplevel make and thus we'd get different behavior
3298 # depending on where we built the sources.
3299 gcc_gxx_include_dir
=
3300 # Specify the g++ header file directory
3302 # Check whether --with-gxx-include-dir was given.
3303 if test "${with_gxx_include_dir+set}" = set; then :
3304 withval
=$with_gxx_include_dir; case "${withval}" in
3305 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3307 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3312 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3313 if test x
${gcc_gxx_include_dir} = x
; then
3314 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3315 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3317 libstdcxx_incdir
='include/c++/$(version)'
3318 if test x
$host != x
$target; then
3319 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3321 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3325 gcc_gxx_include_dir_add_sysroot
=0
3326 if test "${with_sysroot+set}" = set; then
3327 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3328 if test "${gcc_gxx_without_sysroot}"; then
3329 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3330 gcc_gxx_include_dir_add_sysroot
=1
3335 # Check whether --with-cpp_install_dir was given.
3336 if test "${with_cpp_install_dir+set}" = set; then :
3337 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3338 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3339 elif test x
$withval != xno
; then
3340 cpp_install_dir
=$withval
3345 # We would like to our source tree to be readonly. However when releases or
3346 # pre-releases are generated, the flex/bison generated files as well as the
3347 # various formats of manuals need to be included along with the rest of the
3348 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3352 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3353 # Check whether --enable-generated-files-in-srcdir was given.
3354 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3355 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3357 generated_files_in_srcdir
=no
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3362 $as_echo "$generated_files_in_srcdir" >&6; }
3364 if test "$generated_files_in_srcdir" = "yes"; then
3371 # -------------------
3372 # Find default linker
3373 # -------------------
3377 # Check whether --with-gnu-ld was given.
3378 if test "${with_gnu_ld+set}" = set; then :
3379 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3385 # With pre-defined ld
3387 # Check whether --with-ld was given.
3388 if test "${with_ld+set}" = set; then :
3389 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3392 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3393 if test ! -x "$DEFAULT_LINKER"; then
3394 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3395 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3399 cat >>confdefs.h
<<_ACEOF
3400 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3406 $as_echo_n "checking whether a default linker was specified... " >&6; }
3407 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3408 if test x
"$gnu_ld_flag" = x
"no"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3410 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3413 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3420 # With demangler in GNU ld
3422 # Check whether --with-demangler-in-ld was given.
3423 if test "${with_demangler_in_ld+set}" = set; then :
3424 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3430 # ----------------------
3431 # Find default assembler
3432 # ----------------------
3436 # Check whether --with-gnu-as was given.
3437 if test "${with_gnu_as+set}" = set; then :
3438 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3445 # Check whether --with-as was given.
3446 if test "${with_as+set}" = set; then :
3447 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3450 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3451 if test ! -x "$DEFAULT_ASSEMBLER"; then
3452 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3453 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3457 cat >>confdefs.h
<<_ACEOF
3458 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3464 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3465 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3466 if test x
"$gas_flag" = x
"no"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3471 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3482 # If a non-executable a.out is present (e.g. created by GNU as above even if
3483 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3484 # file, even when creating an executable, so an execution test fails.
3485 # Remove possible default executable files to avoid this.
3487 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3488 # Autoconf includes it.
3489 rm -f a.out a.exe b.out
3491 # Find the native compiler
3493 ac_cpp
='$CPP $CPPFLAGS'
3494 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3497 if test -n "$ac_tool_prefix"; then
3498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3499 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC
="$CC" # Let the user override the test.
3508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir
=.
3513 for ac_exec_ext
in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3536 if test -z "$ac_cv_prog_CC"; then
3538 # Extract the first word of "gcc", so it can be a program name with args.
3539 set dummy gcc
; ac_word
=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
3545 if test -n "$ac_ct_CC"; then
3546 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir
=.
3553 for ac_exec_ext
in '' $ac_executable_extensions; do
3554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3555 ac_cv_prog_ac_ct_CC
="gcc"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3566 if test -n "$ac_ct_CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3568 $as_echo "$ac_ct_CC" >&6; }
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3574 if test "x$ac_ct_CC" = x
; then
3577 case $cross_compiling:$ac_tool_warned in
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned
=yes ;;
3589 if test -z "$CC"; then
3590 if test -n "$ac_tool_prefix"; then
3591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3592 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC
="$CC" # Let the user override the test.
3601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3605 test -z "$as_dir" && as_dir
=.
3606 for ac_exec_ext
in '' $ac_executable_extensions; do
3607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 if test -n "$CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621 $as_echo "$CC" >&6; }
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3630 if test -z "$CC"; then
3631 # Extract the first word of "cc", so it can be a program name with args.
3632 set dummy cc
; ac_word
=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if test "${ac_cv_prog_CC+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC
="$CC" # Let the user override the test.
3642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir
=.
3647 for ac_exec_ext
in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3650 ac_prog_rejected
=yes
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 if test $ac_prog_rejected = yes; then
3662 # We found a bogon in the path, so make sure we never use it.
3663 set dummy
$ac_cv_prog_CC
3665 if test $# != 0; then
3666 # We chose a different compiler from the bogus one.
3667 # However, it has the same basename, so the bogon will be chosen
3668 # first if we set CC to just the basename; use the full file name.
3670 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3676 if test -n "$CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 $as_echo "$CC" >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3686 if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog
in cl.exe
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC
="$CC" # Let the user override the test.
3700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir
=.
3705 for ac_exec_ext
in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3727 test -n "$CC" && break
3730 if test -z "$CC"; then
3732 for ac_prog
in cl.exe
3734 # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy
$ac_prog; ac_word
=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3741 if test -n "$ac_ct_CC"; then
3742 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3748 test -z "$as_dir" && as_dir
=.
3749 for ac_exec_ext
in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_prog_ac_ct_CC
="$ac_prog"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3762 if test -n "$ac_ct_CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3764 $as_echo "$ac_ct_CC" >&6; }
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3771 test -n "$ac_ct_CC" && break
3774 if test "x$ac_ct_CC" = x
; then
3777 case $cross_compiling:$ac_tool_warned in
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781 ac_tool_warned
=yes ;;
3790 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 as_fn_error
"no acceptable C compiler found in \$PATH
3793 See \`config.log' for more details." "$LINENO" 5; }
3795 # Provide some information about the compiler.
3796 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3799 for ac_option
in --version -v -V -qversion; do
3800 { { ac_try
="$ac_compiler $ac_option >&5"
3802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3809 if test -s conftest.err; then
3811 ... rest of stderr output deleted ...
3812 10q' conftest.err >conftest.er1
3813 cat conftest.er1 >&5
3814 rm -f conftest.er1 conftest.err
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3831 ac_clean_files_save=$ac_clean_files
3832 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3833 # Try to create an executable without -o first, disregard a.out.
3834 # It will help us diagnose broken compilers, and finding out an intuition
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3837 $as_echo_n "checking for C compiler default output file name... " >&6; }
3838 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3840 # The possible output files:
3841 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3844 for ac_file in $ac_files
3847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3848 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3853 if { { ac_try="$ac_link_default"
3855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3856 *) ac_try_echo
=$ac_try;;
3858 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_link_default") 2>&5
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }; then :
3864 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3865 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3866 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3867 # so that the user can short-circuit this test for compilers unknown to
3869 for ac_file
in $ac_files ''
3871 test -f "$ac_file" ||
continue
3873 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3876 # We found the default executable, but exeext='' is most
3880 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3882 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3884 # We set ac_cv_exeext here because the later test for it is not
3885 # safe: cross compilers may not add the suffix if given an `-o'
3886 # argument, so we may need to know it at that point already.
3887 # Even if this section looks crufty: it has the advantage of
3894 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3900 $as_echo "$ac_file" >&6; }
3901 if test -z "$ac_file"; then :
3902 $as_echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.
$ac_ext >&5
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 { as_fn_set_status
77
3908 as_fn_error
"C compiler cannot create executables
3909 See \`config.log' for more details." "$LINENO" 5; }; }
3911 ac_exeext
=$ac_cv_exeext
3913 # Check that the compiler produces executables we can run. If not, either
3914 # the compiler is broken, or we cross compile.
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3916 $as_echo_n "checking whether the C compiler works... " >&6; }
3917 # If not cross compiling, check that we can run a simple program.
3918 if test "$cross_compiling" != yes; then
3919 if { ac_try
='./$ac_file'
3920 { { case "(($ac_try" in
3921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_try") 2>&5
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; }; then
3932 if test "$cross_compiling" = maybe; then
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error "cannot run C compiled programs.
3938 If you meant to cross compile
, use \
`--host'.
3939 See \`config.log
' for more details." "$LINENO" 5; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3944 $as_echo "yes" >&6; }
3946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3947 ac_clean_files=$ac_clean_files_save
3948 # Check that the compiler produces executables we can run. If not, either
3949 # the compiler is broken, or we cross compile.
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3951 $as_echo_n "checking whether we are cross compiling... " >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3953 $as_echo "$cross_compiling" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3956 $as_echo_n "checking for suffix of executables... " >&6; }
3957 if { { ac_try="$ac_link"
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_link") 2>&5
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; then :
3968 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3969 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3970 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3972 for ac_file
in conftest.exe conftest conftest.
*; do
3973 test -f "$ac_file" ||
continue
3975 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3976 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3985 See \`config.log' for more details." "$LINENO" 5; }
3987 rm -f conftest
$ac_cv_exeext
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3989 $as_echo "$ac_cv_exeext" >&6; }
3991 rm -f conftest.
$ac_ext
3992 EXEEXT
=$ac_cv_exeext
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3995 $as_echo_n "checking for suffix of object files... " >&6; }
3996 if test "${ac_cv_objext+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4010 rm -f conftest.o conftest.obj
4011 if { { ac_try
="$ac_compile"
4013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_compile") 2>&5
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 for ac_file in conftest.o conftest.obj conftest.*; do
4023 test -f "$ac_file" || continue;
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4031 $as_echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error "cannot compute suffix of object files
: cannot compile
4037 See \
`config.log' for more details." "$LINENO" 5; }
4039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4042 $as_echo "$ac_cv_objext" >&6; }
4043 OBJEXT=$ac_cv_objext
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4047 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4064 if ac_fn_c_try_compile "$LINENO"; then :
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4075 if test $ac_compiler_gnu = yes; then
4080 ac_test_CFLAGS=${CFLAGS+set}
4081 ac_save_CFLAGS=$CFLAGS
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4084 if test "${ac_cv_prog_cc_g+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4087 ac_save_c_werror_flag=$ac_c_werror_flag
4088 ac_c_werror_flag=yes
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4102 if ac_fn_c_try_compile "$LINENO"; then :
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4117 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_c_werror_flag=$ac_save_c_werror_flag
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4133 if ac_fn_c_try_compile "$LINENO"; then :
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_c_werror_flag=$ac_save_c_werror_flag
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4144 $as_echo "$ac_cv_prog_cc_g" >&6; }
4145 if test "$ac_test_CFLAGS" = set; then
4146 CFLAGS=$ac_save_CFLAGS
4147 elif test $ac_cv_prog_cc_g = yes; then
4148 if test "$GCC" = yes; then
4154 if test "$GCC" = yes; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4162 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4165 ac_cv_prog_cc_c89=no
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4171 #include <sys/types.h>
4172 #include <sys/stat.h>
4173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4174 struct buf { int x; };
4175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4176 static char *e (p, i)
4182 static char *f (char * (*g) (char **, int), char **p, ...)
4187 s = g (p, va_arg (v,int));
4192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4193 function prototypes and stuff, but not '\xHH' hex character constants.
4194 These don't provoke an error unfortunately, instead are silently treated
4195 as 'x'. The following induces an error, until -std is added to get
4196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4197 array size at least. It's necessary to write '\x00'==0 to get something
4198 that's true only with -std. */
4199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4202 inside strings and character constants. */
4204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4206 int test (int i, double x);
4207 struct s1 {int (*f) (int a);};
4208 struct s2 {int (*f) (double a);};
4209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4223 CC="$ac_save_CC $ac_arg"
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_prog_cc_c89=$ac_arg
4227 rm -f core conftest.err conftest.$ac_objext
4228 test "x$ac_cv_prog_cc_c89" != "xno" && break
4230 rm -f conftest.$ac_ext
4235 case "x$ac_cv_prog_cc_c89" in
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4238 $as_echo "none needed" >&6; } ;;
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4241 $as_echo "unsupported" >&6; } ;;
4243 CC="$CC $ac_cv_prog_cc_c89"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4245 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4247 if test "x$ac_cv_prog_cc_c89" != xno; then :
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257 if test "x$CC" != xcc; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4259 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4262 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4264 set dummy $CC; ac_cc=`$as_echo "$2" |
4265 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4266 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4267 $as_echo_n "(cached) " >&6
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4280 # Make sure it works both with $CC and with simple cc.
4281 # We do the test twice because some compilers refuse to overwrite an
4282 # existing .o file with -o, though they will create one.
4283 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4285 if { { case "(($ac_try" in
4286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4287 *) ac_try_echo
=$ac_try;;
4289 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_try") 2>&5
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; } &&
4295 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301 (eval "$ac_try") 2>&5
4303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304 test $ac_status = 0; };
4306 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4307 if test "x$CC" != xcc; then
4308 # Test first that cc exists at all.
4309 if { ac_try='cc -c conftest.$ac_ext >&5'
4310 { { case "(($ac_try" in
4311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4312 *) ac_try_echo
=$ac_try;;
4314 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_try") 2>&5
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }; }; then
4320 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4322 if { { case "(($ac_try" in
4323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_try") 2>&5
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; } &&
4332 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4334 *) ac_try_echo
=$ac_try;;
4336 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337 $as_echo "$ac_try_echo"; } >&5
4338 (eval "$ac_try") 2>&5
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; };
4346 # cc exists but doesn't like -o.
4347 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4352 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4354 rm -f core conftest
*
4357 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4359 $as_echo "yes" >&6; }
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4364 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4368 # expand $ac_aux_dir to an absolute path
4369 am_aux_dir
=`cd $ac_aux_dir && pwd`
4371 # FIXME: we rely on the cache variable name because
4372 # there is no other way.
4374 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4375 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4376 if test "$am_t" != yes; then
4377 # Losing compiler, so override with the script.
4378 # FIXME: It is wrong to rewrite CC.
4379 # But if we don't then we get into trouble of one sort or another.
4380 # A longer-term fix would be to have automake use am__CC in this case,
4381 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4382 CC
="$am_aux_dir/compile $CC"
4387 ac_cpp
='$CXXCPP $CPPFLAGS'
4388 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4391 if test -z "$CXX"; then
4392 if test -n "$CCC"; then
4395 if test -n "$ac_tool_prefix"; then
4396 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4399 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if test "${ac_cv_prog_CXX+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4405 if test -n "$CXX"; then
4406 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir
=.
4413 for ac_exec_ext
in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 if test -n "$CXX"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4428 $as_echo "$CXX" >&6; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4435 test -n "$CXX" && break
4438 if test -z "$CXX"; then
4440 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443 set dummy
$ac_prog; ac_word
=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4449 if test -n "$ac_ct_CXX"; then
4450 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir
=.
4457 for ac_exec_ext
in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4470 if test -n "$ac_ct_CXX"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4472 $as_echo "$ac_ct_CXX" >&6; }
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4479 test -n "$ac_ct_CXX" && break
4482 if test "x$ac_ct_CXX" = x
; then
4485 case $cross_compiling:$ac_tool_warned in
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489 ac_tool_warned
=yes ;;
4497 # Provide some information about the compiler.
4498 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4501 for ac_option
in --version -v -V -qversion; do
4502 { { ac_try
="$ac_compiler $ac_option >&5"
4504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508 $as_echo "$ac_try_echo"; } >&5
4509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4511 if test -s conftest.err; then
4513 ... rest of stderr output deleted ...
4514 10q' conftest.err >conftest.er1
4515 cat conftest.er1 >&5
4516 rm -f conftest.er1 conftest.err
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4523 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4524 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4541 if ac_fn_cxx_try_compile "$LINENO"; then :
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4551 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4552 if test $ac_compiler_gnu = yes; then
4557 ac_test_CXXFLAGS=${CXXFLAGS+set}
4558 ac_save_CXXFLAGS=$CXXFLAGS
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4560 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4561 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4562 $as_echo_n "(cached) " >&6
4564 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4565 ac_cxx_werror_flag=yes
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4579 if ac_fn_cxx_try_compile "$LINENO"; then :
4580 ac_cv_prog_cxx_g=yes
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4594 if ac_fn_cxx_try_compile "$LINENO"; then :
4597 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4610 if ac_fn_cxx_try_compile "$LINENO"; then :
4611 ac_cv_prog_cxx_g=yes
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4621 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4622 if test "$ac_test_CXXFLAGS" = set; then
4623 CXXFLAGS=$ac_save_CXXFLAGS
4624 elif test $ac_cv_prog_cxx_g = yes; then
4625 if test "$GXX" = yes; then
4631 if test "$GXX" = yes; then
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$GNATBIND"; then
4655 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 GNATBIND=$ac_cv_prog_GNATBIND
4675 if test -n "$GNATBIND"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4677 $as_echo "$GNATBIND" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_GNATBIND"; then
4686 ac_ct_GNATBIND=$GNATBIND
4687 # Extract the first word of "gnatbind", so it can be a program name with args.
4688 set dummy gnatbind; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -n "$ac_ct_GNATBIND"; then
4695 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4715 if test -n "$ac_ct_GNATBIND"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4717 $as_echo "$ac_ct_GNATBIND" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_GNATBIND" = x; then
4726 case $cross_compiling:$ac_tool_warned in
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4732 GNATBIND=$ac_ct_GNATBIND
4735 GNATBIND="$ac_cv_prog_GNATBIND"
4738 if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4746 if test -n "$GNATMAKE"; then
4747 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 GNATMAKE=$ac_cv_prog_GNATMAKE
4767 if test -n "$GNATMAKE"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4769 $as_echo "$GNATMAKE" >&6; }
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4777 if test -z "$ac_cv_prog_GNATMAKE"; then
4778 ac_ct_GNATMAKE=$GNATMAKE
4779 # Extract the first word of "gnatmake", so it can be a program name with args.
4780 set dummy gnatmake; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
4786 if test -n "$ac_ct_GNATMAKE"; then
4787 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4807 if test -n "$ac_ct_GNATMAKE"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4809 $as_echo "$ac_ct_GNATMAKE" >&6; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4815 if test "x$ac_ct_GNATMAKE" = x; then
4818 case $cross_compiling:$ac_tool_warned in
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822 ac_tool_warned=yes ;;
4824 GNATMAKE=$ac_ct_GNATMAKE
4827 GNATMAKE="$ac_cv_prog_GNATMAKE"
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4831 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4832 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4835 cat >conftest.adb <<EOF
4836 procedure conftest is begin null; end conftest;
4838 acx_cv_cc_gcc_supports_ada=no
4839 # There is a bug in old released versions of GCC which causes the
4840 # driver to exit successfully when the appropriate language module
4841 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4842 # Therefore we must check for the error message as well as an
4843 # unsuccessful exit.
4844 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4845 # given a .adb file, but produce no object file. So we must check
4846 # if an object file was really produced to guard against this.
4847 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4848 if test x"$errors" = x && test -f conftest.$ac_objext; then
4849 acx_cv_cc_gcc_supports_ada=yes
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4854 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4856 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4863 # autoconf is lame and doesn't give us any substitution variable for this.
4864 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4865 NO_MINUS_C_MINUS_O=yes
4867 OUTPUT_OPTION='-o $@'
4872 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4873 # optimizations to be activated explicitly by the toplevel.
4875 */prev-gcc/xgcc*) ;;
4876 *) CFLAGS=`echo "$CFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4877 CXXFLAGS=`echo "$CXXFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4882 # Determine PICFLAG for target gnatlib.
4888 # PIC is the default on some targets or must not be used.
4890 # PIC is the default on this platform
4891 # Common symbols not allowed in MH_DYLIB files
4892 PICFLAG_FOR_TARGET=-fno-common
4895 # PIC is the default.
4898 # PIC is the default for 64-bit PA HP-UX.
4900 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4902 i[34567]86-*-mingw* | x86_64-*-mingw*)
4904 i[34567]86-*-interix[3-9]*)
4905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4906 # Instead, we relocate shared libraries at runtime.
4908 i[34567]86-*-nto-qnx*)
4909 # QNX uses GNU C++, but need to define -shared option too, otherwise
4911 PICFLAG_FOR_TARGET='-fPIC -shared'
4913 i[34567]86-pc-msdosdjgpp*)
4914 # DJGPP does not support shared libraries at all.
4917 # On IA64 HP-UX, PIC is the default but the pic flag
4918 # sets the default TLS model and affects inlining.
4919 PICFLAG_FOR_TARGET=-fPIC
4922 # PIC is the default.
4924 rs6000-ibm-aix* | powerpc-ibm-aix*)
4925 # All AIX code is PIC.
4928 # Some targets support both -fPIC and -fpic, but prefer the latter.
4930 i[34567]86-*-* | x86_64-*-*)
4931 PICFLAG_FOR_TARGET=-fpic
4934 PICFLAG_FOR_TARGET=-fpic
4936 # FIXME: Override -fPIC default in libgcc only?
4937 sh-*-linux* | sh[2346lbe]*-*-linux*)
4938 PICFLAG_FOR_TARGET=-fpic
4940 # FIXME: Simplify to sh*-*-netbsd*?
4941 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4942 sh64-*-netbsd* | sh64l*-*-netbsd*)
4943 PICFLAG_FOR_TARGET=-fpic
4945 # Default to -fPIC unless specified otherwise.
4947 PICFLAG_FOR_TARGET=-fPIC
4951 # If the user explicitly uses -fpic/-fPIC, keep that.
4952 case "${CFLAGS_FOR_TARGET}" in
4954 PICFLAG_FOR_TARGET=-fpic
4957 PICFLAG_FOR_TARGET=-fPIC
4963 # -------------------------
4964 # Check C compiler features
4965 # -------------------------
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4974 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4975 # On Suns, sometimes $CPP names a directory.
4976 if test -n "$CPP" && test -d "$CPP"; then
4979 if test -z "$CPP"; then
4980 if test "${ac_cv_prog_CPP+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4983 # Double quotes because CPP needs to be expanded
4984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4987 for ac_c_preproc_warn_flag in '' yes
4989 # Use a header file that comes with gcc, so configuring glibc
4990 # with a fresh cross-compiler works.
4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 # <limits.h> exists even on freestanding compilers.
4993 # On the NeXT, cc -E runs the code through the compiler's parser,
4994 # not just through cpp. "Syntax error" is here to catch this case.
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4998 # include <limits.h>
5000 # include <assert.h>
5004 if ac_fn_c_try_cpp "$LINENO"; then :
5007 # Broken: fails on valid input.
5010 rm -f conftest.err conftest.$ac_ext
5012 # OK, works on sane cases. Now check whether nonexistent headers
5013 # can be detected and how.
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5016 #include <ac_nonexistent.h>
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5019 # Broken: success on invalid input.
5022 # Passes both tests.
5026 rm -f conftest.err conftest.$ac_ext
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.err conftest.
$ac_ext
5031 if $ac_preproc_ok; then :
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5044 $as_echo "$CPP" >&6; }
5046 for ac_c_preproc_warn_flag
in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5057 # include <limits.h>
5059 # include <assert.h>
5063 if ac_fn_c_try_cpp
"$LINENO"; then :
5066 # Broken: fails on valid input.
5069 rm -f conftest.err conftest.
$ac_ext
5071 # OK, works on sane cases. Now check whether nonexistent headers
5072 # can be detected and how.
5073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 #include <ac_nonexistent.h>
5077 if ac_fn_c_try_cpp
"$LINENO"; then :
5078 # Broken: success on invalid input.
5081 # Passes both tests.
5085 rm -f conftest.err conftest.
$ac_ext
5088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089 rm -f conftest.err conftest.
$ac_ext
5090 if $ac_preproc_ok; then :
5093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5095 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5096 See \`config.log' for more details." "$LINENO" 5; }
5100 ac_cpp
='$CPP $CPPFLAGS'
5101 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5107 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5108 if test "${ac_cv_path_GREP+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5111 if test -z "$GREP"; then
5112 ac_path_GREP_found
=false
5113 # Loop through the user's path and test for each of PROGNAME-LIST
5114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5115 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5118 test -z "$as_dir" && as_dir
=.
5119 for ac_prog
in grep ggrep
; do
5120 for ac_exec_ext
in '' $ac_executable_extensions; do
5121 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5122 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5123 # Check for GNU ac_path_GREP and select it if it is found.
5124 # Check for GNU $ac_path_GREP
5125 case `"$ac_path_GREP" --version 2>&1` in
5127 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5130 $as_echo_n 0123456789 >"conftest.in"
5133 cat "conftest.in" "conftest.in" >"conftest.tmp"
5134 mv "conftest.tmp" "conftest.in"
5135 cp "conftest.in" "conftest.nl"
5136 $as_echo 'GREP' >> "conftest.nl"
5137 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5138 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5139 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5140 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5141 # Best one so far, save it but keep looking for a better one
5142 ac_cv_path_GREP
="$ac_path_GREP"
5143 ac_path_GREP_max
=$ac_count
5145 # 10*(2^10) chars as input seems more than enough
5146 test $ac_count -gt 10 && break
5148 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5151 $ac_path_GREP_found && break 3
5156 if test -z "$ac_cv_path_GREP"; then
5157 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5160 ac_cv_path_GREP
=$GREP
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5165 $as_echo "$ac_cv_path_GREP" >&6; }
5166 GREP
="$ac_cv_path_GREP"
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5170 $as_echo_n "checking for egrep... " >&6; }
5171 if test "${ac_cv_path_EGREP+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5174 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5175 then ac_cv_path_EGREP
="$GREP -E"
5177 if test -z "$EGREP"; then
5178 ac_path_EGREP_found
=false
5179 # Loop through the user's path and test for each of PROGNAME-LIST
5180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5181 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5184 test -z "$as_dir" && as_dir
=.
5185 for ac_prog
in egrep; do
5186 for ac_exec_ext
in '' $ac_executable_extensions; do
5187 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5188 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5189 # Check for GNU ac_path_EGREP and select it if it is found.
5190 # Check for GNU $ac_path_EGREP
5191 case `"$ac_path_EGREP" --version 2>&1` in
5193 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5196 $as_echo_n 0123456789 >"conftest.in"
5199 cat "conftest.in" "conftest.in" >"conftest.tmp"
5200 mv "conftest.tmp" "conftest.in"
5201 cp "conftest.in" "conftest.nl"
5202 $as_echo 'EGREP' >> "conftest.nl"
5203 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5204 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5205 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5206 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5207 # Best one so far, save it but keep looking for a better one
5208 ac_cv_path_EGREP
="$ac_path_EGREP"
5209 ac_path_EGREP_max
=$ac_count
5211 # 10*(2^10) chars as input seems more than enough
5212 test $ac_count -gt 10 && break
5214 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5217 $ac_path_EGREP_found && break 3
5222 if test -z "$ac_cv_path_EGREP"; then
5223 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5226 ac_cv_path_EGREP
=$EGREP
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5232 $as_echo "$ac_cv_path_EGREP" >&6; }
5233 EGREP
="$ac_cv_path_EGREP"
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5237 $as_echo_n "checking for ANSI C header files... " >&6; }
5238 if test "${ac_cv_header_stdc+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5256 if ac_fn_c_try_compile
"$LINENO"; then :
5257 ac_cv_header_stdc
=yes
5259 ac_cv_header_stdc
=no
5261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5263 if test $ac_cv_header_stdc = yes; then
5264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 $EGREP "memchr" >/dev
/null
2>&1; then :
5274 ac_cv_header_stdc
=no
5280 if test $ac_cv_header_stdc = yes; then
5281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5288 $EGREP "free" >/dev
/null
2>&1; then :
5291 ac_cv_header_stdc
=no
5297 if test $ac_cv_header_stdc = yes; then
5298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5299 if test "$cross_compiling" = yes; then :
5302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5306 #if ((' ' & 0x0FF) == 0x020)
5307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5310 # define ISLOWER(c) \
5311 (('a' <= (c) && (c) <= 'i') \
5312 || ('j' <= (c) && (c) <= 'r') \
5313 || ('s' <= (c) && (c) <= 'z'))
5314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5322 for (i = 0; i < 256; i++)
5323 if (XOR (islower (i), ISLOWER (i))
5324 || toupper (i) != TOUPPER (i))
5329 if ac_fn_c_try_run
"$LINENO"; then :
5332 ac_cv_header_stdc
=no
5334 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5335 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5341 $as_echo "$ac_cv_header_stdc" >&6; }
5342 if test $ac_cv_header_stdc = yes; then
5344 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5349 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5350 inttypes.h stdint.h unistd.h
5352 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5353 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5355 eval as_val
=\$
$as_ac_Header
5356 if test "x$as_val" = x
""yes; then :
5357 cat >>confdefs.h
<<_ACEOF
5358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5367 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5368 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5375 if test "$MINIX" = yes; then
5377 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5380 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5383 $as_echo "#define _MINIX 1" >>confdefs.h
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5389 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5390 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5396 # define __EXTENSIONS__ 1
5397 $ac_includes_default
5406 if ac_fn_c_try_compile
"$LINENO"; then :
5407 ac_cv_safe_to_define___extensions__
=yes
5409 ac_cv_safe_to_define___extensions__
=no
5411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5414 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5415 test $ac_cv_safe_to_define___extensions__ = yes &&
5416 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5418 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5420 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5422 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5424 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5428 ac_cpp
='$CPP $CPPFLAGS'
5429 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5433 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5434 # On Suns, sometimes $CPP names a directory.
5435 if test -n "$CPP" && test -d "$CPP"; then
5438 if test -z "$CPP"; then
5439 if test "${ac_cv_prog_CPP+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5442 # Double quotes because CPP needs to be expanded
5443 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5446 for ac_c_preproc_warn_flag
in '' yes
5448 # Use a header file that comes with gcc, so configuring glibc
5449 # with a fresh cross-compiler works.
5450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5451 # <limits.h> exists even on freestanding compilers.
5452 # On the NeXT, cc -E runs the code through the compiler's parser,
5453 # not just through cpp. "Syntax error" is here to catch this case.
5454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5457 # include <limits.h>
5459 # include <assert.h>
5463 if ac_fn_c_try_cpp
"$LINENO"; then :
5466 # Broken: fails on valid input.
5469 rm -f conftest.err conftest.
$ac_ext
5471 # OK, works on sane cases. Now check whether nonexistent headers
5472 # can be detected and how.
5473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #include <ac_nonexistent.h>
5477 if ac_fn_c_try_cpp
"$LINENO"; then :
5478 # Broken: success on invalid input.
5481 # Passes both tests.
5485 rm -f conftest.err conftest.
$ac_ext
5488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5489 rm -f conftest.err conftest.
$ac_ext
5490 if $ac_preproc_ok; then :
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5503 $as_echo "$CPP" >&6; }
5505 for ac_c_preproc_warn_flag
in '' yes
5507 # Use a header file that comes with gcc, so configuring glibc
5508 # with a fresh cross-compiler works.
5509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5510 # <limits.h> exists even on freestanding compilers.
5511 # On the NeXT, cc -E runs the code through the compiler's parser,
5512 # not just through cpp. "Syntax error" is here to catch this case.
5513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5516 # include <limits.h>
5518 # include <assert.h>
5522 if ac_fn_c_try_cpp
"$LINENO"; then :
5525 # Broken: fails on valid input.
5528 rm -f conftest.err conftest.
$ac_ext
5530 # OK, works on sane cases. Now check whether nonexistent headers
5531 # can be detected and how.
5532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #include <ac_nonexistent.h>
5536 if ac_fn_c_try_cpp
"$LINENO"; then :
5537 # Broken: success on invalid input.
5540 # Passes both tests.
5544 rm -f conftest.err conftest.
$ac_ext
5547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5548 rm -f conftest.err conftest.
$ac_ext
5549 if $ac_preproc_ok; then :
5552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5554 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5555 See \`config.log' for more details." "$LINENO" 5; }
5559 ac_cpp
='$CPP $CPPFLAGS'
5560 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5561 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5562 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5565 $as_echo_n "checking for inline... " >&6; }
5566 if test "${ac_cv_c_inline+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5570 for ac_kw
in inline __inline__ __inline
; do
5571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5575 static $ac_kw foo_t static_foo () {return 0; }
5576 $ac_kw foo_t foo () {return 0; }
5580 if ac_fn_c_try_compile
"$LINENO"; then :
5581 ac_cv_c_inline
=$ac_kw
5583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5584 test "$ac_cv_c_inline" != no
&& break
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5589 $as_echo "$ac_cv_c_inline" >&6; }
5591 case $ac_cv_c_inline in
5594 case $ac_cv_c_inline in
5596 *) ac_val
=$ac_cv_c_inline;;
5598 cat >>confdefs.h
<<_ACEOF
5600 #define inline $ac_val
5607 # Check whether --enable-largefile was given.
5608 if test "${enable_largefile+set}" = set; then :
5609 enableval
=$enable_largefile;
5612 if test "$enable_largefile" != no
; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5615 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5616 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5617 $as_echo_n "(cached) " >&6
5619 ac_cv_sys_largefile_CC
=no
5620 if test "$GCC" != yes; then
5623 # IRIX 6.2 and later do not support large files by default,
5624 # so use the C compiler's -n32 option if that helps.
5625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #include <sys/types.h>
5628 /* Check that off_t can represent 2**63 - 1 correctly.
5629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5630 since some C++ compilers masquerading as C compilers
5631 incorrectly reject 9223372036854775807. */
5632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5634 && LARGE_OFF_T % 2147483647 == 1)
5644 if ac_fn_c_try_compile
"$LINENO"; then :
5647 rm -f core conftest.err conftest.
$ac_objext
5649 if ac_fn_c_try_compile
"$LINENO"; then :
5650 ac_cv_sys_largefile_CC
=' -n32'; break
5652 rm -f core conftest.err conftest.
$ac_objext
5656 rm -f conftest.
$ac_ext
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5660 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5661 if test "$ac_cv_sys_largefile_CC" != no
; then
5662 CC
=$CC$ac_cv_sys_largefile_CC
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5666 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5667 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <sys/types.h>
5674 /* Check that off_t can represent 2**63 - 1 correctly.
5675 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5676 since some C++ compilers masquerading as C compilers
5677 incorrectly reject 9223372036854775807. */
5678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5679 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5680 && LARGE_OFF_T % 2147483647 == 1)
5690 if ac_fn_c_try_compile
"$LINENO"; then :
5691 ac_cv_sys_file_offset_bits
=no
; break
5693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #define _FILE_OFFSET_BITS 64
5697 #include <sys/types.h>
5698 /* Check that off_t can represent 2**63 - 1 correctly.
5699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5700 since some C++ compilers masquerading as C compilers
5701 incorrectly reject 9223372036854775807. */
5702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5704 && LARGE_OFF_T % 2147483647 == 1)
5714 if ac_fn_c_try_compile
"$LINENO"; then :
5715 ac_cv_sys_file_offset_bits
=64; break
5717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5718 ac_cv_sys_file_offset_bits
=unknown
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5723 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5724 case $ac_cv_sys_file_offset_bits in #(
5727 cat >>confdefs.h
<<_ACEOF
5728 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5733 if test $ac_cv_sys_file_offset_bits = unknown
; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5735 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5736 if test "${ac_cv_sys_large_files+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <sys/types.h>
5743 /* Check that off_t can represent 2**63 - 1 correctly.
5744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5745 since some C++ compilers masquerading as C compilers
5746 incorrectly reject 9223372036854775807. */
5747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5749 && LARGE_OFF_T % 2147483647 == 1)
5759 if ac_fn_c_try_compile
"$LINENO"; then :
5760 ac_cv_sys_large_files
=no
; break
5762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #define _LARGE_FILES 1
5766 #include <sys/types.h>
5767 /* Check that off_t can represent 2**63 - 1 correctly.
5768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5769 since some C++ compilers masquerading as C compilers
5770 incorrectly reject 9223372036854775807. */
5771 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5773 && LARGE_OFF_T % 2147483647 == 1)
5783 if ac_fn_c_try_compile
"$LINENO"; then :
5784 ac_cv_sys_large_files
=1; break
5786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5787 ac_cv_sys_large_files
=unknown
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5792 $as_echo "$ac_cv_sys_large_files" >&6; }
5793 case $ac_cv_sys_large_files in #(
5796 cat >>confdefs.h
<<_ACEOF
5797 #define _LARGE_FILES $ac_cv_sys_large_files
5806 # sizeof(char) is 1 by definition.
5807 # The cast to long int works around a bug in the HP C Compiler
5808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5810 # This bug is HP SR number 8606223364.
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5812 $as_echo_n "checking size of void *... " >&6; }
5813 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5816 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5819 if test "$ac_cv_type_void_p" = yes; then
5820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5822 { as_fn_set_status
77
5823 as_fn_error
"cannot compute sizeof (void *)
5824 See \`config.log' for more details." "$LINENO" 5; }; }
5826 ac_cv_sizeof_void_p
=0
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5832 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5836 cat >>confdefs.h
<<_ACEOF
5837 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5841 # The cast to long int works around a bug in the HP C Compiler
5842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5844 # This bug is HP SR number 8606223364.
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5846 $as_echo_n "checking size of short... " >&6; }
5847 if test "${ac_cv_sizeof_short+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5850 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5853 if test "$ac_cv_type_short" = yes; then
5854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5856 { as_fn_set_status
77
5857 as_fn_error
"cannot compute sizeof (short)
5858 See \`config.log' for more details." "$LINENO" 5; }; }
5860 ac_cv_sizeof_short
=0
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5866 $as_echo "$ac_cv_sizeof_short" >&6; }
5870 cat >>confdefs.h
<<_ACEOF
5871 #define SIZEOF_SHORT $ac_cv_sizeof_short
5875 # The cast to long int works around a bug in the HP C Compiler
5876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5878 # This bug is HP SR number 8606223364.
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5880 $as_echo_n "checking size of int... " >&6; }
5881 if test "${ac_cv_sizeof_int+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5884 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5887 if test "$ac_cv_type_int" = yes; then
5888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5890 { as_fn_set_status
77
5891 as_fn_error
"cannot compute sizeof (int)
5892 See \`config.log' for more details." "$LINENO" 5; }; }
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5900 $as_echo "$ac_cv_sizeof_int" >&6; }
5904 cat >>confdefs.h
<<_ACEOF
5905 #define SIZEOF_INT $ac_cv_sizeof_int
5909 # The cast to long int works around a bug in the HP C Compiler
5910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5912 # This bug is HP SR number 8606223364.
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5914 $as_echo_n "checking size of long... " >&6; }
5915 if test "${ac_cv_sizeof_long+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5918 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5921 if test "$ac_cv_type_long" = yes; then
5922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5924 { as_fn_set_status
77
5925 as_fn_error
"cannot compute sizeof (long)
5926 See \`config.log' for more details." "$LINENO" 5; }; }
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5934 $as_echo "$ac_cv_sizeof_long" >&6; }
5938 cat >>confdefs.h
<<_ACEOF
5939 #define SIZEOF_LONG $ac_cv_sizeof_long
5943 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5944 if test "x$ac_cv_type_long_long" = x
""yes; then :
5946 cat >>confdefs.h
<<_ACEOF
5947 #define HAVE_LONG_LONG 1
5950 # The cast to long int works around a bug in the HP C Compiler
5951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5953 # This bug is HP SR number 8606223364.
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5955 $as_echo_n "checking size of long long... " >&6; }
5956 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5959 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5962 if test "$ac_cv_type_long_long" = yes; then
5963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5965 { as_fn_set_status
77
5966 as_fn_error
"cannot compute sizeof (long long)
5967 See \`config.log' for more details." "$LINENO" 5; }; }
5969 ac_cv_sizeof_long_long
=0
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5975 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5979 cat >>confdefs.h
<<_ACEOF
5980 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5986 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5987 if test "x$ac_cv_type___int64" = x
""yes; then :
5989 cat >>confdefs.h
<<_ACEOF
5990 #define HAVE___INT64 1
5993 # The cast to long int works around a bug in the HP C Compiler
5994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5996 # This bug is HP SR number 8606223364.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5998 $as_echo_n "checking size of __int64... " >&6; }
5999 if test "${ac_cv_sizeof___int64+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6002 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6005 if test "$ac_cv_type___int64" = yes; then
6006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { as_fn_set_status
77
6009 as_fn_error
"cannot compute sizeof (__int64)
6010 See \`config.log' for more details." "$LINENO" 5; }; }
6012 ac_cv_sizeof___int64
=0
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6018 $as_echo "$ac_cv_sizeof___int64" >&6; }
6022 cat >>confdefs.h
<<_ACEOF
6023 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6029 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6030 case $ac_cv_c_int8_t in #(
6034 cat >>confdefs.h
<<_ACEOF
6035 #define int8_t $ac_cv_c_int8_t
6040 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6041 case $ac_cv_c_int16_t in #(
6045 cat >>confdefs.h
<<_ACEOF
6046 #define int16_t $ac_cv_c_int16_t
6051 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6052 case $ac_cv_c_int32_t in #(
6056 cat >>confdefs.h
<<_ACEOF
6057 #define int32_t $ac_cv_c_int32_t
6062 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6063 case $ac_cv_c_int64_t in #(
6067 cat >>confdefs.h
<<_ACEOF
6068 #define int64_t $ac_cv_c_int64_t
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6075 $as_echo_n "checking for long long int... " >&6; }
6076 if test "${ac_cv_type_long_long_int+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6082 /* For now, do not test the preprocessor; as of 2007 there are too many
6083 implementations with broken preprocessors. Perhaps this can
6084 be revisited in 2012. In the meantime, code should not expect
6085 #if to work with literals wider than 32 bits. */
6086 /* Test literals. */
6087 long long int ll = 9223372036854775807ll;
6088 long long int nll = -9223372036854775807LL;
6089 unsigned long long int ull = 18446744073709551615ULL;
6090 /* Test constant expressions. */
6091 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6093 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6099 /* Test availability of runtime routines for shift and division. */
6100 long long int llmax = 9223372036854775807ll;
6101 unsigned long long int ullmax = 18446744073709551615ull;
6102 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6103 | (llmax / ll) | (llmax % ll)
6104 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6105 | (ullmax / ull) | (ullmax % ull));
6111 if ac_fn_c_try_link
"$LINENO"; then :
6112 if test "$cross_compiling" = yes; then :
6113 ac_cv_type_long_long_int
=yes
6115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6120 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6121 # define LLONG_MAX (HALF - 1 + HALF)
6126 long long int n = 1;
6130 long long int m = n << i;
6133 if (LLONG_MAX / 2 < m)
6141 if ac_fn_c_try_run
"$LINENO"; then :
6142 ac_cv_type_long_long_int
=yes
6144 ac_cv_type_long_long_int
=no
6146 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6147 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6151 ac_cv_type_long_long_int
=no
6153 rm -f core conftest.err conftest.
$ac_objext \
6154 conftest
$ac_exeext conftest.
$ac_ext
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6157 $as_echo "$ac_cv_type_long_long_int" >&6; }
6158 if test $ac_cv_type_long_long_int = yes; then
6160 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6166 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6167 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6169 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6172 test $ac_cv_type_long_long_int = yes \
6173 && ac_type
='long long int' \
6174 || ac_type
='long int'
6176 cat >>confdefs.h
<<_ACEOF
6177 #define intmax_t $ac_type
6184 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6185 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6187 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6190 for ac_type
in 'int' 'long int' 'long long int'; do
6191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 $ac_includes_default
6197 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6204 if ac_fn_c_try_compile
"$LINENO"; then :
6206 cat >>confdefs.h
<<_ACEOF
6207 #define intptr_t $ac_type
6212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6213 test -z "$ac_type" && break
6218 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6219 case $ac_cv_c_uint8_t in #(
6223 $as_echo "#define _UINT8_T 1" >>confdefs.h
6226 cat >>confdefs.h
<<_ACEOF
6227 #define uint8_t $ac_cv_c_uint8_t
6232 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6233 case $ac_cv_c_uint16_t in #(
6238 cat >>confdefs.h
<<_ACEOF
6239 #define uint16_t $ac_cv_c_uint16_t
6244 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6245 case $ac_cv_c_uint32_t in #(
6249 $as_echo "#define _UINT32_T 1" >>confdefs.h
6252 cat >>confdefs.h
<<_ACEOF
6253 #define uint32_t $ac_cv_c_uint32_t
6258 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6259 case $ac_cv_c_uint64_t in #(
6263 $as_echo "#define _UINT64_T 1" >>confdefs.h
6266 cat >>confdefs.h
<<_ACEOF
6267 #define uint64_t $ac_cv_c_uint64_t
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6274 $as_echo_n "checking for unsigned long long int... " >&6; }
6275 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6281 /* For now, do not test the preprocessor; as of 2007 there are too many
6282 implementations with broken preprocessors. Perhaps this can
6283 be revisited in 2012. In the meantime, code should not expect
6284 #if to work with literals wider than 32 bits. */
6285 /* Test literals. */
6286 long long int ll = 9223372036854775807ll;
6287 long long int nll = -9223372036854775807LL;
6288 unsigned long long int ull = 18446744073709551615ULL;
6289 /* Test constant expressions. */
6290 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6292 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6298 /* Test availability of runtime routines for shift and division. */
6299 long long int llmax = 9223372036854775807ll;
6300 unsigned long long int ullmax = 18446744073709551615ull;
6301 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6302 | (llmax / ll) | (llmax % ll)
6303 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6304 | (ullmax / ull) | (ullmax % ull));
6310 if ac_fn_c_try_link
"$LINENO"; then :
6311 ac_cv_type_unsigned_long_long_int
=yes
6313 ac_cv_type_unsigned_long_long_int
=no
6315 rm -f core conftest.err conftest.
$ac_objext \
6316 conftest
$ac_exeext conftest.
$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6319 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6320 if test $ac_cv_type_unsigned_long_long_int = yes; then
6322 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6328 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6329 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6331 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6334 test $ac_cv_type_unsigned_long_long_int = yes \
6335 && ac_type
='unsigned long long int' \
6336 || ac_type
='unsigned long int'
6338 cat >>confdefs.h
<<_ACEOF
6339 #define uintmax_t $ac_type
6346 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6347 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6349 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6352 for ac_type
in 'unsigned int' 'unsigned long int' \
6353 'unsigned long long int'; do
6354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 $ac_includes_default
6360 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6367 if ac_fn_c_try_compile
"$LINENO"; then :
6369 cat >>confdefs.h
<<_ACEOF
6370 #define uintptr_t $ac_type
6375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6376 test -z "$ac_type" && break
6394 # ---------------------
6395 # Warnings and checking
6396 # ---------------------
6398 # Check $CC warning features (if it's GCC).
6399 # We want to use -pedantic, but we don't want warnings about
6402 # * overlong strings
6403 # * C++11 narrowing conversions in { }
6404 # So, we only use -pedantic if we can disable those warnings.
6407 save_CFLAGS
="$CFLAGS"
6408 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6409 # Do the check with the no- prefix removed since gcc silently
6410 # accepts any -Wno-* option on purpose
6411 case $real_option in
6412 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6413 *) option
=$real_option ;;
6415 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6418 $as_echo_n "checking whether $CC supports $option... " >&6; }
6419 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6420 $as_echo_n "(cached) " >&6
6423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6434 if ac_fn_c_try_compile
"$LINENO"; then :
6435 eval "$as_acx_Woption=yes"
6437 eval "$as_acx_Woption=no"
6439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6442 eval ac_res
=\$
$as_acx_Woption
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6444 $as_echo "$ac_res" >&6; }
6445 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6446 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6449 CFLAGS
="$save_CFLAGS"
6452 save_CFLAGS
="$CFLAGS"
6453 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6454 # Do the check with the no- prefix removed since gcc silently
6455 # accepts any -Wno-* option on purpose
6456 case $real_option in
6457 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6458 *) option
=$real_option ;;
6460 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6463 $as_echo_n "checking whether $CC supports $option... " >&6; }
6464 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6465 $as_echo_n "(cached) " >&6
6468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6479 if ac_fn_c_try_compile
"$LINENO"; then :
6480 eval "$as_acx_Woption=yes"
6482 eval "$as_acx_Woption=no"
6484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6487 eval ac_res
=\$
$as_acx_Woption
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6489 $as_echo "$ac_res" >&6; }
6490 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6491 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6494 CFLAGS
="$save_CFLAGS"
6497 save_CFLAGS
="$CFLAGS"
6498 for real_option
in -Wmissing-format-attribute; do
6499 # Do the check with the no- prefix removed since gcc silently
6500 # accepts any -Wno-* option on purpose
6501 case $real_option in
6502 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6503 *) option
=$real_option ;;
6505 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6508 $as_echo_n "checking whether $CC supports $option... " >&6; }
6509 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6510 $as_echo_n "(cached) " >&6
6513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6524 if ac_fn_c_try_compile
"$LINENO"; then :
6525 eval "$as_acx_Woption=yes"
6527 eval "$as_acx_Woption=no"
6529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6532 eval ac_res
=\$
$as_acx_Woption
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6534 $as_echo "$ac_res" >&6; }
6535 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6536 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6539 CFLAGS
="$save_CFLAGS"
6542 save_CFLAGS
="$CFLAGS"
6543 for real_option
in -Wold-style-definition -Wc++-compat; do
6544 # Do the check with the no- prefix removed since gcc silently
6545 # accepts any -Wno-* option on purpose
6546 case $real_option in
6547 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6548 *) option
=$real_option ;;
6550 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6553 $as_echo_n "checking whether $CC supports $option... " >&6; }
6554 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6555 $as_echo_n "(cached) " >&6
6558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6569 if ac_fn_c_try_compile
"$LINENO"; then :
6570 eval "$as_acx_Woption=yes"
6572 eval "$as_acx_Woption=no"
6574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6577 eval ac_res
=\$
$as_acx_Woption
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6579 $as_echo "$ac_res" >&6; }
6580 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6581 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6584 CFLAGS
="$save_CFLAGS"
6586 # Do the check with the no- prefix removed from the warning options
6587 # since gcc silently accepts any -Wno-* option on purpose
6588 if test "$GCC" = yes; then :
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6590 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6591 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6594 save_CFLAGS
="$CFLAGS"
6595 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6607 if ac_fn_c_try_compile
"$LINENO"; then :
6608 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6610 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6613 CFLAGS
="$save_CFLAGS"
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6616 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6617 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6618 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6623 # Check whether --enable-werror-always was given.
6624 if test "${enable_werror_always+set}" = set; then :
6625 enableval
=$enable_werror_always;
6627 enable_werror_always
=no
6630 if test $enable_werror_always = yes; then :
6631 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6636 # The above macros do nothing if the compiler is not GCC. However, the
6637 # Makefile has more goo to add other flags, so these variables are used
6638 # to enable warnings only for GCC.
6641 if test "x$GCC" = "xyes"; then
6642 warn_cflags
='$(GCC_WARN_CFLAGS)'
6643 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6648 # Disable exceptions and RTTI if building with g++
6650 save_CFLAGS
="$CFLAGS"
6651 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6652 # Do the check with the no- prefix removed since gcc silently
6653 # accepts any -Wno-* option on purpose
6654 case $real_option in
6655 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6656 *) option
=$real_option ;;
6658 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6661 $as_echo_n "checking whether $CC supports $option... " >&6; }
6662 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6663 $as_echo_n "(cached) " >&6
6666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6677 if ac_fn_c_try_compile
"$LINENO"; then :
6678 eval "$as_acx_Woption=yes"
6680 eval "$as_acx_Woption=no"
6682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6685 eval ac_res
=\$
$as_acx_Woption
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6687 $as_echo "$ac_res" >&6; }
6688 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6689 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6692 CFLAGS
="$save_CFLAGS"
6695 # Enable expensive internal checks
6697 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6701 # Check whether --enable-checking was given.
6702 if test "${enable_checking+set}" = set; then :
6703 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6706 # Determine the default checks.
6707 if test x
$is_release = x
; then
6708 ac_checking_flags
=yes
6710 ac_checking_flags
=release
6714 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6715 for check
in release
$ac_checking_flags
6718 # these set all the flags to specific states
6719 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6720 ac_fold_checking
= ; ac_gc_checking
=1 ;
6721 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6722 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6723 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6724 ac_types_checking
=1 ;;
6725 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6726 ac_fold_checking
= ; ac_gc_checking
= ;
6727 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6728 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6729 ac_tree_checking
= ; ac_valgrind_checking
= ;
6730 ac_types_checking
= ;;
6731 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6732 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6733 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6734 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6735 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6736 ac_types_checking
=1 ;;
6737 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6738 ac_fold_checking
= ; ac_gc_checking
= ;
6739 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6740 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6741 ac_tree_checking
= ; ac_valgrind_checking
= ;
6742 ac_types_checking
= ;;
6743 # these enable particular checks
6744 assert
) ac_assert_checking
=1 ;;
6745 df
) ac_df_checking
=1 ;;
6746 fold) ac_fold_checking
=1 ;;
6747 gc
) ac_gc_checking
=1 ;;
6748 gcac
) ac_gc_always_collect
=1 ;;
6749 gimple
) ac_gimple_checking
=1 ;;
6750 misc
) ac_checking
=1 ;;
6751 rtl
) ac_rtl_checking
=1 ;;
6752 rtlflag
) ac_rtlflag_checking
=1 ;;
6753 runtime
) ac_runtime_checking
=1 ;;
6754 tree
) ac_tree_checking
=1 ;;
6755 types
) ac_types_checking
=1 ;;
6756 valgrind
) ac_valgrind_checking
=1 ;;
6757 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6763 if test x
$ac_checking != x
; then
6765 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6767 nocommon_flag
=-fno-common
6770 if test x
$ac_df_checking != x
; then
6772 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6775 if test x
$ac_assert_checking != x
; then
6777 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6780 if test x
$ac_gimple_checking != x
; then
6782 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6786 if test x
$ac_runtime_checking != x
; then
6788 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6791 if test x
$ac_tree_checking != x
; then
6793 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6795 TREEBROWSER
=tree-browser.o
6798 if test x
$ac_types_checking != x
; then
6800 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6805 if test x
$ac_rtl_checking != x
; then
6807 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6810 if test x
$ac_rtlflag_checking != x
; then
6812 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6815 if test x
$ac_gc_checking != x
; then
6817 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6820 if test x
$ac_gc_always_collect != x
; then
6822 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6825 if test x
$ac_fold_checking != x
; then
6827 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6830 valgrind_path_defines
=
6833 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6834 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6842 if test x
$ac_valgrind_checking != x
; then
6843 # It is certainly possible that there's valgrind but no valgrind.h.
6844 # GCC relies on making annotations so we must have both.
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6846 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 #include <valgrind/memcheck.h>
6850 #ifndef VALGRIND_DISCARD
6851 #error VALGRIND_DISCARD not defined
6854 if ac_fn_c_try_cpp
"$LINENO"; then :
6855 gcc_cv_header_valgrind_memcheck_h
=yes
6857 gcc_cv_header_valgrind_memcheck_h
=no
6859 rm -f conftest.err conftest.
$ac_ext
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6861 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6863 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 #include <memcheck.h>
6867 #ifndef VALGRIND_DISCARD
6868 #error VALGRIND_DISCARD not defined
6871 if ac_fn_c_try_cpp
"$LINENO"; then :
6872 gcc_cv_header_memcheck_h
=yes
6874 gcc_cv_header_memcheck_h
=no
6876 rm -f conftest.err conftest.
$ac_ext
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6878 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6880 # Prepare PATH_SEPARATOR.
6881 # The user is always right.
6882 if test "${PATH_SEPARATOR+set}" != set; then
6883 echo "#! /bin/sh" >conf$$.sh
6884 echo "exit 0" >>conf$$.sh
6886 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6894 # Find out how to test for executable files. Don't use a zero-byte file,
6895 # as systems may use methods other than mode bits to determine executability.
6896 cat >conf$$.
file <<_ASEOF
6900 chmod +x conf$$.
file
6901 if test -x conf$$.
file >/dev
/null
2>&1; then
6902 ac_executable_p
="test -x"
6904 ac_executable_p
="test -f"
6908 # Extract the first word of "valgrind", so it can be a program name with args.
6909 set dummy valgrind
; ac_word
=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6913 $as_echo_n "(cached) " >&6
6915 case "$valgrind_path" in
6917 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6920 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6921 for ac_dir
in $PATH; do
6923 test -z "$ac_dir" && ac_dir
=.
6924 for ac_exec_ext
in '' $ac_executable_extensions; do
6925 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6926 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6927 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6937 valgrind_path
="$ac_cv_path_valgrind_path"
6938 if test -n "$valgrind_path"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6940 $as_echo "$valgrind_path" >&6; }
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6946 if test "x$valgrind_path" = "x" \
6947 ||
(test $have_valgrind_h = no \
6948 && test $gcc_cv_header_memcheck_h = no \
6949 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6950 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6952 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6953 valgrind_command
="$valgrind_path -q"
6955 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6957 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6959 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6962 if test $gcc_cv_header_memcheck_h = yes; then
6964 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6971 # Enable code coverage collection
6972 # Check whether --enable-coverage was given.
6973 if test "${enable_coverage+set}" = set; then :
6974 enableval
=$enable_coverage; case "${enableval}" in
6976 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6979 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6982 # a.k.a. --disable-coverage
6986 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6995 # Check whether --enable-gather-detailed-mem-stats was given.
6996 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6997 enableval
=$enable_gather_detailed_mem_stats;
6999 enable_gather_detailed_mem_stats
=no
7002 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7004 cat >>confdefs.h
<<_ACEOF
7005 #define GATHER_STATISTICS $gather_stats
7009 # -------------------------------
7010 # Miscenalleous configure options
7011 # -------------------------------
7015 # Check whether --with-stabs was given.
7016 if test "${with_stabs+set}" = set; then :
7017 withval
=$with_stabs; stabs
="$with_stabs"
7023 # Determine whether or not multilibs are enabled.
7024 # Check whether --enable-multilib was given.
7025 if test "${enable_multilib+set}" = set; then :
7026 enableval
=$enable_multilib;
7033 # Determine whether or not multiarch is enabled.
7034 # Check whether --enable-multiarch was given.
7035 if test "${enable_multiarch+set}" = set; then :
7036 enableval
=$enable_multiarch; case "${enableval}" in
7037 yes|no|auto
) enable_multiarch
=$enableval;;
7038 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7041 enable_multiarch
=auto
7044 if test x
${enable_multiarch} = xauto
; then
7045 if test x
${with_native_system_header_dir} != x
; then
7046 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7049 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7050 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7055 $as_echo_n "checking for multiarch configuration... " >&6; }
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7058 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7060 # needed for setting the multiarch name for soft-float/hard-float ABIs
7064 # Enable __cxa_atexit for C++.
7065 # Check whether --enable-__cxa_atexit was given.
7066 if test "${enable___cxa_atexit+set}" = set; then :
7067 enableval
=$enable___cxa_atexit;
7071 # Enable C extension for decimal float if target supports it.
7073 # Check whether --enable-decimal-float was given.
7074 if test "${enable_decimal_float+set}" = set; then :
7075 enableval
=$enable_decimal_float;
7076 case $enable_decimal_float in
7077 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7078 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7079 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7085 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7087 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7088 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7089 enable_decimal_float
=yes
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7093 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7094 enable_decimal_float
=no
7101 # x86's use BID format instead of DPD
7102 case x
$enable_decimal_float in
7105 i?
86*-*-* | x86_64
*-*-*)
7106 enable_decimal_float
=bid
7109 enable_decimal_float
=dpd
7112 default_decimal_float
=$enable_decimal_float
7115 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7116 # dependency on libdecnumber.
7117 default_decimal_float
=dpd
7124 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7126 cat >>confdefs.h
<<_ACEOF
7127 #define ENABLE_DECIMAL_FLOAT $dfp
7131 # Use default_decimal_float for dependency.
7132 enable_decimal_float
=$default_decimal_float
7134 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7136 cat >>confdefs.h
<<_ACEOF
7137 #define ENABLE_DECIMAL_BID_FORMAT $bid
7141 # Enable C extension for fixed-point arithmetic.
7142 # Check whether --enable-fixed-point was given.
7143 if test "${enable_fixed_point+set}" = set; then :
7144 enableval
=$enable_fixed_point;
7149 enable_fixed_point
=yes
7153 enable_fixed_point
=yes
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7157 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7158 enable_fixed_point
=no
7166 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7168 cat >>confdefs.h
<<_ACEOF
7169 #define ENABLE_FIXED_POINT $fixedpoint
7174 # Pass with no value to take the default
7175 # Pass with a value to specify a thread package
7176 # Check whether --enable-threads was given.
7177 if test "${enable_threads+set}" = set; then :
7178 enableval
=$enable_threads;
7184 # Check whether --enable-tls was given.
7185 if test "${enable_tls+set}" = set; then :
7186 enableval
=$enable_tls;
7189 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7190 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7198 # Check whether --enable-objc-gc was given.
7199 if test "${enable_objc_gc+set}" = set; then :
7200 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7211 # Check whether --with-dwarf2 was given.
7212 if test "${with_dwarf2+set}" = set; then :
7213 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7219 # Check whether --enable-shared was given.
7220 if test "${enable_shared+set}" = set; then :
7221 enableval
=$enable_shared;
7222 case $enable_shared in
7226 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7227 for pkg
in $enableval; do
7228 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7243 # Check whether --with-native-system-header-dir was given.
7244 if test "${with_native_system_header_dir+set}" = set; then :
7245 withval
=$with_native_system_header_dir;
7246 case ${with_native_system_header_dir} in
7247 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7248 /* |
[A-Za-z
]:[\\/]*) ;;
7249 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7251 configured_native_system_header_dir
="${withval}"
7254 configured_native_system_header_dir
=
7259 # Check whether --with-build-sysroot was given.
7260 if test "${with_build_sysroot+set}" = set; then :
7261 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7262 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7265 SYSROOT_CFLAGS_FOR_TARGET
=
7270 if test "x$prefix" = xNONE
; then
7271 test_prefix
=/usr
/local
7275 if test "x$exec_prefix" = xNONE
; then
7276 test_exec_prefix
=$test_prefix
7278 test_exec_prefix
=$exec_prefix
7282 # Check whether --with-sysroot was given.
7283 if test "${with_sysroot+set}" = set; then :
7284 withval
=$with_sysroot;
7285 case ${with_sysroot} in
7286 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7287 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7290 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7291 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7293 case ${TARGET_SYSTEM_ROOT} in
7294 "${test_prefix}"|
"${test_prefix}/"*|\
7295 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7296 '${prefix}'|
'${prefix}/'*|\
7297 '${exec_prefix}'|
'${exec_prefix}/'*)
7298 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7299 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7306 TARGET_SYSTEM_ROOT_DEFINE
=
7307 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7316 # Check whether --with-specs was given.
7317 if test "${with_specs+set}" = set; then :
7318 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7328 # Check whether --with-pkgversion was given.
7329 if test "${with_pkgversion+set}" = set; then :
7330 withval
=$with_pkgversion; case "$withval" in
7331 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7333 *) PKGVERSION
="($withval) " ;;
7344 # Check whether --with-bugurl was given.
7345 if test "${with_bugurl+set}" = set; then :
7346 withval
=$with_bugurl; case "$withval" in
7347 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7350 *) BUGURL
="$withval"
7354 BUGURL
="http://gcc.gnu.org/bugs.html"
7364 REPORT_BUGS_TO
="<$BUGURL>"
7365 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7372 # Sanity check enable_languages in case someone does not run the toplevel
7373 # configure # script.
7374 # Check whether --enable-languages was given.
7375 if test "${enable_languages+set}" = set; then :
7376 enableval
=$enable_languages; case ,${enable_languages}, in
7378 # go safe -- we cannot be much sure without the toplevel
7380 # analysis of which target libs are present and usable
7384 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7389 enable_languages
=c
,${enable_languages}
7398 # Check whether --with-multilib-list was given.
7399 if test "${with_multilib_list+set}" = set; then :
7400 withval
=$with_multilib_list; :
7402 with_multilib_list
=default
7406 # -------------------------
7407 # Checks for other programs
7408 # -------------------------
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7411 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7413 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7414 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7415 $as_echo_n "(cached) " >&6
7417 cat >conftest.
make <<\_ACEOF
7420 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7422 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7423 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7425 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7427 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7431 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7433 $as_echo "yes" >&6; }
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 SET_MAKE
="MAKE=${MAKE-make}"
7442 # Find some useful tools
7443 for ac_prog
in gawk mawk nawk
awk
7445 # Extract the first word of "$ac_prog", so it can be a program name with args.
7446 set dummy
$ac_prog; ac_word
=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if test "${ac_cv_prog_AWK+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7452 if test -n "$AWK"; then
7453 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7459 test -z "$as_dir" && as_dir
=.
7460 for ac_exec_ext
in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_prog_AWK
="$ac_prog"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 if test -n "$AWK"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7475 $as_echo "$AWK" >&6; }
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7482 test -n "$AWK" && break
7485 # We need awk to create options.c and options.h.
7486 # Bail out if it's missing.
7488 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7492 $as_echo_n "checking whether ln -s works... " >&6; }
7493 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7496 rm -f conftestdata_t
7497 echo >conftestdata_f
7498 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7500 gcc_cv_prog_LN_S
="ln -s"
7502 if ln conftestdata_f conftestdata_t
2>/dev
/null
7506 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7508 gcc_cv_prog_LN_S
="cp -p"
7514 rm -f conftestdata_f conftestdata_t
7517 LN_S
="$gcc_cv_prog_LN_S"
7518 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7520 $as_echo "yes" >&6; }
7522 if test "$gcc_cv_prog_LN_S" = "ln"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7524 $as_echo "no, using ln" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7527 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7532 $as_echo_n "checking whether ln works... " >&6; }
7533 if test "${acx_cv_prog_LN+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7536 rm -f conftestdata_t
7537 echo >conftestdata_f
7538 if ln conftestdata_f conftestdata_t
2>/dev
/null
7544 rm -f conftestdata_f conftestdata_t
7547 if test $acx_cv_prog_LN = no
; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7550 $as_echo "no, using $LN" >&6; }
7552 LN
="$acx_cv_prog_LN"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7554 $as_echo "yes" >&6; }
7557 if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7559 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7565 if test -n "$RANLIB"; then
7566 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7572 test -z "$as_dir" && as_dir
=.
7573 for ac_exec_ext
in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 RANLIB
=$ac_cv_prog_RANLIB
7586 if test -n "$RANLIB"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7588 $as_echo "$RANLIB" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7596 if test -z "$ac_cv_prog_RANLIB"; then
7597 ac_ct_RANLIB
=$RANLIB
7598 # Extract the first word of "ranlib", so it can be a program name with args.
7599 set dummy ranlib
; ac_word
=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7605 if test -n "$ac_ct_RANLIB"; then
7606 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir
=.
7613 for ac_exec_ext
in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7626 if test -n "$ac_ct_RANLIB"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7628 $as_echo "$ac_ct_RANLIB" >&6; }
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7634 if test "x$ac_ct_RANLIB" = x
; then
7637 case $cross_compiling:$ac_tool_warned in
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641 ac_tool_warned
=yes ;;
7643 RANLIB
=$ac_ct_RANLIB
7646 RANLIB
="$ac_cv_prog_RANLIB"
7652 # Find a good install program. We prefer a C program (faster),
7653 # so one script is as good as another. But avoid the broken or
7654 # incompatible versions:
7655 # SysV /etc/install, /usr/sbin/install
7656 # SunOS /usr/etc/install
7657 # IRIX /sbin/install
7659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7661 # ./install, which can be erroneously created by make from ./install.sh.
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7663 $as_echo_n "checking for a BSD compatible install... " >&6; }
7664 if test -z "$INSTALL"; then
7665 if test "${ac_cv_path_install+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7668 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7669 for ac_dir
in $PATH; do
7670 # Account for people who put trailing slashes in PATH elements.
7672 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7674 # OSF1 and SCO ODT 3.0 have their own names for install.
7675 for ac_prog
in ginstall scoinst
install; do
7676 if test -f $ac_dir/$ac_prog; then
7677 if test $ac_prog = install &&
7678 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7679 # AIX install. It has an incompatible calling convention.
7680 # OSF/1 installbsd also uses dspmsg, but is usable.
7683 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7694 if test "${ac_cv_path_install+set}" = set; then
7695 INSTALL
="$ac_cv_path_install"
7697 # As a last resort, use the slow shell script. We don't cache a
7698 # path for INSTALL within a source directory, because that will
7699 # break other packages using the cache if that directory is
7700 # removed, or if the path is relative.
7701 INSTALL
="$ac_install_sh"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7705 $as_echo "$INSTALL" >&6; }
7707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7708 # It thinks the first close brace ends the variable substitution.
7709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7711 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7714 # See if cmp has --ignore-initial.
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7716 $as_echo_n "checking for cmp's capabilities... " >&6; }
7717 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
7722 gcc_cv_prog_cmp_skip
=slowcompare
7723 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7724 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7727 gcc_cv_prog_cmp_skip
=gnucompare
7730 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7731 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7732 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7735 gcc_cv_prog_cmp_skip
=fastcompare
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7743 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7744 make_compare_target
=$gcc_cv_prog_cmp_skip
7748 # See if we have the mktemp command.
7749 # Extract the first word of "mktemp", so it can be a program name with args.
7750 set dummy mktemp
; ac_word
=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7756 if test -n "$have_mktemp_command"; then
7757 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7763 test -z "$as_dir" && as_dir
=.
7764 for ac_exec_ext
in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 ac_cv_prog_have_mktemp_command
="yes"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7777 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7778 if test -n "$have_mktemp_command"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7780 $as_echo "$have_mktemp_command" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7788 # See if makeinfo has been installed and is modern enough
7789 # that we can use it.
7791 # Extract the first word of "makeinfo", so it can be a program name with args.
7792 set dummy makeinfo
; ac_word
=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7798 if test -n "$MAKEINFO"; then
7799 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7805 test -z "$as_dir" && as_dir
=.
7806 for ac_exec_ext
in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_MAKEINFO
="makeinfo"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 MAKEINFO
=$ac_cv_prog_MAKEINFO
7819 if test -n "$MAKEINFO"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7821 $as_echo "$MAKEINFO" >&6; }
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 if test -n "$MAKEINFO"; then
7829 # Found it, now check the version.
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7831 $as_echo_n "checking for modern makeinfo... " >&6; }
7832 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7835 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7836 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7838 case $ac_prog_version in
7839 '') gcc_cv_prog_makeinfo_modern
=no
;;
7840 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7841 *) gcc_cv_prog_makeinfo_modern
=no
;;
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7846 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7848 gcc_cv_prog_makeinfo_modern
=no
7850 if test $gcc_cv_prog_makeinfo_modern = no
; then
7851 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7854 if test $gcc_cv_prog_makeinfo_modern = no
; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7856 *** Makeinfo is missing or too old.
7857 *** Info documentation will not be built." >&5
7858 $as_echo "$as_me: WARNING:
7859 *** Makeinfo is missing or too old.
7860 *** Info documentation will not be built." >&2;}
7867 # Is pod2man recent enough to regenerate manpages?
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7869 $as_echo_n "checking for recent Pod::Man... " >&6; }
7870 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7872 $as_echo "yes" >&6; }
7873 GENERATED_MANPAGES
=generated-manpages
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7881 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
7887 set dummy
$ac_prog; ac_word
=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_prog_FLEX+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7893 if test -n "$FLEX"; then
7894 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7900 test -z "$as_dir" && as_dir
=.
7901 for ac_exec_ext
in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_prog_FLEX
="$ac_prog"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 FLEX
=$ac_cv_prog_FLEX
7914 if test -n "$FLEX"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7916 $as_echo "$FLEX" >&6; }
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7923 test -n "$FLEX" && break
7925 test -n "$FLEX" || FLEX
="$MISSING flex"
7929 for ac_prog
in bison
7931 # Extract the first word of "$ac_prog", so it can be a program name with args.
7932 set dummy
$ac_prog; ac_word
=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if test "${ac_cv_prog_BISON+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7938 if test -n "$BISON"; then
7939 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7945 test -z "$as_dir" && as_dir
=.
7946 for ac_exec_ext
in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_prog_BISON
="$ac_prog"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 BISON
=$ac_cv_prog_BISON
7959 if test -n "$BISON"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7961 $as_echo "$BISON" >&6; }
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7968 test -n "$BISON" && break
7970 test -n "$BISON" || BISON
="$MISSING bison"
7973 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7974 # check for build == host before using them.
7977 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7978 && test -d ..
/binutils
; then
7979 NM
='${objdir}/../binutils/nm-new'
7981 # Extract the first word of "nm", so it can be a program name with args.
7982 set dummy nm
; ac_word
=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if test "${ac_cv_prog_NM+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7988 if test -n "$NM"; then
7989 ac_cv_prog_NM
="$NM" # Let the user override the test.
7991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7995 test -z "$as_dir" && as_dir
=.
7996 for ac_exec_ext
in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8010 if test -n "$NM"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8012 $as_echo "$NM" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8022 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8023 && test -d ..
/binutils
; then
8024 AR
='${objdir}/../binutils/ar'
8026 # Extract the first word of "ar", so it can be a program name with args.
8027 set dummy
ar; ac_word
=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if test "${ac_cv_prog_AR+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8033 if test -n "$AR"; then
8034 ac_cv_prog_AR
="$AR" # Let the user override the test.
8036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8040 test -z "$as_dir" && as_dir
=.
8041 for ac_exec_ext
in '' $ac_executable_extensions; do
8042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8055 if test -n "$AR"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8057 $as_echo "$AR" >&6; }
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8067 # --------------------
8068 # Checks for C headers
8069 # --------------------
8071 # Need to reject headers which give warnings, so that the -Werror bootstrap
8072 # works later. *sigh* This needs to come before all header checks.
8074 ac_c_preproc_warn_flag
=yes
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8077 $as_echo_n "checking for ANSI C header files... " >&6; }
8078 if test "${ac_cv_header_stdc+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8096 if ac_fn_c_try_compile
"$LINENO"; then :
8097 ac_cv_header_stdc
=yes
8099 ac_cv_header_stdc
=no
8101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8103 if test $ac_cv_header_stdc = yes; then
8104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111 $EGREP "memchr" >/dev
/null
2>&1; then :
8114 ac_cv_header_stdc
=no
8120 if test $ac_cv_header_stdc = yes; then
8121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8128 $EGREP "free" >/dev
/null
2>&1; then :
8131 ac_cv_header_stdc
=no
8137 if test $ac_cv_header_stdc = yes; then
8138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8139 if test "$cross_compiling" = yes; then :
8142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8146 #if ((' ' & 0x0FF) == 0x020)
8147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8150 # define ISLOWER(c) \
8151 (('a' <= (c) && (c) <= 'i') \
8152 || ('j' <= (c) && (c) <= 'r') \
8153 || ('s' <= (c) && (c) <= 'z'))
8154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8162 for (i = 0; i < 256; i++)
8163 if (XOR (islower (i), ISLOWER (i))
8164 || toupper (i) != TOUPPER (i))
8169 if ac_fn_c_try_run
"$LINENO"; then :
8172 ac_cv_header_stdc
=no
8174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8175 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8181 $as_echo "$ac_cv_header_stdc" >&6; }
8182 if test $ac_cv_header_stdc = yes; then
8184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8189 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8190 if test "${ac_cv_header_time+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
8193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 #include <sys/types.h>
8196 #include <sys/time.h>
8202 if ((struct tm *) 0)
8208 if ac_fn_c_try_compile
"$LINENO"; then :
8209 ac_cv_header_time
=yes
8211 ac_cv_header_time
=no
8213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8216 $as_echo "$ac_cv_header_time" >&6; }
8217 if test $ac_cv_header_time = yes; then
8219 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8224 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8225 if test "${gcc_cv_header_string+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
8228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8231 #include <strings.h>
8240 if ac_fn_c_try_compile
"$LINENO"; then :
8241 gcc_cv_header_string
=yes
8243 gcc_cv_header_string
=no
8245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8248 $as_echo "$gcc_cv_header_string" >&6; }
8249 if test $gcc_cv_header_string = yes; then
8251 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8256 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8257 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8262 #include <sys/types.h>
8263 #include <sys/wait.h>
8265 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8268 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8276 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8281 if ac_fn_c_try_compile
"$LINENO"; then :
8282 ac_cv_header_sys_wait_h
=yes
8284 ac_cv_header_sys_wait_h
=no
8286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8289 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8290 if test $ac_cv_header_sys_wait_h = yes; then
8292 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8297 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8298 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 #include <sys/types.h>
8304 #include <termios.h>
8310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8311 $EGREP "yes" >/dev
/null
2>&1; then :
8312 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8314 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8320 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8322 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8324 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8325 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 #include <sys/types.h>
8331 #include <sys/ioctl.h>
8337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8338 $EGREP "yes" >/dev
/null
2>&1; then :
8339 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8341 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8347 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8349 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8351 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8356 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8357 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8358 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8359 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8361 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8362 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8363 eval as_val
=\$
$as_ac_Header
8364 if test "x$as_val" = x
""yes; then :
8365 cat >>confdefs.h
<<_ACEOF
8366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8373 # Check for thread headers.
8374 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8375 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8381 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8382 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8389 # These tests can't be done till we know if we have limits.h.
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8391 $as_echo_n "checking for CHAR_BIT... " >&6; }
8392 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #ifdef HAVE_LIMITS_H
8404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8405 $EGREP "found" >/dev
/null
2>&1; then :
8406 gcc_cv_decl_char_bit
=yes
8408 gcc_cv_decl_char_bit
=no
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8415 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8416 if test $gcc_cv_decl_char_bit = no
; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8418 $as_echo_n "checking number of bits in a byte... " >&6; }
8419 if test "${gcc_cv_c_nbby+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
8424 while test $i -lt 65; do
8425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8432 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8433 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8439 if ac_fn_c_try_compile
"$LINENO"; then :
8440 gcc_cv_c_nbby
=$i; break
8442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8445 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8449 $as_echo "$gcc_cv_c_nbby" >&6; }
8450 if test $gcc_cv_c_nbby = failed
; then
8451 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8454 cat >>confdefs.h
<<_ACEOF
8455 #define CHAR_BIT $gcc_cv_c_nbby
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8461 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8462 if test "${ac_cv_c_bigendian+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8465 ac_cv_c_bigendian
=unknown
8466 # See if we're dealing with a universal compiler.
8467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 #ifndef __APPLE_CC__
8470 not a universal capable compiler
8475 if ac_fn_c_try_compile
"$LINENO"; then :
8477 # Check for potential -arch flags. It is not universal unless
8478 # there are at least two -arch flags with different values.
8481 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8482 if test -n "$ac_prev"; then
8484 i?
86 | x86_64 | ppc | ppc64
)
8485 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8488 ac_cv_c_bigendian
=universal
8494 elif test "x$ac_word" = "x-arch"; then
8499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8500 if test $ac_cv_c_bigendian = unknown
; then
8501 # See if sys/param.h defines the BYTE_ORDER macro.
8502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <sys/types.h>
8505 #include <sys/param.h>
8510 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8511 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8520 if ac_fn_c_try_compile
"$LINENO"; then :
8521 # It does; now see whether it defined to BIG_ENDIAN or not.
8522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 #include <sys/types.h>
8525 #include <sys/param.h>
8530 #if BYTE_ORDER != BIG_ENDIAN
8538 if ac_fn_c_try_compile
"$LINENO"; then :
8539 ac_cv_c_bigendian
=yes
8541 ac_cv_c_bigendian
=no
8543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8547 if test $ac_cv_c_bigendian = unknown
; then
8548 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8556 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8564 if ac_fn_c_try_compile
"$LINENO"; then :
8565 # It does; now see whether it defined to _BIG_ENDIAN or not.
8566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8581 if ac_fn_c_try_compile
"$LINENO"; then :
8582 ac_cv_c_bigendian
=yes
8584 ac_cv_c_bigendian
=no
8586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8590 if test $ac_cv_c_bigendian = unknown
; then
8591 # Compile a test program.
8592 if test "$cross_compiling" = yes; then :
8593 # Try to guess by grepping values from an object file.
8594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 short int ascii_mm[] =
8597 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8598 short int ascii_ii[] =
8599 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8600 int use_ascii (int i) {
8601 return ascii_mm[i] + ascii_ii[i];
8603 short int ebcdic_ii[] =
8604 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8605 short int ebcdic_mm[] =
8606 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8607 int use_ebcdic (int i) {
8608 return ebcdic_mm[i] + ebcdic_ii[i];
8615 return use_ascii (foo) == use_ebcdic (foo);
8620 if ac_fn_c_try_compile
"$LINENO"; then :
8621 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8622 ac_cv_c_bigendian
=yes
8624 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8625 if test "$ac_cv_c_bigendian" = unknown
; then
8626 ac_cv_c_bigendian
=no
8628 # finding both strings is unlikely to happen, but who knows?
8629 ac_cv_c_bigendian
=unknown
8633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 $ac_includes_default
8642 /* Are we little or big endian? From Harbison&Steele. */
8646 char c[sizeof (long int)];
8649 return u.c[sizeof (long int) - 1] == 1;
8655 if ac_fn_c_try_run
"$LINENO"; then :
8656 ac_cv_c_bigendian
=no
8658 ac_cv_c_bigendian
=yes
8660 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8661 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8667 $as_echo "$ac_cv_c_bigendian" >&6; }
8668 case $ac_cv_c_bigendian in #(
8670 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8676 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8680 as_fn_error
"unknown endianness
8681 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8685 # ----------------------
8686 # Checks for C++ headers
8687 # ----------------------
8690 ac_cpp
='$CXXCPP $CPPFLAGS'
8691 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8692 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8693 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8695 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8696 if test -z "$CXXCPP"; then
8697 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8700 # Double quotes because CXXCPP needs to be expanded
8701 for CXXCPP
in "$CXX -E" "/lib/cpp"
8704 for ac_cxx_preproc_warn_flag
in '' yes
8706 # Use a header file that comes with gcc, so configuring glibc
8707 # with a fresh cross-compiler works.
8708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 # <limits.h> exists even on freestanding compilers.
8710 # On the NeXT, cc -E runs the code through the compiler's parser,
8711 # not just through cpp. "Syntax error" is here to catch this case.
8712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8715 # include <limits.h>
8717 # include <assert.h>
8721 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8724 # Broken: fails on valid input.
8727 rm -f conftest.err conftest.
$ac_ext
8729 # OK, works on sane cases. Now check whether nonexistent headers
8730 # can be detected and how.
8731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 #include <ac_nonexistent.h>
8735 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8736 # Broken: success on invalid input.
8739 # Passes both tests.
8743 rm -f conftest.err conftest.
$ac_ext
8746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8747 rm -f conftest.err conftest.
$ac_ext
8748 if $ac_preproc_ok; then :
8753 ac_cv_prog_CXXCPP
=$CXXCPP
8756 CXXCPP
=$ac_cv_prog_CXXCPP
8758 ac_cv_prog_CXXCPP
=$CXXCPP
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8761 $as_echo "$CXXCPP" >&6; }
8763 for ac_cxx_preproc_warn_flag
in '' yes
8765 # Use a header file that comes with gcc, so configuring glibc
8766 # with a fresh cross-compiler works.
8767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8768 # <limits.h> exists even on freestanding compilers.
8769 # On the NeXT, cc -E runs the code through the compiler's parser,
8770 # not just through cpp. "Syntax error" is here to catch this case.
8771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8774 # include <limits.h>
8776 # include <assert.h>
8780 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8783 # Broken: fails on valid input.
8786 rm -f conftest.err conftest.
$ac_ext
8788 # OK, works on sane cases. Now check whether nonexistent headers
8789 # can be detected and how.
8790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8792 #include <ac_nonexistent.h>
8794 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8795 # Broken: success on invalid input.
8798 # Passes both tests.
8802 rm -f conftest.err conftest.
$ac_ext
8805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8806 rm -f conftest.err conftest.
$ac_ext
8807 if $ac_preproc_ok; then :
8810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8813 See \`config.log' for more details." >&5
8814 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8815 See \`config.log' for more details." >&2;}; }
8819 ac_cpp
='$CPP $CPPFLAGS'
8820 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8821 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8822 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8826 ac_cpp
='$CXXCPP $CPPFLAGS'
8827 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8828 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8829 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8834 for ac_header
in unordered_map
8836 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8837 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8838 cat >>confdefs.h
<<_ACEOF
8839 #define HAVE_UNORDERED_MAP 1
8845 for ac_header
in tr1/unordered_map
8847 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8848 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8849 cat >>confdefs.h
<<_ACEOF
8850 #define HAVE_TR1_UNORDERED_MAP 1
8856 for ac_header
in ext
/hash_map
8858 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8859 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8860 cat >>confdefs.h
<<_ACEOF
8861 #define HAVE_EXT_HASH_MAP 1
8869 ac_cpp
='$CPP $CPPFLAGS'
8870 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8880 # These libraries may be used by collect2.
8881 # We may need a special search path to get them linked.
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8883 $as_echo_n "checking for collect2 libraries... " >&6; }
8884 if test "${gcc_cv_collect2_libs+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8888 for libs
in '' -lld -lmld \
8889 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8890 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8911 if ac_fn_c_try_link
"$LINENO"; then :
8912 gcc_cv_collect2_libs
="$libs"; break
8914 rm -f core conftest.err conftest.
$ac_objext \
8915 conftest
$ac_exeext conftest.
$ac_ext
8918 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8921 $as_echo "$gcc_cv_collect2_libs" >&6; }
8922 case $gcc_cv_collect2_libs in
8924 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8928 # When building Ada code on Alpha, we need exc_resume which is usually in
8929 # -lexc. So test for it.
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8933 $as_echo_n "checking for library containing exc_resume... " >&6; }
8934 if test "${ac_cv_search_exc_resume+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8937 ac_func_search_save_LIBS
=$LIBS
8938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8941 /* Override any GCC internal prototype to avoid an error.
8942 Use char because int might match the return type of a GCC
8943 builtin and then its argument prototype would still apply. */
8951 return exc_resume ();
8956 for ac_lib
in '' exc
; do
8957 if test -z "$ac_lib"; then
8958 ac_res
="none required"
8961 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8963 if ac_fn_c_try_link
"$LINENO"; then :
8964 ac_cv_search_exc_resume
=$ac_res
8966 rm -f core conftest.err conftest.
$ac_objext \
8968 if test "${ac_cv_search_exc_resume+set}" = set; then :
8972 if test "${ac_cv_search_exc_resume+set}" = set; then :
8975 ac_cv_search_exc_resume
=no
8978 LIBS
=$ac_func_search_save_LIBS
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8981 $as_echo "$ac_cv_search_exc_resume" >&6; }
8982 ac_res
=$ac_cv_search_exc_resume
8983 if test "$ac_res" != no
; then :
8984 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8992 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8996 $as_echo_n "checking for library containing kstat_open... " >&6; }
8997 if test "${ac_cv_search_kstat_open+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
9000 ac_func_search_save_LIBS
=$LIBS
9001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9014 return kstat_open ();
9019 for ac_lib
in '' kstat
; do
9020 if test -z "$ac_lib"; then
9021 ac_res
="none required"
9024 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9026 if ac_fn_c_try_link
"$LINENO"; then :
9027 ac_cv_search_kstat_open
=$ac_res
9029 rm -f core conftest.err conftest.
$ac_objext \
9031 if test "${ac_cv_search_kstat_open+set}" = set; then :
9035 if test "${ac_cv_search_kstat_open+set}" = set; then :
9038 ac_cv_search_kstat_open
=no
9041 LIBS
=$ac_func_search_save_LIBS
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9044 $as_echo "$ac_cv_search_kstat_open" >&6; }
9045 ac_res
=$ac_cv_search_kstat_open
9046 if test "$ac_res" != no
; then :
9047 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9051 EXTRA_GCC_LIBS
="$LIBS"
9055 # Some systems put ldexp and frexp in libm instead of libc; assume
9056 # they're both in the same place. jcf-dump needs them.
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9060 $as_echo_n "checking for library containing ldexp... " >&6; }
9061 if test "${ac_cv_search_ldexp+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
9064 ac_func_search_save_LIBS
=$LIBS
9065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9068 /* Override any GCC internal prototype to avoid an error.
9069 Use char because int might match the return type of a GCC
9070 builtin and then its argument prototype would still apply. */
9083 for ac_lib
in '' m
; do
9084 if test -z "$ac_lib"; then
9085 ac_res
="none required"
9088 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9090 if ac_fn_c_try_link
"$LINENO"; then :
9091 ac_cv_search_ldexp
=$ac_res
9093 rm -f core conftest.err conftest.
$ac_objext \
9095 if test "${ac_cv_search_ldexp+set}" = set; then :
9099 if test "${ac_cv_search_ldexp+set}" = set; then :
9102 ac_cv_search_ldexp
=no
9105 LIBS
=$ac_func_search_save_LIBS
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9108 $as_echo "$ac_cv_search_ldexp" >&6; }
9109 ac_res
=$ac_cv_search_ldexp
9110 if test "$ac_res" != no
; then :
9111 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9119 # Use <inttypes.h> only if it exists,
9120 # doesn't clash with <sys/types.h>, and declares intmax_t.
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9122 $as_echo_n "checking for inttypes.h... " >&6; }
9123 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9128 #include <sys/types.h>
9129 #include <inttypes.h>
9138 if ac_fn_c_try_compile
"$LINENO"; then :
9139 gcc_cv_header_inttypes_h
=yes
9141 gcc_cv_header_inttypes_h
=no
9143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9147 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9148 if test $gcc_cv_header_inttypes_h = yes; then
9150 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9156 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9157 sysconf strsignal getrusage nl_langinfo \
9158 gettimeofday mbstowcs wcswidth mmap setlocale \
9159 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
9161 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9162 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9163 eval as_val
=\$
$as_ac_var
9164 if test "x$as_val" = x
""yes; then :
9165 cat >>confdefs.h
<<_ACEOF
9166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9173 if test x
$ac_cv_func_mbstowcs = xyes
; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9175 $as_echo_n "checking whether mbstowcs works... " >&6; }
9176 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9179 if test "$cross_compiling" = yes; then :
9180 gcc_cv_func_mbstowcs_works
=yes
9182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9191 if ac_fn_c_try_run
"$LINENO"; then :
9192 gcc_cv_func_mbstowcs_works
=yes
9194 gcc_cv_func_mbstowcs_works
=no
9196 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9197 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9202 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9203 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9205 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9210 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9211 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9215 cat >>confdefs.h
<<_ACEOF
9221 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9222 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9226 cat >>confdefs.h
<<_ACEOF
9227 #define caddr_t char *
9234 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9235 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9236 gcc_header_sys_mman_h
=yes
9238 gcc_header_sys_mman_h
=no
9241 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9242 if test "x$ac_cv_func_mmap" = x
""yes; then :
9248 if test "$gcc_header_sys_mman_h" != yes \
9249 ||
test "$gcc_func_mmap" != yes; then
9250 gcc_cv_func_mmap_file
=no
9251 gcc_cv_func_mmap_dev_zero
=no
9252 gcc_cv_func_mmap_anon
=no
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9255 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9256 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9257 $as_echo_n "(cached) " >&6
9259 # Add a system to this blacklist if
9260 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9261 # memory area containing the same data that you'd get if you applied
9262 # read() to the same fd. The only system known to have a problem here
9263 # is VMS, where text files have record structure.
9266 gcc_cv_func_mmap_file
=no
;;
9268 gcc_cv_func_mmap_file
=yes;;
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9272 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9274 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9275 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9278 # Add a system to this blacklist if it has mmap() but /dev/zero
9279 # does not exist, or if mmapping /dev/zero does not give anonymous
9280 # zeroed pages with both the following properties:
9281 # 1. If you map N consecutive pages in with one call, and then
9282 # unmap any subset of those pages, the pages that were not
9283 # explicitly unmapped remain accessible.
9284 # 2. If you map two adjacent blocks of memory and then unmap them
9285 # both at once, they must both go away.
9286 # Systems known to be in this category are Windows (all variants),
9289 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9290 gcc_cv_func_mmap_dev_zero
=no
;;
9292 gcc_cv_func_mmap_dev_zero
=yes;;
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9296 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9298 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9300 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9301 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9302 $as_echo_n "(cached) " >&6
9304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9306 #include <sys/types.h>
9307 #include <sys/mman.h>
9310 #ifndef MAP_ANONYMOUS
9311 #define MAP_ANONYMOUS MAP_ANON
9317 int n = MAP_ANONYMOUS;
9322 if ac_fn_c_try_compile
"$LINENO"; then :
9323 gcc_cv_decl_map_anon
=yes
9325 gcc_cv_decl_map_anon
=no
9327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9330 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9332 if test $gcc_cv_decl_map_anon = no
; then
9333 gcc_cv_func_mmap_anon
=no
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9336 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9337 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
9340 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9341 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9342 # doesn't give anonymous zeroed pages with the same properties listed
9343 # above for use of /dev/zero.
9344 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9346 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9347 gcc_cv_func_mmap_anon
=no
;;
9349 gcc_cv_func_mmap_anon
=yes;;
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9353 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9357 if test $gcc_cv_func_mmap_file = yes; then
9359 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9362 if test $gcc_cv_func_mmap_dev_zero = yes; then
9364 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9367 if test $gcc_cv_func_mmap_anon = yes; then
9369 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9376 # Under VMS, vfork works very differently than on Unix. The standard test
9377 # won't work, and it isn't easily adaptable. It makes more sense to
9379 ac_cv_func_vfork_works
=yes
9382 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9383 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9387 cat >>confdefs.h
<<_ACEOF
9393 for ac_header
in vfork.h
9395 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9396 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9397 cat >>confdefs.h
<<_ACEOF
9398 #define HAVE_VFORK_H 1
9404 for ac_func
in fork vfork
9406 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9407 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9408 eval as_val
=\$
$as_ac_var
9409 if test "x$as_val" = x
""yes; then :
9410 cat >>confdefs.h
<<_ACEOF
9411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9417 if test "x$ac_cv_func_fork" = xyes
; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9419 $as_echo_n "checking for working fork... " >&6; }
9420 if test "${ac_cv_func_fork_works+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9423 if test "$cross_compiling" = yes; then :
9424 ac_cv_func_fork_works
=cross
9426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9428 $ac_includes_default
9433 /* By Ruediger Kuhlmann. */
9440 if ac_fn_c_try_run
"$LINENO"; then :
9441 ac_cv_func_fork_works
=yes
9443 ac_cv_func_fork_works
=no
9445 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9446 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9451 $as_echo "$ac_cv_func_fork_works" >&6; }
9454 ac_cv_func_fork_works
=$ac_cv_func_fork
9456 if test "x$ac_cv_func_fork_works" = xcross
; then
9458 *-*-amigaos* |
*-*-msdosdjgpp*)
9459 # Override, as these systems have only a dummy fork() stub
9460 ac_cv_func_fork_works
=no
9463 ac_cv_func_fork_works
=yes
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9467 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9469 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9470 if test "x$ac_cv_func_vfork" = xyes
; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9472 $as_echo_n "checking for working vfork... " >&6; }
9473 if test "${ac_cv_func_vfork_works+set}" = set; then :
9474 $as_echo_n "(cached) " >&6
9476 if test "$cross_compiling" = yes; then :
9477 ac_cv_func_vfork_works
=cross
9479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481 /* Thanks to Paul Eggert for this test. */
9482 $ac_includes_default
9483 #include <sys/wait.h>
9487 /* On some sparc systems, changes by the child to local and incoming
9488 argument registers are propagated back to the parent. The compiler
9489 is told about this with #include <vfork.h>, but some compilers
9490 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9491 static variable whose address is put into a register that is
9492 clobbered by the vfork. */
9495 sparc_address_test (int arg)
9497 sparc_address_test (arg) int arg;
9518 pid_t parent = getpid ();
9521 sparc_address_test (0);
9526 /* Here is another test for sparc vfork register problems. This
9527 test uses lots of local variables, at least as many local
9528 variables as main has allocated so far including compiler
9529 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9530 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9531 reuse the register of parent for one of the local variables,
9532 since it will think that parent can't possibly be used any more
9533 in this routine. Assigning to the local variable will thus
9534 munge parent in the parent process. */
9536 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9537 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9538 /* Convince the compiler that p..p7 are live; otherwise, it might
9539 use the same hardware register for all 8 local variables. */
9540 if (p != p1 || p != p2 || p != p3 || p != p4
9541 || p != p5 || p != p6 || p != p7)
9544 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9545 from child file descriptors. If the child closes a descriptor
9546 before it execs or exits, this munges the parent's descriptor
9547 as well. Test for this by closing stdout in the child. */
9548 _exit(close(fileno(stdout)) != 0);
9553 while (wait(&status) != child)
9556 /* Was there some problem with vforking? */
9559 /* Did the child fail? (This shouldn't happen.) */
9562 /* Did the vfork/compiler bug occur? */
9563 || parent != getpid()
9565 /* Did the file descriptor bug occur? */
9566 || fstat(fileno(stdout), &st) != 0
9571 if ac_fn_c_try_run
"$LINENO"; then :
9572 ac_cv_func_vfork_works
=yes
9574 ac_cv_func_vfork_works
=no
9576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9582 $as_echo "$ac_cv_func_vfork_works" >&6; }
9585 if test "x$ac_cv_func_fork_works" = xcross
; then
9586 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9588 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9591 if test "x$ac_cv_func_vfork_works" = xyes
; then
9593 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9597 $as_echo "#define vfork fork" >>confdefs.h
9600 if test "x$ac_cv_func_fork_works" = xyes
; then
9602 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9607 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9608 # iconv() prototype.
9610 ac_cpp
='$CXXCPP $CPPFLAGS'
9611 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9612 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9613 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9616 if test "X$prefix" = "XNONE"; then
9617 acl_final_prefix
="$ac_default_prefix"
9619 acl_final_prefix
="$prefix"
9621 if test "X$exec_prefix" = "XNONE"; then
9622 acl_final_exec_prefix
='${prefix}'
9624 acl_final_exec_prefix
="$exec_prefix"
9626 acl_save_prefix
="$prefix"
9627 prefix
="$acl_final_prefix"
9628 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9629 prefix
="$acl_save_prefix"
9632 # Check whether --with-gnu-ld was given.
9633 if test "${with_gnu_ld+set}" = set; then :
9634 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9639 # Prepare PATH_SEPARATOR.
9640 # The user is always right.
9641 if test "${PATH_SEPARATOR+set}" != set; then
9642 echo "#! /bin/sh" >conf$$.sh
9643 echo "exit 0" >>conf$$.sh
9645 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9653 if test "$GCC" = yes; then
9654 # Check if gcc -print-prog-name=ld gives a path.
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9656 $as_echo_n "checking for ld used by GCC... " >&6; }
9659 # gcc leaves a trailing carriage return which upsets mingw
9660 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9662 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9665 # Accept absolute paths.
9666 [\\/]* |
[A-Za-z
]:[\\/]*)
9667 re_direlt
='/[^/][^/]*/\.\./'
9668 # Canonicalize the path of ld
9669 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9670 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9671 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9673 test -z "$LD" && LD
="$ac_prog"
9676 # If it fails, then pretend we aren't using GCC.
9680 # If it is relative, then search for the first ld in PATH.
9684 elif test "$with_gnu_ld" = yes; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9686 $as_echo_n "checking for GNU ld... " >&6; }
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9689 $as_echo_n "checking for non-GNU ld... " >&6; }
9691 if test "${acl_cv_path_LD+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
9694 if test -z "$LD"; then
9695 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9696 for ac_dir
in $PATH; do
9697 test -z "$ac_dir" && ac_dir
=.
9698 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9699 acl_cv_path_LD
="$ac_dir/$ac_prog"
9700 # Check to see if the program is GNU ld. I'd rather use --version,
9701 # but apparently some GNU ld's only accept -v.
9702 # Break only if it was the GNU/non-GNU ld that we prefer.
9703 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9704 test "$with_gnu_ld" != no
&& break
9706 test "$with_gnu_ld" != yes && break
9712 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9716 LD
="$acl_cv_path_LD"
9717 if test -n "$LD"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9719 $as_echo "$LD" >&6; }
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9724 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9726 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9727 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9728 $as_echo_n "(cached) " >&6
9730 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9731 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9732 acl_cv_prog_gnu_ld
=yes
9734 acl_cv_prog_gnu_ld
=no
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9738 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9739 with_gnu_ld
=$acl_cv_prog_gnu_ld
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9744 $as_echo_n "checking for shared library run path origin... " >&6; }
9745 if test "${acl_cv_rpath+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9749 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9750 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9757 $as_echo "$acl_cv_rpath" >&6; }
9759 libext
="$acl_cv_libext"
9760 shlibext
="$acl_cv_shlibext"
9761 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9762 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9763 hardcode_direct
="$acl_cv_hardcode_direct"
9764 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9765 # Check whether --enable-rpath was given.
9766 if test "${enable_rpath+set}" = set; then :
9767 enableval
=$enable_rpath; :
9781 acl_save_prefix
="$prefix"
9782 prefix
="$acl_final_prefix"
9783 acl_save_exec_prefix
="$exec_prefix"
9784 exec_prefix
="$acl_final_exec_prefix"
9786 eval additional_includedir
=\"$includedir\"
9787 eval additional_libdir
=\"$libdir\"
9789 exec_prefix
="$acl_save_exec_prefix"
9790 prefix
="$acl_save_prefix"
9793 # Check whether --with-libiconv-prefix was given.
9794 if test "${with_libiconv_prefix+set}" = set; then :
9795 withval
=$with_libiconv_prefix;
9796 if test "X$withval" = "Xno"; then
9799 if test "X$withval" = "X"; then
9801 acl_save_prefix
="$prefix"
9802 prefix
="$acl_final_prefix"
9803 acl_save_exec_prefix
="$exec_prefix"
9804 exec_prefix
="$acl_final_exec_prefix"
9806 eval additional_includedir
=\"$includedir\"
9807 eval additional_libdir
=\"$libdir\"
9809 exec_prefix
="$acl_save_exec_prefix"
9810 prefix
="$acl_save_prefix"
9813 additional_includedir
="$withval/include"
9814 additional_libdir
="$withval/lib"
9825 names_already_handled
=
9826 names_next_round
='iconv '
9827 while test -n "$names_next_round"; do
9828 names_this_round
="$names_next_round"
9830 for name
in $names_this_round; do
9832 for n
in $names_already_handled; do
9833 if test "$n" = "$name"; then
9838 if test -z "$already_handled"; then
9839 names_already_handled
="$names_already_handled $name"
9840 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9841 eval value
=\"\
$HAVE_LIB$uppername\"
9842 if test -n "$value"; then
9843 if test "$value" = yes; then
9844 eval value
=\"\
$LIB$uppername\"
9845 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9846 eval value
=\"\
$LTLIB$uppername\"
9847 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9856 if test $use_additional = yes; then
9857 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9858 found_dir
="$additional_libdir"
9859 found_so
="$additional_libdir/lib$name.$shlibext"
9860 if test -f "$additional_libdir/lib$name.la"; then
9861 found_la
="$additional_libdir/lib$name.la"
9864 if test -f "$additional_libdir/lib$name.$libext"; then
9865 found_dir
="$additional_libdir"
9866 found_a
="$additional_libdir/lib$name.$libext"
9867 if test -f "$additional_libdir/lib$name.la"; then
9868 found_la
="$additional_libdir/lib$name.la"
9873 if test "X$found_dir" = "X"; then
9874 for x
in $LDFLAGS $LTLIBICONV; do
9876 acl_save_prefix
="$prefix"
9877 prefix
="$acl_final_prefix"
9878 acl_save_exec_prefix
="$exec_prefix"
9879 exec_prefix
="$acl_final_exec_prefix"
9881 exec_prefix
="$acl_save_exec_prefix"
9882 prefix
="$acl_save_prefix"
9886 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9887 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9889 found_so
="$dir/lib$name.$shlibext"
9890 if test -f "$dir/lib$name.la"; then
9891 found_la
="$dir/lib$name.la"
9894 if test -f "$dir/lib$name.$libext"; then
9896 found_a
="$dir/lib$name.$libext"
9897 if test -f "$dir/lib$name.la"; then
9898 found_la
="$dir/lib$name.la"
9904 if test "X$found_dir" != "X"; then
9909 if test "X$found_dir" != "X"; then
9910 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9911 if test "X$found_so" != "X"; then
9912 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9913 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9916 for x
in $ltrpathdirs; do
9917 if test "X$x" = "X$found_dir"; then
9922 if test -z "$haveit"; then
9923 ltrpathdirs
="$ltrpathdirs $found_dir"
9925 if test "$hardcode_direct" = yes; then
9926 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9928 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9929 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9931 for x
in $rpathdirs; do
9932 if test "X$x" = "X$found_dir"; then
9937 if test -z "$haveit"; then
9938 rpathdirs
="$rpathdirs $found_dir"
9942 for x
in $LDFLAGS $LIBICONV; do
9944 acl_save_prefix
="$prefix"
9945 prefix
="$acl_final_prefix"
9946 acl_save_exec_prefix
="$exec_prefix"
9947 exec_prefix
="$acl_final_exec_prefix"
9949 exec_prefix
="$acl_save_exec_prefix"
9950 prefix
="$acl_save_prefix"
9952 if test "X$x" = "X-L$found_dir"; then
9957 if test -z "$haveit"; then
9958 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9960 if test "$hardcode_minus_L" != no
; then
9961 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9963 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9969 if test "X$found_a" != "X"; then
9970 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9972 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9975 additional_includedir
=
9976 case "$found_dir" in
9978 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9979 additional_includedir
="$basedir/include"
9982 if test "X$additional_includedir" != "X"; then
9983 if test "X$additional_includedir" != "X/usr/include"; then
9985 if test "X$additional_includedir" = "X/usr/local/include"; then
9986 if test -n "$GCC"; then
9988 linux
*) haveit
=yes;;
9992 if test -z "$haveit"; then
9993 for x
in $CPPFLAGS $INCICONV; do
9995 acl_save_prefix
="$prefix"
9996 prefix
="$acl_final_prefix"
9997 acl_save_exec_prefix
="$exec_prefix"
9998 exec_prefix
="$acl_final_exec_prefix"
10000 exec_prefix
="$acl_save_exec_prefix"
10001 prefix
="$acl_save_prefix"
10003 if test "X$x" = "X-I$additional_includedir"; then
10008 if test -z "$haveit"; then
10009 if test -d "$additional_includedir"; then
10010 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10016 if test -n "$found_la"; then
10017 save_libdir
="$libdir"
10018 case "$found_la" in
10019 */* |
*\\*) .
"$found_la" ;;
10020 *) .
"./$found_la" ;;
10022 libdir
="$save_libdir"
10023 for dep
in $dependency_libs; do
10026 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10027 if test "X$additional_libdir" != "X/usr/lib"; then
10029 if test "X$additional_libdir" = "X/usr/local/lib"; then
10030 if test -n "$GCC"; then
10032 linux
*) haveit
=yes;;
10036 if test -z "$haveit"; then
10038 for x
in $LDFLAGS $LIBICONV; do
10040 acl_save_prefix
="$prefix"
10041 prefix
="$acl_final_prefix"
10042 acl_save_exec_prefix
="$exec_prefix"
10043 exec_prefix
="$acl_final_exec_prefix"
10045 exec_prefix
="$acl_save_exec_prefix"
10046 prefix
="$acl_save_prefix"
10048 if test "X$x" = "X-L$additional_libdir"; then
10053 if test -z "$haveit"; then
10054 if test -d "$additional_libdir"; then
10055 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10059 for x
in $LDFLAGS $LTLIBICONV; do
10061 acl_save_prefix
="$prefix"
10062 prefix
="$acl_final_prefix"
10063 acl_save_exec_prefix
="$exec_prefix"
10064 exec_prefix
="$acl_final_exec_prefix"
10066 exec_prefix
="$acl_save_exec_prefix"
10067 prefix
="$acl_save_prefix"
10069 if test "X$x" = "X-L$additional_libdir"; then
10074 if test -z "$haveit"; then
10075 if test -d "$additional_libdir"; then
10076 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10083 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10084 if test "$enable_rpath" != no
; then
10086 for x
in $rpathdirs; do
10087 if test "X$x" = "X$dir"; then
10092 if test -z "$haveit"; then
10093 rpathdirs
="$rpathdirs $dir"
10096 for x
in $ltrpathdirs; do
10097 if test "X$x" = "X$dir"; then
10102 if test -z "$haveit"; then
10103 ltrpathdirs
="$ltrpathdirs $dir"
10108 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10111 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10114 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10115 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10121 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10122 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10128 if test "X$rpathdirs" != "X"; then
10129 if test -n "$hardcode_libdir_separator"; then
10131 for found_dir
in $rpathdirs; do
10132 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10134 acl_save_libdir
="$libdir"
10136 eval flag
=\"$hardcode_libdir_flag_spec\"
10137 libdir
="$acl_save_libdir"
10138 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10140 for found_dir
in $rpathdirs; do
10141 acl_save_libdir
="$libdir"
10142 libdir
="$found_dir"
10143 eval flag
=\"$hardcode_libdir_flag_spec\"
10144 libdir
="$acl_save_libdir"
10145 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10149 if test "X$ltrpathdirs" != "X"; then
10150 for found_dir
in $ltrpathdirs; do
10151 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10161 am_save_CPPFLAGS
="$CPPFLAGS"
10163 for element
in $INCICONV; do
10165 for x
in $CPPFLAGS; do
10167 acl_save_prefix
="$prefix"
10168 prefix
="$acl_final_prefix"
10169 acl_save_exec_prefix
="$exec_prefix"
10170 exec_prefix
="$acl_final_exec_prefix"
10172 exec_prefix
="$acl_save_exec_prefix"
10173 prefix
="$acl_save_prefix"
10175 if test "X$x" = "X$element"; then
10180 if test -z "$haveit"; then
10181 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10187 $as_echo_n "checking for iconv... " >&6; }
10188 if test "${am_cv_func_iconv+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10192 am_cv_func_iconv
="no, consider installing GNU libiconv"
10194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10196 #include <stdlib.h>
10201 iconv_t cd = iconv_open("","");
10202 iconv(cd,NULL,NULL,NULL,NULL);
10208 if ac_fn_cxx_try_link
"$LINENO"; then :
10209 am_cv_func_iconv
=yes
10211 rm -f core conftest.err conftest.
$ac_objext \
10212 conftest
$ac_exeext conftest.
$ac_ext
10213 if test "$am_cv_func_iconv" != yes; then
10214 am_save_LIBS
="$LIBS"
10215 LIBS
="$LIBS $LIBICONV"
10216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 #include <stdlib.h>
10223 iconv_t cd = iconv_open("","");
10224 iconv(cd,NULL,NULL,NULL,NULL);
10230 if ac_fn_cxx_try_link
"$LINENO"; then :
10231 am_cv_lib_iconv
=yes
10232 am_cv_func_iconv
=yes
10234 rm -f core conftest.err conftest.
$ac_objext \
10235 conftest
$ac_exeext conftest.
$ac_ext
10236 LIBS
="$am_save_LIBS"
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10241 $as_echo "$am_cv_func_iconv" >&6; }
10242 if test "$am_cv_func_iconv" = yes; then
10244 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10247 if test "$am_cv_lib_iconv" = yes; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10249 $as_echo_n "checking how to link with libiconv... " >&6; }
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10251 $as_echo "$LIBICONV" >&6; }
10253 CPPFLAGS
="$am_save_CPPFLAGS"
10260 if test "$am_cv_func_iconv" = yes; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10262 $as_echo_n "checking for iconv declaration... " >&6; }
10263 if test "${am_cv_proto_iconv+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10270 #include <stdlib.h>
10276 #if defined(__STDC__) || defined(__cplusplus)
10277 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10290 if ac_fn_cxx_try_compile
"$LINENO"; then :
10291 am_cv_proto_iconv_arg1
=""
10293 am_cv_proto_iconv_arg1
="const"
10295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10296 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);"
10299 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10301 }$am_cv_proto_iconv" >&5
10303 }$am_cv_proto_iconv" >&6; }
10305 cat >>confdefs.h
<<_ACEOF
10306 #define ICONV_CONST $am_cv_proto_iconv_arg1
10312 ac_cpp
='$CPP $CPPFLAGS'
10313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10318 # Until we have in-tree GNU iconv:
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10324 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10325 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10326 $as_echo_n "(cached) " >&6
10328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 #include <locale.h>
10339 if ac_fn_c_try_link
"$LINENO"; then :
10340 am_cv_val_LC_MESSAGES
=yes
10342 am_cv_val_LC_MESSAGES
=no
10344 rm -f core conftest.err conftest.
$ac_objext \
10345 conftest
$ac_exeext conftest.
$ac_ext
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10348 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10349 if test $am_cv_val_LC_MESSAGES = yes; then
10351 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10358 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10359 if test "${am_cv_langinfo_codeset+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10364 #include <langinfo.h>
10368 char* cs = nl_langinfo(CODESET);
10373 if ac_fn_c_try_link
"$LINENO"; then :
10374 am_cv_langinfo_codeset
=yes
10376 am_cv_langinfo_codeset
=no
10378 rm -f core conftest.err conftest.
$ac_objext \
10379 conftest
$ac_exeext conftest.
$ac_ext
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10383 $as_echo "$am_cv_langinfo_codeset" >&6; }
10384 if test $am_cv_langinfo_codeset = yes; then
10386 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10391 # We will need to find libiberty.h and ansidecl.h
10392 saved_CFLAGS
="$CFLAGS"
10393 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10394 saved_CXXFLAGS
="$CXXFLAGS"
10395 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10396 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10397 strsignal strstr stpcpy strverscmp \
10398 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10399 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
10401 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10403 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10404 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10405 $as_echo_n "(cached) " >&6
10407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10410 #define $ac_tr_decl 1
10412 #include "ansidecl.h"
10413 #include "system.h"
10419 char *(*pfn) = (char *(*)) $ac_func ;
10425 if ac_fn_c_try_compile
"$LINENO"; then :
10426 eval "gcc_cv_have_decl_$ac_func=yes"
10428 eval "gcc_cv_have_decl_$ac_func=no"
10430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10433 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10435 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10436 #define $ac_tr_decl 1
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10442 #define $ac_tr_decl 0
10450 for ac_func
in getrlimit setrlimit getrusage
10452 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10454 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10455 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10456 $as_echo_n "(cached) " >&6
10458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10461 #define $ac_tr_decl 1
10463 #include "ansidecl.h"
10464 #include "system.h"
10465 #ifdef HAVE_SYS_RESOURCE_H
10466 #include <sys/resource.h>
10474 char *(*pfn) = (char *(*)) $ac_func ;
10480 if ac_fn_c_try_compile
"$LINENO"; then :
10481 eval "gcc_cv_have_decl_$ac_func=yes"
10483 eval "gcc_cv_have_decl_$ac_func=no"
10485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10488 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10490 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10491 #define $ac_tr_decl 1
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10497 #define $ac_tr_decl 0
10505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10508 #include "ansidecl.h"
10509 #include "system.h"
10510 #ifdef HAVE_SYS_RESOURCE_H
10511 #include <sys/resource.h>
10522 if ac_fn_c_try_compile
"$LINENO"; then :
10526 $as_echo "#define rlim_t long" >>confdefs.h
10529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10531 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10532 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10533 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10534 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10535 for ac_func
in ldgetname
10537 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10539 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10540 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10541 $as_echo_n "(cached) " >&6
10543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10546 #define $ac_tr_decl 1
10548 #include "ansidecl.h"
10549 #include "system.h"
10550 #ifdef HAVE_LDFCN_H
10561 char *(*pfn) = (char *(*)) $ac_func ;
10567 if ac_fn_c_try_compile
"$LINENO"; then :
10568 eval "gcc_cv_have_decl_$ac_func=yes"
10570 eval "gcc_cv_have_decl_$ac_func=no"
10572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10575 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10578 #define $ac_tr_decl 1
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10584 #define $ac_tr_decl 0
10592 for ac_func
in times
10594 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10596 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10597 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10598 $as_echo_n "(cached) " >&6
10600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10603 #define $ac_tr_decl 1
10605 #include "ansidecl.h"
10606 #include "system.h"
10607 #ifdef HAVE_SYS_TIMES_H
10608 #include <sys/times.h>
10616 char *(*pfn) = (char *(*)) $ac_func ;
10622 if ac_fn_c_try_compile
"$LINENO"; then :
10623 eval "gcc_cv_have_decl_$ac_func=yes"
10625 eval "gcc_cv_have_decl_$ac_func=no"
10627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10630 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10632 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10633 #define $ac_tr_decl 1
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10639 #define $ac_tr_decl 0
10647 for ac_func
in sigaltstack
10649 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10651 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10652 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10653 $as_echo_n "(cached) " >&6
10655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10658 #define $ac_tr_decl 1
10660 #include "ansidecl.h"
10661 #include "system.h"
10662 #include <signal.h>
10669 char *(*pfn) = (char *(*)) $ac_func ;
10675 if ac_fn_c_try_compile
"$LINENO"; then :
10676 eval "gcc_cv_have_decl_$ac_func=yes"
10678 eval "gcc_cv_have_decl_$ac_func=no"
10680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10683 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10685 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10686 #define $ac_tr_decl 1
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10692 #define $ac_tr_decl 0
10700 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10703 ac_cpp
='$CXXCPP $CPPFLAGS'
10704 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10708 for ac_func
in madvise
10710 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10712 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10713 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10714 $as_echo_n "(cached) " >&6
10716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10719 #define $ac_tr_decl 1
10721 #include "ansidecl.h"
10722 #include "system.h"
10729 char *(*pfn) = (char *(*)) $ac_func ;
10735 if ac_fn_cxx_try_compile
"$LINENO"; then :
10736 eval "gcc_cv_have_decl_$ac_func=yes"
10738 eval "gcc_cv_have_decl_$ac_func=no"
10740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10743 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10745 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10746 #define $ac_tr_decl 1
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10752 #define $ac_tr_decl 0
10760 ac_cpp
='$CPP $CPPFLAGS'
10761 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10762 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10763 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10766 # More time-related stuff.
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10768 $as_echo_n "checking for struct tms... " >&6; }
10769 if test "${ac_cv_struct_tms+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
10773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10776 #include "ansidecl.h"
10777 #include "system.h"
10778 #ifdef HAVE_SYS_TIMES_H
10779 #include <sys/times.h>
10790 if ac_fn_c_try_compile
"$LINENO"; then :
10791 ac_cv_struct_tms
=yes
10793 ac_cv_struct_tms
=no
10795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10798 $as_echo "$ac_cv_struct_tms" >&6; }
10799 if test $ac_cv_struct_tms = yes; then
10801 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10805 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10806 # revisit after autoconf 2.50.
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10808 $as_echo_n "checking for clock_t... " >&6; }
10809 if test "${gcc_cv_type_clock_t+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10816 #include "ansidecl.h"
10817 #include "system.h"
10827 if ac_fn_c_try_compile
"$LINENO"; then :
10828 gcc_cv_type_clock_t
=yes
10830 gcc_cv_type_clock_t
=no
10832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10835 $as_echo "$gcc_cv_type_clock_t" >&6; }
10836 if test $gcc_cv_type_clock_t = yes; then
10838 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10842 # Check if F_SETLKW is supported by fcntl.
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10844 $as_echo_n "checking for F_SETLKW... " >&6; }
10845 if test "${ac_cv_f_setlkw+set}" = set; then :
10846 $as_echo_n "(cached) " >&6
10849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10862 return fcntl (1, F_SETLKW, &fl);
10867 if ac_fn_c_try_compile
"$LINENO"; then :
10872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10875 $as_echo "$ac_cv_f_setlkw" >&6; }
10876 if test $ac_cv_f_setlkw = yes; then
10878 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10882 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10883 CFLAGS
="$saved_CFLAGS"
10884 CXXFLAGS
="$saved_CXXFLAGS"
10886 # mkdir takes a single argument on some systems.
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10888 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10889 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10890 $as_echo_n "(cached) " >&6
10892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10895 #include <sys/types.h>
10896 #ifdef HAVE_SYS_STAT_H
10897 # include <sys/stat.h>
10899 #ifdef HAVE_UNISTD_H
10900 # include <unistd.h>
10902 #ifdef HAVE_DIRECT_H
10903 # include <direct.h>
10913 if ac_fn_c_try_compile
"$LINENO"; then :
10914 gcc_cv_mkdir_takes_one_arg
=no
10916 gcc_cv_mkdir_takes_one_arg
=yes
10918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10921 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10922 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10924 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10935 # With Setjmp/Longjmp based exception handling.
10936 # Check whether --enable-sjlj-exceptions was given.
10937 if test "${enable_sjlj_exceptions+set}" = set; then :
10938 enableval
=$enable_sjlj_exceptions; case $target in
10940 if test $enableval != yes; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10942 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10947 force_sjlj_exceptions
=yes
10951 force_sjlj_exceptions
=yes
10955 force_sjlj_exceptions
=no
10960 if test $force_sjlj_exceptions = yes; then
10961 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10963 cat >>confdefs.h
<<_ACEOF
10964 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10969 # --------------------------------------------------------
10970 # Build, host, and target specific configuration fragments
10971 # --------------------------------------------------------
10973 # Collect build-machine-specific information.
10974 .
${srcdir}/config.build
10976 # Collect host-machine-specific information.
10977 .
${srcdir}/config.
host
10981 # Collect target-machine-specific information.
10982 .
${srcdir}/config.gcc
10984 extra_objs
="${host_extra_objs} ${extra_objs}"
10985 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10987 # Default the target-machine variables that were not explicitly set.
10988 if test x
"$tm_file" = x
10989 then tm_file
=$cpu_type/$cpu_type.h
; fi
10991 if test x
"$extra_headers" = x
10992 then extra_headers
=; fi
10994 if test x
$md_file = x
10995 then md_file
=$cpu_type/$cpu_type.md
; fi
10997 if test x
$out_file = x
10998 then out_file
=$cpu_type/$cpu_type.c
; fi
11000 if test x
"$tmake_file" = x
11001 then tmake_file
=$cpu_type/t-
$cpu_type
11004 # Support --enable-initfini-array.
11005 if test x
$enable_initfini_array != xno
; then
11006 tm_file
="${tm_file} initfini-array.h"
11009 if test x
"$dwarf2" = xyes
11010 then tm_file
="$tm_file tm-dwarf2.h"
11013 # Say what files are being used for the output code and MD file.
11014 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11015 echo "Using \`$srcdir/config/$md_file' as machine description file."
11017 # If any of the xm_file variables contain nonexistent files, warn
11018 # about them and drop them.
11021 for x
in $build_xm_file; do
11022 if test -f $srcdir/config
/$x
11024 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11025 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11028 build_xm_file
="$bx"
11031 for x
in $host_xm_file; do
11032 if test -f $srcdir/config
/$x
11034 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11035 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11041 for x
in $xm_file; do
11042 if test -f $srcdir/config
/$x
11044 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11045 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11051 for f
in $tm_file; do
11054 if test $count = ax
; then
11055 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11057 echo "Using the following target machine macro files:"
11058 for f
in $tm_file; do
11059 echo " $srcdir/config/$f"
11063 if test x
$need_64bit_hwint = xyes
; then
11065 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11069 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11071 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11075 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11077 cat >>confdefs.h
<<_ACEOF
11078 #define HAVE_GNU_LD $gnu_ld_bool
11082 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11084 cat >>confdefs.h
<<_ACEOF
11085 #define HAVE_GNU_AS $gnu_as_bool
11090 for f
in $host_xm_file; do
11093 if test $count = a
; then
11095 elif test $count = ax
; then
11096 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11098 echo "Using the following host machine macro files:"
11099 for f
in $host_xm_file; do
11100 echo " $srcdir/config/$f"
11103 echo "Using ${out_host_hook_obj} for host machine hooks."
11105 if test "$host_xm_file" != "$build_xm_file"; then
11107 for f
in $build_xm_file; do
11110 if test $count = a
; then
11112 elif test $count = ax
; then
11113 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11115 echo "Using the following build machine macro files:"
11116 for f
in $build_xm_file; do
11117 echo " $srcdir/config/$f"
11122 if test -n "$configured_native_system_header_dir"; then
11123 native_system_header_dir
=$configured_native_system_header_dir
11125 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11129 powerpc
*-*-darwin*)
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11131 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11132 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11138 #include <sys/cdefs.h>
11139 #include <sys/signal.h>
11140 #include <ucontext.h>
11141 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11144 if ac_fn_c_try_compile
"$LINENO"; then :
11145 gcc_cv_mcontext_underscores
=no
11147 gcc_cv_mcontext_underscores
=yes
11149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11152 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11153 if test $gcc_cv_mcontext_underscores = yes; then
11155 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11165 # Check if a valid thread package
11166 case ${enable_threads} in
11169 target_thread_file
='single'
11173 target_thread_file
='single'
11175 aix | dce | lynx | mipssde | posix | rtems | \
11176 single | tpf | vxworks | win32
)
11177 target_thread_file
=${enable_threads}
11180 echo "${enable_threads} is an unknown thread package" 1>&2
11185 if test x
${thread_file} = x
; then
11186 # No thread file set by target-specific clauses in config.gcc,
11187 # so use file chosen by default logic above
11188 thread_file
=${target_thread_file}
11196 if test x
$enable___cxa_atexit = xyes || \
11197 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11198 if test x
$host = x
$target; then
11200 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11201 # keyed to flag_use_cxa_atexit
11209 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11210 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11213 echo "__cxa_atexit can't be enabled on this target"
11219 # We can't check for __cxa_atexit when building a cross, so assume
11223 if test x
$use_cxa_atexit = xyes
; then
11225 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11230 # Look for a file containing extra machine modes.
11231 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11232 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11235 cat >>confdefs.h
<<_ACEOF
11236 #define EXTRA_MODES_FILE "config/$extra_modes"
11241 # Convert extra_options into a form suitable for Makefile use.
11244 for f
in $extra_options; do
11245 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11246 all_opt_files
="$all_opt_files $srcdir/config/$f"
11250 # auto-host.h is the file containing items generated by autoconf and is
11251 # the first file included by config.h.
11252 # If host=build, it is correct to have bconfig include auto-host.h
11253 # as well. If host!=build, we are in error and need to do more
11254 # work to find out the build config parameters.
11255 if test x
$host = x
$build
11257 build_auto
=auto-host.h
11259 # We create a subdir, then run autoconf in the subdir.
11260 # To prevent recursion we set host and build for the new
11261 # invocation of configure to the build for this invocation
11268 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11269 *) realsrcdir
=..
/${srcdir};;
11271 saved_CFLAGS
="${CFLAGS}"
11272 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11273 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11274 ${realsrcdir}/configure \
11275 --enable-languages=${enable_languages-all} \
11276 --target=$target_alias --host=$build_alias --build=$build_alias
11277 CFLAGS
="${saved_CFLAGS}"
11279 # We just finished tests for the build machine, so rename
11280 # the file auto-build.h in the gcc directory.
11281 mv auto-host.h ..
/auto-build.h
11284 build_auto
=auto-build.h
11288 tm_file
="${tm_file} defaults.h"
11289 tm_p_file
="${tm_p_file} tm-preds.h"
11290 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11291 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11292 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11293 # put this back in temporarily.
11294 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11300 # Compile in configure arguments.
11301 if test -f configargs.h
; then
11302 # Being re-configured.
11303 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11304 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11306 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11309 # Double all backslashes and backslash all quotes to turn
11310 # gcc_config_arguments into a C string.
11311 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11312 $gcc_config_arguments
11314 gcc_config_arguments_str
=`cat conftest.out`
11317 cat > configargs.h
<<EOF
11318 /* Generated automatically. */
11319 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11320 static const char thread_model[] = "$thread_file";
11322 static const struct {
11323 const char *name, *value;
11324 } configure_default_options[] = $configure_default_options;
11327 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11328 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11329 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11330 if test -f $srcdir/REVISION
; then
11331 gcc_REVISION
=`cat $srcdir/REVISION`
11335 cat > plugin-version.h
<<EOF
11336 #include "configargs.h"
11338 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11339 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11340 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11341 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11343 static char basever[] = "$gcc_BASEVER";
11344 static char datestamp[] = "$gcc_DATESTAMP";
11345 static char devphase[] = "$gcc_DEVPHASE";
11346 static char revision[] = "$gcc_REVISION";
11348 /* FIXME plugins: We should make the version information more precise.
11349 One way to do is to add a checksum. */
11351 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11352 devphase, revision,
11353 configuration_arguments};
11356 # Internationalization
11357 # If we haven't got the data from the intl directory,
11358 # assume NLS is disabled.
11367 if test -f ..
/intl
/config.intl
; then
11368 . ..
/intl
/config.intl
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11371 $as_echo_n "checking whether NLS is requested... " >&6; }
11372 if test x
"$USE_NLS" != xyes
; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11377 $as_echo "yes" >&6; }
11379 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11383 $as_echo_n "checking for catalogs to be installed... " >&6; }
11384 # Look for .po and .gmo files in the source directory.
11387 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11388 # If there aren't any .gmo files the shell will give us the
11389 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11391 case "$cat" in *\
**)
11394 # The quadruple backslash is collapsed to a double backslash
11395 # by the backticks, then collapsed again by the double quotes,
11396 # leaving us with one backslash in the sed expression (right
11397 # before the dot that mustn't act as a wildcard).
11398 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11399 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11400 # The user is allowed to set LINGUAS to a list of languages to
11401 # install catalogs for. If it's empty that means "all of them."
11402 if test "x$LINGUAS" = x
; then
11403 CATALOGS
="$CATALOGS $cat"
11404 XLINGUAS
="$XLINGUAS $lang"
11406 case "$LINGUAS" in *$lang*)
11407 CATALOGS
="$CATALOGS $cat"
11408 XLINGUAS
="$XLINGUAS $lang"
11413 LINGUAS
="$XLINGUAS"
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11415 $as_echo "$LINGUAS" >&6; }
11428 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11429 # -liconv on the link line twice.
11430 case "$LIBINTL" in *$LIBICONV*)
11434 # Check whether --enable-secureplt was given.
11435 if test "${enable_secureplt+set}" = set; then :
11436 enableval
=$enable_secureplt;
11440 # Check whether --enable-leading-mingw64-underscores was given.
11441 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11442 enableval
=$enable_leading_mingw64_underscores;
11445 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11447 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11451 # Check whether --enable-cld was given.
11452 if test "${enable_cld+set}" = set; then :
11453 enableval
=$enable_cld;
11459 # Check whether --enable-frame-pointer was given.
11460 if test "${enable_frame_pointer+set}" = set; then :
11461 enableval
=$enable_frame_pointer;
11465 linux
* | darwin
[8912]*)
11466 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11468 enable_frame_pointer
=no
11471 enable_frame_pointer
=yes
11478 # Windows32 Registry support for specifying GCC installation paths.
11479 # Check whether --enable-win32-registry was given.
11480 if test "${enable_win32_registry+set}" = set; then :
11481 enableval
=$enable_win32_registry;
11486 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11487 if test "x$enable_win32_registry" != xno
; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11489 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11490 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11491 $as_echo_n "(cached) " >&6
11493 ac_func_search_save_LIBS
=$LIBS
11494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11497 /* Override any GCC internal prototype to avoid an error.
11498 Use char because int might match the return type of a GCC
11499 builtin and then its argument prototype would still apply. */
11503 char RegOpenKeyExA ();
11507 return RegOpenKeyExA ();
11512 for ac_lib
in '' advapi32
; do
11513 if test -z "$ac_lib"; then
11514 ac_res
="none required"
11517 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11519 if ac_fn_c_try_link
"$LINENO"; then :
11520 ac_cv_search_RegOpenKeyExA
=$ac_res
11522 rm -f core conftest.err conftest.
$ac_objext \
11524 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11528 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11531 ac_cv_search_RegOpenKeyExA
=no
11533 rm conftest.
$ac_ext
11534 LIBS
=$ac_func_search_save_LIBS
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11537 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11538 ac_res
=$ac_cv_search_RegOpenKeyExA
11539 if test "$ac_res" != no
; then :
11540 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11543 enable_win32_registry
=no
11548 if test "x$enable_win32_registry" != xno
; then
11550 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11553 if test "x$enable_win32_registry" != xyes \
11554 && test "x$enable_win32_registry" != x
; then
11556 cat >>confdefs.h
<<_ACEOF
11557 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11565 # Get an absolute path to the GCC top-level source directory
11566 holddir
=`${PWDCMD-pwd}`
11568 topdir
=`${PWDCMD-pwd}`
11571 # Conditionalize the makefile for this host machine.
11573 for f
in ${host_xmake_file}
11575 if test -f ${srcdir}/config
/$f
11577 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11581 # Conditionalize the makefile for this target machine.
11583 for f
in ${tmake_file}
11585 if test -f ${srcdir}/config
/$f
11587 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11590 tmake_file
="${tmake_file_}"
11592 out_object_file
=`basename $out_file .c`.o
11593 common_out_object_file
=`basename $common_out_file .c`.o
11595 tm_file_list
="options.h"
11596 tm_include_list
="options.h insn-constants.h"
11597 for f
in $tm_file; do
11600 f
=`echo $f | sed 's/^..//'`
11601 tm_file_list
="${tm_file_list} $f"
11602 tm_include_list
="${tm_include_list} $f"
11605 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11606 tm_include_list
="${tm_include_list} $f"
11609 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11610 tm_include_list
="${tm_include_list} config/$f"
11617 for f
in $tm_p_file; do
11620 tm_p_file_list
="${tm_p_file_list} $f"
11621 tm_p_include_list
="${tm_p_include_list} $f"
11624 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11625 tm_p_include_list
="${tm_p_include_list} config/$f"
11631 for f
in $xm_file; do
11634 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11635 xm_include_list
="${xm_include_list} $f"
11638 xm_file_list
="${xm_file_list} $f"
11639 xm_include_list
="${xm_include_list} $f"
11642 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11643 xm_include_list
="${xm_include_list} config/$f"
11649 host_xm_include_list
=
11650 for f
in $host_xm_file; do
11653 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11654 host_xm_include_list
="${host_xm_include_list} $f"
11657 host_xm_file_list
="${host_xm_file_list} $f"
11658 host_xm_include_list
="${host_xm_include_list} $f"
11661 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11662 host_xm_include_list
="${host_xm_include_list} config/$f"
11667 build_xm_file_list
=
11668 for f
in $build_xm_file; do
11671 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11672 build_xm_include_list
="${build_xm_include_list} $f"
11674 auto-build.h | auto-host.h
)
11675 build_xm_file_list
="${build_xm_file_list} $f"
11676 build_xm_include_list
="${build_xm_include_list} $f"
11679 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11680 build_xm_include_list
="${build_xm_include_list} config/$f"
11685 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11686 # cross-compiler which does not use the native headers and libraries.
11687 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11690 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11692 if test "x$with_build_sysroot" != x
; then
11693 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11695 # This value is used, even on a native system, because
11696 # CROSS_SYSTEM_HEADER_DIR is just
11697 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11698 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11701 if test x
$host != x
$target
11703 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11705 SYSTEM_HEADER_DIR
=$build_system_header_dir
11706 case "$host","$target" in
11707 # Darwin crosses can use the host system's libraries and headers,
11708 # because of the fat library support. Of course, it must be the
11709 # same version of Darwin on both sides. Allow the user to
11710 # just say --target=foo-darwin without a version number to mean
11711 # "the version on this system".
11712 *-*-darwin*,*-*-darwin*)
11713 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11714 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11715 if test $hostos = $targetos -o $targetos = darwin
; then
11717 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11722 i?
86-*-*,x86_64-
*-* \
11723 | powerpc
*-*-*,powerpc64
*-*-*)
11724 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11729 if test "x$with_headers" = x
; then
11736 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11737 SYSTEM_HEADER_DIR
=$build_system_header_dir
11740 # If this is a cross-compiler that does not
11741 # have its own set of headers then define
11744 # If this is using newlib, without having the headers available now,
11745 # then define inhibit_libc in LIBGCC2_CFLAGS.
11746 # This prevents libgcc2 from containing any code which requires libc
11748 : ${inhibit_libc=false}
11749 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11750 test x
$with_newlib = xyes
; } &&
11751 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11756 # When building gcc with a cross-compiler, we need to adjust things so
11757 # that the generator programs are still built with the native compiler.
11758 # Also, we cannot run fixincludes.
11760 # These are the normal (build=host) settings:
11761 CC_FOR_BUILD
='$(CC)'
11762 CXX_FOR_BUILD
='$(CXX)'
11763 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11764 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11765 BUILD_LDFLAGS
='$(LDFLAGS)'
11766 STMP_FIXINC
=stmp-fixinc
11768 # And these apply if build != host, or we are generating coverage data
11769 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11771 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11772 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11775 # Expand extra_headers to include complete path.
11776 # This substitutes for lots of t-* files.
11777 extra_headers_list
=
11778 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11779 for file in ${extra_headers} ; do
11780 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11783 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11784 if test x
"$use_gcc_tgmath" = xyes
11785 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11788 # Define collect2 in Makefile.
11789 case $host_can_use_collect2 in
11791 *) collect2
='collect2$(exeext)' ;;
11795 # Add a definition of USE_COLLECT2 if system wants one.
11796 case $use_collect2 in
11797 no
) use_collect2
= ;;
11800 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11801 xm_defines
="${xm_defines} USE_COLLECT2"
11802 case $host_can_use_collect2 in
11804 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11811 cat >>confdefs.h
<<_ACEOF
11812 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11816 # ---------------------------
11817 # Assembler & linker features
11818 # ---------------------------
11820 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11821 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11822 # However when ld-new is first executed from the build tree, libtool will
11823 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11824 # to the build tree. While doing this we need to use the previous-stage
11825 # linker, or we have an infinite loop. The presence of a shell script as
11826 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11827 # the gcc/collect-ld script. So we need to know how libtool works, or
11828 # exec-tool will fail.
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11834 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11839 macro_version
='2.2.7a'
11840 macro_revision
='1.3134'
11854 ltmain
="$ac_aux_dir/ltmain.sh"
11856 # Backslashify metacharacters that are still active within
11857 # double-quoted strings.
11858 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11860 # Same as above, but do not quote variable references.
11861 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11863 # Sed substitution to delay expansion of an escaped shell variable in a
11864 # double_quote_subst'ed string.
11865 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11867 # Sed substitution to delay expansion of an escaped single quote.
11868 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11870 # Sed substitution to avoid accidental globbing in evaled expressions
11871 no_glob_subst
='s/\*/\\\*/g'
11873 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11874 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11875 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11878 $as_echo_n "checking how to print strings... " >&6; }
11879 # Test print first, because it will be a builtin if present.
11880 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11881 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11883 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11886 # Use this function as a fallback that always works.
11887 func_fallback_echo ()
11889 eval 'cat <<_LTECHO_EOF
11893 ECHO='func_fallback_echo
'
11896 # func_echo_all arg...
11897 # Invoke $ECHO with all args, space-separated.
11904 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11905 $as_echo "printf" >&6; } ;;
11906 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11907 $as_echo "print -r" >&6; } ;;
11908 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11909 $as_echo "cat" >&6; } ;;
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11926 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11927 if test "${ac_cv_path_SED+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11930 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11931 for ac_i in 1 2 3 4 5 6 7; do
11932 ac_script="$ac_script$as_nl$ac_script"
11934 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11935 { ac_script=; unset ac_script;}
11936 if test -z "$SED"; then
11937 ac_path_SED_found=false
11938 # Loop through the user's path and
test for each of PROGNAME-LIST
11939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11940 for as_dir
in $PATH
11943 test -z "$as_dir" && as_dir
=.
11944 for ac_prog
in sed gsed
; do
11945 for ac_exec_ext
in '' $ac_executable_extensions; do
11946 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11947 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11948 # Check for GNU ac_path_SED and select it if it is found.
11949 # Check for GNU $ac_path_SED
11950 case `"$ac_path_SED" --version 2>&1` in
11952 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11955 $as_echo_n 0123456789 >"conftest.in"
11958 cat "conftest.in" "conftest.in" >"conftest.tmp"
11959 mv "conftest.tmp" "conftest.in"
11960 cp "conftest.in" "conftest.nl"
11961 $as_echo '' >> "conftest.nl"
11962 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11963 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11964 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11965 if test $ac_count -gt ${ac_path_SED_max-0}; then
11966 # Best one so far, save it but keep looking for a better one
11967 ac_cv_path_SED
="$ac_path_SED"
11968 ac_path_SED_max
=$ac_count
11970 # 10*(2^10) chars as input seems more than enough
11971 test $ac_count -gt 10 && break
11973 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11976 $ac_path_SED_found && break 3
11981 if test -z "$ac_cv_path_SED"; then
11982 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11985 ac_cv_path_SED
=$SED
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11990 $as_echo "$ac_cv_path_SED" >&6; }
11991 SED
="$ac_cv_path_SED"
11994 test -z "$SED" && SED
=sed
11995 Xsed
="$SED -e 1s/^X//"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12008 $as_echo_n "checking for fgrep... " >&6; }
12009 if test "${ac_cv_path_FGREP+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
12012 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12013 then ac_cv_path_FGREP
="$GREP -F"
12015 if test -z "$FGREP"; then
12016 ac_path_FGREP_found
=false
12017 # Loop through the user's path and test for each of PROGNAME-LIST
12018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12019 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12022 test -z "$as_dir" && as_dir
=.
12023 for ac_prog
in fgrep
; do
12024 for ac_exec_ext
in '' $ac_executable_extensions; do
12025 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12026 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12027 # Check for GNU ac_path_FGREP and select it if it is found.
12028 # Check for GNU $ac_path_FGREP
12029 case `"$ac_path_FGREP" --version 2>&1` in
12031 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12034 $as_echo_n 0123456789 >"conftest.in"
12037 cat "conftest.in" "conftest.in" >"conftest.tmp"
12038 mv "conftest.tmp" "conftest.in"
12039 cp "conftest.in" "conftest.nl"
12040 $as_echo 'FGREP' >> "conftest.nl"
12041 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12042 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12043 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12044 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12045 # Best one so far, save it but keep looking for a better one
12046 ac_cv_path_FGREP
="$ac_path_FGREP"
12047 ac_path_FGREP_max
=$ac_count
12049 # 10*(2^10) chars as input seems more than enough
12050 test $ac_count -gt 10 && break
12052 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12055 $ac_path_FGREP_found && break 3
12060 if test -z "$ac_cv_path_FGREP"; then
12061 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12064 ac_cv_path_FGREP
=$FGREP
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12070 $as_echo "$ac_cv_path_FGREP" >&6; }
12071 FGREP
="$ac_cv_path_FGREP"
12074 test -z "$GREP" && GREP
=grep
12094 # Check whether --with-gnu-ld was given.
12095 if test "${with_gnu_ld+set}" = set; then :
12096 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12102 if test "$GCC" = yes; then
12103 # Check if gcc -print-prog-name=ld gives a path.
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12105 $as_echo_n "checking for ld used by $CC... " >&6; }
12108 # gcc leaves a trailing carriage return which upsets mingw
12109 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12111 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12114 # Accept absolute paths.
12116 re_direlt
='/[^/][^/]*/\.\./'
12117 # Canonicalize the pathname of ld
12118 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12119 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12120 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12122 test -z "$LD" && LD
="$ac_prog"
12125 # If it fails, then pretend we aren't using GCC.
12129 # If it is relative, then search for the first ld in PATH.
12130 with_gnu_ld
=unknown
12133 elif test "$with_gnu_ld" = yes; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12135 $as_echo_n "checking for GNU ld... " >&6; }
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12138 $as_echo_n "checking for non-GNU ld... " >&6; }
12140 if test "${lt_cv_path_LD+set}" = set; then :
12141 $as_echo_n "(cached) " >&6
12143 if test -z "$LD"; then
12144 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12145 for ac_dir
in $PATH; do
12147 test -z "$ac_dir" && ac_dir
=.
12148 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12149 lt_cv_path_LD
="$ac_dir/$ac_prog"
12150 # Check to see if the program is GNU ld. I'd rather use --version,
12151 # but apparently some variants of GNU ld only accept -v.
12152 # Break only if it was the GNU/non-GNU ld that we prefer.
12153 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12154 *GNU
* |
*'with BFD'*)
12155 test "$with_gnu_ld" != no
&& break
12158 test "$with_gnu_ld" != yes && break
12165 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12169 LD
="$lt_cv_path_LD"
12170 if test -n "$LD"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12172 $as_echo "$LD" >&6; }
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12177 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12179 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12180 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12183 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12184 case `$LD -v 2>&1 </dev/null` in
12185 *GNU
* |
*'with BFD'*)
12186 lt_cv_prog_gnu_ld
=yes
12189 lt_cv_prog_gnu_ld
=no
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12194 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12195 with_gnu_ld
=$lt_cv_prog_gnu_ld
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12206 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12207 if test "${lt_cv_path_NM+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12210 if test -n "$NM"; then
12211 # Let the user override the test.
12212 lt_cv_path_NM
="$NM"
12214 lt_nm_to_check
="${ac_tool_prefix}nm"
12215 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12216 lt_nm_to_check
="$lt_nm_to_check nm"
12218 for lt_tmp_nm
in $lt_nm_to_check; do
12219 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12220 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12222 test -z "$ac_dir" && ac_dir
=.
12223 tmp_nm
="$ac_dir/$lt_tmp_nm"
12224 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12225 # Check to see if the nm accepts a BSD-compat flag.
12226 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12227 # nm: unknown option "B" ignored
12228 # Tru64's nm complains that /dev/null is an invalid object file
12229 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12230 */dev
/null
* |
*'Invalid file or object type'*)
12231 lt_cv_path_NM
="$tmp_nm -B"
12235 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12237 lt_cv_path_NM
="$tmp_nm -p"
12241 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12242 continue # so that we can try to find one that supports BSD flags
12251 : ${lt_cv_path_NM=no}
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12255 $as_echo "$lt_cv_path_NM" >&6; }
12256 if test "$lt_cv_path_NM" != "no"; then
12257 NM
="$lt_cv_path_NM"
12259 # Didn't find any BSD compatible name lister, look for dumpbin.
12260 if test -n "$DUMPBIN"; then :
12261 # Let the user override the test.
12263 if test -n "$ac_tool_prefix"; then
12264 for ac_prog
in dumpbin
"link -dump"
12266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12267 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 $as_echo_n "checking for $ac_word... " >&6; }
12270 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
12273 if test -n "$DUMPBIN"; then
12274 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12277 for as_dir
in $PATH
12280 test -z "$as_dir" && as_dir
=.
12281 for ac_exec_ext
in '' $ac_executable_extensions; do
12282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12283 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 DUMPBIN
=$ac_cv_prog_DUMPBIN
12294 if test -n "$DUMPBIN"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12296 $as_echo "$DUMPBIN" >&6; }
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12303 test -n "$DUMPBIN" && break
12306 if test -z "$DUMPBIN"; then
12307 ac_ct_DUMPBIN
=$DUMPBIN
12308 for ac_prog
in dumpbin
"link -dump"
12310 # Extract the first word of "$ac_prog", so it can be a program name with args.
12311 set dummy
$ac_prog; ac_word
=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313 $as_echo_n "checking for $ac_word... " >&6; }
12314 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12315 $as_echo_n "(cached) " >&6
12317 if test -n "$ac_ct_DUMPBIN"; then
12318 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12321 for as_dir
in $PATH
12324 test -z "$as_dir" && as_dir
=.
12325 for ac_exec_ext
in '' $ac_executable_extensions; do
12326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12327 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12338 if test -n "$ac_ct_DUMPBIN"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12340 $as_echo "$ac_ct_DUMPBIN" >&6; }
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12347 test -n "$ac_ct_DUMPBIN" && break
12350 if test "x$ac_ct_DUMPBIN" = x
; then
12353 case $cross_compiling:$ac_tool_warned in
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12357 ac_tool_warned
=yes ;;
12359 DUMPBIN
=$ac_ct_DUMPBIN
12363 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12365 DUMPBIN
="$DUMPBIN -symbols"
12373 if test "$DUMPBIN" != ":"; then
12377 test -z "$NM" && NM
=nm
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12385 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12386 if test "${lt_cv_nm_interface+set}" = set; then :
12387 $as_echo_n "(cached) " >&6
12389 lt_cv_nm_interface
="BSD nm"
12390 echo "int some_variable = 0;" > conftest.
$ac_ext
12391 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12392 (eval "$ac_compile" 2>conftest.err
)
12393 cat conftest.err
>&5
12394 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12395 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12396 cat conftest.err
>&5
12397 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12398 cat conftest.out
>&5
12399 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12400 lt_cv_nm_interface
="MS dumpbin"
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12405 $as_echo "$lt_cv_nm_interface" >&6; }
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12408 $as_echo_n "checking whether ln -s works... " >&6; }
12410 if test "$LN_S" = "ln -s"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12412 $as_echo "yes" >&6; }
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12415 $as_echo "no, using $LN_S" >&6; }
12418 # find the maximum length of command line arguments
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12420 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12421 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
12429 # On DJGPP, this test can blow up pretty badly due to problems in libc
12430 # (any single argument exceeding 2000 bytes causes a buffer overrun
12431 # during glob expansion). Even if it were fixed, the result of this
12432 # check would be larger than it should be.
12433 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12437 # Under GNU Hurd, this test is not required because there is
12438 # no limit to the length of command line arguments.
12439 # Libtool will interpret -1 as no limit whatsoever
12440 lt_cv_sys_max_cmd_len
=-1;
12443 cygwin
* | mingw
* | cegcc
*)
12444 # On Win9x/ME, this test blows up -- it succeeds, but takes
12445 # about 5 minutes as the teststring grows exponentially.
12446 # Worse, since 9x/ME are not pre-emptively multitasking,
12447 # you end up with a "frozen" computer, even though with patience
12448 # the test eventually succeeds (with a max line length of 256k).
12449 # Instead, let's just punt: use the minimum linelength reported by
12450 # all of the supported platforms: 8192 (on NT/2K/XP).
12451 lt_cv_sys_max_cmd_len
=8192;
12455 # On MiNT this can take a long time and run out of memory.
12456 lt_cv_sys_max_cmd_len
=8192;
12460 # On AmigaOS with pdksh, this test takes hours, literally.
12461 # So we just punt and use a minimum line length of 8192.
12462 lt_cv_sys_max_cmd_len
=8192;
12465 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12466 # This has been around since 386BSD, at least. Likely further.
12467 if test -x /sbin
/sysctl
; then
12468 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12469 elif test -x /usr
/sbin
/sysctl
; then
12470 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12472 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12474 # And add a safety zone
12475 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12476 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12480 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12481 lt_cv_sys_max_cmd_len
=196608
12485 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12486 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12487 # nice to cause kernel panics so lets avoid the loop below.
12488 # First set a reasonable default.
12489 lt_cv_sys_max_cmd_len
=16384
12491 if test -x /sbin
/sysconfig
; then
12492 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12493 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12498 lt_cv_sys_max_cmd_len
=102400
12500 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12501 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12502 if test -n "$kargmax"; then
12503 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12505 lt_cv_sys_max_cmd_len
=32768
12509 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12510 if test -n "$lt_cv_sys_max_cmd_len"; then
12511 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12512 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12514 # Make teststring a little bigger before we do anything with it.
12515 # a 1K string should be a reasonable start.
12516 for i
in 1 2 3 4 5 6 7 8 ; do
12517 teststring
=$teststring$teststring
12519 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12520 # If test is not a shell built-in, we'll probably end up computing a
12521 # maximum length that is only half of the actual maximum length, but
12523 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12524 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12525 test $i != 17 # 1/2 MB should be enough
12528 teststring
=$teststring$teststring
12530 # Only check the string length outside the loop.
12531 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12533 # Add a significant safety factor because C++ compilers can tack on
12534 # massive amounts of additional arguments before passing them to the
12535 # linker. It appears as though 1/2 is a usable value.
12536 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12543 if test -n $lt_cv_sys_max_cmd_len ; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12545 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12548 $as_echo "none" >&6; }
12550 max_cmd_len
=$lt_cv_sys_max_cmd_len
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12562 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12563 # Try some XSI features
12565 ( _lt_dummy
="a/b/c"
12566 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12568 && eval 'test $(( 1 + 1 )) -eq 2 \
12569 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12572 $as_echo "$xsi_shell" >&6; }
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12576 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12578 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12580 && lt_shell_append=yes
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12582 $as_echo "$lt_shell_append" >&6; }
12585 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12595 # test EBCDIC or ASCII
12596 case `echo X|tr X '\101'` in
12597 A) # ASCII based system
12598 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12599 lt_SP2NL='tr \040 \012'
12600 lt_NL2SP='tr \015\012 \040\040'
12602 *) # EBCDIC based system
12603 lt_SP2NL='tr \100 \n'
12604 lt_NL2SP='tr \r\n \100\100'
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12617 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12618 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12619 $as_echo_n "(cached
) " >&6
12621 lt_cv_ld_reload_flag='-r'
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12624 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12625 reload_flag=$lt_cv_ld_reload_flag
12626 case $reload_flag in
12628 *) reload_flag=" $reload_flag" ;;
12630 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12633 if test "$GCC" = yes; then
12634 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12636 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12649 if test -n "$ac_tool_prefix"; then
12650 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12651 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12653 $as_echo_n "checking
for $ac_word...
" >&6; }
12654 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12655 $as_echo_n "(cached
) " >&6
12657 if test -n "$OBJDUMP"; then
12658 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12661 for as_dir in $PATH
12664 test -z "$as_dir" && as_dir=.
12665 for ac_exec_ext in '' $ac_executable_extensions; do
12666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12667 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12668 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12677 OBJDUMP=$ac_cv_prog_OBJDUMP
12678 if test -n "$OBJDUMP"; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12680 $as_echo "$OBJDUMP" >&6; }
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12683 $as_echo "no
" >&6; }
12688 if test -z "$ac_cv_prog_OBJDUMP"; then
12689 ac_ct_OBJDUMP=$OBJDUMP
12690 # Extract the first word of "objdump
", so it can be a program name with args.
12691 set dummy objdump; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12693 $as_echo_n "checking
for $ac_word...
" >&6; }
12694 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12695 $as_echo_n "(cached
) " >&6
12697 if test -n "$ac_ct_OBJDUMP"; then
12698 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12707 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12717 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12718 if test -n "$ac_ct_OBJDUMP"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12720 $as_echo "$ac_ct_OBJDUMP" >&6; }
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12723 $as_echo "no
" >&6; }
12726 if test "x
$ac_ct_OBJDUMP" = x; then
12729 case $cross_compiling:$ac_tool_warned in
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12732 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12733 ac_tool_warned=yes ;;
12735 OBJDUMP=$ac_ct_OBJDUMP
12738 OBJDUMP="$ac_cv_prog_OBJDUMP"
12741 test -z "$OBJDUMP" && OBJDUMP=objdump
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12752 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12753 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12754 $as_echo_n "(cached
) " >&6
12756 lt_cv_file_magic_cmd='$MAGIC_CMD'
12757 lt_cv_file_magic_test_file=
12758 lt_cv_deplibs_check_method='unknown'
12759 # Need to set the preceding variable on all platforms that support
12760 # interlibrary dependencies.
12761 # 'none' -- dependencies not supported.
12762 # `unknown' -- same as none, but documents that we really don't know.
12763 # 'pass_all' -- all dependencies passed with no checks.
12764 # 'test_compile' -- check by making test program.
12765 # 'file_magic [[regex]]' -- check by looking for files in library path
12766 # which responds to the $file_magic_cmd with a given extended regex.
12767 # If you have `file' or equivalent on your system and you're not sure
12768 # whether `pass_all' will *always* work, you probably want this one.
12772 lt_cv_deplibs_check_method=pass_all
12776 lt_cv_deplibs_check_method=pass_all
12780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12781 lt_cv_file_magic_cmd='/usr/bin/file -L'
12782 lt_cv_file_magic_test_file=/shlib/libc.so
12786 # func_win32_libid is a shell function defined in ltmain.sh
12787 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12788 lt_cv_file_magic_cmd='func_win32_libid'
12792 # Base MSYS/MinGW do not provide the 'file' command needed by
12793 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12794 # unless we find 'file', for example because we are cross-compiling.
12795 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12796 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12797 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12798 lt_cv_file_magic_cmd='func_win32_libid'
12800 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12801 lt_cv_file_magic_cmd='$OBJDUMP -f'
12806 # use the weaker test based on 'objdump'. See mingw*.
12807 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12808 lt_cv_file_magic_cmd='$OBJDUMP -f'
12811 darwin* | rhapsody*)
12812 lt_cv_deplibs_check_method=pass_all
12815 freebsd* | dragonfly*)
12816 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12819 # Not sure whether the presence of OpenBSD here was a mistake.
12820 # Let's accept both of them until this is cleared up.
12821 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12822 lt_cv_file_magic_cmd=/usr/bin/file
12823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12827 lt_cv_deplibs_check_method=pass_all
12832 lt_cv_deplibs_check_method=pass_all
12836 lt_cv_deplibs_check_method=pass_all
12839 hpux10.20* | hpux11*)
12840 lt_cv_file_magic_cmd=/usr/bin/file
12843 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12844 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12847 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]'
12848 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12851 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12852 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12858 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12862 irix5* | irix6* | nonstopux*)
12864 *-32|*"-32 ") libmagic=32-bit;;
12865 *-n32|*"-n32 ") libmagic=N32;;
12866 *-64|*"-64 ") libmagic=64-bit;;
12867 *) libmagic=never-match;;
12869 lt_cv_deplibs_check_method=pass_all
12872 # This must be Linux ELF.
12873 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12874 lt_cv_deplibs_check_method=pass_all
12878 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12887 lt_cv_file_magic_cmd=/usr/bin/file
12888 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12892 lt_cv_deplibs_check_method=pass_all
12896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12903 osf3* | osf4* | osf5*)
12904 lt_cv_deplibs_check_method=pass_all
12908 lt_cv_deplibs_check_method=pass_all
12912 lt_cv_deplibs_check_method=pass_all
12915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12916 lt_cv_deplibs_check_method=pass_all
12920 case $host_vendor in
12922 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]'
12923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12926 lt_cv_deplibs_check_method=pass_all
12929 lt_cv_file_magic_cmd='/bin/file'
12930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12933 lt_cv_file_magic_cmd='/bin/file'
12934 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12935 lt_cv_file_magic_test_file=/lib/libc.so
12938 lt_cv_deplibs_check_method=pass_all
12941 lt_cv_deplibs_check_method=pass_all
12947 lt_cv_deplibs_check_method=pass_all
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12953 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12954 file_magic_cmd=$lt_cv_file_magic_cmd
12955 deplibs_check_method=$lt_cv_deplibs_check_method
12956 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12969 if test -n "$ac_tool_prefix"; then
12970 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12971 set dummy ${ac_tool_prefix}ar; ac_word=$2
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12973 $as_echo_n "checking
for $ac_word...
" >&6; }
12974 if test "${ac_cv_prog_AR+set}" = set; then :
12975 $as_echo_n "(cached
) " >&6
12977 if test -n "$AR"; then
12978 ac_cv_prog_AR="$AR" # Let the user override the test.
12980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981 for as_dir in $PATH
12984 test -z "$as_dir" && as_dir=.
12985 for ac_exec_ext in '' $ac_executable_extensions; do
12986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12987 ac_cv_prog_AR="${ac_tool_prefix}ar"
12988 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12998 if test -n "$AR"; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13000 $as_echo "$AR" >&6; }
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13003 $as_echo "no
" >&6; }
13008 if test -z "$ac_cv_prog_AR"; then
13010 # Extract the first word of "ar", so it can be a program name with args.
13011 set dummy ar; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13013 $as_echo_n "checking
for $ac_word...
" >&6; }
13014 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13015 $as_echo_n "(cached
) " >&6
13017 if test -n "$ac_ct_AR"; then
13018 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13024 test -z "$as_dir" && as_dir=.
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13027 ac_cv_prog_ac_ct_AR="ar"
13028 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13037 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13038 if test -n "$ac_ct_AR"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13040 $as_echo "$ac_ct_AR" >&6; }
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13043 $as_echo "no
" >&6; }
13046 if test "x
$ac_ct_AR" = x; then
13049 case $cross_compiling:$ac_tool_warned in
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13052 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13053 ac_tool_warned=yes ;;
13058 AR="$ac_cv_prog_AR"
13061 test -z "$AR" && AR=ar
13062 test -z "$AR_FLAGS" && AR_FLAGS=cru
13074 if test -n "$ac_tool_prefix"; then
13075 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13076 set dummy ${ac_tool_prefix}strip; ac_word=$2
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13078 $as_echo_n "checking
for $ac_word...
" >&6; }
13079 if test "${ac_cv_prog_STRIP+set}" = set; then :
13080 $as_echo_n "(cached
) " >&6
13082 if test -n "$STRIP"; then
13083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $PATH
13089 test -z "$as_dir" && as_dir=.
13090 for ac_exec_ext in '' $ac_executable_extensions; do
13091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13092 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13093 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13102 STRIP=$ac_cv_prog_STRIP
13103 if test -n "$STRIP"; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13105 $as_echo "$STRIP" >&6; }
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13108 $as_echo "no
" >&6; }
13113 if test -z "$ac_cv_prog_STRIP"; then
13115 # Extract the first word of "strip
", so it can be a program name with args.
13116 set dummy strip; ac_word=$2
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13118 $as_echo_n "checking
for $ac_word...
" >&6; }
13119 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13120 $as_echo_n "(cached
) " >&6
13122 if test -n "$ac_ct_STRIP"; then
13123 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13132 ac_cv_prog_ac_ct_STRIP="strip
"
13133 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13142 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13143 if test -n "$ac_ct_STRIP"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13145 $as_echo "$ac_ct_STRIP" >&6; }
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13148 $as_echo "no
" >&6; }
13151 if test "x
$ac_ct_STRIP" = x; then
13154 case $cross_compiling:$ac_tool_warned in
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13157 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13158 ac_tool_warned=yes ;;
13163 STRIP="$ac_cv_prog_STRIP"
13166 test -z "$STRIP" && STRIP=:
13173 if test -n "$ac_tool_prefix"; then
13174 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13175 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13177 $as_echo_n "checking
for $ac_word...
" >&6; }
13178 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13179 $as_echo_n "(cached
) " >&6
13181 if test -n "$RANLIB"; then
13182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13191 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13192 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13201 RANLIB=$ac_cv_prog_RANLIB
13202 if test -n "$RANLIB"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13204 $as_echo "$RANLIB" >&6; }
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13207 $as_echo "no
" >&6; }
13212 if test -z "$ac_cv_prog_RANLIB"; then
13213 ac_ct_RANLIB=$RANLIB
13214 # Extract the first word of "ranlib
", so it can be a program name with args.
13215 set dummy ranlib; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13217 $as_echo_n "checking
for $ac_word...
" >&6; }
13218 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13219 $as_echo_n "(cached
) " >&6
13221 if test -n "$ac_ct_RANLIB"; then
13222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13225 for as_dir in $PATH
13228 test -z "$as_dir" && as_dir=.
13229 for ac_exec_ext in '' $ac_executable_extensions; do
13230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13231 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13232 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13242 if test -n "$ac_ct_RANLIB"; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13244 $as_echo "$ac_ct_RANLIB" >&6; }
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13247 $as_echo "no
" >&6; }
13250 if test "x
$ac_ct_RANLIB" = x; then
13253 case $cross_compiling:$ac_tool_warned in
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13256 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13257 ac_tool_warned=yes ;;
13259 RANLIB=$ac_ct_RANLIB
13262 RANLIB="$ac_cv_prog_RANLIB"
13265 test -z "$RANLIB" && RANLIB=:
13272 # Determine commands to create old-style static archives.
13273 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13274 old_postinstall_cmds='chmod 644 $oldlib'
13275 old_postuninstall_cmds=
13277 if test -n "$RANLIB"; then
13280 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13283 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13286 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13291 lock_old_archive_extraction=yes ;;
13293 lock_old_archive_extraction=no ;;
13334 # If no C compiler was specified, use CC.
13337 # If no C compiler flags were specified, use CFLAGS.
13338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13340 # Allow CC to be a program name with arguments.
13344 # Check for command to grab the raw symbol name followed by C symbol from nm.
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13346 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13347 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13348 $as_echo_n "(cached
) " >&6
13351 # These are sane defaults that work on at least a few old systems.
13352 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13354 # Character class describing NM global symbol codes.
13355 symcode='[BCDEGRST]'
13357 # Regexp to match symbols that can be accessed directly from C.
13358 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13360 # Define system-specific variables.
13365 cygwin* | mingw* | pw32* | cegcc*)
13366 symcode='[ABCDGISTW]'
13369 if test "$host_cpu" = ia64; then
13370 symcode='[ABCDEGRST]'
13373 irix* | nonstopux*)
13374 symcode='[BCDEGRST]'
13377 symcode='[BCDEGQRST]'
13388 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13396 # If we're using GNU nm, then use its standard symbol codes.
13397 case `$NM -V 2>&1` in
13398 *GNU* | *'with BFD'*)
13399 symcode='[ABCDGIRSTW]' ;;
13402 # Transform an extracted symbol line into a proper C declaration.
13403 # Some systems (esp. on ia64) link data and code symbols differently,
13404 # so use this general approach.
13405 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13407 # Transform an extracted symbol line into symbol name and symbol address
13408 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13409 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'"
13411 # Handle CRLF in mingw tool chain
13415 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13419 # Try without a prefix underscore, then with it.
13420 for ac_symprfx in "" "_
"; do
13422 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13423 symxfrm="\\1 $ac_symprfx\\2 \\2"
13425 # Write the raw and C identifiers.
13426 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13427 # Fake it for dumpbin and say T for any non-static function
13428 # and D for any global variable.
13429 # Also find C++ and __fastcall symbols from MSVC++,
13430 # which start with @ or ?.
13431 lt_cv_sys_global_symbol_pipe="$AWK '"\
13432 " {last_section=section; section=\$ 3};"\
13433 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13434 " \$ 0!~/External *\|/{next};"\
13435 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13436 " {if(hide[section]) next};"\
13437 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13438 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13439 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13440 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13441 " ' prfx
=^
$ac_symprfx"
13443 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13446 # Check to see that the pipe works correctly.
13450 cat > conftest.$ac_ext <<_LT_EOF
13455 void nm_test_func(void);
13456 void nm_test_func(void){}
13460 int main(){nm_test_var='a';nm_test_func();return(0);}
13463 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13464 (eval $ac_compile) 2>&5
13466 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13467 test $ac_status = 0; }; then
13468 # Now try to grab the symbols.
13470 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13471 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13473 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13474 test $ac_status = 0; } && test -s "$nlist"; then
13475 # Try sorting and uniquifying the output.
13476 if sort "$nlist" | uniq > "$nlist"T; then
13477 mv -f "$nlist"T "$nlist"
13482 # Make sure that we snagged all the symbols we need.
13483 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13484 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13485 cat <<_LT_EOF > conftest.$ac_ext
13491 # Now generate the symbol file.
13492 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13494 cat <<_LT_EOF >> conftest.$ac_ext
13496 /* The mapping between symbol names and symbols. */
13501 lt__PROGRAM__LTX_preloaded_symbols[] =
13503 { "@PROGRAM@
", (void *) 0 },
13505 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13506 cat <<\_LT_EOF >> conftest.$ac_ext
13510 /* This works around a problem in FreeBSD linker */
13511 #ifdef FREEBSD_WORKAROUND
13512 static const void *lt_preloaded_setup() {
13513 return lt__PROGRAM__LTX_preloaded_symbols;
13521 # Now try linking the two files.
13522 mv conftest.$ac_objext conftstm.$ac_objext
13523 lt_save_LIBS="$LIBS"
13524 lt_save_CFLAGS="$CFLAGS"
13525 LIBS="conftstm.
$ac_objext"
13526 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13527 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13528 (eval $ac_link) 2>&5
13530 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13531 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13534 LIBS="$lt_save_LIBS"
13535 CFLAGS="$lt_save_CFLAGS"
13537 echo "cannot
find nm_test_func
in $nlist" >&5
13540 echo "cannot
find nm_test_var
in $nlist" >&5
13543 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13546 echo "$progname: failed program was
:" >&5
13547 cat conftest.$ac_ext >&5
13549 rm -rf conftest* conftst*
13551 # Do not use the global_symbol_pipe unless it works.
13552 if test "$pipe_works" = yes; then
13555 lt_cv_sys_global_symbol_pipe=
13561 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13562 lt_cv_sys_global_symbol_to_cdecl=
13564 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13566 $as_echo "failed
" >&6; }
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13569 $as_echo "ok
" >&6; }
13593 # Check whether --enable-libtool-lock was given.
13594 if test "${enable_libtool_lock+set}" = set; then :
13595 enableval=$enable_libtool_lock;
13598 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13600 # Some flags need to be propagated to the compiler or linker for good
13604 # Find out which ABI we are using.
13605 echo 'int i;' > conftest.$ac_ext
13606 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13607 (eval $ac_compile) 2>&5
13609 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13610 test $ac_status = 0; }; then
13611 case `/usr/bin/file conftest.$ac_objext` in
13613 HPUX_IA64_MODE="32"
13616 HPUX_IA64_MODE="64"
13623 # Find out which ABI we are using.
13624 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13625 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13626 (eval $ac_compile) 2>&5
13628 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13629 test $ac_status = 0; }; then
13630 if test "$lt_cv_prog_gnu_ld" = yes; then
13631 case `/usr/bin/file conftest.$ac_objext` in
13633 LD="${LD-ld} -melf32bsmip"
13636 LD="${LD-ld} -melf32bmipn32"
13639 LD="${LD-ld} -melf64bmip"
13643 case `/usr/bin/file conftest.$ac_objext` in
13659 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13660 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13661 # Find out which ABI we are using.
13662 echo 'int i;' > conftest.$ac_ext
13663 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13664 (eval $ac_compile) 2>&5
13666 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13667 test $ac_status = 0; }; then
13668 case `/usr/bin/file conftest.o` in
13671 x86_64-*kfreebsd*-gnu)
13672 LD="${LD-ld} -m elf_i386_fbsd
"
13675 case `/usr/bin/file conftest.o` in
13677 LD="${LD-ld} -m elf32_x86_64
"
13680 LD="${LD-ld} -m elf_i386
"
13684 powerpc64le-*linux*)
13685 LD="${LD-ld} -m elf32lppclinux
"
13688 LD="${LD-ld} -m elf32ppclinux
"
13691 LD="${LD-ld} -m elf_s390
"
13694 LD="${LD-ld} -m elf32_sparc
"
13700 x86_64-*kfreebsd*-gnu)
13701 LD="${LD-ld} -m elf_x86_64_fbsd
"
13704 LD="${LD-ld} -m elf_x86_64
"
13707 LD="${LD-ld} -m elf64lppc
"
13710 LD="${LD-ld} -m elf64ppc
"
13712 s390*-*linux*|s390*-*tpf*)
13713 LD="${LD-ld} -m elf64_s390
"
13716 LD="${LD-ld} -m elf64_sparc
"
13726 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13727 SAVE_CFLAGS="$CFLAGS"
13728 CFLAGS="$CFLAGS -belf"
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13730 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13731 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13732 $as_echo_n "(cached
) " >&6
13735 ac_cpp='$CPP $CPPFLAGS'
13736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13751 if ac_fn_c_try_link "$LINENO"; then :
13752 lt_cv_cc_needs_belf=yes
13754 lt_cv_cc_needs_belf=no
13756 rm -f core conftest.err conftest.$ac_objext \
13757 conftest$ac_exeext conftest.$ac_ext
13759 ac_cpp='$CPP $CPPFLAGS'
13760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13766 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13767 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13768 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13769 CFLAGS="$SAVE_CFLAGS"
13773 # Find out which ABI we are using.
13774 echo 'int i;' > conftest.$ac_ext
13775 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13776 (eval $ac_compile) 2>&5
13778 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13779 test $ac_status = 0; }; then
13780 case `/usr/bin/file conftest.o` in
13782 case $lt_cv_prog_gnu_ld in
13783 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13785 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13797 need_locks="$enable_libtool_lock"
13801 rhapsody* | darwin*)
13802 if test -n "$ac_tool_prefix"; then
13803 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13804 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13806 $as_echo_n "checking
for $ac_word...
" >&6; }
13807 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13808 $as_echo_n "(cached
) " >&6
13810 if test -n "$DSYMUTIL"; then
13811 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814 for as_dir in $PATH
13817 test -z "$as_dir" && as_dir=.
13818 for ac_exec_ext in '' $ac_executable_extensions; do
13819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13820 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13821 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13830 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13831 if test -n "$DSYMUTIL"; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13833 $as_echo "$DSYMUTIL" >&6; }
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13836 $as_echo "no
" >&6; }
13841 if test -z "$ac_cv_prog_DSYMUTIL"; then
13842 ac_ct_DSYMUTIL=$DSYMUTIL
13843 # Extract the first word of "dsymutil
", so it can be a program name with args.
13844 set dummy dsymutil; ac_word=$2
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13846 $as_echo_n "checking
for $ac_word...
" >&6; }
13847 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13848 $as_echo_n "(cached
) " >&6
13850 if test -n "$ac_ct_DSYMUTIL"; then
13851 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854 for as_dir in $PATH
13857 test -z "$as_dir" && as_dir=.
13858 for ac_exec_ext in '' $ac_executable_extensions; do
13859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13860 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13861 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13870 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13871 if test -n "$ac_ct_DSYMUTIL"; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13873 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13876 $as_echo "no
" >&6; }
13879 if test "x
$ac_ct_DSYMUTIL" = x; then
13882 case $cross_compiling:$ac_tool_warned in
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13885 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13886 ac_tool_warned=yes ;;
13888 DSYMUTIL=$ac_ct_DSYMUTIL
13891 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13894 if test -n "$ac_tool_prefix"; then
13895 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13896 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13898 $as_echo_n "checking
for $ac_word...
" >&6; }
13899 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13900 $as_echo_n "(cached
) " >&6
13902 if test -n "$NMEDIT"; then
13903 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13906 for as_dir in $PATH
13909 test -z "$as_dir" && as_dir=.
13910 for ac_exec_ext in '' $ac_executable_extensions; do
13911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13912 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13913 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13922 NMEDIT=$ac_cv_prog_NMEDIT
13923 if test -n "$NMEDIT"; then
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13925 $as_echo "$NMEDIT" >&6; }
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13928 $as_echo "no
" >&6; }
13933 if test -z "$ac_cv_prog_NMEDIT"; then
13934 ac_ct_NMEDIT=$NMEDIT
13935 # Extract the first word of "nmedit
", so it can be a program name with args.
13936 set dummy nmedit; ac_word=$2
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13938 $as_echo_n "checking
for $ac_word...
" >&6; }
13939 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13940 $as_echo_n "(cached
) " >&6
13942 if test -n "$ac_ct_NMEDIT"; then
13943 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13946 for as_dir in $PATH
13949 test -z "$as_dir" && as_dir=.
13950 for ac_exec_ext in '' $ac_executable_extensions; do
13951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13952 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13953 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13962 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13963 if test -n "$ac_ct_NMEDIT"; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13965 $as_echo "$ac_ct_NMEDIT" >&6; }
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13968 $as_echo "no
" >&6; }
13971 if test "x
$ac_ct_NMEDIT" = x; then
13974 case $cross_compiling:$ac_tool_warned in
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13977 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13978 ac_tool_warned=yes ;;
13980 NMEDIT=$ac_ct_NMEDIT
13983 NMEDIT="$ac_cv_prog_NMEDIT"
13986 if test -n "$ac_tool_prefix"; then
13987 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13988 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13990 $as_echo_n "checking
for $ac_word...
" >&6; }
13991 if test "${ac_cv_prog_LIPO+set}" = set; then :
13992 $as_echo_n "(cached
) " >&6
13994 if test -n "$LIPO"; then
13995 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13998 for as_dir in $PATH
14001 test -z "$as_dir" && as_dir=.
14002 for ac_exec_ext in '' $ac_executable_extensions; do
14003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14004 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14005 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14014 LIPO=$ac_cv_prog_LIPO
14015 if test -n "$LIPO"; then
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14017 $as_echo "$LIPO" >&6; }
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14020 $as_echo "no
" >&6; }
14025 if test -z "$ac_cv_prog_LIPO"; then
14027 # Extract the first word of "lipo
", so it can be a program name with args.
14028 set dummy lipo; ac_word=$2
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14030 $as_echo_n "checking
for $ac_word...
" >&6; }
14031 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14032 $as_echo_n "(cached
) " >&6
14034 if test -n "$ac_ct_LIPO"; then
14035 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14038 for as_dir in $PATH
14041 test -z "$as_dir" && as_dir=.
14042 for ac_exec_ext in '' $ac_executable_extensions; do
14043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14044 ac_cv_prog_ac_ct_LIPO="lipo
"
14045 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14054 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14055 if test -n "$ac_ct_LIPO"; then
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14057 $as_echo "$ac_ct_LIPO" >&6; }
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14060 $as_echo "no
" >&6; }
14063 if test "x
$ac_ct_LIPO" = x; then
14066 case $cross_compiling:$ac_tool_warned in
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14069 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14070 ac_tool_warned=yes ;;
14075 LIPO="$ac_cv_prog_LIPO"
14078 if test -n "$ac_tool_prefix"; then
14079 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14080 set dummy ${ac_tool_prefix}otool; ac_word=$2
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14082 $as_echo_n "checking
for $ac_word...
" >&6; }
14083 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14084 $as_echo_n "(cached
) " >&6
14086 if test -n "$OTOOL"; then
14087 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14090 for as_dir in $PATH
14093 test -z "$as_dir" && as_dir=.
14094 for ac_exec_ext in '' $ac_executable_extensions; do
14095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14096 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14097 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14106 OTOOL=$ac_cv_prog_OTOOL
14107 if test -n "$OTOOL"; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14109 $as_echo "$OTOOL" >&6; }
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14112 $as_echo "no
" >&6; }
14117 if test -z "$ac_cv_prog_OTOOL"; then
14119 # Extract the first word of "otool
", so it can be a program name with args.
14120 set dummy otool; ac_word=$2
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14122 $as_echo_n "checking
for $ac_word...
" >&6; }
14123 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14124 $as_echo_n "(cached
) " >&6
14126 if test -n "$ac_ct_OTOOL"; then
14127 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130 for as_dir in $PATH
14133 test -z "$as_dir" && as_dir=.
14134 for ac_exec_ext in '' $ac_executable_extensions; do
14135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14136 ac_cv_prog_ac_ct_OTOOL="otool
"
14137 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14146 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14147 if test -n "$ac_ct_OTOOL"; then
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14149 $as_echo "$ac_ct_OTOOL" >&6; }
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14152 $as_echo "no
" >&6; }
14155 if test "x
$ac_ct_OTOOL" = x; then
14158 case $cross_compiling:$ac_tool_warned in
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14161 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14162 ac_tool_warned=yes ;;
14167 OTOOL="$ac_cv_prog_OTOOL"
14170 if test -n "$ac_tool_prefix"; then
14171 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14172 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14174 $as_echo_n "checking
for $ac_word...
" >&6; }
14175 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14176 $as_echo_n "(cached
) " >&6
14178 if test -n "$OTOOL64"; then
14179 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14182 for as_dir in $PATH
14185 test -z "$as_dir" && as_dir=.
14186 for ac_exec_ext in '' $ac_executable_extensions; do
14187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14188 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14189 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14198 OTOOL64=$ac_cv_prog_OTOOL64
14199 if test -n "$OTOOL64"; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14201 $as_echo "$OTOOL64" >&6; }
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14204 $as_echo "no
" >&6; }
14209 if test -z "$ac_cv_prog_OTOOL64"; then
14210 ac_ct_OTOOL64=$OTOOL64
14211 # Extract the first word of "otool64
", so it can be a program name with args.
14212 set dummy otool64; ac_word=$2
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14214 $as_echo_n "checking
for $ac_word...
" >&6; }
14215 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14216 $as_echo_n "(cached
) " >&6
14218 if test -n "$ac_ct_OTOOL64"; then
14219 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222 for as_dir in $PATH
14225 test -z "$as_dir" && as_dir=.
14226 for ac_exec_ext in '' $ac_executable_extensions; do
14227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14228 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14229 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14238 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14239 if test -n "$ac_ct_OTOOL64"; then
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14241 $as_echo "$ac_ct_OTOOL64" >&6; }
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14244 $as_echo "no
" >&6; }
14247 if test "x
$ac_ct_OTOOL64" = x; then
14250 case $cross_compiling:$ac_tool_warned in
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14253 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14254 ac_tool_warned=yes ;;
14256 OTOOL64=$ac_ct_OTOOL64
14259 OTOOL64="$ac_cv_prog_OTOOL64"
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14289 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14290 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14291 $as_echo_n "(cached
) " >&6
14293 lt_cv_apple_cc_single_mod=no
14294 if test -z "${LT_MULTI_MODULE}"; then
14295 # By default we will add the -single_module flag. You can override
14296 # by either setting the environment variable LT_MULTI_MODULE
14297 # non-empty at configure time, or by adding -multi_module to the
14299 rm -rf libconftest.dylib*
14300 echo "int foo
(void
){return 1;}" > conftest.c
14301 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14302 -dynamiclib -Wl,-single_module conftest.c
" >&5
14303 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14304 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14306 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14307 lt_cv_apple_cc_single_mod=yes
14309 cat conftest.err >&5
14311 rm -rf libconftest.dylib*
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14316 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14318 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14319 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14320 $as_echo_n "(cached
) " >&6
14322 lt_cv_ld_exported_symbols_list=no
14323 save_LDFLAGS=$LDFLAGS
14324 echo "_main
" > conftest.sym
14325 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327 /* end confdefs.h. */
14337 if ac_fn_c_try_link "$LINENO"; then :
14338 lt_cv_ld_exported_symbols_list=yes
14340 lt_cv_ld_exported_symbols_list=no
14342 rm -f core conftest.err conftest.$ac_objext \
14343 conftest$ac_exeext conftest.$ac_ext
14344 LDFLAGS="$save_LDFLAGS"
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14348 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14350 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14351 if test "${lt_cv_ld_force_load+set}" = set; then :
14352 $as_echo_n "(cached
) " >&6
14354 lt_cv_ld_force_load=no
14355 cat > conftest.c << _LT_EOF
14356 int forced_loaded() { return 2;}
14358 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14359 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14360 echo "$AR cru libconftest.a conftest.o
" >&5
14361 $AR cru libconftest.a conftest.o 2>&5
14362 cat > conftest.c << _LT_EOF
14363 int main() { return 0;}
14365 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14366 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14368 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14369 lt_cv_ld_force_load=yes
14371 cat conftest.err >&5
14373 rm -f conftest.err libconftest.a conftest conftest.c
14374 rm -rf conftest.dSYM
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14378 $as_echo "$lt_cv_ld_force_load" >&6; }
14380 rhapsody* | darwin1.[012])
14381 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14383 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14384 darwin*) # darwin 5.x on
14385 # if running on 10.5 or later, the deployment target defaults
14386 # to the OS version, if on x86, and 10.4, the deployment
14387 # target defaults to 10.4. Don't you love it?
14388 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14389 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14390 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14392 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14394 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14398 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14399 _lt_dar_single_mod='$single_module'
14401 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14402 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14404 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14406 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14407 _lt_dsymutil='~$DSYMUTIL $lib || :'
14414 for ac_header in dlfcn.h
14416 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14417 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14418 cat >>confdefs.h <<_ACEOF
14419 #define HAVE_DLFCN_H 1
14436 enable_win32_dll=no
14439 # Check whether --enable-shared was given.
14440 if test "${enable_shared+set}" = set; then :
14441 enableval=$enable_shared; p=${PACKAGE-default}
14443 yes) enable_shared=yes ;;
14444 no) enable_shared=no ;;
14447 # Look at the argument we got. We use all the common list separators.
14448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14449 for pkg in $enableval; do
14451 if test "X
$pkg" = "X
$p"; then
14470 # Check whether --enable-static was given.
14471 if test "${enable_static+set}" = set; then :
14472 enableval=$enable_static; p=${PACKAGE-default}
14474 yes) enable_static=yes ;;
14475 no) enable_static=no ;;
14478 # Look at the argument we got. We use all the common list separators.
14479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14480 for pkg in $enableval; do
14482 if test "X
$pkg" = "X
$p"; then
14502 # Check whether --with-pic was given.
14503 if test "${with_pic+set}" = set; then :
14504 withval=$with_pic; pic_mode="$withval"
14510 test -z "$pic_mode" && pic_mode=default
14518 # Check whether --enable-fast-install was given.
14519 if test "${enable_fast_install+set}" = set; then :
14520 enableval=$enable_fast_install; p=${PACKAGE-default}
14522 yes) enable_fast_install=yes ;;
14523 no) enable_fast_install=no ;;
14525 enable_fast_install=no
14526 # Look at the argument we got. We use all the common list separators.
14527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14528 for pkg in $enableval; do
14530 if test "X
$pkg" = "X
$p"; then
14531 enable_fast_install=yes
14538 enable_fast_install=yes
14551 # This can be used to rebuild libtool when needed
14552 LIBTOOL_DEPS="$ltmain"
14554 # Always use our own libtool.
14555 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14582 test -z "$LN_S" && LN_S="ln -s"
14597 if test -n "${ZSH_VERSION+set}" ; then
14598 setopt NO_GLOB_SUBST
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14602 $as_echo_n "checking
for objdir...
" >&6; }
14603 if test "${lt_cv_objdir+set}" = set; then :
14604 $as_echo_n "(cached
) " >&6
14606 rm -f .libs 2>/dev/null
14607 mkdir .libs 2>/dev/null
14608 if test -d .libs; then
14611 # MS-DOS does not allow filenames that begin with a dot.
14614 rmdir .libs 2>/dev/null
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14617 $as_echo "$lt_cv_objdir" >&6; }
14618 objdir=$lt_cv_objdir
14624 cat >>confdefs.h <<_ACEOF
14625 #define LT_OBJDIR "$lt_cv_objdir/"
14633 # AIX sometimes has problems with the GCC collect2 program. For some
14634 # reason, if we set the COLLECT_NAMES environment variable, the problems
14635 # vanish in a puff of smoke.
14636 if test "X
${COLLECT_NAMES+set}" != Xset; then
14638 export COLLECT_NAMES
14643 # Global variables:
14645 can_build_shared=yes
14647 # All known linkers require a `.a' archive for static linking (except MSVC,
14648 # which needs '.lib').
14651 with_gnu_ld="$lt_cv_prog_gnu_ld"
14654 old_CFLAGS="$CFLAGS"
14656 # Set sane defaults for various variables
14657 test -z "$CC" && CC=cc
14658 test -z "$LTCC" && LTCC=$CC
14659 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14660 test -z "$LD" && LD=ld
14661 test -z "$ac_objext" && ac_objext=o
14663 for cc_temp in $compiler""; do
14665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14671 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14674 # Only perform the check for file, if the check method requires it
14675 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14676 case $deplibs_check_method in
14678 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14680 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14681 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14682 $as_echo_n "(cached
) " >&6
14686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14689 lt_save_MAGIC_CMD="$MAGIC_CMD"
14690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14691 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14692 for ac_dir in $ac_dummy; do
14694 test -z "$ac_dir" && ac_dir=.
14695 if test -f $ac_dir/${ac_tool_prefix}file; then
14696 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14697 if test -n "$file_magic_test_file"; then
14698 case $deplibs_check_method in
14700 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14703 $EGREP "$file_magic_regex" > /dev/null; then
14708 *** Warning: the command libtool uses to detect shared libraries,
14709 *** $file_magic_cmd, produces output that libtool cannot recognize.
14710 *** The result is that libtool may fail to recognize shared libraries
14711 *** as such. This will affect the creation of libtool libraries that
14712 *** depend on shared libraries, but programs linked with such libtool
14713 *** libraries will work regardless of this problem. Nevertheless, you
14714 *** may want to report the problem to your system manager and/or to
14715 *** bug-libtool@gnu.org
14725 MAGIC_CMD="$lt_save_MAGIC_CMD"
14730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14731 if test -n "$MAGIC_CMD"; then
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14733 $as_echo "$MAGIC_CMD" >&6; }
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14736 $as_echo "no
" >&6; }
14743 if test -z "$lt_cv_path_MAGIC_CMD"; then
14744 if test -n "$ac_tool_prefix"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14746 $as_echo_n "checking
for file...
" >&6; }
14747 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14748 $as_echo_n "(cached
) " >&6
14752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14755 lt_save_MAGIC_CMD="$MAGIC_CMD"
14756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14757 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14758 for ac_dir in $ac_dummy; do
14760 test -z "$ac_dir" && ac_dir=.
14761 if test -f $ac_dir/file; then
14762 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14763 if test -n "$file_magic_test_file"; then
14764 case $deplibs_check_method in
14766 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14768 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14769 $EGREP "$file_magic_regex" > /dev/null; then
14774 *** Warning: the command libtool uses to detect shared libraries,
14775 *** $file_magic_cmd, produces output that libtool cannot recognize.
14776 *** The result is that libtool may fail to recognize shared libraries
14777 *** as such. This will affect the creation of libtool libraries that
14778 *** depend on shared libraries, but programs linked with such libtool
14779 *** libraries will work regardless of this problem. Nevertheless, you
14780 *** may want to report the problem to your system manager and/or to
14781 *** bug-libtool@gnu.org
14791 MAGIC_CMD="$lt_save_MAGIC_CMD"
14796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14797 if test -n "$MAGIC_CMD"; then
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14799 $as_echo "$MAGIC_CMD" >&6; }
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14802 $as_echo "no
" >&6; }
14815 # Use C for the default configuration in the libtool script
14819 ac_cpp='$CPP $CPPFLAGS'
14820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14825 # Source file extension for C test sources.
14828 # Object file extension for compiled C test sources.
14832 # Code to be used in simple compile tests
14833 lt_simple_compile_test_code="int some_variable
= 0;"
14835 # Code to be used in simple link tests
14836 lt_simple_link_test_code='int main(){return(0);}'
14844 # If no C compiler was specified, use CC.
14847 # If no C compiler flags were specified, use CFLAGS.
14848 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14850 # Allow CC to be a program name with arguments.
14853 # Save the default compiler, since it gets overwritten when the other
14854 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14855 compiler_DEFAULT=$CC
14857 # save warnings/boilerplate of simple test code
14858 ac_outfile=conftest.$ac_objext
14859 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14860 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14861 _lt_compiler_boilerplate=`cat conftest.err`
14864 ac_outfile=conftest.$ac_objext
14865 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14866 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14867 _lt_linker_boilerplate=`cat conftest.err`
14872 ## There is no encapsulation within the following macros, do not change
14873 ## the running order or otherwise move them around unless you know exactly
14874 ## what you are doing...
14875 if test -n "$compiler"; then
14877 lt_prog_compiler_no_builtin_flag=
14879 if test "$GCC" = yes; then
14880 case $cc_basename in
14882 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14884 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14888 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14889 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14890 $as_echo_n "(cached
) " >&6
14892 lt_cv_prog_compiler_rtti_exceptions=no
14893 ac_outfile=conftest.$ac_objext
14894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14895 lt_compiler_flag="-fno-rtti -fno-exceptions"
14896 # Insert the option either (1) after the last *FLAGS variable, or
14897 # (2) before a word containing "conftest.
", or (3) at the end.
14898 # Note that $ac_compile itself does not contain backslashes and begins
14899 # with a dollar sign (not a hyphen), so the echo should work correctly.
14900 # The option is referenced via a variable to avoid confusing sed.
14901 lt_compile=`echo "$ac_compile" | $SED \
14902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14904 -e 's:$: $lt_compiler_flag:'`
14905 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14906 (eval "$lt_compile" 2>conftest.err)
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14910 if (exit $ac_status) && test -s "$ac_outfile"; then
14911 # The compiler can only warn and ignore the option if not recognized
14912 # So say no if there are warnings other than the usual output.
14913 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14915 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14916 lt_cv_prog_compiler_rtti_exceptions=yes
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14923 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14925 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14926 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14938 lt_prog_compiler_wl=
14939 lt_prog_compiler_pic=
14940 lt_prog_compiler_static=
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14943 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14945 if test "$GCC" = yes; then
14946 lt_prog_compiler_wl='-Wl,'
14947 lt_prog_compiler_static='-static'
14951 # All AIX code is PIC.
14952 if test "$host_cpu" = ia64; then
14953 # AIX 5 now supports IA64 processor
14954 lt_prog_compiler_static='-Bstatic'
14956 lt_prog_compiler_pic='-fPIC'
14962 # see comment about AmigaOS4 .so support
14963 lt_prog_compiler_pic='-fPIC'
14966 # FIXME: we need at least 68020 code to build shared libraries, but
14967 # adding the `-m68020' flag to GCC prevents building anything better,
14969 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14974 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14975 # PIC is the default for these OSes.
14978 mingw* | cygwin* | pw32* | os2* | cegcc*)
14979 # This hack is so that the source file can tell whether it is being
14980 # built for inclusion in a dll (and should export symbols for example).
14981 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14982 # (--disable-auto-import) libraries
14983 lt_prog_compiler_pic='-DDLL_EXPORT'
14986 darwin* | rhapsody*)
14987 # PIC is the default on this platform
14988 # Common symbols not allowed in MH_DYLIB files
14989 lt_prog_compiler_pic='-fno-common'
14993 # PIC is the default for Haiku.
14994 # The "-static" flag exists, but is broken.
14995 lt_prog_compiler_static=
14999 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15000 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15001 # sets the default TLS model and affects inlining.
15007 lt_prog_compiler_pic='-fPIC'
15013 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15014 # Instead, we relocate shared libraries at runtime.
15018 # Just because we use GCC doesn't mean we suddenly get shared libraries
15019 # on systems that don't support them.
15020 lt_prog_compiler_can_build_shared=no
15025 # QNX uses GNU C++, but need to define -shared option too, otherwise
15026 # it will coredump.
15027 lt_prog_compiler_pic='-fPIC -shared'
15031 if test -d /usr/nec; then
15032 lt_prog_compiler_pic=-Kconform_pic
15037 lt_prog_compiler_pic='-fPIC'
15041 case $cc_basename in
15042 nvcc*) # Cuda Compiler Driver 2.2
15043 lt_prog_compiler_wl='-Xlinker '
15044 lt_prog_compiler_pic='-Xcompiler -fPIC'
15048 # PORTME Check for flag to pass linker flags through the system compiler.
15051 lt_prog_compiler_wl='-Wl,'
15052 if test "$host_cpu" = ia64; then
15053 # AIX 5 now supports IA64 processor
15054 lt_prog_compiler_static='-Bstatic'
15056 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15060 mingw* | cygwin* | pw32* | os2* | cegcc*)
15061 # This hack is so that the source file can tell whether it is being
15062 # built for inclusion in a dll (and should export symbols for example).
15063 lt_prog_compiler_pic='-DDLL_EXPORT'
15066 hpux9* | hpux10* | hpux11*)
15067 lt_prog_compiler_wl='-Wl,'
15068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15069 # not for PA HP-UX.
15075 lt_prog_compiler_pic='+Z'
15078 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15079 lt_prog_compiler_static='${wl}-a ${wl}archive'
15082 irix5* | irix6* | nonstopux*)
15083 lt_prog_compiler_wl='-Wl,'
15084 # PIC (with -KPIC) is the default.
15085 lt_prog_compiler_static='-non_shared'
15088 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15089 case $cc_basename in
15090 # old Intel for x86_64 which still supported -KPIC.
15092 lt_prog_compiler_wl='-Wl,'
15093 lt_prog_compiler_pic='-KPIC'
15094 lt_prog_compiler_static='-static'
15096 # icc used to be incompatible with GCC.
15097 # ICC 10 doesn't accept -KPIC any more.
15099 lt_prog_compiler_wl='-Wl,'
15100 lt_prog_compiler_pic='-fPIC'
15101 lt_prog_compiler_static='-static'
15103 # Lahey Fortran 8.1.
15105 lt_prog_compiler_wl='-Wl,'
15106 lt_prog_compiler_pic='--shared'
15107 lt_prog_compiler_static='--static'
15109 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15110 # Portland Group compilers (*not* the Pentium gcc compiler,
15111 # which looks to be a dead project)
15112 lt_prog_compiler_wl='-Wl,'
15113 lt_prog_compiler_pic='-fpic'
15114 lt_prog_compiler_static='-Bstatic'
15117 lt_prog_compiler_wl='-Wl,'
15118 # All Alpha code is PIC.
15119 lt_prog_compiler_static='-non_shared'
15121 xl* | bgxl* | bgf* | mpixl*)
15122 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15123 lt_prog_compiler_wl='-Wl,'
15124 lt_prog_compiler_pic='-qpic'
15125 lt_prog_compiler_static='-qstaticlink'
15128 case `$CC -V 2>&1 | sed 5q` in
15129 *Sun\ F* | *Sun*Fortran*)
15130 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15131 lt_prog_compiler_pic='-KPIC'
15132 lt_prog_compiler_static='-Bstatic'
15133 lt_prog_compiler_wl=''
15137 lt_prog_compiler_pic='-KPIC'
15138 lt_prog_compiler_static='-Bstatic'
15139 lt_prog_compiler_wl='-Wl,'
15147 lt_prog_compiler_pic='-KPIC'
15148 lt_prog_compiler_static='-Bstatic'
15152 # QNX uses GNU C++, but need to define -shared option too, otherwise
15153 # it will coredump.
15154 lt_prog_compiler_pic='-fPIC -shared'
15157 osf3* | osf4* | osf5*)
15158 lt_prog_compiler_wl='-Wl,'
15159 # All OSF/1 code is PIC.
15160 lt_prog_compiler_static='-non_shared'
15164 lt_prog_compiler_static='-non_shared'
15168 lt_prog_compiler_pic='-KPIC'
15169 lt_prog_compiler_static='-Bstatic'
15170 case $cc_basename in
15171 f77* | f90* | f95*)
15172 lt_prog_compiler_wl='-Qoption ld ';;
15174 lt_prog_compiler_wl='-Wl,';;
15179 lt_prog_compiler_wl='-Qoption ld '
15180 lt_prog_compiler_pic='-PIC'
15181 lt_prog_compiler_static='-Bstatic'
15184 sysv4 | sysv4.2uw2* | sysv4.3*)
15185 lt_prog_compiler_wl='-Wl,'
15186 lt_prog_compiler_pic='-KPIC'
15187 lt_prog_compiler_static='-Bstatic'
15191 if test -d /usr/nec ;then
15192 lt_prog_compiler_pic='-Kconform_pic'
15193 lt_prog_compiler_static='-Bstatic'
15197 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15198 lt_prog_compiler_wl='-Wl,'
15199 lt_prog_compiler_pic='-KPIC'
15200 lt_prog_compiler_static='-Bstatic'
15204 lt_prog_compiler_wl='-Wl,'
15205 lt_prog_compiler_can_build_shared=no
15209 lt_prog_compiler_pic='-pic'
15210 lt_prog_compiler_static='-Bstatic'
15214 lt_prog_compiler_can_build_shared=no
15220 # For platforms which do not support PIC, -DPIC is meaningless:
15222 lt_prog_compiler_pic=
15225 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15229 $as_echo "$lt_prog_compiler_pic" >&6; }
15237 # Check to make sure the PIC flag actually works.
15239 if test -n "$lt_prog_compiler_pic"; then
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15241 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15242 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15243 $as_echo_n "(cached
) " >&6
15245 lt_cv_prog_compiler_pic_works=no
15246 ac_outfile=conftest.$ac_objext
15247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15248 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15249 # Insert the option either (1) after the last *FLAGS variable, or
15250 # (2) before a word containing "conftest.
", or (3) at the end.
15251 # Note that $ac_compile itself does not contain backslashes and begins
15252 # with a dollar sign (not a hyphen), so the echo should work correctly.
15253 # The option is referenced via a variable to avoid confusing sed.
15254 lt_compile=`echo "$ac_compile" | $SED \
15255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15257 -e 's:$: $lt_compiler_flag:'`
15258 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15259 (eval "$lt_compile" 2>conftest.err)
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15263 if (exit $ac_status) && test -s "$ac_outfile"; then
15264 # The compiler can only warn and ignore the option if not recognized
15265 # So say no if there are warnings other than the usual output.
15266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15269 lt_cv_prog_compiler_pic_works=yes
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15276 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15278 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15279 case $lt_prog_compiler_pic in
15281 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15284 lt_prog_compiler_pic=
15285 lt_prog_compiler_can_build_shared=no
15296 # Check to make sure the static flag actually works.
15298 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15300 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15301 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15302 $as_echo_n "(cached
) " >&6
15304 lt_cv_prog_compiler_static_works=no
15305 save_LDFLAGS="$LDFLAGS"
15306 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15307 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15308 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15309 # The linker can only warn and ignore the option if not recognized
15310 # So say no if there are warnings
15311 if test -s conftest.err; then
15312 # Append any errors to the config.log.
15313 cat conftest.err 1>&5
15314 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15316 if diff conftest.exp conftest.er2 >/dev/null; then
15317 lt_cv_prog_compiler_static_works=yes
15320 lt_cv_prog_compiler_static_works=yes
15324 LDFLAGS="$save_LDFLAGS"
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15328 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15330 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15333 lt_prog_compiler_static=
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15343 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15344 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15345 $as_echo_n "(cached
) " >&6
15347 lt_cv_prog_compiler_c_o=no
15348 $RM -r conftest 2>/dev/null
15352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15354 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15355 # Insert the option either (1) after the last *FLAGS variable, or
15356 # (2) before a word containing "conftest.
", or (3) at the end.
15357 # Note that $ac_compile itself does not contain backslashes and begins
15358 # with a dollar sign (not a hyphen), so the echo should work correctly.
15359 lt_compile=`echo "$ac_compile" | $SED \
15360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15362 -e 's:$: $lt_compiler_flag:'`
15363 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15364 (eval "$lt_compile" 2>out/conftest.err)
15366 cat out/conftest.err >&5
15367 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15368 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15370 # The compiler can only warn and ignore the option if not recognized
15371 # So say no if there are warnings
15372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15373 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15374 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15375 lt_cv_prog_compiler_c_o=yes
15380 # SGI C++ compiler will create directory out/ii_files/ for
15381 # template instantiation
15382 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15383 $RM out/* && rmdir out
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15390 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15398 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15399 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15400 $as_echo_n "(cached
) " >&6
15402 lt_cv_prog_compiler_c_o=no
15403 $RM -r conftest 2>/dev/null
15407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15409 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15410 # Insert the option either (1) after the last *FLAGS variable, or
15411 # (2) before a word containing "conftest.
", or (3) at the end.
15412 # Note that $ac_compile itself does not contain backslashes and begins
15413 # with a dollar sign (not a hyphen), so the echo should work correctly.
15414 lt_compile=`echo "$ac_compile" | $SED \
15415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15417 -e 's:$: $lt_compiler_flag:'`
15418 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15419 (eval "$lt_compile" 2>out/conftest.err)
15421 cat out/conftest.err >&5
15422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15423 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15425 # The compiler can only warn and ignore the option if not recognized
15426 # So say no if there are warnings
15427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15428 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15429 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15430 lt_cv_prog_compiler_c_o=yes
15435 # SGI C++ compiler will create directory out/ii_files/ for
15436 # template instantiation
15437 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15438 $RM out/* && rmdir out
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15445 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15450 hard_links="nottested
"
15451 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15452 # do not overwrite the value of need_locks provided by the user
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15454 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15457 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15459 ln conftest.a conftest.b 2>&5 || hard_links=no
15460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15462 $as_echo "$hard_links" >&6; }
15463 if test "$hard_links" = no; then
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15465 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15478 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15481 allow_undefined_flag=
15482 always_export_symbols=no
15484 archive_expsym_cmds=
15485 compiler_needs_object=no
15486 enable_shared_with_static_runtimes=no
15487 export_dynamic_flag_spec=
15488 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15489 hardcode_automatic=no
15491 hardcode_direct_absolute=no
15492 hardcode_libdir_flag_spec=
15493 hardcode_libdir_flag_spec_ld=
15494 hardcode_libdir_separator=
15495 hardcode_minus_L=no
15496 hardcode_shlibpath_var=unsupported
15498 link_all_deplibs=unknown
15500 module_expsym_cmds=
15501 old_archive_from_new_cmds=
15502 old_archive_from_expsyms_cmds=
15503 thread_safe_flag_spec=
15504 whole_archive_flag_spec=
15505 # include_expsyms should be a list of space-separated symbols to be *always*
15506 # included in the symbol list
15508 # exclude_expsyms can be an extended regexp of symbols to exclude
15509 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15510 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15511 # as well as any symbol that contains `d'.
15512 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15513 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15514 # platforms (ab)use it in PIC code, but their linkers get confused if
15515 # the symbol is explicitly referenced. Since portable code cannot
15516 # rely on this symbol name, it's probably fine to never include it in
15517 # preloaded symbol tables.
15518 # Exclude shared library initialization/finalization symbols.
15519 extract_expsyms_cmds=
15522 cygwin* | mingw* | pw32* | cegcc*)
15523 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15524 # When not using gcc, we currently assume that we are using
15525 # Microsoft Visual C++.
15526 if test "$GCC" != yes; then
15531 # we just hope/assume this is gcc and not c89 (= MSVC++)
15541 # On some targets, GNU ld is compatible enough with the native linker
15542 # that we're better off using the native interface for both.
15543 lt_use_gnu_ld_interface=no
15544 if test "$with_gnu_ld" = yes; then
15547 # The AIX port of GNU ld has always aspired to compatibility
15548 # with the native linker. However, as the warning in the GNU ld
15549 # block says, versions before 2.19.5* couldn't really create working
15550 # shared libraries, regardless of the interface used.
15551 case `$LD -v 2>&1` in
15552 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15553 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15554 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15556 lt_use_gnu_ld_interface=yes
15561 lt_use_gnu_ld_interface=yes
15566 if test "$lt_use_gnu_ld_interface" = yes; then
15567 # If archive_cmds runs LD, not CC, wlarc should be empty
15570 # Set some defaults for GNU ld with shared library support. These
15571 # are reset later if shared libraries are not supported. Putting them
15572 # here allows them to be overridden if necessary.
15573 runpath_var=LD_RUN_PATH
15574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15575 export_dynamic_flag_spec='${wl}--export-dynamic'
15576 # ancient GNU ld didn't support --whole-archive et. al.
15577 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15578 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15580 whole_archive_flag_spec=
15582 supports_anon_versioning=no
15583 case `$LD -v 2>&1` in
15584 *GNU\ gold*) supports_anon_versioning=yes ;;
15585 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15586 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15587 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15588 *\ 2.11.*) ;; # other 2.11 versions
15589 *) supports_anon_versioning=yes ;;
15592 # See if GNU ld supports shared libraries.
15595 # On AIX/PPC, the GNU linker is very broken
15596 if test "$host_cpu" != ia64; then
15600 *** Warning: the GNU linker, at least up to release 2.19, is reported
15601 *** to be unable to reliably create shared libraries on AIX.
15602 *** Therefore, libtool is disabling shared libraries support. If you
15603 *** really care for shared libraries, you may want to install binutils
15604 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15605 *** You will then need to restart the configuration process.
15614 # see comment about AmigaOS4 .so support
15615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15616 archive_expsym_cmds=''
15619 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)'
15620 hardcode_libdir_flag_spec
='-L$libdir'
15621 hardcode_minus_L
=yes
15627 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15628 allow_undefined_flag
=unsupported
15629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15630 # support --undefined. This deserves some investigation. FIXME
15631 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15637 cygwin
* | mingw
* | pw32
* | cegcc
*)
15638 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15639 # as there is no search path for DLLs.
15640 hardcode_libdir_flag_spec
='-L$libdir'
15641 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15642 allow_undefined_flag
=unsupported
15643 always_export_symbols
=no
15644 enable_shared_with_static_runtimes
=yes
15645 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15647 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15648 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15649 # If the export-symbols file already is a .def file (1st line
15650 # is EXPORTS), use it as is; otherwise, prepend...
15651 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15652 cp $export_symbols $output_objdir/$soname.def;
15654 echo EXPORTS > $output_objdir/$soname.def;
15655 cat $export_symbols >> $output_objdir/$soname.def;
15657 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15664 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15665 link_all_deplibs
=yes
15670 hardcode_shlibpath_var
=no
15671 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15672 export_dynamic_flag_spec
='${wl}-E'
15673 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15674 # Instead, shared libraries are loaded at an image base (0x10000000 by
15675 # default) and relocated if they conflict, which is a slow very memory
15676 # consuming and fragmenting process. To avoid this, we pick a random,
15677 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15678 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15679 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15680 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'
15683 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15685 if test "$host_os" = linux-dietlibc
; then
15686 case $cc_basename in
15687 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15690 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15691 && test "$tmp_diet" = no
15694 tmp_sharedflag
='-shared'
15695 case $cc_basename,$host_cpu in
15696 pgcc
*) # Portland Group C compiler
15697 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'
15698 tmp_addflag
=' $pic_flag'
15700 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15701 # Portland Group f77 and f90 compilers
15702 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'
15703 tmp_addflag
=' $pic_flag -Mnomain' ;;
15704 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15705 tmp_addflag
=' -i_dynamic' ;;
15706 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15707 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15708 ifc
* | ifort
*) # Intel Fortran compiler
15709 tmp_addflag
=' -nofor_main' ;;
15710 lf95
*) # Lahey Fortran 8.1
15711 whole_archive_flag_spec
=
15712 tmp_sharedflag
='--shared' ;;
15713 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15714 tmp_sharedflag
='-qmkshrobj'
15716 nvcc
*) # Cuda Compiler Driver 2.2
15717 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'
15718 compiler_needs_object
=yes
15721 case `$CC -V 2>&1 | sed 5q` in
15722 *Sun\ C
*) # Sun C 5.9
15723 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'
15724 compiler_needs_object
=yes
15725 tmp_sharedflag
='-G' ;;
15726 *Sun\ F
*) # Sun Fortran 8.3
15727 tmp_sharedflag
='-G' ;;
15729 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15731 if test "x$supports_anon_versioning" = xyes
; then
15732 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15733 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15734 echo "local: *; };" >> $output_objdir/$libname.ver~
15735 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15738 case $cc_basename in
15739 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15740 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15741 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15742 hardcode_libdir_flag_spec
=
15743 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15744 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15745 if test "x$supports_anon_versioning" = xyes
; then
15746 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15748 echo "local: *; };" >> $output_objdir/$libname.ver~
15749 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15759 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15760 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15763 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15764 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15769 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15773 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15774 *** create shared libraries on Solaris systems. Therefore, libtool
15775 *** is disabling shared libraries support. We urge you to upgrade GNU
15776 *** binutils to release 2.9.1 or newer. Another option is to modify
15777 *** your PATH or compiler configuration so that the native linker is
15778 *** used, and then restart.
15781 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15782 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15783 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15789 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15790 case `$LD -v 2>&1` in
15791 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15795 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15796 *** reliably create shared libraries on SCO systems. Therefore, libtool
15797 *** is disabling shared libraries support. We urge you to upgrade GNU
15798 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15799 *** your PATH or compiler configuration so that the native linker is
15800 *** used, and then restart.
15805 # For security reasons, it is highly recommended that you always
15806 # use absolute paths for naming shared libraries, and exclude the
15807 # DT_RUNPATH tag from executables and libraries. But doing so
15808 # requires that you compile everything twice, which is a pain.
15809 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15810 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15811 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15812 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15821 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15823 hardcode_direct
=yes
15824 hardcode_shlibpath_var
=no
15828 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15829 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15830 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15837 if test "$ld_shlibs" = no
; then
15839 hardcode_libdir_flag_spec
=
15840 export_dynamic_flag_spec
=
15841 whole_archive_flag_spec
=
15844 # PORTME fill in a description of your system's linker (not GNU ld)
15847 allow_undefined_flag
=unsupported
15848 always_export_symbols
=yes
15849 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'
15850 # Note: this linker hardcodes the directories in LIBPATH if there
15851 # are no directories specified by -L.
15852 hardcode_minus_L
=yes
15853 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15854 # Neither direct hardcoding nor static linking is supported with a
15856 hardcode_direct
=unsupported
15861 if test "$host_cpu" = ia64
; then
15862 # On IA64, the linker does run time linking by default, so we don't
15863 # have to do anything special.
15864 aix_use_runtimelinking
=no
15865 exp_sym_flag
='-Bexport'
15868 # If we're using GNU nm, then we don't want the "-C" option.
15869 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15870 # Also, AIX nm treats weak defined symbols like other global
15871 # defined symbols, whereas GNU nm marks them as "W".
15872 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15873 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'
15875 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'
15877 aix_use_runtimelinking
=no
15879 # Test if we are trying to use run time linking or normal
15880 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15881 # need to do runtime linking.
15882 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15883 for ld_flag
in $LDFLAGS; do
15884 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15885 aix_use_runtimelinking
=yes
15892 exp_sym_flag
='-bexport'
15893 no_entry_flag
='-bnoentry'
15896 # When large executables or shared objects are built, AIX ld can
15897 # have problems creating the table of contents. If linking a library
15898 # or program results in "error TOC overflow" add -mminimal-toc to
15899 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15900 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15903 hardcode_direct
=yes
15904 hardcode_direct_absolute
=yes
15905 hardcode_libdir_separator
=':'
15906 link_all_deplibs
=yes
15907 file_list_spec
='${wl}-f,'
15909 if test "$GCC" = yes; then
15910 case $host_os in aix4.
[012]|aix4.
[012].
*)
15911 # We only want to do this on AIX 4.2 and lower, the check
15912 # below for broken collect2 doesn't work under 4.3+
15913 collect2name
=`${CC} -print-prog-name=collect2`
15914 if test -f "$collect2name" &&
15915 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15917 # We have reworked collect2
15920 # We have old collect2
15921 hardcode_direct
=unsupported
15922 # It fails to find uninstalled libraries when the uninstalled
15923 # path is not listed in the libpath. Setting hardcode_minus_L
15924 # to unsupported forces relinking
15925 hardcode_minus_L
=yes
15926 hardcode_libdir_flag_spec
='-L$libdir'
15927 hardcode_libdir_separator
=
15931 shared_flag
='-shared'
15932 if test "$aix_use_runtimelinking" = yes; then
15933 shared_flag
="$shared_flag "'${wl}-G'
15937 if test "$host_cpu" = ia64
; then
15938 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15939 # chokes on -Wl,-G. The following line is correct:
15942 if test "$aix_use_runtimelinking" = yes; then
15943 shared_flag
='${wl}-G'
15945 shared_flag
='${wl}-bM:SRE'
15950 export_dynamic_flag_spec
='${wl}-bexpall'
15951 # It seems that -bexpall does not export symbols beginning with
15952 # underscore (_), so it is better to generate a list of symbols to export.
15953 always_export_symbols
=yes
15954 if test "$aix_use_runtimelinking" = yes; then
15955 # Warning - without using the other runtime loading flags (-brtl),
15956 # -berok will link without error, but may produce a broken library.
15957 allow_undefined_flag
='-berok'
15958 # Determine the default libpath from the value encoded in an
15959 # empty executable.
15960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15971 if ac_fn_c_try_link
"$LINENO"; then :
15973 lt_aix_libpath_sed
='
15974 /Import File Strings/,/^$/ {
15980 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15981 # Check for a 64-bit object if we didn't find anything.
15982 if test -z "$aix_libpath"; then
15983 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15986 rm -f core conftest.err conftest.
$ac_objext \
15987 conftest
$ac_exeext conftest.
$ac_ext
15988 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15990 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15991 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"
15993 if test "$host_cpu" = ia64
; then
15994 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15995 allow_undefined_flag
="-z nodefs"
15996 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"
15998 # Determine the default libpath from the value encoded in an
15999 # empty executable.
16000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16011 if ac_fn_c_try_link
"$LINENO"; then :
16013 lt_aix_libpath_sed
='
16014 /Import File Strings/,/^$/ {
16020 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16021 # Check for a 64-bit object if we didn't find anything.
16022 if test -z "$aix_libpath"; then
16023 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16026 rm -f core conftest.err conftest.
$ac_objext \
16027 conftest
$ac_exeext conftest.
$ac_ext
16028 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16030 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16031 # Warning - without using the other run time loading flags,
16032 # -berok will link without error, but may produce a broken library.
16033 no_undefined_flag
=' ${wl}-bernotok'
16034 allow_undefined_flag
=' ${wl}-berok'
16035 if test "$with_gnu_ld" = yes; then
16036 # We only use this code for GNU lds that support --whole-archive.
16037 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16039 # Exported symbols can be pulled into shared objects from archives
16040 whole_archive_flag_spec
='$convenience'
16042 archive_cmds_need_lc
=yes
16043 # This is similar to how AIX traditionally builds its shared libraries.
16044 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'
16052 # see comment about AmigaOS4 .so support
16053 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16054 archive_expsym_cmds
=''
16057 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)'
16058 hardcode_libdir_flag_spec
='-L$libdir'
16059 hardcode_minus_L
=yes
16065 export_dynamic_flag_spec
=-rdynamic
16068 cygwin
* | mingw
* | pw32
* | cegcc
*)
16069 # When not using gcc, we currently assume that we are using
16070 # Microsoft Visual C++.
16071 # hardcode_libdir_flag_spec is actually meaningless, as there is
16072 # no search path for DLLs.
16073 hardcode_libdir_flag_spec
=' '
16074 allow_undefined_flag
=unsupported
16075 # Tell ltmain to make .lib files, not .a files.
16077 # Tell ltmain to make .dll files, not .so files.
16079 # FIXME: Setting linknames here is a bad hack.
16080 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16081 # The linker will automatically build a .lib file if we build a DLL.
16082 old_archive_from_new_cmds
='true'
16083 # FIXME: Should let the user specify the lib program.
16084 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16085 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16086 enable_shared_with_static_runtimes
=yes
16089 darwin
* | rhapsody
*)
16092 archive_cmds_need_lc
=no
16094 hardcode_automatic
=yes
16095 hardcode_shlibpath_var
=unsupported
16096 if test "$lt_cv_ld_force_load" = "yes"; then
16097 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\"`'
16099 whole_archive_flag_spec
=''
16101 link_all_deplibs
=yes
16102 allow_undefined_flag
="$_lt_dar_allow_undefined"
16103 case $cc_basename in
16104 ifort
*) _lt_dar_can_shared
=yes ;;
16105 *) _lt_dar_can_shared
=$GCC ;;
16107 if test "$_lt_dar_can_shared" = "yes"; then
16108 output_verbose_link_cmd
=func_echo_all
16109 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16110 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16111 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}"
16112 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}"
16121 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122 hardcode_libdir_flag_spec
='-L$libdir'
16123 hardcode_shlibpath_var
=no
16126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16127 # support. Future versions do this automatically, but an explicit c++rt0.o
16128 # does not break anything, and helps significantly (at the cost of a little
16131 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16132 hardcode_libdir_flag_spec
='-R$libdir'
16133 hardcode_direct
=yes
16134 hardcode_shlibpath_var
=no
16137 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16139 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16140 hardcode_direct
=yes
16141 hardcode_minus_L
=yes
16142 hardcode_shlibpath_var
=no
16145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16146 freebsd
* | dragonfly
*)
16147 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16148 hardcode_libdir_flag_spec
='-R$libdir'
16149 hardcode_direct
=yes
16150 hardcode_shlibpath_var
=no
16154 if test "$GCC" = yes; then
16155 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'
16157 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'
16159 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16160 hardcode_libdir_separator
=:
16161 hardcode_direct
=yes
16163 # hardcode_minus_L: Not really in the search PATH,
16164 # but as the default location of the library.
16165 hardcode_minus_L
=yes
16166 export_dynamic_flag_spec
='${wl}-E'
16170 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16171 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16173 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16175 if test "$with_gnu_ld" = no
; then
16176 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16177 hardcode_libdir_flag_spec_ld
='+b $libdir'
16178 hardcode_libdir_separator
=:
16179 hardcode_direct
=yes
16180 hardcode_direct_absolute
=yes
16181 export_dynamic_flag_spec
='${wl}-E'
16182 # hardcode_minus_L: Not really in the search PATH,
16183 # but as the default location of the library.
16184 hardcode_minus_L
=yes
16189 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16192 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16195 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16198 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16204 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16207 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16211 # Older versions of the 11.00 compiler do not understand -b yet
16212 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16214 $as_echo_n "checking if $CC understands -b... " >&6; }
16215 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16216 $as_echo_n "(cached) " >&6
16218 lt_cv_prog_compiler__b
=no
16219 save_LDFLAGS
="$LDFLAGS"
16220 LDFLAGS
="$LDFLAGS -b"
16221 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16222 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16223 # The linker can only warn and ignore the option if not recognized
16224 # So say no if there are warnings
16225 if test -s conftest.err
; then
16226 # Append any errors to the config.log.
16227 cat conftest.err
1>&5
16228 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16229 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16230 if diff conftest.exp conftest.er2
>/dev
/null
; then
16231 lt_cv_prog_compiler__b
=yes
16234 lt_cv_prog_compiler__b
=yes
16238 LDFLAGS
="$save_LDFLAGS"
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16242 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16244 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16245 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16247 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16253 if test "$with_gnu_ld" = no
; then
16254 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16255 hardcode_libdir_separator
=:
16260 hardcode_shlibpath_var
=no
16263 hardcode_direct
=yes
16264 hardcode_direct_absolute
=yes
16265 export_dynamic_flag_spec
='${wl}-E'
16267 # hardcode_minus_L: Not really in the search PATH,
16268 # but as the default location of the library.
16269 hardcode_minus_L
=yes
16275 irix5
* | irix6
* | nonstopux
*)
16276 if test "$GCC" = yes; then
16277 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'
16278 # Try to use the -exported_symbol ld option, if it does not
16279 # work, assume that -exports_file does not work either and
16280 # implicitly export all symbols.
16281 save_LDFLAGS
="$LDFLAGS"
16282 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16287 if ac_fn_c_try_link
"$LINENO"; then :
16288 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'
16291 rm -f core conftest.err conftest.
$ac_objext \
16292 conftest
$ac_exeext conftest.
$ac_ext
16293 LDFLAGS
="$save_LDFLAGS"
16295 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'
16296 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'
16298 archive_cmds_need_lc
='no'
16299 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16300 hardcode_libdir_separator
=:
16302 link_all_deplibs
=yes
16306 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16307 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16309 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16311 hardcode_libdir_flag_spec
='-R$libdir'
16312 hardcode_direct
=yes
16313 hardcode_shlibpath_var
=no
16317 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16318 hardcode_direct
=yes
16319 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16320 hardcode_libdir_separator
=:
16321 hardcode_shlibpath_var
=no
16328 if test -f /usr
/libexec
/ld.so
; then
16329 hardcode_direct
=yes
16330 hardcode_shlibpath_var
=no
16331 hardcode_direct_absolute
=yes
16332 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16333 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16334 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16335 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16336 export_dynamic_flag_spec
='${wl}-E'
16339 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16340 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16341 hardcode_libdir_flag_spec
='-R$libdir'
16344 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16345 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16355 hardcode_libdir_flag_spec
='-L$libdir'
16356 hardcode_minus_L
=yes
16357 allow_undefined_flag
=unsupported
16358 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'
16359 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16363 if test "$GCC" = yes; then
16364 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16365 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'
16367 allow_undefined_flag
=' -expect_unresolved \*'
16368 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'
16370 archive_cmds_need_lc
='no'
16371 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16372 hardcode_libdir_separator
=:
16375 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16376 if test "$GCC" = yes; then
16377 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16378 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-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'
16379 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16381 allow_undefined_flag
=' -expect_unresolved \*'
16382 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'
16383 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~
16384 $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'
16386 # Both c and cxx compiler support -rpath directly
16387 hardcode_libdir_flag_spec
='-rpath $libdir'
16389 archive_cmds_need_lc
='no'
16390 hardcode_libdir_separator
=:
16394 no_undefined_flag
=' -z defs'
16395 if test "$GCC" = yes; then
16397 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16398 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16399 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16401 case `$CC -V 2>&1` in
16404 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16405 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16406 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16410 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16411 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16412 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16416 hardcode_libdir_flag_spec
='-R$libdir'
16417 hardcode_shlibpath_var
=no
16419 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16421 # The compiler driver will combine and reorder linker options,
16422 # but understands `-z linker_flag'. GCC discards it without `$wl',
16423 # but is careful enough not to reorder.
16424 # Supported since Solaris 2.6 (maybe 2.5.1?)
16425 if test "$GCC" = yes; then
16426 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16428 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16432 link_all_deplibs
=yes
16436 if test "x$host_vendor" = xsequent
; then
16437 # Use $CC to link under sequent, because it throws in some extra .o
16438 # files that make .init and .fini sections work.
16439 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16441 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16443 hardcode_libdir_flag_spec
='-L$libdir'
16444 hardcode_direct
=yes
16445 hardcode_minus_L
=yes
16446 hardcode_shlibpath_var
=no
16450 case $host_vendor in
16452 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16453 hardcode_direct
=yes # is this really true???
16456 ## LD is ld it makes a PLAMLIB
16457 ## CC just makes a GrossModule.
16458 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16459 reload_cmds
='$CC -r -o $output$reload_objs'
16463 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16464 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16467 runpath_var
='LD_RUN_PATH'
16468 hardcode_shlibpath_var
=no
16472 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16473 hardcode_shlibpath_var
=no
16474 export_dynamic_flag_spec
='-Bexport'
16478 if test -d /usr
/nec
; then
16479 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16480 hardcode_shlibpath_var
=no
16481 runpath_var
=LD_RUN_PATH
16482 hardcode_runpath_var
=yes
16487 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16488 no_undefined_flag
='${wl}-z,text'
16489 archive_cmds_need_lc
=no
16490 hardcode_shlibpath_var
=no
16491 runpath_var
='LD_RUN_PATH'
16493 if test "$GCC" = yes; then
16494 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16495 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16497 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16498 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16502 sysv5
* | sco3.2v5
* | sco5v6
*)
16503 # Note: We can NOT use -z defs as we might desire, because we do not
16504 # link with -lc, and that would cause any symbols used from libc to
16505 # always be unresolved, which means just about no library would
16506 # ever link correctly. If we're not using GNU ld we use -z text
16507 # though, which does catch some bad symbols but isn't as heavy-handed
16509 no_undefined_flag
='${wl}-z,text'
16510 allow_undefined_flag
='${wl}-z,nodefs'
16511 archive_cmds_need_lc
=no
16512 hardcode_shlibpath_var
=no
16513 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16514 hardcode_libdir_separator
=':'
16515 link_all_deplibs
=yes
16516 export_dynamic_flag_spec
='${wl}-Bexport'
16517 runpath_var
='LD_RUN_PATH'
16519 if test "$GCC" = yes; then
16520 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16521 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16523 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16524 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16529 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16530 hardcode_libdir_flag_spec
='-L$libdir'
16531 hardcode_shlibpath_var
=no
16539 if test x
$host_vendor = xsni
; then
16541 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16542 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16549 $as_echo "$ld_shlibs" >&6; }
16550 test "$ld_shlibs" = no
&& can_build_shared
=no
16552 with_gnu_ld
=$with_gnu_ld
16569 # Do we need to explicitly link libc?
16571 case "x$archive_cmds_need_lc" in
16573 # Assume -lc should be added
16574 archive_cmds_need_lc
=yes
16576 if test "$enable_shared" = yes && test "$GCC" = yes; then
16577 case $archive_cmds in
16579 # FIXME: we may have to deal with multi-command sequences.
16582 # Test whether the compiler implicitly links with -lc since on some
16583 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16584 # to ld, don't add -lc before -lgcc.
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16586 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16587 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16588 $as_echo_n "(cached) " >&6
16591 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16594 (eval $ac_compile) 2>&5
16596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16597 test $ac_status = 0; } 2>conftest.err
; then
16600 libobjs
=conftest.
$ac_objext
16602 wl
=$lt_prog_compiler_wl
16603 pic_flag
=$lt_prog_compiler_pic
16609 lt_save_allow_undefined_flag
=$allow_undefined_flag
16610 allow_undefined_flag
=
16611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16612 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16615 test $ac_status = 0; }
16617 lt_cv_archive_cmds_need_lc
=no
16619 lt_cv_archive_cmds_need_lc
=yes
16621 allow_undefined_flag
=$lt_save_allow_undefined_flag
16623 cat conftest.err
1>&5
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16629 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16630 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16794 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16796 if test "$GCC" = yes; then
16798 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16799 *) lt_awk_arg
="/^libraries:/" ;;
16802 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16803 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16805 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16806 case $lt_search_path_spec in
16808 # if the path contains ";" then we assume it to be the separator
16809 # otherwise default to the standard path separator (i.e. ":") - it is
16810 # assumed that no part of a normal pathname contains ";" but that should
16811 # okay in the real world where ";" in dirpaths is itself problematic.
16812 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16815 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16818 # Ok, now we have the path, separated by spaces, we can step through it
16819 # and add multilib dir if necessary.
16820 lt_tmp_lt_search_path_spec
=
16821 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16822 for lt_sys_path
in $lt_search_path_spec; do
16823 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16824 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16826 test -d "$lt_sys_path" && \
16827 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16830 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16831 BEGIN {RS=" "; FS="/|\n";} {
16834 for (lt_i = NF; lt_i > 0; lt_i--) {
16835 if ($lt_i != "" && $lt_i != ".") {
16836 if ($lt_i == "..") {
16839 if (lt_count == 0) {
16840 lt_foo="/" $lt_i lt_foo;
16847 if (lt_foo != "") { lt_freq[lt_foo]++; }
16848 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16850 # AWK program above erroneously prepends '/' to C:/dos/paths
16853 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16854 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16856 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16858 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16860 library_names_spec
=
16861 libname_spec
='lib$name'
16865 postuninstall_cmds
=
16869 shlibpath_overrides_runpath
=unknown
16871 dynamic_linker
="$host_os ld.so"
16872 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16873 need_lib_prefix
=unknown
16874 hardcode_into_libs
=no
16876 # when you set need_version to no, make sure it does not cause -set_version
16877 # flags to be left without arguments
16878 need_version
=unknown
16883 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16884 shlibpath_var
=LIBPATH
16886 # AIX 3 has no versioning support, so we append a major version to the name.
16887 soname_spec
='${libname}${release}${shared_ext}$major'
16894 hardcode_into_libs
=yes
16895 if test "$host_cpu" = ia64
; then
16896 # AIX 5 supports IA64
16897 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16898 shlibpath_var
=LD_LIBRARY_PATH
16900 # With GCC up to 2.95.x, collect2 would create an import file
16901 # for dependence libraries. The import file would start with
16902 # the line `#! .'. This would cause the generated library to
16903 # depend on `.', always an invalid library. This was fixed in
16904 # development snapshots of GCC prior to 3.0.
16906 aix4 | aix4.
[01] | aix4.
[01].
*)
16907 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16909 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16912 can_build_shared
=no
16916 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16917 # soname into executable. Probably we can add versioning support to
16918 # collect2, so additional links can be useful in future.
16919 if test "$aix_use_runtimelinking" = yes; then
16920 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16921 # instead of lib<name>.a to let people know that these are not
16922 # typical AIX shared libraries.
16923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16925 # We preserve .a as extension for shared libraries through AIX4.2
16926 # and later when we are not doing run time linking.
16927 library_names_spec
='${libname}${release}.a $libname.a'
16928 soname_spec
='${libname}${release}${shared_ext}$major'
16930 shlibpath_var
=LIBPATH
16937 # Since July 2007 AmigaOS4 officially supports .so libraries.
16938 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16939 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942 library_names_spec
='$libname.ixlibrary $libname.a'
16943 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16944 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'
16950 library_names_spec
='${libname}${shared_ext}'
16951 dynamic_linker
="$host_os ld.so"
16952 shlibpath_var
=LIBRARY_PATH
16958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16959 soname_spec
='${libname}${release}${shared_ext}$major'
16960 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16961 shlibpath_var
=LD_LIBRARY_PATH
16962 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16963 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16964 # the default ld.so.conf also contains /usr/contrib/lib and
16965 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16966 # libtool to hard-code these into programs
16969 cygwin
* | mingw
* | pw32
* | cegcc
*)
16970 version_type
=windows
16975 case $GCC,$host_os in
16976 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16977 library_names_spec
='$libname.dll.a'
16978 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16979 postinstall_cmds
='base_file=`basename \${file}`~
16980 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16981 dldir=$destdir/`dirname \$dlpath`~
16982 test -d \$dldir || mkdir -p \$dldir~
16983 $install_prog $dir/$dlname \$dldir/$dlname~
16984 chmod a+x \$dldir/$dlname~
16985 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16986 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16988 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16989 dlpath=$dir/\$dldll~
16991 shlibpath_overrides_runpath
=yes
16995 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16996 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16998 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17001 # MinGW DLLs use traditional 'lib' prefix
17002 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17005 # pw32 DLLs use 'pw' prefix rather than 'lib'
17006 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17012 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17015 dynamic_linker
='Win32 ld.exe'
17016 # FIXME: first we should search . and the directory the executable is in
17020 darwin
* | rhapsody
*)
17021 dynamic_linker
="$host_os dyld"
17022 version_type
=darwin
17025 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17026 soname_spec
='${libname}${release}${major}$shared_ext'
17027 shlibpath_overrides_runpath
=yes
17028 shlibpath_var
=DYLD_LIBRARY_PATH
17029 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17031 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17032 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17039 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17040 soname_spec
='${libname}${release}${shared_ext}$major'
17041 shlibpath_var
=LD_LIBRARY_PATH
17044 freebsd
* | dragonfly
*)
17045 # DragonFly does not have aout. When/if they implement a new
17046 # versioning mechanism, adjust this.
17047 if test -x /usr
/bin
/objformat
; then
17048 objformat
=`/usr/bin/objformat`
17051 freebsd
[23].
*) objformat
=aout
;;
17052 *) objformat
=elf
;;
17055 version_type
=freebsd-
$objformat
17056 case $version_type in
17058 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17063 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17067 shlibpath_var
=LD_LIBRARY_PATH
17070 shlibpath_overrides_runpath
=yes
17072 freebsd3.
[01]* | freebsdelf3.
[01]*)
17073 shlibpath_overrides_runpath
=yes
17074 hardcode_into_libs
=yes
17076 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17077 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17078 shlibpath_overrides_runpath
=no
17079 hardcode_into_libs
=yes
17081 *) # from 4.6 on, and DragonFly
17082 shlibpath_overrides_runpath
=yes
17083 hardcode_into_libs
=yes
17092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17093 soname_spec
='${libname}${release}${shared_ext}$major'
17094 shlibpath_var
=LD_LIBRARY_PATH
17095 hardcode_into_libs
=yes
17102 dynamic_linker
="$host_os runtime_loader"
17103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17104 soname_spec
='${libname}${release}${shared_ext}$major'
17105 shlibpath_var
=LIBRARY_PATH
17106 shlibpath_overrides_runpath
=yes
17107 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17108 hardcode_into_libs
=yes
17111 hpux9
* | hpux10
* | hpux11
*)
17112 # Give a soname corresponding to the major version so that dld.sl refuses to
17113 # link against other versions.
17120 hardcode_into_libs
=yes
17121 dynamic_linker
="$host_os dld.so"
17122 shlibpath_var
=LD_LIBRARY_PATH
17123 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17124 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125 soname_spec
='${libname}${release}${shared_ext}$major'
17126 if test "X$HPUX_IA64_MODE" = X32
; then
17127 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17129 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17131 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17135 hardcode_into_libs
=yes
17136 dynamic_linker
="$host_os dld.sl"
17137 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17138 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17139 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17140 soname_spec
='${libname}${release}${shared_ext}$major'
17141 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17142 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17146 dynamic_linker
="$host_os dld.sl"
17147 shlibpath_var
=SHLIB_PATH
17148 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150 soname_spec
='${libname}${release}${shared_ext}$major'
17153 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17154 postinstall_cmds
='chmod 555 $lib'
17155 # or fails outright, so override atomically:
17156 install_override_mode
=555
17163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17164 soname_spec
='${libname}${release}${shared_ext}$major'
17165 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17166 shlibpath_var
=LD_LIBRARY_PATH
17167 shlibpath_overrides_runpath
=no
17168 hardcode_into_libs
=yes
17171 irix5
* | irix6
* | nonstopux
*)
17173 nonstopux
*) version_type
=nonstopux
;;
17175 if test "$lt_cv_prog_gnu_ld" = yes; then
17183 soname_spec
='${libname}${release}${shared_ext}$major'
17184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17186 irix5
* | nonstopux
*)
17187 libsuff
= shlibsuff
=
17190 case $LD in # libtool.m4 will add one of these switches to LD
17191 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17192 libsuff
= shlibsuff
= libmagic
=32-bit;;
17193 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17194 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17195 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17196 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17197 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17201 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17202 shlibpath_overrides_runpath
=no
17203 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17204 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17205 hardcode_into_libs
=yes
17208 # No shared lib support for Linux oldld, aout, or coff.
17209 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17213 # This must be Linux ELF.
17214 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219 soname_spec
='${libname}${release}${shared_ext}$major'
17220 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17221 shlibpath_var
=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath
=no
17224 # Some binutils ld are patched to set DT_RUNPATH
17225 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17226 $as_echo_n "(cached) " >&6
17228 lt_cv_shlibpath_overrides_runpath
=no
17229 save_LDFLAGS
=$LDFLAGS
17230 save_libdir
=$libdir
17231 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17232 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17234 /* end confdefs.h. */
17244 if ac_fn_c_try_link
"$LINENO"; then :
17245 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17246 lt_cv_shlibpath_overrides_runpath
=yes
17249 rm -f core conftest.err conftest.
$ac_objext \
17250 conftest
$ac_exeext conftest.
$ac_ext
17251 LDFLAGS
=$save_LDFLAGS
17252 libdir
=$save_libdir
17256 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17258 # This implies no fast_install, which is unacceptable.
17259 # Some rework will be needed to allow for fast_install
17260 # before this can be enabled.
17261 hardcode_into_libs
=yes
17263 # Append ld.so.conf contents to the search path
17264 if test -f /etc
/ld.so.conf
; then
17265 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' ' '`
17266 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17269 # We used to test for /lib/ld.so.1 and disable shared libraries on
17270 # powerpc, because MkLinux only supported shared libraries with the
17271 # GNU dynamic linker. Since this was broken with cross compilers,
17272 # most powerpc-linux boxes support dynamic linking these days and
17273 # people can always --disable-shared, the test was removed, and we
17274 # assume the GNU/Linux dynamic linker is in use.
17275 dynamic_linker
='GNU/Linux ld.so'
17282 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17284 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17285 dynamic_linker
='NetBSD (a.out) ld.so'
17287 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17288 soname_spec
='${libname}${release}${shared_ext}$major'
17289 dynamic_linker
='NetBSD ld.elf_so'
17291 shlibpath_var
=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath
=yes
17293 hardcode_into_libs
=yes
17298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17299 shlibpath_var
=LD_LIBRARY_PATH
17300 shlibpath_overrides_runpath
=yes
17307 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17308 soname_spec
='${libname}${release}${shared_ext}$major'
17309 shlibpath_var
=LD_LIBRARY_PATH
17310 shlibpath_overrides_runpath
=no
17311 hardcode_into_libs
=yes
17312 dynamic_linker
='ldqnx.so'
17317 sys_lib_dlsearch_path_spec
="/usr/lib"
17319 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17321 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17322 *) need_version
=no
;;
17324 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17325 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17326 shlibpath_var
=LD_LIBRARY_PATH
17327 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17329 openbsd2.
[89] | openbsd2.
[89].
*)
17330 shlibpath_overrides_runpath
=no
17333 shlibpath_overrides_runpath
=yes
17337 shlibpath_overrides_runpath
=yes
17342 libname_spec
='$name'
17345 library_names_spec
='$libname${shared_ext} $libname.a'
17346 dynamic_linker
='OS/2 ld.exe'
17347 shlibpath_var
=LIBPATH
17350 osf3
* | osf4
* | osf5
*)
17354 soname_spec
='${libname}${release}${shared_ext}$major'
17355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356 shlibpath_var
=LD_LIBRARY_PATH
17357 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17358 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370 soname_spec
='${libname}${release}${shared_ext}$major'
17371 shlibpath_var
=LD_LIBRARY_PATH
17372 shlibpath_overrides_runpath
=yes
17373 hardcode_into_libs
=yes
17374 # ldd complains unless libraries are executable
17375 postinstall_cmds
='chmod +x $lib'
17380 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17381 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17382 shlibpath_var
=LD_LIBRARY_PATH
17383 shlibpath_overrides_runpath
=yes
17384 if test "$with_gnu_ld" = yes; then
17392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393 soname_spec
='${libname}${release}${shared_ext}$major'
17394 shlibpath_var
=LD_LIBRARY_PATH
17395 case $host_vendor in
17397 shlibpath_overrides_runpath
=no
17399 runpath_var
=LD_RUN_PATH
17407 shlibpath_overrides_runpath
=no
17408 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17414 if test -d /usr
/nec
;then
17416 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17417 soname_spec
='$libname${shared_ext}.$major'
17418 shlibpath_var
=LD_LIBRARY_PATH
17422 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17423 version_type
=freebsd-elf
17426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17427 soname_spec
='${libname}${release}${shared_ext}$major'
17428 shlibpath_var
=LD_LIBRARY_PATH
17429 shlibpath_overrides_runpath
=yes
17430 hardcode_into_libs
=yes
17431 if test "$with_gnu_ld" = yes; then
17432 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17434 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17437 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17441 sys_lib_dlsearch_path_spec
='/usr/lib'
17445 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17449 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450 shlibpath_var
=LD_LIBRARY_PATH
17451 shlibpath_overrides_runpath
=no
17452 hardcode_into_libs
=yes
17457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17458 soname_spec
='${libname}${release}${shared_ext}$major'
17459 shlibpath_var
=LD_LIBRARY_PATH
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17467 $as_echo "$dynamic_linker" >&6; }
17468 test "$dynamic_linker" = no
&& can_build_shared
=no
17470 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17471 if test "$GCC" = yes; then
17472 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17475 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17476 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17478 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17479 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17574 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17576 if test -n "$hardcode_libdir_flag_spec" ||
17577 test -n "$runpath_var" ||
17578 test "X$hardcode_automatic" = "Xyes" ; then
17580 # We can hardcode non-existent directories.
17581 if test "$hardcode_direct" != no
&&
17582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17583 # have to relink, otherwise we might link with an installed library
17584 # when we should be linking with a yet-to-be-installed one
17585 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17586 test "$hardcode_minus_L" != no
; then
17587 # Linking always hardcodes the temporary library directory.
17588 hardcode_action
=relink
17590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17591 hardcode_action
=immediate
17594 # We cannot hardcode anything, or else we can only hardcode existing
17596 hardcode_action
=unsupported
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17599 $as_echo "$hardcode_action" >&6; }
17601 if test "$hardcode_action" = relink ||
17602 test "$inherit_rpath" = yes; then
17603 # Fast installation is not supported
17604 enable_fast_install
=no
17605 elif test "$shlibpath_overrides_runpath" = yes ||
17606 test "$enable_shared" = no
; then
17607 # Fast installation is not necessary
17608 enable_fast_install
=needless
17616 if test "x$enable_dlopen" != xyes
; then
17617 enable_dlopen
=unknown
17618 enable_dlopen_self
=unknown
17619 enable_dlopen_self_static
=unknown
17626 lt_cv_dlopen
="load_add_on"
17628 lt_cv_dlopen_self
=yes
17631 mingw
* | pw32
* | cegcc
*)
17632 lt_cv_dlopen
="LoadLibrary"
17637 lt_cv_dlopen
="dlopen"
17642 # if libdl is installed we need to link against it
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17644 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17645 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17646 $as_echo_n "(cached) " >&6
17648 ac_check_lib_save_LIBS
=$LIBS
17650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17651 /* end confdefs.h. */
17653 /* Override any GCC internal prototype to avoid an error.
17654 Use char because int might match the return type of a GCC
17655 builtin and then its argument prototype would still apply. */
17668 if ac_fn_c_try_link
"$LINENO"; then :
17669 ac_cv_lib_dl_dlopen
=yes
17671 ac_cv_lib_dl_dlopen
=no
17673 rm -f core conftest.err conftest.
$ac_objext \
17674 conftest
$ac_exeext conftest.
$ac_ext
17675 LIBS
=$ac_check_lib_save_LIBS
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17678 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17679 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17680 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17683 lt_cv_dlopen
="dyld"
17685 lt_cv_dlopen_self
=yes
17692 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17693 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17694 lt_cv_dlopen
="shl_load"
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17697 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17698 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17699 $as_echo_n "(cached) " >&6
17701 ac_check_lib_save_LIBS
=$LIBS
17703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17704 /* end confdefs.h. */
17706 /* Override any GCC internal prototype to avoid an error.
17707 Use char because int might match the return type of a GCC
17708 builtin and then its argument prototype would still apply. */
17716 return shl_load ();
17721 if ac_fn_c_try_link
"$LINENO"; then :
17722 ac_cv_lib_dld_shl_load
=yes
17724 ac_cv_lib_dld_shl_load
=no
17726 rm -f core conftest.err conftest.
$ac_objext \
17727 conftest
$ac_exeext conftest.
$ac_ext
17728 LIBS
=$ac_check_lib_save_LIBS
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17731 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17732 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17733 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17735 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17736 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17737 lt_cv_dlopen
="dlopen"
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17741 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17742 $as_echo_n "(cached) " >&6
17744 ac_check_lib_save_LIBS
=$LIBS
17746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17749 /* Override any GCC internal prototype to avoid an error.
17750 Use char because int might match the return type of a GCC
17751 builtin and then its argument prototype would still apply. */
17764 if ac_fn_c_try_link
"$LINENO"; then :
17765 ac_cv_lib_dl_dlopen
=yes
17767 ac_cv_lib_dl_dlopen
=no
17769 rm -f core conftest.err conftest.
$ac_objext \
17770 conftest
$ac_exeext conftest.
$ac_ext
17771 LIBS
=$ac_check_lib_save_LIBS
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17774 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17775 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17776 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17779 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17780 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17781 $as_echo_n "(cached) " >&6
17783 ac_check_lib_save_LIBS
=$LIBS
17784 LIBS
="-lsvld $LIBS"
17785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h. */
17788 /* Override any GCC internal prototype to avoid an error.
17789 Use char because int might match the return type of a GCC
17790 builtin and then its argument prototype would still apply. */
17803 if ac_fn_c_try_link
"$LINENO"; then :
17804 ac_cv_lib_svld_dlopen
=yes
17806 ac_cv_lib_svld_dlopen
=no
17808 rm -f core conftest.err conftest.
$ac_objext \
17809 conftest
$ac_exeext conftest.
$ac_ext
17810 LIBS
=$ac_check_lib_save_LIBS
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17813 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17814 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17815 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17818 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17819 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17820 $as_echo_n "(cached) " >&6
17822 ac_check_lib_save_LIBS
=$LIBS
17824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17825 /* end confdefs.h. */
17827 /* Override any GCC internal prototype to avoid an error.
17828 Use char because int might match the return type of a GCC
17829 builtin and then its argument prototype would still apply. */
17837 return dld_link ();
17842 if ac_fn_c_try_link
"$LINENO"; then :
17843 ac_cv_lib_dld_dld_link
=yes
17845 ac_cv_lib_dld_dld_link
=no
17847 rm -f core conftest.err conftest.
$ac_objext \
17848 conftest
$ac_exeext conftest.
$ac_ext
17849 LIBS
=$ac_check_lib_save_LIBS
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17852 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17853 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17854 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17875 if test "x$lt_cv_dlopen" != xno
; then
17881 case $lt_cv_dlopen in
17883 save_CPPFLAGS
="$CPPFLAGS"
17884 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17886 save_LDFLAGS
="$LDFLAGS"
17887 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17890 LIBS
="$lt_cv_dlopen_libs $LIBS"
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17893 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17894 if test "${lt_cv_dlopen_self+set}" = set; then :
17895 $as_echo_n "(cached) " >&6
17897 if test "$cross_compiling" = yes; then :
17898 lt_cv_dlopen_self
=cross
17900 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17901 lt_status
=$lt_dlunknown
17902 cat > conftest.
$ac_ext <<_LT_EOF
17903 #line 17903 "configure"
17904 #include "confdefs.h"
17913 # define LT_DLGLOBAL RTLD_GLOBAL
17916 # define LT_DLGLOBAL DL_GLOBAL
17918 # define LT_DLGLOBAL 0
17922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17923 find out it does not work in some platform. */
17924 #ifndef LT_DLLAZY_OR_NOW
17926 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17929 # define LT_DLLAZY_OR_NOW DL_LAZY
17932 # define LT_DLLAZY_OR_NOW RTLD_NOW
17935 # define LT_DLLAZY_OR_NOW DL_NOW
17937 # define LT_DLLAZY_OR_NOW 0
17944 /* When -fvisbility=hidden is used, assume the code has been annotated
17945 correspondingly for the symbols needed. */
17946 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17947 void fnord () __attribute__((visibility("default")));
17950 void fnord () { int i=42; }
17953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17954 int status = $lt_dlunknown;
17958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17961 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17962 else puts (dlerror ());
17964 /* dlclose (self); */
17972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17973 (eval $ac_link) 2>&5
17975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17976 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17977 (.
/conftest
; exit; ) >&5 2>/dev
/null
17979 case x
$lt_status in
17980 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17981 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17982 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17985 # compilation failed
17986 lt_cv_dlopen_self
=no
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17994 $as_echo "$lt_cv_dlopen_self" >&6; }
17996 if test "x$lt_cv_dlopen_self" = xyes
; then
17997 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17999 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18000 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18001 $as_echo_n "(cached) " >&6
18003 if test "$cross_compiling" = yes; then :
18004 lt_cv_dlopen_self_static
=cross
18006 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18007 lt_status
=$lt_dlunknown
18008 cat > conftest.
$ac_ext <<_LT_EOF
18009 #line 18009 "configure"
18010 #include "confdefs.h"
18019 # define LT_DLGLOBAL RTLD_GLOBAL
18022 # define LT_DLGLOBAL DL_GLOBAL
18024 # define LT_DLGLOBAL 0
18028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18029 find out it does not work in some platform. */
18030 #ifndef LT_DLLAZY_OR_NOW
18032 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18035 # define LT_DLLAZY_OR_NOW DL_LAZY
18038 # define LT_DLLAZY_OR_NOW RTLD_NOW
18041 # define LT_DLLAZY_OR_NOW DL_NOW
18043 # define LT_DLLAZY_OR_NOW 0
18050 /* When -fvisbility=hidden is used, assume the code has been annotated
18051 correspondingly for the symbols needed. */
18052 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18053 void fnord () __attribute__((visibility("default")));
18056 void fnord () { int i=42; }
18059 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18060 int status = $lt_dlunknown;
18064 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18067 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18068 else puts (dlerror ());
18070 /* dlclose (self); */
18078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18079 (eval $ac_link) 2>&5
18081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18082 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18083 (.
/conftest
; exit; ) >&5 2>/dev
/null
18085 case x
$lt_status in
18086 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18087 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18088 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18091 # compilation failed
18092 lt_cv_dlopen_self_static
=no
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18100 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18103 CPPFLAGS
="$save_CPPFLAGS"
18104 LDFLAGS
="$save_LDFLAGS"
18109 case $lt_cv_dlopen_self in
18110 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18111 *) enable_dlopen_self
=unknown
;;
18114 case $lt_cv_dlopen_self_static in
18115 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18116 *) enable_dlopen_self_static
=unknown
;;
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18139 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18140 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18141 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18142 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18144 $as_echo "yes" >&6; }
18146 # FIXME - insert some real tests, host_os isn't really good enough
18149 if test -n "$STRIP" ; then
18150 striplib
="$STRIP -x"
18151 old_striplib
="$STRIP -S"
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18153 $as_echo "yes" >&6; }
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18156 $as_echo "no" >&6; }
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18161 $as_echo "no" >&6; }
18177 # Report which library types will actually be built
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18179 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18181 $as_echo "$can_build_shared" >&6; }
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18184 $as_echo_n "checking whether to build shared libraries... " >&6; }
18185 test "$can_build_shared" = "no" && enable_shared
=no
18187 # On AIX, shared libraries and static libraries use the same namespace, and
18188 # are all built from PIC.
18191 test "$enable_shared" = yes && enable_static
=no
18192 if test -n "$RANLIB"; then
18193 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18194 postinstall_cmds
='$RANLIB $lib'
18199 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18200 test "$enable_shared" = yes && enable_static
=no
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18205 $as_echo "$enable_shared" >&6; }
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18208 $as_echo_n "checking whether to build static libraries... " >&6; }
18209 # Make sure either enable_shared or enable_static is yes.
18210 test "$enable_shared" = yes || enable_static
=yes
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18212 $as_echo "$enable_static" >&6; }
18219 ac_cpp
='$CPP $CPPFLAGS'
18220 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18221 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18222 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18226 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18227 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18228 (test "X$CXX" != "Xg++"))) ; then
18230 ac_cpp
='$CXXCPP $CPPFLAGS'
18231 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18232 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18233 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18235 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18236 if test -z "$CXXCPP"; then
18237 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18238 $as_echo_n "(cached) " >&6
18240 # Double quotes because CXXCPP needs to be expanded
18241 for CXXCPP
in "$CXX -E" "/lib/cpp"
18243 ac_preproc_ok
=false
18244 for ac_cxx_preproc_warn_flag
in '' yes
18246 # Use a header file that comes with gcc, so configuring glibc
18247 # with a fresh cross-compiler works.
18248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18249 # <limits.h> exists even on freestanding compilers.
18250 # On the NeXT, cc -E runs the code through the compiler's parser,
18251 # not just through cpp. "Syntax error" is here to catch this case.
18252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18255 # include <limits.h>
18257 # include <assert.h>
18261 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18264 # Broken: fails on valid input.
18267 rm -f conftest.err conftest.
$ac_ext
18269 # OK, works on sane cases. Now check whether nonexistent headers
18270 # can be detected and how.
18271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18272 /* end confdefs.h. */
18273 #include <ac_nonexistent.h>
18275 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18276 # Broken: success on invalid input.
18279 # Passes both tests.
18283 rm -f conftest.err conftest.
$ac_ext
18286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18287 rm -f conftest.err conftest.
$ac_ext
18288 if $ac_preproc_ok; then :
18293 ac_cv_prog_CXXCPP
=$CXXCPP
18296 CXXCPP
=$ac_cv_prog_CXXCPP
18298 ac_cv_prog_CXXCPP
=$CXXCPP
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18301 $as_echo "$CXXCPP" >&6; }
18302 ac_preproc_ok
=false
18303 for ac_cxx_preproc_warn_flag
in '' yes
18305 # Use a header file that comes with gcc, so configuring glibc
18306 # with a fresh cross-compiler works.
18307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18308 # <limits.h> exists even on freestanding compilers.
18309 # On the NeXT, cc -E runs the code through the compiler's parser,
18310 # not just through cpp. "Syntax error" is here to catch this case.
18311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h. */
18314 # include <limits.h>
18316 # include <assert.h>
18320 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18323 # Broken: fails on valid input.
18326 rm -f conftest.err conftest.
$ac_ext
18328 # OK, works on sane cases. Now check whether nonexistent headers
18329 # can be detected and how.
18330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18331 /* end confdefs.h. */
18332 #include <ac_nonexistent.h>
18334 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18335 # Broken: success on invalid input.
18338 # Passes both tests.
18342 rm -f conftest.err conftest.
$ac_ext
18345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18346 rm -f conftest.err conftest.
$ac_ext
18347 if $ac_preproc_ok; then :
18350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18352 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18353 See \`config.log' for more details." "$LINENO" 5; }
18357 ac_cpp
='$CPP $CPPFLAGS'
18358 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18359 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18360 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18363 _lt_caught_CXX_error
=yes
18367 ac_cpp
='$CXXCPP $CPPFLAGS'
18368 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18369 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18370 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18372 archive_cmds_need_lc_CXX
=no
18373 allow_undefined_flag_CXX
=
18374 always_export_symbols_CXX
=no
18375 archive_expsym_cmds_CXX
=
18376 compiler_needs_object_CXX
=no
18377 export_dynamic_flag_spec_CXX
=
18378 hardcode_direct_CXX
=no
18379 hardcode_direct_absolute_CXX
=no
18380 hardcode_libdir_flag_spec_CXX
=
18381 hardcode_libdir_flag_spec_ld_CXX
=
18382 hardcode_libdir_separator_CXX
=
18383 hardcode_minus_L_CXX
=no
18384 hardcode_shlibpath_var_CXX
=unsupported
18385 hardcode_automatic_CXX
=no
18386 inherit_rpath_CXX
=no
18388 module_expsym_cmds_CXX
=
18389 link_all_deplibs_CXX
=unknown
18390 old_archive_cmds_CXX
=$old_archive_cmds
18391 reload_flag_CXX
=$reload_flag
18392 reload_cmds_CXX
=$reload_cmds
18393 no_undefined_flag_CXX
=
18394 whole_archive_flag_spec_CXX
=
18395 enable_shared_with_static_runtimes_CXX
=no
18397 # Source file extension for C++ test sources.
18400 # Object file extension for compiled C++ test sources.
18404 # No sense in running all these tests if we already determined that
18405 # the CXX compiler isn't working. Some variables (like enable_shared)
18406 # are currently assumed to apply to all compilers on this platform,
18407 # and will be corrupted by setting them based on a non-working compiler.
18408 if test "$_lt_caught_CXX_error" != yes; then
18409 # Code to be used in simple compile tests
18410 lt_simple_compile_test_code
="int some_variable = 0;"
18412 # Code to be used in simple link tests
18413 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18415 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18422 # If no C compiler was specified, use CC.
18425 # If no C compiler flags were specified, use CFLAGS.
18426 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18428 # Allow CC to be a program name with arguments.
18432 # save warnings/boilerplate of simple test code
18433 ac_outfile
=conftest.
$ac_objext
18434 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18435 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18436 _lt_compiler_boilerplate
=`cat conftest.err`
18439 ac_outfile
=conftest.
$ac_objext
18440 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18441 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18442 _lt_linker_boilerplate
=`cat conftest.err`
18446 # Allow CC to be a program name with arguments.
18451 lt_save_with_gnu_ld
=$with_gnu_ld
18452 lt_save_path_LD
=$lt_cv_path_LD
18453 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18454 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18456 $as_unset lt_cv_prog_gnu_ld
18458 if test -n "${lt_cv_path_LDCXX+set}"; then
18459 lt_cv_path_LD
=$lt_cv_path_LDCXX
18461 $as_unset lt_cv_path_LD
18463 test -z "${LDCXX+set}" || LD
=$LDCXX
18467 for cc_temp
in $compiler""; do
18469 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18470 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18475 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18478 if test -n "$compiler"; then
18479 # We don't want -fno-exception when compiling C++ code, so set the
18480 # no_builtin_flag separately
18481 if test "$GXX" = yes; then
18482 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18484 lt_prog_compiler_no_builtin_flag_CXX
=
18487 if test "$GXX" = yes; then
18488 # Set up default GNU C++ configuration
18492 # Check whether --with-gnu-ld was given.
18493 if test "${with_gnu_ld+set}" = set; then :
18494 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18500 if test "$GCC" = yes; then
18501 # Check if gcc -print-prog-name=ld gives a path.
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18503 $as_echo_n "checking for ld used by $CC... " >&6; }
18506 # gcc leaves a trailing carriage return which upsets mingw
18507 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18509 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18512 # Accept absolute paths.
18514 re_direlt
='/[^/][^/]*/\.\./'
18515 # Canonicalize the pathname of ld
18516 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18517 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18518 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18520 test -z "$LD" && LD
="$ac_prog"
18523 # If it fails, then pretend we aren't using GCC.
18527 # If it is relative, then search for the first ld in PATH.
18528 with_gnu_ld
=unknown
18531 elif test "$with_gnu_ld" = yes; then
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18533 $as_echo_n "checking for GNU ld... " >&6; }
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18536 $as_echo_n "checking for non-GNU ld... " >&6; }
18538 if test "${lt_cv_path_LD+set}" = set; then :
18539 $as_echo_n "(cached) " >&6
18541 if test -z "$LD"; then
18542 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18543 for ac_dir
in $PATH; do
18545 test -z "$ac_dir" && ac_dir
=.
18546 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18547 lt_cv_path_LD
="$ac_dir/$ac_prog"
18548 # Check to see if the program is GNU ld. I'd rather use --version,
18549 # but apparently some variants of GNU ld only accept -v.
18550 # Break only if it was the GNU/non-GNU ld that we prefer.
18551 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18552 *GNU
* |
*'with BFD'*)
18553 test "$with_gnu_ld" != no
&& break
18556 test "$with_gnu_ld" != yes && break
18563 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18567 LD
="$lt_cv_path_LD"
18568 if test -n "$LD"; then
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18570 $as_echo "$LD" >&6; }
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18573 $as_echo "no" >&6; }
18575 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18577 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18578 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18579 $as_echo_n "(cached) " >&6
18581 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18582 case `$LD -v 2>&1 </dev/null` in
18583 *GNU
* |
*'with BFD'*)
18584 lt_cv_prog_gnu_ld
=yes
18587 lt_cv_prog_gnu_ld
=no
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18592 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18593 with_gnu_ld
=$lt_cv_prog_gnu_ld
18601 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18602 # archiving commands below assume that GNU ld is being used.
18603 if test "$with_gnu_ld" = yes; then
18604 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18605 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'
18607 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18608 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18610 # If archive_cmds runs LD, not CC, wlarc should be empty
18611 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18612 # investigate it a little bit more. (MM)
18615 # ancient GNU ld didn't support --whole-archive et. al.
18616 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18617 $GREP 'no-whole-archive' > /dev
/null
; then
18618 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18620 whole_archive_flag_spec_CXX
=
18626 # A generic and very simple default shared library creation
18627 # command for GNU C++ for the case where it uses the native
18628 # linker, instead of GNU ld. If possible, this setting should
18629 # overridden to take advantage of the native linker features on
18630 # the platform it is being used on.
18631 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18634 # Commands to make compiler produce verbose output that lists
18635 # what "hidden" libraries, object files and flags are used when
18636 # linking a shared library.
18637 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18645 # PORTME: fill in a description of your system's C++ link characteristics
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18647 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18651 # FIXME: insert proper C++ library support
18655 if test "$host_cpu" = ia64
; then
18656 # On IA64, the linker does run time linking by default, so we don't
18657 # have to do anything special.
18658 aix_use_runtimelinking
=no
18659 exp_sym_flag
='-Bexport'
18662 aix_use_runtimelinking
=no
18664 # Test if we are trying to use run time linking or normal
18665 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18666 # need to do runtime linking.
18667 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18668 for ld_flag
in $LDFLAGS; do
18671 aix_use_runtimelinking
=yes
18679 exp_sym_flag
='-bexport'
18680 no_entry_flag
='-bnoentry'
18683 # When large executables or shared objects are built, AIX ld can
18684 # have problems creating the table of contents. If linking a library
18685 # or program results in "error TOC overflow" add -mminimal-toc to
18686 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18687 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18689 archive_cmds_CXX
=''
18690 hardcode_direct_CXX
=yes
18691 hardcode_direct_absolute_CXX
=yes
18692 hardcode_libdir_separator_CXX
=':'
18693 link_all_deplibs_CXX
=yes
18694 file_list_spec_CXX
='${wl}-f,'
18696 if test "$GXX" = yes; then
18697 case $host_os in aix4.
[012]|aix4.
[012].
*)
18698 # We only want to do this on AIX 4.2 and lower, the check
18699 # below for broken collect2 doesn't work under 4.3+
18700 collect2name
=`${CC} -print-prog-name=collect2`
18701 if test -f "$collect2name" &&
18702 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18704 # We have reworked collect2
18707 # We have old collect2
18708 hardcode_direct_CXX
=unsupported
18709 # It fails to find uninstalled libraries when the uninstalled
18710 # path is not listed in the libpath. Setting hardcode_minus_L
18711 # to unsupported forces relinking
18712 hardcode_minus_L_CXX
=yes
18713 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18714 hardcode_libdir_separator_CXX
=
18717 shared_flag
='-shared'
18718 if test "$aix_use_runtimelinking" = yes; then
18719 shared_flag
="$shared_flag "'${wl}-G'
18723 if test "$host_cpu" = ia64
; then
18724 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18725 # chokes on -Wl,-G. The following line is correct:
18728 if test "$aix_use_runtimelinking" = yes; then
18729 shared_flag
='${wl}-G'
18731 shared_flag
='${wl}-bM:SRE'
18736 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18737 # It seems that -bexpall does not export symbols beginning with
18738 # underscore (_), so it is better to generate a list of symbols to
18740 always_export_symbols_CXX
=yes
18741 if test "$aix_use_runtimelinking" = yes; then
18742 # Warning - without using the other runtime loading flags (-brtl),
18743 # -berok will link without error, but may produce a broken library.
18744 allow_undefined_flag_CXX
='-berok'
18745 # Determine the default libpath from the value encoded in an empty
18747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18748 /* end confdefs.h. */
18758 if ac_fn_cxx_try_link
"$LINENO"; then :
18760 lt_aix_libpath_sed
='
18761 /Import File Strings/,/^$/ {
18767 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18768 # Check for a 64-bit object if we didn't find anything.
18769 if test -z "$aix_libpath"; then
18770 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18773 rm -f core conftest.err conftest.
$ac_objext \
18774 conftest
$ac_exeext conftest.
$ac_ext
18775 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18777 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18779 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"
18781 if test "$host_cpu" = ia64
; then
18782 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18783 allow_undefined_flag_CXX
="-z nodefs"
18784 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"
18786 # Determine the default libpath from the value encoded in an
18787 # empty executable.
18788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18799 if ac_fn_cxx_try_link
"$LINENO"; then :
18801 lt_aix_libpath_sed
='
18802 /Import File Strings/,/^$/ {
18808 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18809 # Check for a 64-bit object if we didn't find anything.
18810 if test -z "$aix_libpath"; then
18811 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18814 rm -f core conftest.err conftest.
$ac_objext \
18815 conftest
$ac_exeext conftest.
$ac_ext
18816 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18818 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18819 # Warning - without using the other run time loading flags,
18820 # -berok will link without error, but may produce a broken library.
18821 no_undefined_flag_CXX
=' ${wl}-bernotok'
18822 allow_undefined_flag_CXX
=' ${wl}-berok'
18823 if test "$with_gnu_ld" = yes; then
18824 # We only use this code for GNU lds that support --whole-archive.
18825 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18827 # Exported symbols can be pulled into shared objects from archives
18828 whole_archive_flag_spec_CXX
='$convenience'
18830 archive_cmds_need_lc_CXX
=yes
18831 # This is similar to how AIX traditionally builds its shared
18833 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'
18839 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18840 allow_undefined_flag_CXX
=unsupported
18841 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18842 # support --undefined. This deserves some investigation. FIXME
18843 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18850 case $cc_basename in
18852 # FIXME: insert proper C++ library support
18858 cygwin
* | mingw
* | pw32
* | cegcc
*)
18859 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18860 # as there is no search path for DLLs.
18861 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18862 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18863 allow_undefined_flag_CXX
=unsupported
18864 always_export_symbols_CXX
=no
18865 enable_shared_with_static_runtimes_CXX
=yes
18867 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18868 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'
18869 # If the export-symbols file already is a .def file (1st line
18870 # is EXPORTS), use it as is; otherwise, prepend...
18871 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18872 cp $export_symbols $output_objdir/$soname.def;
18874 echo EXPORTS > $output_objdir/$soname.def;
18875 cat $export_symbols >> $output_objdir/$soname.def;
18877 $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'
18882 darwin
* | rhapsody
*)
18885 archive_cmds_need_lc_CXX
=no
18886 hardcode_direct_CXX
=no
18887 hardcode_automatic_CXX
=yes
18888 hardcode_shlibpath_var_CXX
=unsupported
18889 if test "$lt_cv_ld_force_load" = "yes"; then
18890 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\"`'
18892 whole_archive_flag_spec_CXX
=''
18894 link_all_deplibs_CXX
=yes
18895 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18896 case $cc_basename in
18897 ifort
*) _lt_dar_can_shared
=yes ;;
18898 *) _lt_dar_can_shared
=$GCC ;;
18900 if test "$_lt_dar_can_shared" = "yes"; then
18901 output_verbose_link_cmd
=func_echo_all
18902 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}"
18903 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18904 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}"
18905 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}"
18906 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18907 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}"
18908 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}"
18918 case $cc_basename in
18920 # FIXME: insert proper C++ library support
18924 # Green Hills C++ Compiler
18925 # FIXME: insert proper C++ library support
18929 # FIXME: insert proper C++ library support
18936 # C++ shared libraries reported to be fairly broken before
18942 archive_cmds_need_lc_CXX
=no
18945 freebsd
* | dragonfly
*)
18946 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18955 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18956 link_all_deplibs_CXX
=yes
18960 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18961 hardcode_libdir_separator_CXX
=:
18962 export_dynamic_flag_spec_CXX
='${wl}-E'
18963 hardcode_direct_CXX
=yes
18964 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18965 # but as the default
18966 # location of the library.
18968 case $cc_basename in
18970 # FIXME: insert proper C++ library support
18974 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'
18975 # Commands to make compiler produce verbose output that lists
18976 # what "hidden" libraries, object files and flags are used when
18977 # linking a shared library.
18979 # There doesn't appear to be a way to prevent this compiler from
18980 # explicitly linking system object files so we need to strip them
18981 # from the output so that they don't get included in the library
18983 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"'
18986 if test "$GXX" = yes; then
18987 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'
18989 # FIXME: insert proper C++ library support
18997 if test $with_gnu_ld = no
; then
18998 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18999 hardcode_libdir_separator_CXX
=:
19005 export_dynamic_flag_spec_CXX
='${wl}-E'
19011 hardcode_direct_CXX
=no
19012 hardcode_shlibpath_var_CXX
=no
19015 hardcode_direct_CXX
=yes
19016 hardcode_direct_absolute_CXX
=yes
19017 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19018 # but as the default
19019 # location of the library.
19023 case $cc_basename in
19025 # FIXME: insert proper C++ library support
19031 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19034 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19037 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19040 # Commands to make compiler produce verbose output that lists
19041 # what "hidden" libraries, object files and flags are used when
19042 # linking a shared library.
19044 # There doesn't appear to be a way to prevent this compiler from
19045 # explicitly linking system object files so we need to strip them
19046 # from the output so that they don't get included in the library
19048 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"'
19051 if test "$GXX" = yes; then
19052 if test $with_gnu_ld = no
; then
19055 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19058 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19061 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'
19066 # FIXME: insert proper C++ library support
19074 hardcode_direct_CXX
=no
19075 hardcode_shlibpath_var_CXX
=no
19076 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19077 export_dynamic_flag_spec_CXX
='${wl}-E'
19078 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19079 # Instead, shared libraries are loaded at an image base (0x10000000 by
19080 # default) and relocated if they conflict, which is a slow very memory
19081 # consuming and fragmenting process. To avoid this, we pick a random,
19082 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19083 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19084 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'
19085 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'
19088 case $cc_basename in
19091 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'
19093 # Archives containing C++ object files must be created using
19094 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19095 # necessary to make sure instantiated templates are included
19097 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19100 if test "$GXX" = yes; then
19101 if test "$with_gnu_ld" = no
; then
19102 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'
19104 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'
19107 link_all_deplibs_CXX
=yes
19110 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19111 hardcode_libdir_separator_CXX
=:
19112 inherit_rpath_CXX
=yes
19115 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19116 case $cc_basename in
19118 # Kuck and Associates, Inc. (KAI) C++ Compiler
19120 # KCC will only create a shared library if the output file
19121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19122 # to its proper name (with version) after linking.
19123 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'
19124 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'
19125 # Commands to make compiler produce verbose output that lists
19126 # what "hidden" libraries, object files and flags are used when
19127 # linking a shared library.
19129 # There doesn't appear to be a way to prevent this compiler from
19130 # explicitly linking system object files so we need to strip them
19131 # from the output so that they don't get included in the library
19133 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"'
19135 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19136 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19138 # Archives containing C++ object files must be created using
19139 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19140 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19145 # version 8.0 and above of icpc choke on multiply defined symbols
19146 # if we add $predep_objects and $postdep_objects, however 7.1 and
19147 # earlier do not add the objects themselves.
19148 case `$CC -V 2>&1` in
19150 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19151 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'
19153 *) # Version 8.0 or newer
19156 ia64
*) tmp_idyn
=' -i_dynamic';;
19158 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19159 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'
19162 archive_cmds_need_lc_CXX
=no
19163 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19164 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19165 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19168 # Portland Group C++ compiler
19170 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19171 prelink_cmds_CXX
='tpldir=Template.dir~
19173 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19174 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19175 old_archive_cmds_CXX
='tpldir=Template.dir~
19177 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19178 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19180 archive_cmds_CXX
='tpldir=Template.dir~
19182 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19183 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19184 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19186 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19187 $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'
19189 *) # Version 6 and above use weak symbols
19190 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19191 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'
19195 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19196 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19197 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'
19201 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19202 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'
19204 runpath_var
=LD_RUN_PATH
19205 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19206 hardcode_libdir_separator_CXX
=:
19208 # Commands to make compiler produce verbose output that lists
19209 # what "hidden" libraries, object files and flags are used when
19210 # linking a shared library.
19212 # There doesn't appear to be a way to prevent this compiler from
19213 # explicitly linking system object files so we need to strip them
19214 # from the output so that they don't get included in the library
19216 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'
19218 xl
* | mpixl
* | bgxl
*)
19219 # IBM XL 8.0 on PPC, with GNU ld
19220 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19221 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19222 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19223 if test "x$supports_anon_versioning" = xyes
; then
19224 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19226 echo "local: *; };" >> $output_objdir/$libname.ver~
19227 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19231 case `$CC -V 2>&1 | sed 5q` in
19234 no_undefined_flag_CXX
=' -zdefs'
19235 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19236 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'
19237 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19238 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'
19239 compiler_needs_object_CXX
=yes
19241 # Not sure whether something based on
19242 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19244 output_verbose_link_cmd
='func_echo_all'
19246 # Archives containing C++ object files must be created using
19247 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19248 # necessary to make sure instantiated templates are included
19250 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19258 # FIXME: insert proper C++ library support
19263 # FIXME: insert proper C++ library support
19268 case $cc_basename in
19270 # FIXME: insert proper C++ library support
19274 # FIXME: insert proper C++ library support
19281 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19282 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19284 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19285 hardcode_direct_CXX
=yes
19286 hardcode_shlibpath_var_CXX
=no
19288 # Workaround some broken pre-1.5 toolchains
19289 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19297 # C++ shared libraries are fairly broken
19302 if test -f /usr
/libexec
/ld.so
; then
19303 hardcode_direct_CXX
=yes
19304 hardcode_shlibpath_var_CXX
=no
19305 hardcode_direct_absolute_CXX
=yes
19306 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19307 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19309 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19310 export_dynamic_flag_spec_CXX
='${wl}-E'
19311 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19313 output_verbose_link_cmd
=func_echo_all
19319 osf3
* | osf4
* | osf5
*)
19320 case $cc_basename in
19322 # Kuck and Associates, Inc. (KAI) C++ Compiler
19324 # KCC will only create a shared library if the output file
19325 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19326 # to its proper name (with version) after linking.
19327 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'
19329 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19330 hardcode_libdir_separator_CXX
=:
19332 # Archives containing C++ object files must be created using
19333 # the KAI C++ compiler.
19335 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19336 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19340 # Rational C++ 2.4.1
19341 # FIXME: insert proper C++ library support
19347 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19348 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'
19349 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19352 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19353 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'
19354 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19355 echo "-hidden">> $lib.exp~
19356 $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~
19358 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19362 hardcode_libdir_separator_CXX
=:
19364 # Commands to make compiler produce verbose output that lists
19365 # what "hidden" libraries, object files and flags are used when
19366 # linking a shared library.
19368 # There doesn't appear to be a way to prevent this compiler from
19369 # explicitly linking system object files so we need to strip them
19370 # from the output so that they don't get included in the library
19372 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"'
19375 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19376 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19379 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'
19382 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'
19386 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19387 hardcode_libdir_separator_CXX
=:
19389 # Commands to make compiler produce verbose output that lists
19390 # what "hidden" libraries, object files and flags are used when
19391 # linking a shared library.
19392 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19395 # FIXME: insert proper C++ library support
19403 # FIXME: insert proper C++ library support
19408 case $cc_basename in
19411 # FIXME: insert proper C++ library support
19416 # FIXME: insert proper C++ library support
19420 # FIXME: insert proper C++ library support
19427 case $cc_basename in
19429 # Sun C++ 4.2, 5.x and Centerline C++
19430 archive_cmds_need_lc_CXX
=yes
19431 no_undefined_flag_CXX
=' -zdefs'
19432 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19433 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19434 $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'
19436 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19437 hardcode_shlibpath_var_CXX
=no
19439 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19441 # The compiler driver will combine and reorder linker options,
19442 # but understands `-z linker_flag'.
19443 # Supported since Solaris 2.6 (maybe 2.5.1?)
19444 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19447 link_all_deplibs_CXX
=yes
19449 output_verbose_link_cmd
='func_echo_all'
19451 # Archives containing C++ object files must be created using
19452 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19453 # necessary to make sure instantiated templates are included
19455 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19458 # Green Hills C++ Compiler
19459 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19461 # The C++ compiler must be used to create the archive.
19462 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19465 # GNU C++ compiler with Solaris linker
19466 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19467 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19468 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19469 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19470 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19471 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19473 # Commands to make compiler produce verbose output that lists
19474 # what "hidden" libraries, object files and flags are used when
19475 # linking a shared library.
19476 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19478 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19480 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19481 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19482 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19484 # Commands to make compiler produce verbose output that lists
19485 # what "hidden" libraries, object files and flags are used when
19486 # linking a shared library.
19487 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19490 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19492 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19494 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19502 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19503 no_undefined_flag_CXX
='${wl}-z,text'
19504 archive_cmds_need_lc_CXX
=no
19505 hardcode_shlibpath_var_CXX
=no
19506 runpath_var
='LD_RUN_PATH'
19508 case $cc_basename in
19510 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19511 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19514 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19515 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19520 sysv5
* | sco3.2v5
* | sco5v6
*)
19521 # Note: We can NOT use -z defs as we might desire, because we do not
19522 # link with -lc, and that would cause any symbols used from libc to
19523 # always be unresolved, which means just about no library would
19524 # ever link correctly. If we're not using GNU ld we use -z text
19525 # though, which does catch some bad symbols but isn't as heavy-handed
19527 no_undefined_flag_CXX
='${wl}-z,text'
19528 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19529 archive_cmds_need_lc_CXX
=no
19530 hardcode_shlibpath_var_CXX
=no
19531 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19532 hardcode_libdir_separator_CXX
=':'
19533 link_all_deplibs_CXX
=yes
19534 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19535 runpath_var
='LD_RUN_PATH'
19537 case $cc_basename in
19539 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19540 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19541 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19542 '"$old_archive_cmds_CXX"
19543 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19544 '"$reload_cmds_CXX"
19547 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19548 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19554 case $cc_basename in
19556 # NonStop-UX NCC 3.20
19557 # FIXME: insert proper C++ library support
19561 # FIXME: insert proper C++ library support
19568 # FIXME: insert proper C++ library support
19573 # FIXME: insert proper C++ library support
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19579 $as_echo "$ld_shlibs_CXX" >&6; }
19580 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19586 ## There is no encapsulation within the following macros, do not change
19587 ## the running order or otherwise move them around unless you know exactly
19588 ## what you are doing...
19589 # Dependencies to place before and after the object being linked:
19590 predep_objects_CXX
=
19591 postdep_objects_CXX
=
19594 compiler_lib_search_path_CXX
=
19596 cat > conftest.
$ac_ext <<_LT_EOF
19600 Foo (void) { a = 0; }
19606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19607 (eval $ac_compile) 2>&5
19609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19610 test $ac_status = 0; }; then
19611 # Parse the compiler output and extract the necessary
19612 # objects, libraries and library flags.
19614 # Sentinel used to keep track of whether or not we are before
19615 # the conftest object file.
19616 pre_test_object_deps_done
=no
19618 for p
in `eval "$output_verbose_link_cmd"`; do
19622 # Some compilers place space between "-{L,R}" and the path.
19623 # Remove the space.
19624 if test $p = "-L" ||
19625 test $p = "-R"; then
19632 if test "$pre_test_object_deps_done" = no
; then
19635 # Internal compiler library paths should come after those
19636 # provided the user. The postdeps already come after the
19637 # user supplied libs so there is no need to process them.
19638 if test -z "$compiler_lib_search_path_CXX"; then
19639 compiler_lib_search_path_CXX
="${prev}${p}"
19641 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19644 # The "-l" case would never come before the object being
19645 # linked, so don't bother handling this case.
19648 if test -z "$postdeps_CXX"; then
19649 postdeps_CXX
="${prev}${p}"
19651 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19657 # This assumes that the test object file only shows up
19658 # once in the compiler output.
19659 if test "$p" = "conftest.$objext"; then
19660 pre_test_object_deps_done
=yes
19664 if test "$pre_test_object_deps_done" = no
; then
19665 if test -z "$predep_objects_CXX"; then
19666 predep_objects_CXX
="$p"
19668 predep_objects_CXX
="$predep_objects_CXX $p"
19671 if test -z "$postdep_objects_CXX"; then
19672 postdep_objects_CXX
="$p"
19674 postdep_objects_CXX
="$postdep_objects_CXX $p"
19679 *) ;; # Ignore the rest.
19687 echo "libtool.m4: error: problem compiling CXX test program"
19690 $RM -f confest.
$objext
19692 # PORTME: override above test on systems where it is broken
19695 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19696 # hack all around it, let's just trust "g++" to DTRT.
19697 predep_objects_CXX
=
19698 postdep_objects_CXX
=
19703 case `$CC -V 2>&1 | sed 5q` in
19707 # The more standards-conforming stlport4 library is
19708 # incompatible with the Cstd library. Avoid specifying
19709 # it if it's in CXXFLAGS. Ignore libCrun as
19710 # -library=stlport4 depends on it.
19711 case " $CXX $CXXFLAGS " in
19712 *" -library=stlport4 "*)
19713 solaris_use_stlport4
=yes
19717 if test "$solaris_use_stlport4" != yes; then
19718 postdeps_CXX
='-library=Cstd -library=Crun'
19725 case $cc_basename in
19727 # The more standards-conforming stlport4 library is
19728 # incompatible with the Cstd library. Avoid specifying
19729 # it if it's in CXXFLAGS. Ignore libCrun as
19730 # -library=stlport4 depends on it.
19731 case " $CXX $CXXFLAGS " in
19732 *" -library=stlport4 "*)
19733 solaris_use_stlport4
=yes
19737 # Adding this requires a known-good setup of shared libraries for
19738 # Sun compiler versions before 5.6, else PIC objects from an old
19739 # archive will be linked into the output, leading to subtle bugs.
19740 if test "$solaris_use_stlport4" != yes; then
19741 postdeps_CXX
='-library=Cstd -library=Crun'
19749 case " $postdeps_CXX " in
19750 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19752 compiler_lib_search_dirs_CXX
=
19753 if test -n "${compiler_lib_search_path_CXX}"; then
19754 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19787 lt_prog_compiler_wl_CXX
=
19788 lt_prog_compiler_pic_CXX
=
19789 lt_prog_compiler_static_CXX
=
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19792 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19794 # C++ specific cases for pic, static, wl, etc.
19795 if test "$GXX" = yes; then
19796 lt_prog_compiler_wl_CXX
='-Wl,'
19797 lt_prog_compiler_static_CXX
='-static'
19801 # All AIX code is PIC.
19802 if test "$host_cpu" = ia64
; then
19803 # AIX 5 now supports IA64 processor
19804 lt_prog_compiler_static_CXX
='-Bstatic'
19806 lt_prog_compiler_pic_CXX
='-fPIC'
19812 # see comment about AmigaOS4 .so support
19813 lt_prog_compiler_pic_CXX
='-fPIC'
19816 # FIXME: we need at least 68020 code to build shared libraries, but
19817 # adding the `-m68020' flag to GCC prevents building anything better,
19819 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19824 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19825 # PIC is the default for these OSes.
19827 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19828 # This hack is so that the source file can tell whether it is being
19829 # built for inclusion in a dll (and should export symbols for example).
19830 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19831 # (--disable-auto-import) libraries
19832 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19834 darwin
* | rhapsody
*)
19835 # PIC is the default on this platform
19836 # Common symbols not allowed in MH_DYLIB files
19837 lt_prog_compiler_pic_CXX
='-fno-common'
19840 # DJGPP does not support shared libraries at all
19841 lt_prog_compiler_pic_CXX
=
19844 # PIC is the default for Haiku.
19845 # The "-static" flag exists, but is broken.
19846 lt_prog_compiler_static_CXX
=
19849 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19850 # Instead, we relocate shared libraries at runtime.
19853 if test -d /usr
/nec
; then
19854 lt_prog_compiler_pic_CXX
=-Kconform_pic
19858 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19859 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19860 # sets the default TLS model and affects inlining.
19865 lt_prog_compiler_pic_CXX
='-fPIC'
19870 # QNX uses GNU C++, but need to define -shared option too, otherwise
19871 # it will coredump.
19872 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19875 lt_prog_compiler_pic_CXX
='-fPIC'
19881 # All AIX code is PIC.
19882 if test "$host_cpu" = ia64
; then
19883 # AIX 5 now supports IA64 processor
19884 lt_prog_compiler_static_CXX
='-Bstatic'
19886 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19890 case $cc_basename in
19892 # Green Hills C++ Compiler
19893 # _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"
19898 case $cc_basename in
19900 lt_prog_compiler_pic_CXX
='-KPIC'
19903 # Green Hills C++ Compiler
19904 lt_prog_compiler_pic_CXX
='-pic'
19910 freebsd
* | dragonfly
*)
19911 # FreeBSD uses GNU C++
19913 hpux9
* | hpux10
* | hpux11
*)
19914 case $cc_basename in
19916 lt_prog_compiler_wl_CXX
='-Wl,'
19917 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19918 if test "$host_cpu" != ia64
; then
19919 lt_prog_compiler_pic_CXX
='+Z'
19923 lt_prog_compiler_wl_CXX
='-Wl,'
19924 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19930 lt_prog_compiler_pic_CXX
='+Z'
19939 # This is c89, which is MS Visual C++ (no shared libs)
19940 # Anyone wants to do a port?
19942 irix5
* | irix6
* | nonstopux
*)
19943 case $cc_basename in
19945 lt_prog_compiler_wl_CXX
='-Wl,'
19946 lt_prog_compiler_static_CXX
='-non_shared'
19947 # CC pic flag -KPIC is the default.
19953 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19954 case $cc_basename in
19957 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19958 lt_prog_compiler_pic_CXX
='-fPIC'
19961 # old Intel C++ for x86_64 which still supported -KPIC.
19962 lt_prog_compiler_wl_CXX
='-Wl,'
19963 lt_prog_compiler_pic_CXX
='-KPIC'
19964 lt_prog_compiler_static_CXX
='-static'
19967 # Intel C++, used to be incompatible with GCC.
19968 # ICC 10 doesn't accept -KPIC any more.
19969 lt_prog_compiler_wl_CXX
='-Wl,'
19970 lt_prog_compiler_pic_CXX
='-fPIC'
19971 lt_prog_compiler_static_CXX
='-static'
19974 # Portland Group C++ compiler
19975 lt_prog_compiler_wl_CXX
='-Wl,'
19976 lt_prog_compiler_pic_CXX
='-fpic'
19977 lt_prog_compiler_static_CXX
='-Bstatic'
19981 # Make sure the PIC flag is empty. It appears that all Alpha
19982 # Linux and Compaq Tru64 Unix objects are PIC.
19983 lt_prog_compiler_pic_CXX
=
19984 lt_prog_compiler_static_CXX
='-non_shared'
19986 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19987 # IBM XL 8.0, 9.0 on PPC and BlueGene
19988 lt_prog_compiler_wl_CXX
='-Wl,'
19989 lt_prog_compiler_pic_CXX
='-qpic'
19990 lt_prog_compiler_static_CXX
='-qstaticlink'
19993 case `$CC -V 2>&1 | sed 5q` in
19996 lt_prog_compiler_pic_CXX
='-KPIC'
19997 lt_prog_compiler_static_CXX
='-Bstatic'
19998 lt_prog_compiler_wl_CXX
='-Qoption ld '
20009 case $cc_basename in
20011 lt_prog_compiler_pic_CXX
='-W c,exportall'
20020 # QNX uses GNU C++, but need to define -shared option too, otherwise
20021 # it will coredump.
20022 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20024 osf3
* | osf4
* | osf5
*)
20025 case $cc_basename in
20027 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20030 # Rational C++ 2.4.1
20031 lt_prog_compiler_pic_CXX
='-pic'
20034 # Digital/Compaq C++
20035 lt_prog_compiler_wl_CXX
='-Wl,'
20036 # Make sure the PIC flag is empty. It appears that all Alpha
20037 # Linux and Compaq Tru64 Unix objects are PIC.
20038 lt_prog_compiler_pic_CXX
=
20039 lt_prog_compiler_static_CXX
='-non_shared'
20048 case $cc_basename in
20050 # Sun C++ 4.2, 5.x and Centerline C++
20051 lt_prog_compiler_pic_CXX
='-KPIC'
20052 lt_prog_compiler_static_CXX
='-Bstatic'
20053 lt_prog_compiler_wl_CXX
='-Qoption ld '
20056 # Green Hills C++ Compiler
20057 lt_prog_compiler_pic_CXX
='-PIC'
20064 case $cc_basename in
20067 lt_prog_compiler_pic_CXX
='-pic'
20068 lt_prog_compiler_static_CXX
='-Bstatic'
20072 lt_prog_compiler_pic_CXX
='-pic'
20078 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20079 case $cc_basename in
20081 lt_prog_compiler_wl_CXX
='-Wl,'
20082 lt_prog_compiler_pic_CXX
='-KPIC'
20083 lt_prog_compiler_static_CXX
='-Bstatic'
20088 case $cc_basename in
20090 # NonStop-UX NCC 3.20
20091 lt_prog_compiler_pic_CXX
='-KPIC'
20100 lt_prog_compiler_can_build_shared_CXX
=no
20106 # For platforms which do not support PIC, -DPIC is meaningless:
20108 lt_prog_compiler_pic_CXX
=
20111 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20115 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20120 # Check to make sure the PIC flag actually works.
20122 if test -n "$lt_prog_compiler_pic_CXX"; then
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20124 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20125 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20126 $as_echo_n "(cached) " >&6
20128 lt_cv_prog_compiler_pic_works_CXX
=no
20129 ac_outfile
=conftest.
$ac_objext
20130 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20131 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20132 # Insert the option either (1) after the last *FLAGS variable, or
20133 # (2) before a word containing "conftest.", or (3) at the end.
20134 # Note that $ac_compile itself does not contain backslashes and begins
20135 # with a dollar sign (not a hyphen), so the echo should work correctly.
20136 # The option is referenced via a variable to avoid confusing sed.
20137 lt_compile
=`echo "$ac_compile" | $SED \
20138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20140 -e 's:$: $lt_compiler_flag:'`
20141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20142 (eval "$lt_compile" 2>conftest.err
)
20144 cat conftest.err
>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 if (exit $ac_status) && test -s "$ac_outfile"; then
20147 # The compiler can only warn and ignore the option if not recognized
20148 # So say no if there are warnings other than the usual output.
20149 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20150 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20151 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20152 lt_cv_prog_compiler_pic_works_CXX
=yes
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20159 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20161 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20162 case $lt_prog_compiler_pic_CXX in
20164 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20167 lt_prog_compiler_pic_CXX
=
20168 lt_prog_compiler_can_build_shared_CXX
=no
20176 # Check to make sure the static flag actually works.
20178 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20180 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20181 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20182 $as_echo_n "(cached) " >&6
20184 lt_cv_prog_compiler_static_works_CXX
=no
20185 save_LDFLAGS
="$LDFLAGS"
20186 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20187 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20188 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20189 # The linker can only warn and ignore the option if not recognized
20190 # So say no if there are warnings
20191 if test -s conftest.err
; then
20192 # Append any errors to the config.log.
20193 cat conftest.err
1>&5
20194 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20195 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20196 if diff conftest.exp conftest.er2
>/dev
/null
; then
20197 lt_cv_prog_compiler_static_works_CXX
=yes
20200 lt_cv_prog_compiler_static_works_CXX
=yes
20204 LDFLAGS
="$save_LDFLAGS"
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20208 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20210 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20213 lt_prog_compiler_static_CXX
=
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20220 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20221 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20222 $as_echo_n "(cached) " >&6
20224 lt_cv_prog_compiler_c_o_CXX
=no
20225 $RM -r conftest
2>/dev
/null
20229 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20231 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20232 # Insert the option either (1) after the last *FLAGS variable, or
20233 # (2) before a word containing "conftest.", or (3) at the end.
20234 # Note that $ac_compile itself does not contain backslashes and begins
20235 # with a dollar sign (not a hyphen), so the echo should work correctly.
20236 lt_compile
=`echo "$ac_compile" | $SED \
20237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20239 -e 's:$: $lt_compiler_flag:'`
20240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20241 (eval "$lt_compile" 2>out
/conftest.err
)
20243 cat out
/conftest.err
>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20247 # The compiler can only warn and ignore the option if not recognized
20248 # So say no if there are warnings
20249 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20250 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20251 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20252 lt_cv_prog_compiler_c_o_CXX
=yes
20257 # SGI C++ compiler will create directory out/ii_files/ for
20258 # template instantiation
20259 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20260 $RM out
/* && rmdir out
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20267 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20272 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20273 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20274 $as_echo_n "(cached) " >&6
20276 lt_cv_prog_compiler_c_o_CXX
=no
20277 $RM -r conftest
2>/dev
/null
20281 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20283 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20284 # Insert the option either (1) after the last *FLAGS variable, or
20285 # (2) before a word containing "conftest.", or (3) at the end.
20286 # Note that $ac_compile itself does not contain backslashes and begins
20287 # with a dollar sign (not a hyphen), so the echo should work correctly.
20288 lt_compile
=`echo "$ac_compile" | $SED \
20289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20291 -e 's:$: $lt_compiler_flag:'`
20292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20293 (eval "$lt_compile" 2>out
/conftest.err
)
20295 cat out
/conftest.err
>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20299 # The compiler can only warn and ignore the option if not recognized
20300 # So say no if there are warnings
20301 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20302 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20303 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20304 lt_cv_prog_compiler_c_o_CXX
=yes
20309 # SGI C++ compiler will create directory out/ii_files/ for
20310 # template instantiation
20311 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20312 $RM out
/* && rmdir out
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20319 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20324 hard_links
="nottested"
20325 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20326 # do not overwrite the value of need_locks provided by the user
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20328 $as_echo_n "checking if we can lock with hard links... " >&6; }
20331 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20333 ln conftest.a conftest.b
2>&5 || hard_links
=no
20334 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20336 $as_echo "$hard_links" >&6; }
20337 if test "$hard_links" = no
; then
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20339 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20349 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20351 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20354 # If we're using GNU nm, then we don't want the "-C" option.
20355 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20356 # Also, AIX nm treats weak defined symbols like other global defined
20357 # symbols, whereas GNU nm marks them as "W".
20358 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20359 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'
20361 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'
20365 export_symbols_cmds_CXX
="$ltdll_cmds"
20367 cygwin
* | mingw
* | cegcc
*)
20368 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'
20371 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20374 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20377 $as_echo "$ld_shlibs_CXX" >&6; }
20378 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20380 with_gnu_ld_CXX
=$with_gnu_ld
20388 # Do we need to explicitly link libc?
20390 case "x$archive_cmds_need_lc_CXX" in
20392 # Assume -lc should be added
20393 archive_cmds_need_lc_CXX
=yes
20395 if test "$enable_shared" = yes && test "$GCC" = yes; then
20396 case $archive_cmds_CXX in
20398 # FIXME: we may have to deal with multi-command sequences.
20401 # Test whether the compiler implicitly links with -lc since on some
20402 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20403 # to ld, don't add -lc before -lgcc.
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20405 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20406 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20407 $as_echo_n "(cached) " >&6
20410 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20413 (eval $ac_compile) 2>&5
20415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20416 test $ac_status = 0; } 2>conftest.err
; then
20419 libobjs
=conftest.
$ac_objext
20421 wl
=$lt_prog_compiler_wl_CXX
20422 pic_flag
=$lt_prog_compiler_pic_CXX
20428 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20429 allow_undefined_flag_CXX
=
20430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20431 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20434 test $ac_status = 0; }
20436 lt_cv_archive_cmds_need_lc_CXX
=no
20438 lt_cv_archive_cmds_need_lc_CXX
=yes
20440 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20442 cat conftest.err
1>&5
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20448 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20449 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20520 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20522 library_names_spec
=
20523 libname_spec
='lib$name'
20527 postuninstall_cmds
=
20531 shlibpath_overrides_runpath
=unknown
20533 dynamic_linker
="$host_os ld.so"
20534 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20535 need_lib_prefix
=unknown
20536 hardcode_into_libs
=no
20538 # when you set need_version to no, make sure it does not cause -set_version
20539 # flags to be left without arguments
20540 need_version
=unknown
20545 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20546 shlibpath_var
=LIBPATH
20548 # AIX 3 has no versioning support, so we append a major version to the name.
20549 soname_spec
='${libname}${release}${shared_ext}$major'
20556 hardcode_into_libs
=yes
20557 if test "$host_cpu" = ia64
; then
20558 # AIX 5 supports IA64
20559 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20560 shlibpath_var
=LD_LIBRARY_PATH
20562 # With GCC up to 2.95.x, collect2 would create an import file
20563 # for dependence libraries. The import file would start with
20564 # the line `#! .'. This would cause the generated library to
20565 # depend on `.', always an invalid library. This was fixed in
20566 # development snapshots of GCC prior to 3.0.
20568 aix4 | aix4.
[01] | aix4.
[01].
*)
20569 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20571 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20574 can_build_shared
=no
20578 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20579 # soname into executable. Probably we can add versioning support to
20580 # collect2, so additional links can be useful in future.
20581 if test "$aix_use_runtimelinking" = yes; then
20582 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20583 # instead of lib<name>.a to let people know that these are not
20584 # typical AIX shared libraries.
20585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20587 # We preserve .a as extension for shared libraries through AIX4.2
20588 # and later when we are not doing run time linking.
20589 library_names_spec
='${libname}${release}.a $libname.a'
20590 soname_spec
='${libname}${release}${shared_ext}$major'
20592 shlibpath_var
=LIBPATH
20599 # Since July 2007 AmigaOS4 officially supports .so libraries.
20600 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20604 library_names_spec
='$libname.ixlibrary $libname.a'
20605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20606 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'
20612 library_names_spec
='${libname}${shared_ext}'
20613 dynamic_linker
="$host_os ld.so"
20614 shlibpath_var
=LIBRARY_PATH
20620 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20621 soname_spec
='${libname}${release}${shared_ext}$major'
20622 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20623 shlibpath_var
=LD_LIBRARY_PATH
20624 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20625 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20626 # the default ld.so.conf also contains /usr/contrib/lib and
20627 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20628 # libtool to hard-code these into programs
20631 cygwin
* | mingw
* | pw32
* | cegcc
*)
20632 version_type
=windows
20637 case $GCC,$host_os in
20638 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20639 library_names_spec
='$libname.dll.a'
20640 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20641 postinstall_cmds
='base_file=`basename \${file}`~
20642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20643 dldir=$destdir/`dirname \$dlpath`~
20644 test -d \$dldir || mkdir -p \$dldir~
20645 $install_prog $dir/$dlname \$dldir/$dlname~
20646 chmod a+x \$dldir/$dlname~
20647 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20648 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20650 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20651 dlpath=$dir/\$dldll~
20653 shlibpath_overrides_runpath
=yes
20657 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20658 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20662 # MinGW DLLs use traditional 'lib' prefix
20663 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20666 # pw32 DLLs use 'pw' prefix rather than 'lib'
20667 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20673 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20676 dynamic_linker
='Win32 ld.exe'
20677 # FIXME: first we should search . and the directory the executable is in
20681 darwin
* | rhapsody
*)
20682 dynamic_linker
="$host_os dyld"
20683 version_type
=darwin
20686 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20687 soname_spec
='${libname}${release}${major}$shared_ext'
20688 shlibpath_overrides_runpath
=yes
20689 shlibpath_var
=DYLD_LIBRARY_PATH
20690 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20692 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20699 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20700 soname_spec
='${libname}${release}${shared_ext}$major'
20701 shlibpath_var
=LD_LIBRARY_PATH
20704 freebsd
* | dragonfly
*)
20705 # DragonFly does not have aout. When/if they implement a new
20706 # versioning mechanism, adjust this.
20707 if test -x /usr
/bin
/objformat
; then
20708 objformat
=`/usr/bin/objformat`
20711 freebsd
[23].
*) objformat
=aout
;;
20712 *) objformat
=elf
;;
20715 version_type
=freebsd-
$objformat
20716 case $version_type in
20718 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20723 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20727 shlibpath_var
=LD_LIBRARY_PATH
20730 shlibpath_overrides_runpath
=yes
20732 freebsd3.
[01]* | freebsdelf3.
[01]*)
20733 shlibpath_overrides_runpath
=yes
20734 hardcode_into_libs
=yes
20736 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20737 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20738 shlibpath_overrides_runpath
=no
20739 hardcode_into_libs
=yes
20741 *) # from 4.6 on, and DragonFly
20742 shlibpath_overrides_runpath
=yes
20743 hardcode_into_libs
=yes
20752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20753 soname_spec
='${libname}${release}${shared_ext}$major'
20754 shlibpath_var
=LD_LIBRARY_PATH
20755 hardcode_into_libs
=yes
20762 dynamic_linker
="$host_os runtime_loader"
20763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20764 soname_spec
='${libname}${release}${shared_ext}$major'
20765 shlibpath_var
=LIBRARY_PATH
20766 shlibpath_overrides_runpath
=yes
20767 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20768 hardcode_into_libs
=yes
20771 hpux9
* | hpux10
* | hpux11
*)
20772 # Give a soname corresponding to the major version so that dld.sl refuses to
20773 # link against other versions.
20780 hardcode_into_libs
=yes
20781 dynamic_linker
="$host_os dld.so"
20782 shlibpath_var
=LD_LIBRARY_PATH
20783 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20785 soname_spec
='${libname}${release}${shared_ext}$major'
20786 if test "X$HPUX_IA64_MODE" = X32
; then
20787 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20789 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20791 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20795 hardcode_into_libs
=yes
20796 dynamic_linker
="$host_os dld.sl"
20797 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20798 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20799 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20800 soname_spec
='${libname}${release}${shared_ext}$major'
20801 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20802 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20806 dynamic_linker
="$host_os dld.sl"
20807 shlibpath_var
=SHLIB_PATH
20808 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20810 soname_spec
='${libname}${release}${shared_ext}$major'
20813 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20814 postinstall_cmds
='chmod 555 $lib'
20815 # or fails outright, so override atomically:
20816 install_override_mode
=555
20823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20824 soname_spec
='${libname}${release}${shared_ext}$major'
20825 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20826 shlibpath_var
=LD_LIBRARY_PATH
20827 shlibpath_overrides_runpath
=no
20828 hardcode_into_libs
=yes
20831 irix5
* | irix6
* | nonstopux
*)
20833 nonstopux
*) version_type
=nonstopux
;;
20835 if test "$lt_cv_prog_gnu_ld" = yes; then
20843 soname_spec
='${libname}${release}${shared_ext}$major'
20844 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20846 irix5
* | nonstopux
*)
20847 libsuff
= shlibsuff
=
20850 case $LD in # libtool.m4 will add one of these switches to LD
20851 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20852 libsuff
= shlibsuff
= libmagic
=32-bit;;
20853 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20854 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20855 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20856 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20857 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20861 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20862 shlibpath_overrides_runpath
=no
20863 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20864 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20865 hardcode_into_libs
=yes
20868 # No shared lib support for Linux oldld, aout, or coff.
20869 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20873 # This must be Linux ELF.
20874 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20879 soname_spec
='${libname}${release}${shared_ext}$major'
20880 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20881 shlibpath_var
=LD_LIBRARY_PATH
20882 shlibpath_overrides_runpath
=no
20884 # Some binutils ld are patched to set DT_RUNPATH
20885 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20886 $as_echo_n "(cached) " >&6
20888 lt_cv_shlibpath_overrides_runpath
=no
20889 save_LDFLAGS
=$LDFLAGS
20890 save_libdir
=$libdir
20891 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20892 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20894 /* end confdefs.h. */
20904 if ac_fn_cxx_try_link
"$LINENO"; then :
20905 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20906 lt_cv_shlibpath_overrides_runpath
=yes
20909 rm -f core conftest.err conftest.
$ac_objext \
20910 conftest
$ac_exeext conftest.
$ac_ext
20911 LDFLAGS
=$save_LDFLAGS
20912 libdir
=$save_libdir
20916 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20918 # This implies no fast_install, which is unacceptable.
20919 # Some rework will be needed to allow for fast_install
20920 # before this can be enabled.
20921 hardcode_into_libs
=yes
20923 # Append ld.so.conf contents to the search path
20924 if test -f /etc
/ld.so.conf
; then
20925 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' ' '`
20926 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20929 # We used to test for /lib/ld.so.1 and disable shared libraries on
20930 # powerpc, because MkLinux only supported shared libraries with the
20931 # GNU dynamic linker. Since this was broken with cross compilers,
20932 # most powerpc-linux boxes support dynamic linking these days and
20933 # people can always --disable-shared, the test was removed, and we
20934 # assume the GNU/Linux dynamic linker is in use.
20935 dynamic_linker
='GNU/Linux ld.so'
20942 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20944 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20945 dynamic_linker
='NetBSD (a.out) ld.so'
20947 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20948 soname_spec
='${libname}${release}${shared_ext}$major'
20949 dynamic_linker
='NetBSD ld.elf_so'
20951 shlibpath_var
=LD_LIBRARY_PATH
20952 shlibpath_overrides_runpath
=yes
20953 hardcode_into_libs
=yes
20958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20959 shlibpath_var
=LD_LIBRARY_PATH
20960 shlibpath_overrides_runpath
=yes
20967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20968 soname_spec
='${libname}${release}${shared_ext}$major'
20969 shlibpath_var
=LD_LIBRARY_PATH
20970 shlibpath_overrides_runpath
=no
20971 hardcode_into_libs
=yes
20972 dynamic_linker
='ldqnx.so'
20977 sys_lib_dlsearch_path_spec
="/usr/lib"
20979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20981 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20982 *) need_version
=no
;;
20984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20985 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20986 shlibpath_var
=LD_LIBRARY_PATH
20987 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20989 openbsd2.
[89] | openbsd2.
[89].
*)
20990 shlibpath_overrides_runpath
=no
20993 shlibpath_overrides_runpath
=yes
20997 shlibpath_overrides_runpath
=yes
21002 libname_spec
='$name'
21005 library_names_spec
='$libname${shared_ext} $libname.a'
21006 dynamic_linker
='OS/2 ld.exe'
21007 shlibpath_var
=LIBPATH
21010 osf3
* | osf4
* | osf5
*)
21014 soname_spec
='${libname}${release}${shared_ext}$major'
21015 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21016 shlibpath_var
=LD_LIBRARY_PATH
21017 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21018 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030 soname_spec
='${libname}${release}${shared_ext}$major'
21031 shlibpath_var
=LD_LIBRARY_PATH
21032 shlibpath_overrides_runpath
=yes
21033 hardcode_into_libs
=yes
21034 # ldd complains unless libraries are executable
21035 postinstall_cmds
='chmod +x $lib'
21040 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21041 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21042 shlibpath_var
=LD_LIBRARY_PATH
21043 shlibpath_overrides_runpath
=yes
21044 if test "$with_gnu_ld" = yes; then
21052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21053 soname_spec
='${libname}${release}${shared_ext}$major'
21054 shlibpath_var
=LD_LIBRARY_PATH
21055 case $host_vendor in
21057 shlibpath_overrides_runpath
=no
21059 runpath_var
=LD_RUN_PATH
21067 shlibpath_overrides_runpath
=no
21068 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21074 if test -d /usr
/nec
;then
21076 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21077 soname_spec
='$libname${shared_ext}.$major'
21078 shlibpath_var
=LD_LIBRARY_PATH
21082 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21083 version_type
=freebsd-elf
21086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21087 soname_spec
='${libname}${release}${shared_ext}$major'
21088 shlibpath_var
=LD_LIBRARY_PATH
21089 shlibpath_overrides_runpath
=yes
21090 hardcode_into_libs
=yes
21091 if test "$with_gnu_ld" = yes; then
21092 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21094 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21097 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21101 sys_lib_dlsearch_path_spec
='/usr/lib'
21105 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21109 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21110 shlibpath_var
=LD_LIBRARY_PATH
21111 shlibpath_overrides_runpath
=no
21112 hardcode_into_libs
=yes
21117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21118 soname_spec
='${libname}${release}${shared_ext}$major'
21119 shlibpath_var
=LD_LIBRARY_PATH
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21127 $as_echo "$dynamic_linker" >&6; }
21128 test "$dynamic_linker" = no
&& can_build_shared
=no
21130 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21131 if test "$GCC" = yes; then
21132 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21135 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21136 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21138 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21139 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21180 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21181 hardcode_action_CXX
=
21182 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21183 test -n "$runpath_var_CXX" ||
21184 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21186 # We can hardcode non-existent directories.
21187 if test "$hardcode_direct_CXX" != no
&&
21188 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21189 # have to relink, otherwise we might link with an installed library
21190 # when we should be linking with a yet-to-be-installed one
21191 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21192 test "$hardcode_minus_L_CXX" != no
; then
21193 # Linking always hardcodes the temporary library directory.
21194 hardcode_action_CXX
=relink
21196 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21197 hardcode_action_CXX
=immediate
21200 # We cannot hardcode anything, or else we can only hardcode existing
21202 hardcode_action_CXX
=unsupported
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21205 $as_echo "$hardcode_action_CXX" >&6; }
21207 if test "$hardcode_action_CXX" = relink ||
21208 test "$inherit_rpath_CXX" = yes; then
21209 # Fast installation is not supported
21210 enable_fast_install
=no
21211 elif test "$shlibpath_overrides_runpath" = yes ||
21212 test "$enable_shared" = no
; then
21213 # Fast installation is not necessary
21214 enable_fast_install
=needless
21223 fi # test -n "$compiler"
21229 with_gnu_ld
=$lt_save_with_gnu_ld
21230 lt_cv_path_LDCXX
=$lt_cv_path_LD
21231 lt_cv_path_LD
=$lt_save_path_LD
21232 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21233 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21234 fi # test "$_lt_caught_CXX_error" != yes
21237 ac_cpp
='$CPP $CPPFLAGS'
21238 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21239 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21240 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21257 # Only expand once:
21263 # Identify the assembler which will work hand-in-glove with the newly
21264 # built GCC, so that we can examine its features. This is the assembler
21265 # which will be driven by the driver program.
21267 # If build != host, and we aren't building gas in-tree, we identify a
21268 # build->target assembler and hope that it will have the same features
21269 # as the host->target assembler we'll be using.
21270 gcc_cv_gas_major_version
=
21271 gcc_cv_gas_minor_version
=
21272 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21274 if test "${gcc_cv_as+set}" = set; then :
21278 if test -x "$DEFAULT_ASSEMBLER"; then
21279 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21280 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21281 && test -f ..
/gas
/Makefile \
21282 && test x
$build = x
$host; then
21283 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21284 elif test -x as
$build_exeext; then
21285 # Build using assembler in the current directory.
21286 gcc_cv_as
=.
/as
$build_exeext
21287 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21288 gcc_cv_as
="$AS_FOR_TARGET"
21290 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21291 set dummy
$AS_FOR_TARGET; ac_word
=$2
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21293 $as_echo_n "checking for $ac_word... " >&6; }
21294 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21295 $as_echo_n "(cached) " >&6
21299 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21303 for as_dir
in $PATH
21306 test -z "$as_dir" && as_dir
=.
21307 for ac_exec_ext
in '' $ac_executable_extensions; do
21308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21309 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21320 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21321 if test -n "$gcc_cv_as"; then
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21323 $as_echo "$gcc_cv_as" >&6; }
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21326 $as_echo "no" >&6; }
21333 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21335 case "$ORIGINAL_AS_FOR_TARGET" in
21336 .
/as | .
/as
$build_exeext) ;;
21337 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21342 $as_echo_n "checking what assembler to use... " >&6; }
21343 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21344 # Single tree build which includes gas. We want to prefer it
21345 # over whatever linker top-level may have detected, since
21346 # we'll use what we're building after installation anyway.
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21348 $as_echo "newly built gas" >&6; }
21350 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21351 for f
in $gcc_cv_as_bfd_srcdir/configure \
21352 $gcc_cv_as_gas_srcdir/configure \
21353 $gcc_cv_as_gas_srcdir/configure.
in \
21354 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21355 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21356 if test x
$gcc_cv_gas_version != x
; then
21360 case $gcc_cv_gas_version in
21362 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21364 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21365 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21366 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21367 case $gcc_cv_gas_patch_version in
21368 "") gcc_cv_gas_patch_version
="0" ;;
21370 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21371 + $gcc_cv_gas_minor_version \) \* 1000 \
21372 + $gcc_cv_gas_patch_version`
21374 in_tree_gas_is_elf
=no
21375 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21376 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21377 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21379 in_tree_gas_is_elf
=yes
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21383 $as_echo "$gcc_cv_as" >&6; }
21387 # Identify the linker which will work hand-in-glove with the newly
21388 # built GCC, so that we can examine its features. This is the linker
21389 # which will be driven by the driver program.
21391 # If build != host, and we aren't building gas in-tree, we identify a
21392 # build->target linker and hope that it will have the same features
21393 # as the host->target linker we'll be using.
21394 gcc_cv_gld_major_version
=
21395 gcc_cv_gld_minor_version
=
21396 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21397 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21399 if test "${gcc_cv_ld+set}" = set; then :
21403 if test -x "$DEFAULT_LINKER"; then
21404 gcc_cv_ld
="$DEFAULT_LINKER"
21405 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21406 && test -f ..
/ld
/Makefile \
21407 && test x
$build = x
$host; then
21408 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21409 elif test -x collect-ld
$build_exeext; then
21410 # Build using linker in the current directory.
21411 gcc_cv_ld
=.
/collect-ld
$build_exeext
21412 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21413 gcc_cv_ld
="$LD_FOR_TARGET"
21415 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21416 set dummy
$LD_FOR_TARGET; ac_word
=$2
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21418 $as_echo_n "checking for $ac_word... " >&6; }
21419 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21420 $as_echo_n "(cached) " >&6
21424 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21428 for as_dir
in $PATH
21431 test -z "$as_dir" && as_dir
=.
21432 for ac_exec_ext
in '' $ac_executable_extensions; do
21433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21434 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21445 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21446 if test -n "$gcc_cv_ld"; then
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21448 $as_echo "$gcc_cv_ld" >&6; }
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21451 $as_echo "no" >&6; }
21458 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21459 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21460 # if the PLUGIN_LD is set ld-new, just have it as ld
21461 # as that is the installed named.
21462 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21463 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21464 PLUGIN_LD_SUFFIX
=ld
21467 # Check whether --with-plugin-ld was given.
21468 if test "${with_plugin_ld+set}" = set; then :
21469 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21470 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21471 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21477 cat >>confdefs.h
<<_ACEOF
21478 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21482 # Check to see if we are using gold instead of ld
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21484 $as_echo_n "checking whether we are using gold... " >&6; }
21486 if test x
$gcc_cv_ld != x
; then
21487 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21488 |
grep "GNU gold" > /dev
/null
; then
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21493 $as_echo "$ld_is_gold" >&6; }
21495 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21497 case "$ORIGINAL_LD_FOR_TARGET" in
21498 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21499 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21504 $as_echo_n "checking what linker to use... " >&6; }
21505 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21506 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21507 # Single tree build which includes ld. We want to prefer it
21508 # over whatever linker top-level may have detected, since
21509 # we'll use what we're building after installation anyway.
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21511 $as_echo "newly built ld" >&6; }
21513 in_tree_ld_is_elf
=no
21514 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21515 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21516 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21517 in_tree_ld_is_elf
=yes
21518 elif test "$ld_is_gold" = yes; then
21519 in_tree_ld_is_elf
=yes
21521 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
21523 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21524 if test x
$gcc_cv_gld_version != x
; then
21528 case $gcc_cv_gld_version in
21530 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21532 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21533 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21536 $as_echo "$gcc_cv_ld" >&6; }
21540 # Figure out what nm we will be using.
21541 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21542 if test "${gcc_cv_nm+set}" = set; then :
21546 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21547 && test -f ..
/binutils
/Makefile \
21548 && test x
$build = x
$host; then
21549 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21550 elif test -x nm
$build_exeext; then
21551 gcc_cv_nm
=.
/nm
$build_exeext
21552 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21553 gcc_cv_nm
="$NM_FOR_TARGET"
21555 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21556 set dummy
$NM_FOR_TARGET; ac_word
=$2
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21558 $as_echo_n "checking for $ac_word... " >&6; }
21559 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21560 $as_echo_n "(cached) " >&6
21564 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21568 for as_dir
in $PATH
21571 test -z "$as_dir" && as_dir
=.
21572 for ac_exec_ext
in '' $ac_executable_extensions; do
21573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21574 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21585 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21586 if test -n "$gcc_cv_nm"; then
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21588 $as_echo "$gcc_cv_nm" >&6; }
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591 $as_echo "no" >&6; }
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21599 $as_echo_n "checking what nm to use... " >&6; }
21600 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21601 # Single tree build which includes binutils.
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21603 $as_echo "newly built nm" >&6; }
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21607 $as_echo "$gcc_cv_nm" >&6; }
21611 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21613 case "$ORIGINAL_NM_FOR_TARGET" in
21614 .
/nm | .
/nm
$build_exeext) ;;
21615 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21620 # Figure out what objdump we will be using.
21621 if test "${gcc_cv_objdump+set}" = set; then :
21625 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21626 && test -f ..
/binutils
/Makefile \
21627 && test x
$build = x
$host; then
21628 # Single tree build which includes binutils.
21629 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21630 elif test -x objdump
$build_exeext; then
21631 gcc_cv_objdump
=.
/objdump
$build_exeext
21632 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21633 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21635 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21636 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21638 $as_echo_n "checking for $ac_word... " >&6; }
21639 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21640 $as_echo_n "(cached) " >&6
21642 case $gcc_cv_objdump in
21644 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21648 for as_dir
in $PATH
21651 test -z "$as_dir" && as_dir
=.
21652 for ac_exec_ext
in '' $ac_executable_extensions; do
21653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21654 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21665 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21666 if test -n "$gcc_cv_objdump"; then
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21668 $as_echo "$gcc_cv_objdump" >&6; }
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21679 $as_echo_n "checking what objdump to use... " >&6; }
21680 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21681 # Single tree build which includes binutils.
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21683 $as_echo "newly built objdump" >&6; }
21684 elif test x
$gcc_cv_objdump = x
; then
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21686 $as_echo "not found" >&6; }
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21689 $as_echo "$gcc_cv_objdump" >&6; }
21692 # Figure out what readelf we will be using.
21693 if test "${gcc_cv_readelf+set}" = set; then :
21697 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21698 && test -f ..
/binutils
/Makefile \
21699 && test x
$build = x
$host; then
21700 # Single tree build which includes binutils.
21701 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21702 elif test -x readelf
$build_exeext; then
21703 gcc_cv_readelf
=.
/readelf
$build_exeext
21705 # Extract the first word of "readelf", so it can be a program name with args.
21706 set dummy readelf
; ac_word
=$2
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21708 $as_echo_n "checking for $ac_word... " >&6; }
21709 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21710 $as_echo_n "(cached) " >&6
21712 case $gcc_cv_readelf in
21714 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21718 for as_dir
in $PATH
21721 test -z "$as_dir" && as_dir
=.
21722 for ac_exec_ext
in '' $ac_executable_extensions; do
21723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21724 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21735 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21736 if test -n "$gcc_cv_readelf"; then
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21738 $as_echo "$gcc_cv_readelf" >&6; }
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21741 $as_echo "no" >&6; }
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21749 $as_echo_n "checking what readelf to use... " >&6; }
21750 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21751 # Single tree build which includes binutils.
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21753 $as_echo "newly built readelf" >&6; }
21754 elif test x
$gcc_cv_readelf = x
; then
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21756 $as_echo "not found" >&6; }
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21759 $as_echo "$gcc_cv_readelf" >&6; }
21762 # Figure out what assembler alignment features are present.
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21764 $as_echo_n "checking assembler flags... " >&6; }
21765 if test "${gcc_cv_as_flags+set}" = set; then :
21766 $as_echo_n "(cached) " >&6
21769 i
[34567]86-*-linux*)
21770 gcc_cv_as_flags
="--32"
21772 powerpc
*-*-darwin*)
21773 gcc_cv_as_flags
="-arch ppc"
21776 gcc_cv_as_flags
=" "
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21781 $as_echo "$gcc_cv_as_flags" >&6; }
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21784 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21785 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21786 $as_echo_n "(cached) " >&6
21788 gcc_cv_as_balign_and_p2align
=no
21789 if test $in_tree_gas = yes; then
21790 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21791 then gcc_cv_as_balign_and_p2align
=yes
21793 elif test x
$gcc_cv_as != x
; then
21794 $as_echo '.balign 4
21795 .p2align 2' > conftest.s
21796 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21798 (eval $ac_try) 2>&5
21800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21801 test $ac_status = 0; }; }
21803 gcc_cv_as_balign_and_p2align
=yes
21805 echo "configure: failed program was" >&5
21808 rm -f conftest.o conftest.s
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21812 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21813 if test $gcc_cv_as_balign_and_p2align = yes; then
21815 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21820 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21821 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21822 $as_echo_n "(cached) " >&6
21824 gcc_cv_as_max_skip_p2align
=no
21825 if test $in_tree_gas = yes; then
21826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21827 then gcc_cv_as_max_skip_p2align
=yes
21829 elif test x
$gcc_cv_as != x
; then
21830 $as_echo '.p2align 4,,7' > conftest.s
21831 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21833 (eval $ac_try) 2>&5
21835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21836 test $ac_status = 0; }; }
21838 gcc_cv_as_max_skip_p2align
=yes
21840 echo "configure: failed program was" >&5
21843 rm -f conftest.o conftest.s
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21847 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21848 if test $gcc_cv_as_max_skip_p2align = yes; then
21850 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21855 $as_echo_n "checking assembler for .literal16... " >&6; }
21856 if test "${gcc_cv_as_literal16+set}" = set; then :
21857 $as_echo_n "(cached) " >&6
21859 gcc_cv_as_literal16
=no
21860 if test $in_tree_gas = yes; then
21861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21862 then gcc_cv_as_literal16
=yes
21864 elif test x
$gcc_cv_as != x
; then
21865 $as_echo '.literal16' > conftest.s
21866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21868 (eval $ac_try) 2>&5
21870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21871 test $ac_status = 0; }; }
21873 gcc_cv_as_literal16
=yes
21875 echo "configure: failed program was" >&5
21878 rm -f conftest.o conftest.s
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21882 $as_echo "$gcc_cv_as_literal16" >&6; }
21883 if test $gcc_cv_as_literal16 = yes; then
21885 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21890 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21891 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21892 $as_echo_n "(cached) " >&6
21894 gcc_cv_as_subsection_m1
=no
21895 if test $in_tree_gas = yes; then
21896 if test $in_tree_gas_is_elf = yes \
21897 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21898 then gcc_cv_as_subsection_m1
=yes
21900 elif test x
$gcc_cv_as != x
; then
21901 $as_echo 'conftest_label1: .word 0
21903 conftest_label2: .word 0
21904 .previous' > conftest.s
21905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21907 (eval $ac_try) 2>&5
21909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21910 test $ac_status = 0; }; }
21912 if test x
$gcc_cv_nm != x
; then
21913 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21914 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21915 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21917 else gcc_cv_as_subsection_m1
=yes
21919 rm -f conftest.nm1 conftest.nm2
21922 echo "configure: failed program was" >&5
21925 rm -f conftest.o conftest.s
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21929 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21930 if test $gcc_cv_as_subsection_m1 = yes; then
21932 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21937 $as_echo_n "checking assembler for .weak... " >&6; }
21938 if test "${gcc_cv_as_weak+set}" = set; then :
21939 $as_echo_n "(cached) " >&6
21942 if test $in_tree_gas = yes; then
21943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21944 then gcc_cv_as_weak
=yes
21946 elif test x
$gcc_cv_as != x
; then
21947 $as_echo ' .weak foobar' > conftest.s
21948 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21950 (eval $ac_try) 2>&5
21952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21953 test $ac_status = 0; }; }
21957 echo "configure: failed program was" >&5
21960 rm -f conftest.o conftest.s
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21964 $as_echo "$gcc_cv_as_weak" >&6; }
21965 if test $gcc_cv_as_weak = yes; then
21967 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21972 $as_echo_n "checking assembler for .weakref... " >&6; }
21973 if test "${gcc_cv_as_weakref+set}" = set; then :
21974 $as_echo_n "(cached) " >&6
21976 gcc_cv_as_weakref
=no
21977 if test $in_tree_gas = yes; then
21978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21979 then gcc_cv_as_weakref
=yes
21981 elif test x
$gcc_cv_as != x
; then
21982 $as_echo ' .weakref foobar, barfnot' > conftest.s
21983 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21985 (eval $ac_try) 2>&5
21987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21988 test $ac_status = 0; }; }
21990 gcc_cv_as_weakref
=yes
21992 echo "configure: failed program was" >&5
21995 rm -f conftest.o conftest.s
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21999 $as_echo "$gcc_cv_as_weakref" >&6; }
22000 if test $gcc_cv_as_weakref = yes; then
22002 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22007 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22008 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22009 $as_echo_n "(cached) " >&6
22011 gcc_cv_as_nsubspa_comdat
=no
22012 if test $in_tree_gas = yes; then
22013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22014 then gcc_cv_as_nsubspa_comdat
=yes
22016 elif test x
$gcc_cv_as != x
; then
22017 $as_echo ' .SPACE $TEXT$
22018 .NSUBSPA $CODE$,COMDAT' > conftest.s
22019 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22021 (eval $ac_try) 2>&5
22023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22024 test $ac_status = 0; }; }
22026 gcc_cv_as_nsubspa_comdat
=yes
22028 echo "configure: failed program was" >&5
22031 rm -f conftest.o conftest.s
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22035 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22036 if test $gcc_cv_as_nsubspa_comdat = yes; then
22038 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22042 # .hidden needs to be supported in both the assembler and the linker,
22043 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22044 # This is irritatingly difficult to feature test for; we have to check the
22045 # date string after the version number. If we've got an in-tree
22046 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22048 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22050 $as_echo_n "checking assembler for .hidden... " >&6; }
22051 if test "${gcc_cv_as_hidden+set}" = set; then :
22052 $as_echo_n "(cached) " >&6
22054 gcc_cv_as_hidden
=no
22055 if test $in_tree_gas = yes; then
22056 if test $in_tree_gas_is_elf = yes \
22057 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22058 then gcc_cv_as_hidden
=yes
22060 elif test x
$gcc_cv_as != x
; then
22061 $as_echo ' .hidden foobar
22062 foobar:' > conftest.s
22063 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22065 (eval $ac_try) 2>&5
22067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22068 test $ac_status = 0; }; }
22071 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22072 # STV_HIDDEN, so disable .hidden support if so.
22073 case "${target}" in
22074 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22075 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22076 cat > conftest.s
<<EOF
22081 .set default,hidden
22083 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22084 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22085 grep '\.hidden default' > /dev
/null
; then
22086 gcc_cv_as_hidden
=no
22088 gcc_cv_as_hidden
=yes
22091 # Assume bug is present if objdump is missing.
22092 gcc_cv_as_hidden
=no
22096 gcc_cv_as_hidden
=yes
22100 echo "configure: failed program was" >&5
22103 rm -f conftest.o conftest.s
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22107 $as_echo "$gcc_cv_as_hidden" >&6; }
22109 case "${target}" in
22111 # Darwin as has some visibility support, though with a different syntax.
22112 gcc_cv_as_hidden
=yes
22116 # gnu_indirect_function type is an extension proposed at
22117 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22118 # selection of function implementation
22119 # Check whether --enable-gnu-indirect-function was given.
22120 if test "${enable_gnu_indirect_function+set}" = set; then :
22121 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22123 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22124 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22127 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22131 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22133 cat >>confdefs.h
<<_ACEOF
22134 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22139 if test $in_tree_ld != yes ; then
22140 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22141 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22142 if test x
"$ld_is_gold" = xyes
; then
22143 # GNU gold --version looks like this:
22145 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22147 # We extract the binutils version which is more familiar and specific
22148 # than the gold version.
22149 ld_vers
=`echo $ld_ver | sed -n \
22150 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22152 # GNU ld --version looks like this:
22154 # GNU ld (GNU Binutils) 2.21.51.20110225
22155 ld_vers
=`echo $ld_ver | sed -n \
22156 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22158 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'`
22159 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22160 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22161 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22163 case "${target}" in
22165 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22168 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22169 # /usr/ccs/bin/ld has been configured.
22170 ld_ver
=`$gcc_cv_ld -V 2>&1`
22171 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22172 ld_vers
=`echo $ld_ver | sed -n \
22173 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22174 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22175 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22183 $as_echo_n "checking linker for .hidden support... " >&6; }
22184 if test "${gcc_cv_ld_hidden+set}" = set; then :
22185 $as_echo_n "(cached) " >&6
22187 if test $in_tree_ld = yes ; then
22188 gcc_cv_ld_hidden
=no
22189 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 \
22190 && test $in_tree_ld_is_elf = yes; then
22191 gcc_cv_ld_hidden
=yes
22194 gcc_cv_ld_hidden
=yes
22195 if test x
"$ld_is_gold" = xyes
; then
22197 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22198 case "${target}" in
22199 mmix-knuth-mmixware
)
22200 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22201 gcc_cv_ld_hidden
=no
22204 if test 0"$ld_date" -lt 20020404; then
22205 if test -n "$ld_date"; then
22206 # If there was date string, but was earlier than 2002-04-04, fail
22207 gcc_cv_ld_hidden
=no
22208 elif test -z "$ld_vers"; then
22209 # If there was no date string nor ld version number, something is wrong
22210 gcc_cv_ld_hidden
=no
22212 test -z "$ld_vers_patch" && ld_vers_patch
=0
22213 if test "$ld_vers_major" -lt 2; then
22214 gcc_cv_ld_hidden
=no
22215 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22216 gcc_cv_ld_hidden
="no"
22217 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22218 gcc_cv_ld_hidden
=no
22223 case "${target}" in
22225 # Darwin ld has some visibility support.
22226 gcc_cv_ld_hidden
=yes
22228 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22229 gcc_cv_ld_hidden
=yes
22231 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22232 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22233 # .symbolic was only added in Solaris 9 12/02.
22234 gcc_cv_ld_hidden
=yes
22237 gcc_cv_ld_hidden
=no
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22244 $as_echo "$gcc_cv_ld_hidden" >&6; }
22245 libgcc_visibility
=no
22248 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22249 libgcc_visibility
=yes
22251 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22256 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22257 gcc_cv_ld_ro_rw_mix
=unknown
22258 if test $in_tree_ld = yes ; then
22259 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 \
22260 && test $in_tree_ld_is_elf = yes; then
22261 gcc_cv_ld_ro_rw_mix
=read-write
22263 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22264 echo '.section myfoosect, "a"' > conftest1.s
22265 echo '.section myfoosect, "aw"' > conftest2.s
22266 echo '.byte 1' >> conftest2.s
22267 echo '.section myfoosect, "a"' > conftest3.s
22268 echo '.byte 0' >> conftest3.s
22269 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22270 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22271 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22272 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22273 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22274 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22275 | sed -e '/myfoosect/!d' -e N`
22276 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22277 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22278 gcc_cv_ld_ro_rw_mix
=read-only
22280 gcc_cv_ld_ro_rw_mix
=read-write
22284 rm -f conftest.
* conftest
[123].
*
22286 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22288 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22292 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22294 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22295 case "${target}" in
22298 # Solaris 2 ld -V output looks like this for a regular version:
22300 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22302 # but test versions add stuff at the end:
22304 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22306 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22307 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22308 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22309 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22310 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22311 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22317 # Check whether --enable-initfini-array was given.
22318 if test "${enable_initfini_array+set}" = set; then :
22319 enableval
=$enable_initfini_array;
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22323 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22324 if test "${gcc_cv_initfini_array+set}" = set; then :
22325 $as_echo_n "(cached) " >&6
22327 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22328 case "${target}" in
22330 if test "$cross_compiling" = yes; then :
22331 gcc_cv_initfini_array
=no
22333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22334 /* end confdefs.h. */
22337 #error Not an ELF OS
22339 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22340 if it can be used. */
22342 int main (void) { return x; }
22343 int foo (void) { x = 0; }
22344 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22347 if ac_fn_c_try_run
"$LINENO"; then :
22348 gcc_cv_initfini_array
=yes
22350 gcc_cv_initfini_array
=no
22352 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22353 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22357 gcc_cv_initfini_array
=no
22358 if test $in_tree_ld = yes ; then
22359 if test "$gcc_cv_gld_major_version" -eq 2 \
22360 -a "$gcc_cv_gld_minor_version" -ge 22 \
22361 -o "$gcc_cv_gld_major_version" -gt 2 \
22362 && test $in_tree_ld_is_elf = yes; then
22363 gcc_cv_initfini_array
=yes
22365 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22366 cat > conftest.s
<<\EOF
22367 .section .dtors
,"a",%progbits
22369 .byte
'A', 'A', 'A', 'A'
22370 .section .ctors
,"a",%progbits
22372 .byte
'B', 'B', 'B', 'B'
22373 .section .fini_array
.65530,"a",%progbits
22375 .byte
'C', 'C', 'C', 'C'
22376 .section .init_array
.65530,"a",%progbits
22378 .byte
'D', 'D', 'D', 'D'
22379 .section .dtors
.64528,"a",%progbits
22381 .byte
'E', 'E', 'E', 'E'
22382 .section .ctors
.64528,"a",%progbits
22384 .byte
'F', 'F', 'F', 'F'
22385 .section .fini_array
.01005,"a",%progbits
22387 .byte
'G', 'G', 'G', 'G'
22388 .section .init_array
.01005,"a",%progbits
22390 .byte
'H', 'H', 'H', 'H'
22395 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22396 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22397 && $gcc_cv_objdump -s -j .init_array conftest \
22398 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22399 && $gcc_cv_objdump -s -j .fini_array conftest \
22400 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22401 gcc_cv_initfini_array
=yes
22403 rm -f conftest conftest.
*
22405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22406 /* end confdefs.h. */
22409 # error Not an ELF OS
22411 #include <stdlib.h>
22412 #if defined __GLIBC_PREREQ
22413 # if __GLIBC_PREREQ (2, 4)
22415 # error GLIBC 2.4 required
22418 # if defined __sun__ && defined __svr4__
22419 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22421 # error The C library not known to support .init_array/.fini_array
22426 if ac_fn_c_try_cpp
"$LINENO"; then :
22429 gcc_cv_initfini_array
=no
22431 rm -f conftest.err conftest.
$ac_ext;;
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22435 $as_echo_n "checking cross compile... guessing... " >&6; }
22436 gcc_cv_initfini_array
=no
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22440 $as_echo "$gcc_cv_initfini_array" >&6; }
22441 enable_initfini_array
=$gcc_cv_initfini_array
22445 if test $enable_initfini_array = yes; then
22447 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22451 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22453 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22454 if test "${gcc_cv_as_leb128+set}" = set; then :
22455 $as_echo_n "(cached) " >&6
22457 gcc_cv_as_leb128
=no
22458 if test $in_tree_gas = yes; then
22459 if test $in_tree_gas_is_elf = yes \
22460 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22461 then gcc_cv_as_leb128
=yes
22463 elif test x
$gcc_cv_as != x
; then
22470 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22472 (eval $ac_try) 2>&5
22474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22475 test $ac_status = 0; }; }
22477 # GAS versions before 2.11 do not support uleb128,
22478 # despite appearing to.
22479 # ??? There exists an elf-specific test that will crash
22480 # the assembler. Perhaps it's better to figure out whether
22481 # arbitrary sections are supported and try the test.
22482 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22483 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22484 as_vers
=`echo $as_ver | sed -n \
22485 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22486 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22487 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22488 if test $as_major -eq 2 && test $as_minor -lt 11
22490 else gcc_cv_as_leb128
=yes
22494 echo "configure: failed program was" >&5
22497 rm -f conftest.o conftest.s
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22501 $as_echo "$gcc_cv_as_leb128" >&6; }
22502 if test $gcc_cv_as_leb128 = yes; then
22504 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22508 # Check if we have assembler support for unwind directives.
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22510 $as_echo_n "checking assembler for cfi directives... " >&6; }
22511 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22512 $as_echo_n "(cached) " >&6
22514 gcc_cv_as_cfi_directive
=no
22515 if test x
$gcc_cv_as != x
; then
22521 .cfi_escape 1, 2, 3, 4, 5
22522 .cfi_endproc' > conftest.s
22523 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22525 (eval $ac_try) 2>&5
22527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22528 test $ac_status = 0; }; }
22532 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22533 # read-only and read-write sections, we need to make sure that the
22534 # assembler used emits read-write .eh_frame sections.
22535 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22536 if test "x$gcc_cv_objdump" != x
; then
22537 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22538 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22539 gcc_cv_as_cfi_directive
=no
22542 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22543 # On Solaris/x86, make sure that GCC and gas agree on using
22544 # read-only .eh_frame sections for 64-bit.
22545 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22546 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22547 sed -e /.eh_frame
/!d
-e N | \
22548 grep READONLY
> /dev
/null
; then
22549 gcc_cv_as_cfi_directive
=yes
22551 gcc_cv_as_cfi_directive
=no
22555 gcc_cv_as_cfi_directive
=yes
22560 # no objdump, err on the side of caution
22561 gcc_cv_as_cfi_directive
=no
22564 gcc_cv_as_cfi_directive
=yes
22568 gcc_cv_as_cfi_directive
=yes
22572 echo "configure: failed program was" >&5
22575 rm -f conftest.o conftest.s
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22579 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22581 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22583 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22584 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22585 $as_echo_n "(cached) " >&6
22587 gcc_cv_as_cfi_advance_working
=no
22588 if test x
$gcc_cv_as != x
; then
22591 .cfi_adjust_cfa_offset 64
22593 .cfi_adjust_cfa_offset 128
22594 .cfi_endproc' > conftest.s
22595 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22597 (eval $ac_try) 2>&5
22599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22600 test $ac_status = 0; }; }
22603 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22604 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22605 gcc_cv_as_cfi_advance_working
=yes
22609 echo "configure: failed program was" >&5
22612 rm -f conftest.o conftest.s
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22616 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22619 # no objdump, err on the side of caution
22620 gcc_cv_as_cfi_advance_working
=no
22624 cat >>confdefs.h
<<_ACEOF
22625 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22626 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22632 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22633 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22634 $as_echo_n "(cached) " >&6
22636 gcc_cv_as_cfi_personality_directive
=no
22637 if test x
$gcc_cv_as != x
; then
22640 .cfi_personality 0, symbol
22641 .cfi_endproc' > conftest.s
22642 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22644 (eval $ac_try) 2>&5
22646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22647 test $ac_status = 0; }; }
22649 gcc_cv_as_cfi_personality_directive
=yes
22651 echo "configure: failed program was" >&5
22654 rm -f conftest.o conftest.s
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22658 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22661 cat >>confdefs.h
<<_ACEOF
22662 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22663 then echo 1; else echo 0; fi`
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22668 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22669 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22670 $as_echo_n "(cached) " >&6
22672 gcc_cv_as_cfi_sections_directive
=no
22673 if test x
$gcc_cv_as != x
; then
22675 .cfi_sections .debug_frame, .eh_frame
22677 .cfi_endproc' > conftest.s
22678 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22680 (eval $ac_try) 2>&5
22682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22683 test $ac_status = 0; }; }
22686 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22687 # Need to check that we generated the correct relocation for the
22688 # .debug_frame section. This was fixed for binutils 2.21.
22689 gcc_cv_as_cfi_sections_directive
=no
22690 if test "x$gcc_cv_objdump" != x
; then
22691 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22692 grep secrel
> /dev
/null
; then
22693 gcc_cv_as_cfi_sections_directive
=yes
22698 gcc_cv_as_cfi_sections_directive
=yes
22702 echo "configure: failed program was" >&5
22705 rm -f conftest.o conftest.s
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22709 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22713 cat >>confdefs.h
<<_ACEOF
22714 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22715 then echo 1; else echo 0; fi`
22719 # GAS versions up to and including 2.11.0 may mis-optimize
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22722 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22723 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22724 $as_echo_n "(cached) " >&6
22726 gcc_cv_as_eh_frame
=no
22727 if test $in_tree_gas = yes; then
22728 if test $in_tree_gas_is_elf = yes \
22729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22730 then gcc_cv_as_eh_frame
=yes
22732 elif test x
$gcc_cv_as != x
; then
22739 .section .eh_frame,"aw",@progbits
22741 .4byte .LECIE1-.LSCIE1
22755 .4byte .LEFDE1-.LASFDE1
22757 .4byte .LASFDE1-__FRAME_BEGIN__
22764 .LEFDE1:' > conftest.s
22765 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22767 (eval $ac_try) 2>&5
22769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22770 test $ac_status = 0; }; }
22772 cat > conftest.lit
<<EOF
22773 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22774 0010 01000000 12000000 18000000 00000000 ................
22775 0020 08000000 04080000 0044 .........D
22777 cat > conftest.big
<<EOF
22778 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22779 0010 00000001 00000012 00000018 00000000 ................
22780 0020 00000008 04000000 0844 .........D
22782 # If the assembler didn't choke, and we can objdump,
22783 # and we got the correct data, then succeed.
22784 # The text in the here-document typically retains its unix-style line
22785 # endings, while the output of objdump will use host line endings.
22786 # Therefore, use diff -b for the comparisons.
22787 if test x
$gcc_cv_objdump != x \
22788 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22789 |
tail -3 > conftest.got \
22790 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22791 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22793 gcc_cv_as_eh_frame
=yes
22794 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22796 (eval $ac_try) 2>&5
22798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22799 test $ac_status = 0; }; }; then
22800 gcc_cv_as_eh_frame
=buggy
22802 # Uh oh, what do we do now?
22803 gcc_cv_as_eh_frame
=no
22806 echo "configure: failed program was" >&5
22809 rm -f conftest.o conftest.s
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22813 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22816 if test $gcc_cv_as_eh_frame = buggy
; then
22818 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22823 $as_echo_n "checking assembler for section merging support... " >&6; }
22824 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22825 $as_echo_n "(cached) " >&6
22827 gcc_cv_as_shf_merge
=no
22828 if test $in_tree_gas = yes; then
22829 if test $in_tree_gas_is_elf = yes \
22830 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22831 then gcc_cv_as_shf_merge
=yes
22833 elif test x
$gcc_cv_as != x
; then
22834 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837 (eval $ac_try) 2>&5
22839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840 test $ac_status = 0; }; }
22842 gcc_cv_as_shf_merge
=yes
22844 echo "configure: failed program was" >&5
22847 rm -f conftest.o conftest.s
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22851 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22853 if test $gcc_cv_as_shf_merge = no
; then
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22855 $as_echo_n "checking assembler for section merging support... " >&6; }
22856 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22857 $as_echo_n "(cached) " >&6
22859 gcc_cv_as_shf_merge
=no
22860 if test $in_tree_gas = yes; then
22861 if test $in_tree_gas_is_elf = yes \
22862 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22863 then gcc_cv_as_shf_merge
=yes
22865 elif test x
$gcc_cv_as != x
; then
22866 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22867 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22869 (eval $ac_try) 2>&5
22871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22872 test $ac_status = 0; }; }
22874 gcc_cv_as_shf_merge
=yes
22876 echo "configure: failed program was" >&5
22879 rm -f conftest.o conftest.s
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22883 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22887 cat >>confdefs.h
<<_ACEOF
22888 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22893 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22894 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22895 $as_echo_n "(cached) " >&6
22897 gcc_cv_as_comdat_group
=no
22898 if test $in_tree_gas = yes; then
22899 if test $in_tree_gas_is_elf = yes \
22900 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22901 then gcc_cv_as_comdat_group
=yes
22903 elif test x
$gcc_cv_as != x
; then
22904 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22907 (eval $ac_try) 2>&5
22909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22910 test $ac_status = 0; }; }
22912 gcc_cv_as_comdat_group
=yes
22914 echo "configure: failed program was" >&5
22917 rm -f conftest.o conftest.s
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22921 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22923 if test $gcc_cv_as_comdat_group = yes; then
22924 gcc_cv_as_comdat_group_percent
=no
22925 gcc_cv_as_comdat_group_group
=no
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22928 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22929 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22930 $as_echo_n "(cached) " >&6
22932 gcc_cv_as_comdat_group_percent
=no
22933 if test $in_tree_gas = yes; then
22934 if test $in_tree_gas_is_elf = yes \
22935 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22936 then gcc_cv_as_comdat_group_percent
=yes
22938 elif test x
$gcc_cv_as != x
; then
22939 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22940 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22942 (eval $ac_try) 2>&5
22944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22945 test $ac_status = 0; }; }
22947 gcc_cv_as_comdat_group_percent
=yes
22949 echo "configure: failed program was" >&5
22952 rm -f conftest.o conftest.s
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22956 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22958 if test $gcc_cv_as_comdat_group_percent = yes; then
22959 gcc_cv_as_comdat_group_group
=no
22961 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22962 gcc_cv_as_comdat_group_group
=no
22964 case "${target}" in
22965 # Sun as uses a completely different syntax.
22967 case "${target}" in
22968 sparc
*-*-solaris2*)
22970 .group foo,".text%foo",#comdat
22971 .section ".text%foo", #alloc,#execinstr,#progbits
22976 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22978 .group foo,.text%foo,#comdat
22979 .section .text%foo, "ax", @progbits
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22986 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22987 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22988 $as_echo_n "(cached) " >&6
22990 gcc_cv_as_comdat_group_group
=no
22991 if test x
$gcc_cv_as != x
; then
22992 $as_echo "$conftest_s" > conftest.s
22993 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22995 (eval $ac_try) 2>&5
22997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22998 test $ac_status = 0; }; }
23000 gcc_cv_as_comdat_group_group
=yes
23002 echo "configure: failed program was" >&5
23005 rm -f conftest.o conftest.s
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23009 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23015 if test x
"$ld_is_gold" = xyes
; then
23017 elif test $in_tree_ld = yes ; then
23019 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 \
23020 && test $in_tree_ld_is_elf = yes; then
23023 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23025 if test 0"$ld_date" -lt 20050308; then
23026 if test -n "$ld_date"; then
23027 # If there was date string, but was earlier than 2005-03-08, fail
23029 elif test "$ld_vers_major" -lt 2; then
23031 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23036 case "${target}" in
23037 *-*-solaris2.1
[1-9]*)
23039 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23040 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23043 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23044 # least ld version 1.2267.
23045 if test "$ld_vers_major" -gt 1; then
23047 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23049 elif test "$ld_vers_minor" -ge 2267; then
23054 # Assume linkers other than GNU ld don't support COMDAT group.
23059 # Allow overriding the automatic COMDAT group tests above.
23060 # Check whether --enable-comdat was given.
23061 if test "${enable_comdat+set}" = set; then :
23062 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23065 if test $comdat_group = no
; then
23066 gcc_cv_as_comdat_group
=no
23067 gcc_cv_as_comdat_group_percent
=no
23068 gcc_cv_as_comdat_group_group
=no
23071 cat >>confdefs.h
<<_ACEOF
23072 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23073 || test $gcc_cv_as_comdat_group_percent = yes \
23074 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23079 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23080 if test "${gcc_cv_as_discriminator+set}" = set; then :
23081 $as_echo_n "(cached) " >&6
23083 gcc_cv_as_discriminator
=no
23084 if test $in_tree_gas = yes; then
23085 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23086 then gcc_cv_as_discriminator
=yes
23088 elif test x
$gcc_cv_as != x
; then
23091 .loc 1 1 0 discriminator 1' > conftest.s
23092 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23094 (eval $ac_try) 2>&5
23096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23097 test $ac_status = 0; }; }
23099 gcc_cv_as_discriminator
=yes
23101 echo "configure: failed program was" >&5
23104 rm -f conftest.o conftest.s
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23108 $as_echo "$gcc_cv_as_discriminator" >&6; }
23109 if test $gcc_cv_as_discriminator = yes; then
23111 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23115 # Thread-local storage - the check is heavily parameterized.
23123 .section ".tdata","awT",@progbits
23126 ldq $27,__tls_get_addr($29) !literal!1
23127 lda $16,foo($29) !tlsgd!1
23128 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23129 ldq $27,__tls_get_addr($29) !literal!2
23130 lda $16,foo($29) !tlsldm!2
23131 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23132 ldq $1,foo($29) !gotdtprel
23133 ldah $2,foo($29) !dtprelhi
23134 lda $3,foo($2) !dtprello
23135 lda $4,foo($29) !dtprel
23136 ldq $1,foo($29) !gottprel
23137 ldah $2,foo($29) !tprelhi
23138 lda $3,foo($2) !tprello
23139 lda $4,foo($29) !tprel'
23142 tls_as_opt
=--fatal-warnings
23144 cris-
*-*|crisv32-
*-*)
23146 .section ".tdata","awT",@progbits
23153 tls_as_opt
=--fatal-warnings
23157 .section ".tdata","awT",@progbits
23160 call #gettlsoff(x)'
23169 .section ".tdata","awT",@progbits
23173 addil LT%foo-$tls_gdidx$,gp
23174 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23177 addil LT%foo-$tls_ldidx$,gp
23179 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23180 addil LR%foo-$tls_dtpoff$,%ret0
23181 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23183 addil LT%foo-$tls_ieoff$,gp
23184 ldw RT%foo-$tls_ieoff$(%r1),%t2
23187 addil LR%foo-$tls_leoff$,%t1
23188 ldo RR%foo-$tls_leoff$(%r1),%t2'
23191 tls_as_opt
=--fatal-warnings
23195 .section ".tdata","awT",%progbits
23198 .word foo(gottpoff)
23206 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23208 i
[34567]86-*-solaris2.
*)
23210 tga_func
=___tls_get_addr
23212 x86_64-
*-solaris2.1
[0-9]*)
23214 tga_func
=__tls_get_addr
23220 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23222 .section .tdata,"awt",@progbits'
23226 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23230 .section ".tdata","awT",@progbits'
23233 tls_as_opt
="--fatal-warnings"
23235 conftest_s
="$conftest_s
23239 leal foo@tlsgd(,%ebx,1), %eax
23240 leal foo@tlsldm(%ebx), %eax
23241 leal foo@dtpoff(%eax), %edx
23242 movl foo@gottpoff(%ebx), %eax
23243 subl foo@gottpoff(%ebx), %eax
23244 addl foo@gotntpoff(%ebx), %eax
23245 movl foo@indntpoff, %eax
23246 movl \$foo@tpoff, %eax
23247 subl \$foo@tpoff, %eax
23248 leal foo@ntpoff(%ecx), %eax"
23252 .section ".tdata","awT",@progbits
23256 leaq foo@TLSGD(%rip), %rdi
23257 leaq foo@TLSLD(%rip), %rdi
23258 leaq foo@DTPOFF(%rax), %rdx
23259 movq foo@GOTTPOFF(%rip), %rax
23260 movq $foo@TPOFF, %rax'
23263 tls_as_opt
=--fatal-warnings
23267 .section ".tdata","awT",@progbits
23270 addl r16 = @ltoff(@dtpmod(foo#)), gp
23271 addl r17 = @ltoff(@dtprel(foo#)), gp
23272 addl r18 = @ltoff(@tprel(foo#)), gp
23273 addl r19 = @dtprel(foo#), gp
23274 adds r21 = @dtprel(foo#), r13
23275 movl r23 = @dtprel(foo#)
23276 addl r20 = @tprel(foo#), gp
23277 adds r22 = @tprel(foo#), r13
23278 movl r24 = @tprel(foo#)'
23281 tls_as_opt
=--fatal-warnings
23285 .section .tdata,"awT",@progbits
23289 addik r5,r20,x@TLSGD
23290 addik r5,r20,x@TLSLDM'
23293 tls_as_opt
='--fatal-warnings'
23297 .section .tdata,"awT",@progbits
23301 addiu $4, $28, %tlsgd(x)
23302 addiu $4, $28, %tlsldm(x)
23303 lui $4, %dtprel_hi(x)
23304 addiu $4, $4, %dtprel_lo(x)
23305 lw $4, %gottprel(x)($28)
23306 lui $4, %tprel_hi(x)
23307 addiu $4, $4, %tprel_lo(x)'
23310 tls_as_opt
='-32 --fatal-warnings'
23314 .section .tdata,"awT",@progbits
23319 move.l x@TLSGD(%a5),%a0
23320 move.l x@TLSLDM(%a5),%a0
23321 move.l x@TLSLDO(%a5),%a0
23322 move.l x@TLSIE(%a5),%a0
23323 move.l x@TLSLE(%a5),%a0'
23326 tls_as_opt
='--fatal-warnings'
23330 .section ".tdata","awT",%progbits
23334 add x0, x0, #:tlsgd_lo12:x
23339 tls_as_opt
='--fatal-warnings'
23343 .extern __get_tpointer
23361 .section ".tdata","awT",@progbits
23369 addi 3,2,ld0@got@tlsgd
23375 addi 3,2,x1@got@tlsld
23381 addis 9,3,x2@dtprel@ha
23382 addi 9,9,x2@dtprel@l
23385 ld 9,x3@got@dtprel(2)
23391 tls_as_opt
="-a64 --fatal-warnings"
23395 .section ".tdata","awT",@progbits
23403 addi 3,31,ld0@got@tlsgd
23405 addi 3,31,x1@got@tlsld
23408 addis 9,3,x2@dtprel@ha
23409 addi 9,9,x2@dtprel@l
23410 lwz 9,x3@got@tprel(31)
23413 addis 9,2,x2@tprel@ha
23414 addi 9,9,x2@tprel@l'
23417 tls_as_opt
="-a32 --fatal-warnings"
23421 .section ".tdata","awT",@progbits
23428 .long foo@GOTNTPOFF
23429 .long foo@INDNTPOFF
23430 l %r1,foo@GOTNTPOFF(%r12)
23431 l %r1,0(%r1):tls_load:foo
23432 bas %r14,0(%r1,%r13):tls_gdcall:foo
23433 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23436 tls_as_opt
="-m31 --fatal-warnings"
23440 .section ".tdata","awT",@progbits
23447 .quad foo@GOTNTPOFF
23448 lg %r1,foo@GOTNTPOFF(%r12)
23449 larl %r1,foo@INDNTPOFF
23450 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23451 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23454 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23456 sh-
*-* | sh
[34]-*-*)
23458 .section ".tdata","awT",@progbits
23468 tls_as_opt
=--fatal-warnings
23472 sparc
*-sun-solaris2.
*)
23474 tga_func
=__tls_get_addr
23480 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23482 .section ".tdata",#alloc,#write,#tls'
23487 .section ".tdata","awT",@progbits'
23490 tls_as_opt
="-32 --fatal-warnings"
23492 conftest_s
="$conftest_s
23495 sethi %tgd_hi22(foo), %o0
23496 add %o0, %tgd_lo10(foo), %o1
23497 add %l7, %o1, %o0, %tgd_add(foo)
23498 call __tls_get_addr, %tgd_call(foo)
23499 sethi %tldm_hi22(foo), %l1
23500 add %l1, %tldm_lo10(foo), %l2
23501 add %l7, %l2, %o0, %tldm_add(foo)
23502 call __tls_get_addr, %tldm_call(foo)
23503 sethi %tldo_hix22(foo), %l3
23504 xor %l3, %tldo_lox10(foo), %l4
23505 add %o0, %l4, %l5, %tldo_add(foo)
23506 sethi %tie_hi22(foo), %o3
23507 add %o3, %tie_lo10(foo), %o3
23508 ld [%l7 + %o3], %o2, %tie_ld(foo)
23509 add %g7, %o2, %o4, %tie_add(foo)
23510 sethi %tle_hix22(foo), %l1
23511 xor %l1, %tle_lox10(foo), %o5
23512 ld [%g7 + %o5], %o1"
23516 .section ".tdata","awT",@progbits
23519 addli r0, zero, tls_gd(foo)
23520 auli r0, zero, tls_gd_ha16(foo)
23521 addli r0, r0, tls_gd_lo16(foo)
23523 addli r0, zero, tls_ie(foo)
23524 auli r0, r0, tls_ie_ha16(foo)
23525 addli r0, r0, tls_ie_lo16(foo)'
23528 tls_as_opt
="--fatal-warnings"
23532 .section ".tdata","awT",@progbits
23535 shl16insli r0, zero, hw0_last_tls_gd(foo)
23536 shl16insli r0, zero, hw1_last_tls_gd(foo)
23537 shl16insli r0, r0, hw0_tls_gd(foo)
23539 shl16insli r0, zero, hw1_last_tls_ie(foo)
23540 shl16insli r0, r0, hw0_tls_ie(foo)'
23543 tls_as_opt
="--fatal-warnings"
23547 .section ".tdata","awT",@progbits
23550 movi a8, foo@TLSFUNC
23551 movi a10, foo@TLSARG
23552 callx8.tls a8, foo@TLSCALL'
23558 if test "x$enable_tls" = xno
; then
23559 : # TLS explicitly disabled.
23560 elif test "x$enable_tls" = xyes
; then
23561 set_have_as_tls
=yes # TLS explicitly enabled.
23562 elif test -z "$tls_first_major"; then
23563 : # If we don't have a check, assume no support.
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23566 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23567 if test "${gcc_cv_as_tls+set}" = set; then :
23568 $as_echo_n "(cached) " >&6
23571 if test $in_tree_gas = yes; then
23572 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23573 then gcc_cv_as_tls
=yes
23575 elif test x
$gcc_cv_as != x
; then
23576 $as_echo "$conftest_s" > conftest.s
23577 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23579 (eval $ac_try) 2>&5
23581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23582 test $ac_status = 0; }; }
23586 echo "configure: failed program was" >&5
23589 rm -f conftest.o conftest.s
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23593 $as_echo "$gcc_cv_as_tls" >&6; }
23594 if test $gcc_cv_as_tls = yes; then
23595 set_have_as_tls
=yes
23599 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23600 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23601 # Sun style that Sun ld and GCC don't support any longer.
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23604 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23606 # Check ld and ld.so.1 TLS support.
23607 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23608 # Assume all interesting versions of GNU ld have TLS support.
23609 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23613 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23615 min_tls_ld_vers_minor
=374
23617 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23618 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23619 min_tls_ld_vers_minor
=343
23622 if test "$ld_vers_major" -gt 1 || \
23623 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23630 $as_echo "$ld_tls_support" >&6; }
23633 save_LDFLAGS
="$LDFLAGS"
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23638 $as_echo_n "checking library containing $tga_func... " >&6; }
23639 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23640 # (32-bit x86) only lived in libthread, so check for that. Keep
23641 # set_have_as_tls if found, disable if not.
23642 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23644 $as_echo_n "checking for library containing $tga_func... " >&6; }
23645 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23646 $as_echo_n "(cached) " >&6
23648 ac_func_search_save_LIBS
=$LIBS
23649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23650 /* end confdefs.h. */
23652 /* Override any GCC internal prototype to avoid an error.
23653 Use char because int might match the return type of a GCC
23654 builtin and then its argument prototype would still apply. */
23662 return $tga_func ();
23667 for ac_lib
in '' thread
; do
23668 if test -z "$ac_lib"; then
23669 ac_res
="none required"
23672 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23674 if ac_fn_c_try_link
"$LINENO"; then :
23675 eval "$as_ac_Search=\$ac_res"
23677 rm -f core conftest.err conftest.
$ac_objext \
23679 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23683 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23686 eval "$as_ac_Search=no"
23688 rm conftest.
$ac_ext
23689 LIBS
=$ac_func_search_save_LIBS
23691 eval ac_res
=\$
$as_ac_Search
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23693 $as_echo "$ac_res" >&6; }
23694 eval ac_res
=\$
$as_ac_Search
23695 if test "$ac_res" != no
; then :
23696 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23702 # Clear LIBS if we cannot support TLS.
23703 if test $set_have_as_tls = no
; then
23706 # Always define LIB_TLS_SPEC, even without TLS support.
23708 cat >>confdefs.h
<<_ACEOF
23709 #define LIB_TLS_SPEC "$LIBS"
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23713 $as_echo "$LIBS" >&6; }
23716 LDFLAGS
="$save_LDFLAGS"
23719 if test $set_have_as_tls = yes ; then
23721 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23725 # Target-specific assembler checks.
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23728 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23729 gcc_cv_ld_static_dynamic
=no
23730 gcc_cv_ld_static_option
='-Bstatic'
23731 gcc_cv_ld_dynamic_option
='-Bdynamic'
23732 if test $in_tree_ld = yes ; then
23733 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
23734 gcc_cv_ld_static_dynamic
=yes
23736 elif test x
$gcc_cv_ld != x
; then
23737 # Check if linker supports -Bstatic/-Bdynamic option
23738 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23739 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23740 gcc_cv_ld_static_dynamic
=yes
23743 # AIX ld uses -b flags
23744 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23745 gcc_cv_ld_static_dynamic
=yes
23746 gcc_cv_ld_static_option
="-bstatic"
23747 gcc_cv_ld_dynamic_option
="-bdynamic"
23749 # HP-UX ld uses -a flags to select between shared and archive.
23751 if test x
"$gnu_ld" = xno
; then
23752 gcc_cv_ld_static_dynamic
=yes
23753 gcc_cv_ld_static_option
="-aarchive_shared"
23754 gcc_cv_ld_dynamic_option
="-adefault"
23757 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23759 gcc_cv_ld_static_dynamic
=yes
23764 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23766 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23769 cat >>confdefs.h
<<_ACEOF
23770 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23774 cat >>confdefs.h
<<_ACEOF
23775 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23780 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23782 if test x
"$demangler_in_ld" = xyes
; then
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23784 $as_echo_n "checking linker --demangle support... " >&6; }
23785 gcc_cv_ld_demangle
=no
23786 if test $in_tree_ld = yes; then
23787 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 \
23788 gcc_cv_ld_demangle
=yes
23790 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23791 # Check if the GNU linker supports --demangle option
23792 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23793 gcc_cv_ld_demangle
=yes
23796 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23798 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23802 $as_echo "$gcc_cv_ld_demangle" >&6; }
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23806 $as_echo_n "checking linker plugin support... " >&6; }
23807 gcc_cv_lto_plugin
=0
23808 if test -f liblto_plugin.la
; then
23809 save_ld_ver
="$ld_ver"
23810 save_ld_vers_major
="$ld_vers_major"
23811 save_ld_vers_minor
="$ld_vers_minor"
23812 save_ld_is_gold
="$ld_is_gold"
23816 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23818 # FIXME: ld_is_gold?
23819 ld_vers_major
="$gcc_cv_gld_major_version"
23820 ld_vers_minor
="$gcc_cv_gld_minor_version"
23822 # Determine plugin linker version.
23823 # FIXME: Partial duplicate from above, generalize.
23824 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23825 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23826 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23828 ld_vers
=`echo $ld_ver | sed -n \
23829 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23831 ld_vers
=`echo $ld_ver | sed -n \
23832 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23834 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23835 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23839 # Determine plugin support.
23840 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23841 # Require GNU ld or gold 2.21+ for plugin support by default.
23842 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23843 gcc_cv_lto_plugin
=2
23844 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23845 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23846 gcc_cv_lto_plugin
=1
23850 ld_ver
="$save_ld_ver"
23851 ld_vers_major
="$save_ld_vers_major"
23852 ld_vers_minor
="$save_ld_vers_minor"
23853 ld_is_gold
="$save_ld_is_gold"
23856 cat >>confdefs.h
<<_ACEOF
23857 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23861 $as_echo "$gcc_cv_lto_plugin" >&6; }
23864 # All TARGET_ABI_OSF targets.
23865 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23867 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23868 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23869 $as_echo_n "(cached) " >&6
23871 gcc_cv_as_alpha_explicit_relocs
=no
23872 if test $in_tree_gas = yes; then
23873 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23874 then gcc_cv_as_alpha_explicit_relocs
=yes
23876 elif test x
$gcc_cv_as != x
; then
23877 $as_echo ' .set nomacro
23879 extbl $3, $2, $3 !lituse_bytoff!1
23880 ldq $2, a($29) !literal!1
23881 ldq $4, b($29) !literal!2
23882 ldq_u $3, 0($2) !lituse_base!1
23883 ldq $27, f($29) !literal!5
23884 jsr $26, ($27), f !lituse_jsr!5
23885 ldah $29, 0($26) !gpdisp!3
23886 lda $0, c($29) !gprel
23887 ldah $1, d($29) !gprelhigh
23888 lda $1, d($1) !gprellow
23889 lda $29, 0($29) !gpdisp!3' > conftest.s
23890 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23892 (eval $ac_try) 2>&5
23894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23895 test $ac_status = 0; }; }
23897 gcc_cv_as_alpha_explicit_relocs
=yes
23899 echo "configure: failed program was" >&5
23902 rm -f conftest.o conftest.s
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23906 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23907 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23909 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23913 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23914 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23915 $as_echo_n "(cached) " >&6
23917 gcc_cv_as_alpha_jsrdirect_relocs
=no
23918 if test $in_tree_gas = yes; then
23919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23920 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23922 elif test x
$gcc_cv_as != x
; then
23923 $as_echo ' .set nomacro
23925 ldq $27, a($29) !literal!1
23926 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23927 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23929 (eval $ac_try) 2>&5
23931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23932 test $ac_status = 0; }; }
23934 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23936 echo "configure: failed program was" >&5
23939 rm -f conftest.o conftest.s
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23943 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23944 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23946 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23953 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23954 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23955 $as_echo_n "(cached) " >&6
23957 gcc_cv_as_cris_no_mul_bug
=no
23958 if test $in_tree_gas = yes; then
23959 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23960 then gcc_cv_as_cris_no_mul_bug
=yes
23962 elif test x
$gcc_cv_as != x
; then
23963 $as_echo '.text' > conftest.s
23964 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23966 (eval $ac_try) 2>&5
23968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23969 test $ac_status = 0; }; }
23971 gcc_cv_as_cris_no_mul_bug
=yes
23973 echo "configure: failed program was" >&5
23976 rm -f conftest.o conftest.s
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23980 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23981 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23983 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23990 $as_echo_n "checking assembler for .register... " >&6; }
23991 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23992 $as_echo_n "(cached) " >&6
23994 gcc_cv_as_sparc_register_op
=no
23995 if test x
$gcc_cv_as != x
; then
23996 $as_echo '.register %g2, #scratch' > conftest.s
23997 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23999 (eval $ac_try) 2>&5
24001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24002 test $ac_status = 0; }; }
24004 gcc_cv_as_sparc_register_op
=yes
24006 echo "configure: failed program was" >&5
24009 rm -f conftest.o conftest.s
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24013 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24014 if test $gcc_cv_as_sparc_register_op = yes; then
24016 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24021 $as_echo_n "checking assembler for #nobits... " >&6; }
24022 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24025 gcc_cv_as_sparc_nobits
=no
24026 if test x
$gcc_cv_as != x
; then
24027 $as_echo '.section "nobits",#alloc,#write,#nobits
24028 .section "progbits",#alloc,#write,#progbits' > conftest.s
24029 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24031 (eval $ac_try) 2>&5
24033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24034 test $ac_status = 0; }; }
24036 gcc_cv_as_sparc_nobits
=yes
24038 echo "configure: failed program was" >&5
24041 rm -f conftest.o conftest.s
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24045 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24048 cat >>confdefs.h
<<_ACEOF
24049 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24054 $as_echo_n "checking assembler for -relax option... " >&6; }
24055 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24056 $as_echo_n "(cached) " >&6
24058 gcc_cv_as_sparc_relax
=no
24059 if test x
$gcc_cv_as != x
; then
24060 $as_echo '.text' > conftest.s
24061 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24063 (eval $ac_try) 2>&5
24065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24066 test $ac_status = 0; }; }
24068 gcc_cv_as_sparc_relax
=yes
24070 echo "configure: failed program was" >&5
24073 rm -f conftest.o conftest.s
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24077 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24078 if test $gcc_cv_as_sparc_relax = yes; then
24080 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24085 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24086 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24087 $as_echo_n "(cached) " >&6
24089 gcc_cv_as_sparc_gotdata_op
=no
24090 if test x
$gcc_cv_as != x
; then
24096 sethi %gdop_hix22(foo), %g1
24097 xor %g1, %gdop_lox10(foo), %g1
24098 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24099 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24101 (eval $ac_try) 2>&5
24103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24104 test $ac_status = 0; }; }
24106 if test x
$gcc_cv_ld != x \
24107 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24108 if test x
$gcc_cv_objdump != x
; then
24109 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24110 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24111 gcc_cv_as_sparc_gotdata_op
=no
24113 gcc_cv_as_sparc_gotdata_op
=yes
24119 echo "configure: failed program was" >&5
24122 rm -f conftest.o conftest.s
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24126 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24127 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24129 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24134 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24135 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24136 $as_echo_n "(cached) " >&6
24138 gcc_cv_as_sparc_ua_pcrel
=no
24139 if test x
$gcc_cv_as != x
; then
24146 .uaword %r_disp32(foo)' > conftest.s
24147 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24149 (eval $ac_try) 2>&5
24151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24152 test $ac_status = 0; }; }
24154 if test x
$gcc_cv_ld != x \
24155 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24156 gcc_cv_as_sparc_ua_pcrel
=yes
24160 echo "configure: failed program was" >&5
24163 rm -f conftest.o conftest.s
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24167 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24168 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24170 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24174 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24175 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24176 $as_echo_n "(cached) " >&6
24178 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24179 if test x
$gcc_cv_as != x
; then
24183 .uaword %r_disp32(foo)
24184 .byte 0x32, 0x33, 0x34
24188 .skip 4' > conftest.s
24189 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24191 (eval $ac_try) 2>&5
24193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24194 test $ac_status = 0; }; }
24196 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24197 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24198 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24199 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24200 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24201 |
grep 'DISP32' > /dev
/null
2>&1; then
24204 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24209 echo "configure: failed program was" >&5
24212 rm -f conftest.o conftest.s
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24216 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24217 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24219 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24223 fi # unaligned pcrel relocs
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24226 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24227 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24230 gcc_cv_as_sparc_offsetable_lo10
=no
24231 if test x
$gcc_cv_as != x
; then
24233 or %g1, %lo(ab) + 12, %g1
24234 or %g1, %lo(ab + 12), %g1' > conftest.s
24235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24237 (eval $ac_try) 2>&5
24239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24240 test $ac_status = 0; }; }
24242 if test x
$gcc_cv_objdump != x \
24243 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24244 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24245 gcc_cv_as_sparc_offsetable_lo10
=yes
24248 echo "configure: failed program was" >&5
24251 rm -f conftest.o conftest.s
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24255 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24256 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24258 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24263 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24264 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24265 $as_echo_n "(cached) " >&6
24267 gcc_cv_as_sparc_fmaf
=no
24268 if test x
$gcc_cv_as != x
; then
24270 .register %g2, #scratch
24271 .register %g3, #scratch
24273 fmaddd %f0, %f2, %f4, %f6
24274 addxccc %g1, %g2, %g3
24275 fsrl32 %f2, %f4, %f8
24276 fnaddd %f10, %f12, %f14' > conftest.s
24277 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24279 (eval $ac_try) 2>&5
24281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24282 test $ac_status = 0; }; }
24284 gcc_cv_as_sparc_fmaf
=yes
24286 echo "configure: failed program was" >&5
24289 rm -f conftest.o conftest.s
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24293 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24294 if test $gcc_cv_as_sparc_fmaf = yes; then
24296 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24301 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24302 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24303 $as_echo_n "(cached) " >&6
24305 gcc_cv_as_sparc_sparc4
=no
24306 if test x
$gcc_cv_as != x
; then
24308 .register %g2, #scratch
24309 .register %g3, #scratch
24312 1: cwbneg %g2, %g3, 1f
24315 aes_kexpand0 %f4, %f6, %f8
24316 des_round %f38, %f40, %f42, %f44
24317 camellia_f %f54, %f56, %f58, %f60
24318 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24319 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24321 (eval $ac_try) 2>&5
24323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24324 test $ac_status = 0; }; }
24326 gcc_cv_as_sparc_sparc4
=yes
24328 echo "configure: failed program was" >&5
24331 rm -f conftest.o conftest.s
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24335 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24336 if test $gcc_cv_as_sparc_sparc4 = yes; then
24338 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24343 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24344 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24345 $as_echo_n "(cached) " >&6
24347 gcc_cv_as_sparc_leon
=no
24348 if test x
$gcc_cv_as != x
; then
24350 .register %g2, #scratch
24351 .register %g3, #scratch
24355 cas [%g2], %g3, %g1' > conftest.s
24356 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24358 (eval $ac_try) 2>&5
24360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24361 test $ac_status = 0; }; }
24363 gcc_cv_as_sparc_leon
=yes
24365 echo "configure: failed program was" >&5
24368 rm -f conftest.o conftest.s
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24372 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24373 if test $gcc_cv_as_sparc_leon = yes; then
24375 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24380 i
[34567]86-*-* | x86_64-
*-*)
24383 # Full C++ conformance when using a shared libstdc++-v3 requires some
24384 # support from the Cygwin DLL, which in more recent versions exports
24385 # wrappers to aid in interposing and redirecting operators new, delete,
24386 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24387 # are configuring for a version of Cygwin that exports the wrappers.
24388 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24389 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24390 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24391 gcc_ac_cygwin_dll_wrappers
=yes
24393 gcc_ac_cygwin_dll_wrappers
=no
24397 # Can't check presence of libc functions during cross-compile, so
24398 # we just have to assume we're building for an up-to-date target.
24399 gcc_ac_cygwin_dll_wrappers
=yes
24402 cat >>confdefs.h
<<_ACEOF
24403 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24408 cygwin
* | pe | mingw32
* | interix
*)
24409 # Recent binutils allows the three-operand form of ".comm" on PE. This
24410 # definition is used unconditionally to initialise the default state of
24411 # the target option variable that governs usage of the feature.
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24413 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24414 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24415 $as_echo_n "(cached) " >&6
24417 gcc_cv_as_comm_has_align
=no
24418 if test $in_tree_gas = yes; then
24419 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24420 then gcc_cv_as_comm_has_align
=yes
24422 elif test x
$gcc_cv_as != x
; then
24423 $as_echo '.comm foo,1,32' > conftest.s
24424 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24426 (eval $ac_try) 2>&5
24428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24429 test $ac_status = 0; }; }
24431 gcc_cv_as_comm_has_align
=yes
24433 echo "configure: failed program was" >&5
24436 rm -f conftest.o conftest.s
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24440 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24443 cat >>confdefs.h
<<_ACEOF
24444 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24447 # Used for DWARF 2 in PE
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24449 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24450 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24451 $as_echo_n "(cached) " >&6
24453 gcc_cv_as_ix86_pe_secrel32
=no
24454 if test $in_tree_gas = yes; then
24455 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24456 then gcc_cv_as_ix86_pe_secrel32
=yes
24458 elif test x
$gcc_cv_as != x
; then
24462 .secrel32 foo' > conftest.s
24463 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24465 (eval $ac_try) 2>&5
24467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24468 test $ac_status = 0; }; }
24470 if test x
$gcc_cv_ld != x \
24471 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24472 gcc_cv_as_ix86_pe_secrel32
=yes
24476 echo "configure: failed program was" >&5
24479 rm -f conftest.o conftest.s
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24483 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24484 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24486 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24489 # Test if the assembler supports the extended form of the .section
24490 # directive that specifies section alignment. LTO support uses this,
24491 # but normally only after installation, so we warn but don't fail the
24492 # configure if LTO is enabled but the assembler does not support it.
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24494 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24495 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24496 $as_echo_n "(cached) " >&6
24498 gcc_cv_as_section_has_align
=no
24499 if test $in_tree_gas = yes; then
24500 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24501 then gcc_cv_as_section_has_align
=yes
24503 elif test x
$gcc_cv_as != x
; then
24504 $as_echo '.section lto_test,"dr0"' > conftest.s
24505 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24507 (eval $ac_try) 2>&5
24509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24510 test $ac_status = 0; }; }
24512 gcc_cv_as_section_has_align
=yes
24514 echo "configure: failed program was" >&5
24517 rm -f conftest.o conftest.s
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24521 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24523 if test x
$gcc_cv_as_section_has_align != xyes
; then
24524 case ",$enable_languages," in
24526 { $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
24527 $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;}
24531 # Test if the assembler supports the section flag 'e' for specifying
24532 # an excluded section.
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24534 $as_echo_n "checking assembler for .section with e... " >&6; }
24535 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24536 $as_echo_n "(cached) " >&6
24538 gcc_cv_as_section_has_e
=no
24539 if test $in_tree_gas = yes; then
24540 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24541 then gcc_cv_as_section_has_e
=yes
24543 elif test x
$gcc_cv_as != x
; then
24544 $as_echo '.section foo1,"e"
24545 .byte 0,0,0,0' > conftest.s
24546 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24548 (eval $ac_try) 2>&5
24550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24551 test $ac_status = 0; }; }
24553 gcc_cv_as_section_has_e
=yes
24555 echo "configure: failed program was" >&5
24558 rm -f conftest.o conftest.s
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24562 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24565 cat >>confdefs.h
<<_ACEOF
24566 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24573 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24574 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24575 $as_echo_n "(cached) " >&6
24577 gcc_cv_as_ix86_filds
=no
24578 if test x
$gcc_cv_as != x
; then
24579 $as_echo 'filds mem; fists mem' > conftest.s
24580 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24582 (eval $ac_try) 2>&5
24584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585 test $ac_status = 0; }; }
24587 gcc_cv_as_ix86_filds
=yes
24589 echo "configure: failed program was" >&5
24592 rm -f conftest.o conftest.s
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24596 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24597 if test $gcc_cv_as_ix86_filds = yes; then
24599 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24604 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24605 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24606 $as_echo_n "(cached) " >&6
24608 gcc_cv_as_ix86_fildq
=no
24609 if test x
$gcc_cv_as != x
; then
24610 $as_echo 'fildq mem; fistpq mem' > conftest.s
24611 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24613 (eval $ac_try) 2>&5
24615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24616 test $ac_status = 0; }; }
24618 gcc_cv_as_ix86_fildq
=yes
24620 echo "configure: failed program was" >&5
24623 rm -f conftest.o conftest.s
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24627 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24628 if test $gcc_cv_as_ix86_fildq = yes; then
24630 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24635 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24636 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24637 $as_echo_n "(cached) " >&6
24639 gcc_cv_as_ix86_cmov_sun_syntax
=no
24640 if test x
$gcc_cv_as != x
; then
24641 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24642 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24644 (eval $ac_try) 2>&5
24646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24647 test $ac_status = 0; }; }
24649 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24651 echo "configure: failed program was" >&5
24654 rm -f conftest.o conftest.s
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24658 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24659 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24661 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24666 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24667 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24668 $as_echo_n "(cached) " >&6
24670 gcc_cv_as_ix86_ffreep
=no
24671 if test x
$gcc_cv_as != x
; then
24672 $as_echo 'ffreep %st(1)' > conftest.s
24673 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24675 (eval $ac_try) 2>&5
24677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24678 test $ac_status = 0; }; }
24680 gcc_cv_as_ix86_ffreep
=yes
24682 echo "configure: failed program was" >&5
24685 rm -f conftest.o conftest.s
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24689 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24690 if test $gcc_cv_as_ix86_ffreep = yes; then
24692 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24697 $as_echo_n "checking assembler for .quad directive... " >&6; }
24698 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24699 $as_echo_n "(cached) " >&6
24701 gcc_cv_as_ix86_quad
=no
24702 if test x
$gcc_cv_as != x
; then
24703 $as_echo '.quad 0' > conftest.s
24704 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24706 (eval $ac_try) 2>&5
24708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24709 test $ac_status = 0; }; }
24711 gcc_cv_as_ix86_quad
=yes
24713 echo "configure: failed program was" >&5
24716 rm -f conftest.o conftest.s
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24720 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24721 if test $gcc_cv_as_ix86_quad = yes; then
24723 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24728 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24729 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24730 $as_echo_n "(cached) " >&6
24732 gcc_cv_as_ix86_sahf
=no
24733 if test x
$gcc_cv_as != x
; then
24736 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24738 (eval $ac_try) 2>&5
24740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24741 test $ac_status = 0; }; }
24743 gcc_cv_as_ix86_sahf
=yes
24745 echo "configure: failed program was" >&5
24748 rm -f conftest.o conftest.s
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24752 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24753 if test $gcc_cv_as_ix86_sahf = yes; then
24755 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24760 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24761 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24762 $as_echo_n "(cached) " >&6
24764 gcc_cv_as_ix86_interunit_movq
=no
24765 if test x
$gcc_cv_as != x
; then
24768 movq %rax, %xmm0' > conftest.s
24769 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24771 (eval $ac_try) 2>&5
24773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24774 test $ac_status = 0; }; }
24776 gcc_cv_as_ix86_interunit_movq
=yes
24778 echo "configure: failed program was" >&5
24781 rm -f conftest.o conftest.s
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24785 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24786 if test $gcc_cv_as_ix86_interunit_movq = yes; then
24788 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24793 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24794 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24795 $as_echo_n "(cached) " >&6
24797 gcc_cv_as_ix86_hle
=no
24798 if test x
$gcc_cv_as != x
; then
24799 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24800 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24802 (eval $ac_try) 2>&5
24804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24805 test $ac_status = 0; }; }
24807 gcc_cv_as_ix86_hle
=yes
24809 echo "configure: failed program was" >&5
24812 rm -f conftest.o conftest.s
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24816 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24817 if test $gcc_cv_as_ix86_hle = yes; then
24819 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24824 $as_echo_n "checking assembler for swap suffix... " >&6; }
24825 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24826 $as_echo_n "(cached) " >&6
24828 gcc_cv_as_ix86_swap
=no
24829 if test x
$gcc_cv_as != x
; then
24830 $as_echo 'movl.s %esp, %ebp' > conftest.s
24831 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24833 (eval $ac_try) 2>&5
24835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24836 test $ac_status = 0; }; }
24838 gcc_cv_as_ix86_swap
=yes
24840 echo "configure: failed program was" >&5
24843 rm -f conftest.o conftest.s
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24847 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24848 if test $gcc_cv_as_ix86_swap = yes; then
24850 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24855 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24856 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24857 $as_echo_n "(cached) " >&6
24859 gcc_cv_as_ix86_diff_sect_delta
=no
24860 if test x
$gcc_cv_as != x
; then
24861 $as_echo '.section .rodata
24867 .L2: nop' > conftest.s
24868 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24870 (eval $ac_try) 2>&5
24872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24873 test $ac_status = 0; }; }
24875 gcc_cv_as_ix86_diff_sect_delta
=yes
24877 echo "configure: failed program was" >&5
24880 rm -f conftest.o conftest.s
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24884 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24885 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24887 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24891 # These two are used unconditionally by i386.[ch]; it is to be defined
24892 # to 1 if the feature is present, 0 otherwise.
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24894 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24895 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24896 $as_echo_n "(cached) " >&6
24898 gcc_cv_as_ix86_gotoff_in_data
=no
24899 if test $in_tree_gas = yes; then
24900 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24901 then gcc_cv_as_ix86_gotoff_in_data
=yes
24903 elif test x
$gcc_cv_as != x
; then
24908 .long .L0@GOTOFF' > conftest.s
24909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24911 (eval $ac_try) 2>&5
24913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24914 test $ac_status = 0; }; }
24916 gcc_cv_as_ix86_gotoff_in_data
=yes
24918 echo "configure: failed program was" >&5
24921 rm -f conftest.o conftest.s
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24925 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24928 cat >>confdefs.h
<<_ACEOF
24929 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24934 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24935 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24936 $as_echo_n "(cached) " >&6
24938 gcc_cv_as_ix86_rep_lock_prefix
=no
24939 if test x
$gcc_cv_as != x
; then
24940 $as_echo 'rep movsl
24945 lock addl %edi, (%eax,%esi)
24946 lock orl $0, (%esp)' > conftest.s
24947 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24949 (eval $ac_try) 2>&5
24951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24952 test $ac_status = 0; }; }
24954 gcc_cv_as_ix86_rep_lock_prefix
=yes
24956 echo "configure: failed program was" >&5
24959 rm -f conftest.o conftest.s
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24963 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24964 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24966 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24971 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24972 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24973 $as_echo_n "(cached) " >&6
24975 gcc_cv_as_ix86_tlsgdplt
=no
24976 if test x
$gcc_cv_as != x
; then
24977 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24978 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24980 (eval $ac_try) 2>&5
24982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24983 test $ac_status = 0; }; }
24985 if test x
$gcc_cv_ld != x \
24986 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24987 gcc_cv_as_ix86_tlsgdplt
=yes
24991 echo "configure: failed program was" >&5
24994 rm -f conftest.o conftest.s
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24998 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24999 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25001 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25006 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25007 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25008 $as_echo_n "(cached) " >&6
25010 gcc_cv_as_ix86_tlsldmplt
=no
25011 if test x
$gcc_cv_as != x
; then
25013 call tls_ld@tlsldmplt' > conftest.s
25014 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25016 (eval $ac_try) 2>&5
25018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25019 test $ac_status = 0; }; }
25021 if test x
$gcc_cv_ld != x \
25022 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25023 gcc_cv_as_ix86_tlsldmplt
=yes
25027 echo "configure: failed program was" >&5
25030 rm -f conftest.o conftest.s
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25034 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25035 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25037 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25045 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25046 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25047 $as_echo_n "(cached) " >&6
25049 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25050 if test $in_tree_gas = yes; then
25051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25052 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25054 elif test x
$gcc_cv_as != x
; then
25056 addl r15 = @ltoffx(x#), gp
25058 ld8.mov r16 = [r15], x#' > conftest.s
25059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25061 (eval $ac_try) 2>&5
25063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }; }
25066 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25068 echo "configure: failed program was" >&5
25071 rm -f conftest.o conftest.s
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25075 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25076 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25078 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25086 *-*-aix*) conftest_s
=' .machine "pwr5"
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25091 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25092 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25093 $as_echo_n "(cached) " >&6
25095 gcc_cv_as_machine_directive
=no
25096 if test x
$gcc_cv_as != x
; then
25097 $as_echo ' .machine ppc7400' > conftest.s
25098 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25100 (eval $ac_try) 2>&5
25102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25103 test $ac_status = 0; }; }
25105 gcc_cv_as_machine_directive
=yes
25107 echo "configure: failed program was" >&5
25110 rm -f conftest.o conftest.s
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25114 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25116 if test x
$gcc_cv_as_machine_directive != xyes
; then
25117 echo "*** This target requires an assembler supporting \".machine\"" >&2
25118 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25119 test x
$build = x
$target && exit 1
25123 *) conftest_s
=' .machine power4
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25129 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25130 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25131 $as_echo_n "(cached) " >&6
25133 gcc_cv_as_powerpc_mfcrf
=no
25134 if test $in_tree_gas = yes; then
25135 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25136 then gcc_cv_as_powerpc_mfcrf
=yes
25138 elif test x
$gcc_cv_as != x
; then
25139 $as_echo "$conftest_s" > conftest.s
25140 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25142 (eval $ac_try) 2>&5
25144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25145 test $ac_status = 0; }; }
25147 gcc_cv_as_powerpc_mfcrf
=yes
25149 echo "configure: failed program was" >&5
25152 rm -f conftest.o conftest.s
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25156 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25157 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25159 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25164 *-*-aix*) conftest_s
=' .machine "pwr5"
25167 *) conftest_s
=' .machine power5
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25173 $as_echo_n "checking assembler for popcntb support... " >&6; }
25174 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25175 $as_echo_n "(cached) " >&6
25177 gcc_cv_as_powerpc_popcntb
=no
25178 if test $in_tree_gas = yes; then
25179 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25180 then gcc_cv_as_powerpc_popcntb
=yes
25182 elif test x
$gcc_cv_as != x
; then
25183 $as_echo "$conftest_s" > conftest.s
25184 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25186 (eval $ac_try) 2>&5
25188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25189 test $ac_status = 0; }; }
25191 gcc_cv_as_powerpc_popcntb
=yes
25193 echo "configure: failed program was" >&5
25196 rm -f conftest.o conftest.s
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25200 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25201 if test $gcc_cv_as_powerpc_popcntb = yes; then
25203 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25208 *-*-aix*) conftest_s
=' .machine "pwr5x"
25211 *) conftest_s
=' .machine power5
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25217 $as_echo_n "checking assembler for fp round support... " >&6; }
25218 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25219 $as_echo_n "(cached) " >&6
25221 gcc_cv_as_powerpc_fprnd
=no
25222 if test $in_tree_gas = yes; then
25223 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25224 then gcc_cv_as_powerpc_fprnd
=yes
25226 elif test x
$gcc_cv_as != x
; then
25227 $as_echo "$conftest_s" > conftest.s
25228 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25230 (eval $ac_try) 2>&5
25232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25233 test $ac_status = 0; }; }
25235 gcc_cv_as_powerpc_fprnd
=yes
25237 echo "configure: failed program was" >&5
25240 rm -f conftest.o conftest.s
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25244 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25245 if test $gcc_cv_as_powerpc_fprnd = yes; then
25247 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25252 *-*-aix*) conftest_s
=' .machine "pwr6"
25255 *) conftest_s
=' .machine power6
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25261 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25262 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25263 $as_echo_n "(cached) " >&6
25265 gcc_cv_as_powerpc_mfpgpr
=no
25266 if test $in_tree_gas = yes; then
25267 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25268 then gcc_cv_as_powerpc_mfpgpr
=yes
25270 elif test x
$gcc_cv_as != x
; then
25271 $as_echo "$conftest_s" > conftest.s
25272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25274 (eval $ac_try) 2>&5
25276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25277 test $ac_status = 0; }; }
25279 gcc_cv_as_powerpc_mfpgpr
=yes
25281 echo "configure: failed program was" >&5
25284 rm -f conftest.o conftest.s
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25288 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25289 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25291 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25296 *-*-aix*) conftest_s
=' .csect .text[PR]
25298 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25302 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25303 *) conftest_s
=' .text
25305 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25309 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25310 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25311 $as_echo_n "(cached) " >&6
25313 gcc_cv_as_powerpc_rel16
=no
25314 if test $in_tree_gas = yes; then
25315 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25316 then gcc_cv_as_powerpc_rel16
=yes
25318 elif test x
$gcc_cv_as != x
; then
25319 $as_echo "$conftest_s" > conftest.s
25320 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25322 (eval $ac_try) 2>&5
25324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25325 test $ac_status = 0; }; }
25327 gcc_cv_as_powerpc_rel16
=yes
25329 echo "configure: failed program was" >&5
25332 rm -f conftest.o conftest.s
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25336 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25337 if test $gcc_cv_as_powerpc_rel16 = yes; then
25339 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25344 *-*-aix*) conftest_s
=' .machine "pwr6"
25347 *) conftest_s
=' .machine power6
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25353 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25354 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25355 $as_echo_n "(cached) " >&6
25357 gcc_cv_as_powerpc_cmpb
=no
25358 if test $in_tree_gas = yes; then
25359 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25360 then gcc_cv_as_powerpc_cmpb
=yes
25362 elif test x
$gcc_cv_as != x
; then
25363 $as_echo "$conftest_s" > conftest.s
25364 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25366 (eval $ac_try) 2>&5
25368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25369 test $ac_status = 0; }; }
25371 gcc_cv_as_powerpc_cmpb
=yes
25373 echo "configure: failed program was" >&5
25376 rm -f conftest.o conftest.s
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25380 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25381 if test $gcc_cv_as_powerpc_cmpb = yes; then
25383 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25388 *-*-aix*) conftest_s
=' .machine "pwr6"
25391 *) conftest_s
=' .machine power6
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25397 $as_echo_n "checking assembler for decimal float support... " >&6; }
25398 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25399 $as_echo_n "(cached) " >&6
25401 gcc_cv_as_powerpc_dfp
=no
25402 if test $in_tree_gas = yes; then
25403 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25404 then gcc_cv_as_powerpc_dfp
=yes
25406 elif test x
$gcc_cv_as != x
; then
25407 $as_echo "$conftest_s" > conftest.s
25408 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25410 (eval $ac_try) 2>&5
25412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25413 test $ac_status = 0; }; }
25415 gcc_cv_as_powerpc_dfp
=yes
25417 echo "configure: failed program was" >&5
25420 rm -f conftest.o conftest.s
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25424 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25425 if test $gcc_cv_as_powerpc_dfp = yes; then
25427 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25432 *-*-aix*) conftest_s
=' .machine "pwr7"
25435 *) conftest_s
=' .machine power7
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25441 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25442 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25443 $as_echo_n "(cached) " >&6
25445 gcc_cv_as_powerpc_vsx
=no
25446 if test $in_tree_gas = yes; then
25447 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25448 then gcc_cv_as_powerpc_vsx
=yes
25450 elif test x
$gcc_cv_as != x
; then
25451 $as_echo "$conftest_s" > conftest.s
25452 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25454 (eval $ac_try) 2>&5
25456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25457 test $ac_status = 0; }; }
25459 gcc_cv_as_powerpc_vsx
=yes
25461 echo "configure: failed program was" >&5
25464 rm -f conftest.o conftest.s
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25468 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25469 if test $gcc_cv_as_powerpc_vsx = yes; then
25471 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25476 *-*-aix*) conftest_s
=' .machine "pwr7"
25479 *) conftest_s
=' .machine power7
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25485 $as_echo_n "checking assembler for popcntd support... " >&6; }
25486 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25487 $as_echo_n "(cached) " >&6
25489 gcc_cv_as_powerpc_popcntd
=no
25490 if test $in_tree_gas = yes; then
25491 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25492 then gcc_cv_as_powerpc_popcntd
=yes
25494 elif test x
$gcc_cv_as != x
; then
25495 $as_echo "$conftest_s" > conftest.s
25496 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25498 (eval $ac_try) 2>&5
25500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25501 test $ac_status = 0; }; }
25503 gcc_cv_as_powerpc_popcntd
=yes
25505 echo "configure: failed program was" >&5
25508 rm -f conftest.o conftest.s
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25512 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25513 if test $gcc_cv_as_powerpc_popcntd = yes; then
25515 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25520 *-*-aix*) conftest_s
=' .machine "pwr8"
25521 .csect .text[PR]';;
25522 *) conftest_s
=' .machine power8
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25527 $as_echo_n "checking assembler for power8 support... " >&6; }
25528 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25529 $as_echo_n "(cached) " >&6
25531 gcc_cv_as_powerpc_power8
=no
25532 if test $in_tree_gas = yes; then
25533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25534 then gcc_cv_as_powerpc_power8
=yes
25536 elif test x
$gcc_cv_as != x
; then
25537 $as_echo "$conftest_s" > conftest.s
25538 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25540 (eval $ac_try) 2>&5
25542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25543 test $ac_status = 0; }; }
25545 gcc_cv_as_powerpc_power8
=yes
25547 echo "configure: failed program was" >&5
25550 rm -f conftest.o conftest.s
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25554 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25555 if test $gcc_cv_as_powerpc_power8 = yes; then
25557 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25562 *-*-aix*) conftest_s
=' .csect .text[PR]
25564 *) conftest_s
=' .text
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25569 $as_echo_n "checking assembler for lwsync support... " >&6; }
25570 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25571 $as_echo_n "(cached) " >&6
25573 gcc_cv_as_powerpc_lwsync
=no
25574 if test $in_tree_gas = yes; then
25575 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25576 then gcc_cv_as_powerpc_lwsync
=yes
25578 elif test x
$gcc_cv_as != x
; then
25579 $as_echo "$conftest_s" > conftest.s
25580 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25582 (eval $ac_try) 2>&5
25584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25585 test $ac_status = 0; }; }
25587 gcc_cv_as_powerpc_lwsync
=yes
25589 echo "configure: failed program was" >&5
25592 rm -f conftest.o conftest.s
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25596 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25597 if test $gcc_cv_as_powerpc_lwsync = yes; then
25599 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25604 *-*-aix*) conftest_s
=' .machine "476"
25607 *) conftest_s
=' .machine "476"
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25613 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25614 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25615 $as_echo_n "(cached) " >&6
25617 gcc_cv_as_powerpc_dci
=no
25618 if test $in_tree_gas = yes; then
25619 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25620 then gcc_cv_as_powerpc_dci
=yes
25622 elif test x
$gcc_cv_as != x
; then
25623 $as_echo "$conftest_s" > conftest.s
25624 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25626 (eval $ac_try) 2>&5
25628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25629 test $ac_status = 0; }; }
25631 gcc_cv_as_powerpc_dci
=yes
25633 echo "configure: failed program was" >&5
25636 rm -f conftest.o conftest.s
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25640 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25641 if test $gcc_cv_as_powerpc_dci = yes; then
25643 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25648 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25649 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25650 $as_echo_n "(cached) " >&6
25652 gcc_cv_as_powerpc_gnu_attribute
=no
25653 if test $in_tree_gas = yes; then
25654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25655 then gcc_cv_as_powerpc_gnu_attribute
=yes
25657 elif test x
$gcc_cv_as != x
; then
25658 $as_echo '.gnu_attribute 4,1' > conftest.s
25659 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25661 (eval $ac_try) 2>&5
25663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664 test $ac_status = 0; }; }
25666 gcc_cv_as_powerpc_gnu_attribute
=yes
25668 echo "configure: failed program was" >&5
25671 rm -f conftest.o conftest.s
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25675 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25676 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25678 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25683 $as_echo_n "checking assembler for tls marker support... " >&6; }
25684 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25685 $as_echo_n "(cached) " >&6
25687 gcc_cv_as_powerpc_tls_markers
=no
25688 if test $in_tree_gas = yes; then
25689 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25690 then gcc_cv_as_powerpc_tls_markers
=yes
25692 elif test x
$gcc_cv_as != x
; then
25693 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25694 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25696 (eval $ac_try) 2>&5
25698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25699 test $ac_status = 0; }; }
25701 gcc_cv_as_powerpc_tls_markers
=yes
25703 echo "configure: failed program was" >&5
25706 rm -f conftest.o conftest.s
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25710 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25711 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25713 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25720 $as_echo_n "checking assembler for .ref support... " >&6; }
25721 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25722 $as_echo_n "(cached) " >&6
25724 gcc_cv_as_aix_ref
=no
25725 if test $in_tree_gas = yes; then
25726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25727 then gcc_cv_as_aix_ref
=yes
25729 elif test x
$gcc_cv_as != x
; then
25730 $as_echo ' .csect stuff[rw]
25736 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25738 (eval $ac_try) 2>&5
25740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25741 test $ac_status = 0; }; }
25743 gcc_cv_as_aix_ref
=yes
25745 echo "configure: failed program was" >&5
25748 rm -f conftest.o conftest.s
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25752 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25753 if test $gcc_cv_as_aix_ref = yes; then
25755 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25764 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25765 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25766 $as_echo_n "(cached) " >&6
25768 gcc_cv_as_mips_explicit_relocs
=no
25769 if test $in_tree_gas = yes; then
25770 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25771 then gcc_cv_as_mips_explicit_relocs
=yes
25773 elif test x
$gcc_cv_as != x
; then
25774 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25775 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25777 (eval $ac_try) 2>&5
25779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25780 test $ac_status = 0; }; }
25782 gcc_cv_as_mips_explicit_relocs
=yes
25784 echo "configure: failed program was" >&5
25787 rm -f conftest.o conftest.s
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25791 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25792 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25793 if test x
$target_cpu_default = x
25794 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25795 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25799 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25800 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25801 $as_echo_n "(cached) " >&6
25803 gcc_cv_as_mips_no_shared
=no
25804 if test $in_tree_gas = yes; then
25805 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25806 then gcc_cv_as_mips_no_shared
=yes
25808 elif test x
$gcc_cv_as != x
; then
25809 $as_echo 'nop' > conftest.s
25810 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25812 (eval $ac_try) 2>&5
25814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25815 test $ac_status = 0; }; }
25817 gcc_cv_as_mips_no_shared
=yes
25819 echo "configure: failed program was" >&5
25822 rm -f conftest.o conftest.s
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25826 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25827 if test $gcc_cv_as_mips_no_shared = yes; then
25829 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25834 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25835 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25836 $as_echo_n "(cached) " >&6
25838 gcc_cv_as_mips_gnu_attribute
=no
25839 if test $in_tree_gas = yes; then
25840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25841 then gcc_cv_as_mips_gnu_attribute
=yes
25843 elif test x
$gcc_cv_as != x
; then
25844 $as_echo '.gnu_attribute 4,1' > conftest.s
25845 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25847 (eval $ac_try) 2>&5
25849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25850 test $ac_status = 0; }; }
25852 gcc_cv_as_mips_gnu_attribute
=yes
25854 echo "configure: failed program was" >&5
25857 rm -f conftest.o conftest.s
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25861 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25862 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25864 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25869 $as_echo_n "checking assembler for .micromips support... " >&6; }
25870 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25871 $as_echo_n "(cached) " >&6
25873 gcc_cv_as_micromips_support
=no
25874 if test x
$gcc_cv_as != x
; then
25875 $as_echo '.set micromips' > conftest.s
25876 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; }
25883 gcc_cv_as_micromips_support
=yes
25885 echo "configure: failed program was" >&5
25888 rm -f conftest.o conftest.s
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25892 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25893 if test $gcc_cv_as_micromips_support = yes; then
25895 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25900 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25901 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25902 $as_echo_n "(cached) " >&6
25904 gcc_cv_as_mips_dtprelword
=no
25905 if test $in_tree_gas = yes; then
25906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25907 then gcc_cv_as_mips_dtprelword
=yes
25909 elif test x
$gcc_cv_as != x
; then
25910 $as_echo '.section .tdata,"awT",@progbits
25914 .dtprelword x+0x8000' > conftest.s
25915 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25917 (eval $ac_try) 2>&5
25919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25920 test $ac_status = 0; }; }
25922 gcc_cv_as_mips_dtprelword
=yes
25924 echo "configure: failed program was" >&5
25927 rm -f conftest.o conftest.s
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25931 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25932 if test $gcc_cv_as_mips_dtprelword = yes; then
25934 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25939 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25940 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25941 $as_echo_n "(cached) " >&6
25943 gcc_cv_as_mips_dspr1_mult
=no
25944 if test x
$gcc_cv_as != x
; then
25945 $as_echo ' .set mips32r2
25953 multu $ac3,$4,$5' > conftest.s
25954 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25956 (eval $ac_try) 2>&5
25958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25959 test $ac_status = 0; }; }
25961 gcc_cv_as_mips_dspr1_mult
=yes
25963 echo "configure: failed program was" >&5
25966 rm -f conftest.o conftest.s
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25970 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25971 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25973 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25978 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25979 gcc_cv_as_ld_jalr_reloc
=no
25980 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25981 if test $in_tree_ld = yes ; then
25982 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 \
25983 && test $in_tree_ld_is_elf = yes; then
25984 gcc_cv_as_ld_jalr_reloc
=yes
25986 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25987 echo ' .ent x' > conftest.s
25988 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25989 echo ' ld $25,%call16(y)($28)' >> conftest.s
25990 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25991 echo '1: jalr $25' >> conftest.s
25992 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25993 echo '1: jalr $25' >> conftest.s
25994 echo ' .end x' >> conftest.s
25995 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25996 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25997 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25998 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25999 gcc_cv_as_ld_jalr_reloc
=yes
26005 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26006 if test x
$target_cpu_default = x
; then
26007 target_cpu_default
=MASK_RELAX_PIC_CALLS
26009 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26013 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26016 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26017 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26018 $as_echo_n "(cached) " >&6
26020 gcc_cv_ld_mips_personality_relaxation
=no
26021 if test $in_tree_ld = yes ; then
26022 if test "$gcc_cv_gld_major_version" -eq 2 \
26023 -a "$gcc_cv_gld_minor_version" -ge 21 \
26024 -o "$gcc_cv_gld_major_version" -gt 2; then
26025 gcc_cv_ld_mips_personality_relaxation
=yes
26027 elif test x
$gcc_cv_as != x \
26028 -a x
$gcc_cv_ld != x \
26029 -a x
$gcc_cv_readelf != x
; then
26030 cat > conftest.s
<<EOF
26032 .cfi_personality 0x80,indirect_ptr
26039 .section .data,"aw",@progbits
26043 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26044 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26045 if $gcc_cv_readelf -d conftest
2>&1 \
26046 |
grep TEXTREL
> /dev
/null
2>&1; then
26048 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26049 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26052 gcc_cv_ld_mips_personality_relaxation
=yes
26056 rm -f conftest.s conftest.o conftest
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26059 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26060 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26062 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26067 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26068 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26069 $as_echo_n "(cached) " >&6
26071 gcc_cv_as_mips_nan
=no
26072 if test x
$gcc_cv_as != x
; then
26073 $as_echo '' > conftest.s
26074 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26076 (eval $ac_try) 2>&5
26078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26079 test $ac_status = 0; }; }
26081 gcc_cv_as_mips_nan
=yes
26083 echo "configure: failed program was" >&5
26086 rm -f conftest.o conftest.s
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26090 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26091 if test $gcc_cv_as_mips_nan = yes; then
26093 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26096 if test x
$gcc_cv_as_mips_nan = xno \
26097 && test x
$with_nan != x
; then
26098 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26103 # Mips and HP-UX need the GNU assembler.
26104 # Linux on IA64 might be able to use the Intel assembler.
26107 mips
*-*-* |
*-*-hpux* )
26108 if test x
$gas_flag = xyes \
26109 ||
test x
"$host" != x
"$build" \
26110 ||
test ! -x "$gcc_cv_as" \
26111 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26114 echo "*** This configuration requires the GNU assembler" >&2
26120 # ??? Not all targets support dwarf2 debug_line, even within a version
26121 # of gas. Moreover, we need to emit a valid instruction to trigger any
26122 # info to the output file. So, as supported targets are added to gas 2.11,
26123 # add some instruction here to (also) show we expect this might work.
26124 # ??? Once 2.11 is released, probably need to add first known working
26125 # version to the per-target configury.
26126 case "$cpu_type" in
26127 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26128 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26139 if test x
"$insn" != x
; then
26141 .file 1 \"conftest.s\"
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26145 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26146 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26147 $as_echo_n "(cached) " >&6
26149 gcc_cv_as_dwarf2_debug_line
=no
26150 if test $in_tree_gas = yes; then
26151 if test $in_tree_gas_is_elf = yes \
26152 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26153 then gcc_cv_as_dwarf2_debug_line
=yes
26155 elif test x
$gcc_cv_as != x
; then
26156 $as_echo "$conftest_s" > conftest.s
26157 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26159 (eval $ac_try) 2>&5
26161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26162 test $ac_status = 0; }; }
26164 if test x
$gcc_cv_objdump != x \
26165 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26166 |
grep debug_line
> /dev
/null
2>&1; then
26167 gcc_cv_as_dwarf2_debug_line
=yes
26170 echo "configure: failed program was" >&5
26173 rm -f conftest.o conftest.s
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26177 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26180 # The .debug_line file table must be in the exact order that
26181 # we specified the files, since these indices are also used
26182 # by DW_AT_decl_file. Approximate this test by testing if
26183 # the assembler bitches if the same index is assigned twice.
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26185 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26186 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26187 $as_echo_n "(cached) " >&6
26189 gcc_cv_as_dwarf2_file_buggy
=no
26190 if test x
$gcc_cv_as != x
; then
26191 $as_echo ' .file 1 "foo.s"
26192 .file 1 "bar.s"' > conftest.s
26193 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26195 (eval $ac_try) 2>&5
26197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26198 test $ac_status = 0; }; }
26200 gcc_cv_as_dwarf2_file_buggy
=yes
26202 echo "configure: failed program was" >&5
26205 rm -f conftest.o conftest.s
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26209 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26212 if test $gcc_cv_as_dwarf2_debug_line = yes \
26213 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26215 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26220 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26221 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26222 $as_echo_n "(cached) " >&6
26224 gcc_cv_as_gdwarf2_flag
=no
26225 if test $in_tree_gas = yes; then
26226 if test $in_tree_gas_is_elf = yes \
26227 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26228 then gcc_cv_as_gdwarf2_flag
=yes
26230 elif test x
$gcc_cv_as != x
; then
26231 $as_echo "$insn" > conftest.s
26232 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26234 (eval $ac_try) 2>&5
26236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26237 test $ac_status = 0; }; }
26239 gcc_cv_as_gdwarf2_flag
=yes
26241 echo "configure: failed program was" >&5
26244 rm -f conftest.o conftest.s
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26248 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26249 if test $gcc_cv_as_gdwarf2_flag = yes; then
26251 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26256 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26257 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26258 $as_echo_n "(cached) " >&6
26260 gcc_cv_as_gstabs_flag
=no
26261 if test $in_tree_gas = yes; then
26262 if test $in_tree_gas_is_elf = yes \
26263 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26264 then gcc_cv_as_gstabs_flag
=yes
26266 elif test x
$gcc_cv_as != x
; then
26267 $as_echo "$insn" > conftest.s
26268 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26270 (eval $ac_try) 2>&5
26272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26273 test $ac_status = 0; }; }
26275 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26276 # and warns about it, but still exits successfully. So check for
26278 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26280 (eval $ac_try) 2>&5
26282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26283 test $ac_status = 0; }; }
26285 else gcc_cv_as_gstabs_flag
=yes
26288 echo "configure: failed program was" >&5
26291 rm -f conftest.o conftest.s
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26295 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26296 if test $gcc_cv_as_gstabs_flag = yes; then
26298 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26303 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26304 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26305 $as_echo_n "(cached) " >&6
26307 gcc_cv_as_debug_prefix_map_flag
=no
26308 if test $in_tree_gas = yes; then
26309 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26310 then gcc_cv_as_debug_prefix_map_flag
=yes
26312 elif test x
$gcc_cv_as != x
; then
26313 $as_echo "$insn" > conftest.s
26314 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26316 (eval $ac_try) 2>&5
26318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26319 test $ac_status = 0; }; }
26321 gcc_cv_as_debug_prefix_map_flag
=yes
26323 echo "configure: failed program was" >&5
26326 rm -f conftest.o conftest.s
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26330 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26331 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26333 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26339 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26340 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26341 $as_echo_n "(cached) " >&6
26343 gcc_cv_as_lcomm_with_alignment
=no
26344 if test x
$gcc_cv_as != x
; then
26345 $as_echo '.lcomm bar,4,16' > conftest.s
26346 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26348 (eval $ac_try) 2>&5
26350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26351 test $ac_status = 0; }; }
26353 gcc_cv_as_lcomm_with_alignment
=yes
26355 echo "configure: failed program was" >&5
26358 rm -f conftest.o conftest.s
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26362 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26363 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26365 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26369 # Check whether --enable-gnu-unique-object was given.
26370 if test "${enable_gnu_unique_object+set}" = set; then :
26371 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26373 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26374 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26378 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26379 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26380 $as_echo_n "(cached) " >&6
26382 gcc_cv_as_gnu_unique_object
=no
26383 if test $in_tree_gas = yes; then
26384 if test $in_tree_gas_is_elf = yes \
26385 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26386 then gcc_cv_as_gnu_unique_object
=yes
26388 elif test x
$gcc_cv_as != x
; then
26389 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26390 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26392 (eval $ac_try) 2>&5
26394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26395 test $ac_status = 0; }; }
26397 gcc_cv_as_gnu_unique_object
=yes
26399 echo "configure: failed program was" >&5
26402 rm -f conftest.o conftest.s
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26406 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26407 if test $gcc_cv_as_gnu_unique_object = yes; then
26408 # We need to unquote above to to use the definition from config.gcc.
26409 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26410 if test x
$host = x
$build -a x
$host = x
$target &&
26411 ldd
--version 2>/dev
/null
&&
26412 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26413 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26414 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26415 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26416 if test "$glibcnum" -ge 2011 ; then
26417 enable_gnu_unique_object
=yes
26423 if test x
$enable_gnu_unique_object = xyes
; then
26425 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26430 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26431 if test "${gcc_cv_as_line_zero+set}" = set; then :
26432 $as_echo_n "(cached) " >&6
26434 gcc_cv_as_line_zero
=no
26435 if test $in_tree_gas = yes; then
26436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26437 then gcc_cv_as_line_zero
=yes
26439 elif test "x$gcc_cv_as" != x
; then
26440 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26441 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26443 (eval $ac_try) 2>&5
26445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26446 test $ac_status = 0; }; } &&
26447 test "x`cat conftest.out`" = x
26449 gcc_cv_as_line_zero
=yes
26451 echo "configure: failed program was" >&5
26453 echo "configure: error output was" >&5
26454 cat conftest.out
>&5
26456 rm -f conftest.o conftest.s conftest.out
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26460 $as_echo "$gcc_cv_as_line_zero" >&6; }
26461 if test "x$gcc_cv_as_line_zero" = xyes
; then
26463 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26468 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26469 gcc_cv_ld_eh_frame_hdr
=no
26470 if test $in_tree_ld = yes ; then
26471 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
26472 && test $in_tree_ld_is_elf = yes; then
26473 gcc_cv_ld_eh_frame_hdr
=yes
26475 elif test x
$gcc_cv_ld != x
; then
26476 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26477 # Check if linker supports --eh-frame-hdr option
26478 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26479 gcc_cv_ld_eh_frame_hdr
=yes
26484 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26485 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26486 gcc_cv_ld_eh_frame_hdr
=yes
26493 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26495 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26499 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26502 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26503 gcc_cv_ld_eh_frame_ciev3
=no
26504 if test $in_tree_ld = yes ; then
26505 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 \
26506 && test $in_tree_ld_is_elf = yes; then
26507 gcc_cv_ld_eh_frame_ciev3
=yes
26509 elif test x
$gcc_cv_ld != x
; then
26510 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26511 gcc_cv_ld_eh_frame_ciev3
=yes
26512 if test 0"$ld_date" -lt 20040513; then
26513 if test -n "$ld_date"; then
26514 # If there was date string, but was earlier than 2004-05-13, fail
26515 gcc_cv_ld_eh_frame_ciev3
=no
26516 elif test "$ld_vers_major" -lt 2; then
26517 gcc_cv_ld_eh_frame_ciev3
=no
26518 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26519 gcc_cv_ld_eh_frame_ciev3
=no
26525 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26526 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26527 gcc_cv_ld_eh_frame_ciev3
=yes
26534 cat >>confdefs.h
<<_ACEOF
26535 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26539 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26542 $as_echo_n "checking linker position independent executable support... " >&6; }
26544 if test $in_tree_ld = yes ; then
26545 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 \
26546 && test $in_tree_ld_is_elf = yes; then
26549 elif test x
$gcc_cv_ld != x
; then
26550 # Check if linker supports -pie option
26551 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26555 if test x
"$gcc_cv_ld_pie" = xyes
; then
26557 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26561 $as_echo "$gcc_cv_ld_pie" >&6; }
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26564 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26565 gcc_cv_ld_eh_gc_sections
=no
26566 if test $in_tree_ld = yes ; then
26567 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 \
26568 && test $in_tree_ld_is_elf = yes; then
26569 gcc_cv_ld_eh_gc_sections
=yes
26571 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26572 cat > conftest.s
<<EOF
26575 .type _start, @function
26578 .size _start, .-_start
26579 .section .text.foo,"ax",@progbits
26580 .type foo, @function
26584 .section .gcc_except_table.foo,"a",@progbits
26587 .section .eh_frame,"a",@progbits
26590 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26591 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26592 |
grep "gc-sections option ignored" > /dev
/null
; then
26593 gcc_cv_ld_eh_gc_sections
=no
26594 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26595 |
grep gcc_except_table
> /dev
/null
; then
26596 gcc_cv_ld_eh_gc_sections
=yes
26597 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26598 if test x
$gcc_cv_as_comdat_group != xyes
; then
26599 gcc_cv_ld_eh_gc_sections
=no
26600 cat > conftest.s
<<EOF
26603 .type _start, @function
26606 .size _start, .-_start
26607 .section .gnu.linkonce.t.foo,"ax",@progbits
26608 .type foo, @function
26612 .section .gcc_except_table.foo,"a",@progbits
26615 .section .eh_frame,"a",@progbits
26618 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26619 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26620 |
grep "gc-sections option ignored" > /dev
/null
; then
26621 gcc_cv_ld_eh_gc_sections
=no
26622 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26623 |
grep gcc_except_table
> /dev
/null
; then
26624 gcc_cv_ld_eh_gc_sections
=yes
26630 rm -f conftest.s conftest.o conftest
26634 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26635 gcc_cv_ld_eh_gc_sections
=no
26638 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26640 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26644 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26647 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26648 gcc_cv_ld_eh_gc_sections_bug
=no
26649 if test $in_tree_ld = yes ; then
26650 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 \
26651 && test $in_tree_ld_is_elf = yes; then
26652 gcc_cv_ld_eh_gc_sections_bug
=yes
26654 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
26655 gcc_cv_ld_eh_gc_sections_bug
=yes
26656 cat > conftest.s
<<EOF
26659 .type _start, @function
26662 .size _start, .-_start
26663 .section .text.startup.foo,"ax",@progbits
26664 .type foo, @function
26668 .section .gcc_except_table.foo,"a",@progbits
26671 .section .eh_frame,"a",@progbits
26674 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26675 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26676 |
grep "gc-sections option ignored" > /dev
/null
; then
26678 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26679 |
grep gcc_except_table
> /dev
/null
; then
26680 gcc_cv_ld_eh_gc_sections_bug
=no
26683 rm -f conftest.s conftest.o conftest
26685 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26687 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26691 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26698 $as_echo_n "checking linker --as-needed support... " >&6; }
26699 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26700 $as_echo_n "(cached) " >&6
26702 gcc_cv_ld_as_needed
=no
26703 gcc_cv_ld_as_needed_option
='--as-needed'
26704 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
26705 if test $in_tree_ld = yes ; then
26706 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 \
26707 && test $in_tree_ld_is_elf = yes; then
26708 gcc_cv_ld_as_needed
=yes
26710 elif test x
$gcc_cv_ld != x
; then
26711 # Check if linker supports --as-needed and --no-as-needed options
26712 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26713 gcc_cv_ld_as_needed
=yes
26716 # Solaris 2 ld always supports -z ignore/-z record.
26718 gcc_cv_ld_as_needed
=yes
26719 gcc_cv_ld_as_needed_option
="-z ignore"
26720 gcc_cv_ld_no_as_needed_option
="-z record"
26725 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26726 # dl_iterate_phdr, i.e. since Solaris 11.
26728 *-*-solaris2.1
[1-9]*)
26730 i?
86-*-* | x86_64-
*-*)
26731 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26732 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26733 gcc_cv_ld_as_needed
=no
26739 gcc_cv_ld_as_needed
=no
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26745 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26746 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26748 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26751 cat >>confdefs.h
<<_ACEOF
26752 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26756 cat >>confdefs.h
<<_ACEOF
26757 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26762 case "$target:$tm_file" in
26763 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26766 emul_name
="-melf64lppc"
26769 emul_name
="-melf64ppc"
26772 emul_name
="-melf64ppc_fbsd"
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26776 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26777 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26778 $as_echo_n "(cached) " >&6
26780 gcc_cv_ld_no_dot_syms
=no
26781 if test x
"$ld_is_gold" = xyes
; then
26782 gcc_cv_ld_no_dot_syms
=yes
26783 elif test $in_tree_ld = yes ; then
26784 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
26785 gcc_cv_ld_no_dot_syms
=yes
26787 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26788 cat > conftest1.s
<<EOF
26792 cat > conftest2.s
<<EOF
26793 .section ".opd","aw"
26796 .type foo,@function
26798 .quad .LEfoo,.TOC.@tocbase,0
26804 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26805 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26806 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26807 gcc_cv_ld_no_dot_syms
=yes
26809 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26814 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26815 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26817 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26822 $as_echo_n "checking linker large toc support... " >&6; }
26823 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26824 $as_echo_n "(cached) " >&6
26826 gcc_cv_ld_large_toc
=no
26827 if test x
"$ld_is_gold" = xyes
; then
26828 gcc_cv_ld_large_toc
=yes
26829 elif test $in_tree_ld = yes ; then
26830 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
26831 gcc_cv_ld_large_toc
=yes
26833 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26834 cat > conftest.s
<<EOF
26835 .section ".tbss","awT",@nobits
26841 addis 9,13,ie0@got@tprel@ha
26842 ld 9,ie0@got@tprel@l(9)
26844 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26845 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26846 gcc_cv_ld_large_toc
=yes
26848 rm -f conftest conftest.o conftest.s
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26853 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26854 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26856 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26865 $as_echo_n "checking linker large toc support... " >&6; }
26866 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26867 $as_echo_n "(cached) " >&6
26869 gcc_cv_ld_large_toc
=no
26870 if test x
$gcc_cv_as != x
; then
26871 cat > conftest.s
<<EOF
26881 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26882 gcc_cv_ld_large_toc
=yes
26884 rm -f conftest conftest.o conftest.s
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26889 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26890 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26892 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26899 $as_echo_n "checking linker --build-id support... " >&6; }
26900 if test "${gcc_cv_ld_buildid+set}" = set; then :
26901 $as_echo_n "(cached) " >&6
26903 gcc_cv_ld_buildid
=no
26904 if test $in_tree_ld = yes ; then
26905 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26906 "$gcc_cv_gld_minor_version" -ge 18 -o \
26907 "$gcc_cv_gld_major_version" -gt 2 \
26908 && test $in_tree_ld_is_elf = yes; then
26909 gcc_cv_ld_buildid
=yes
26911 elif test x
$gcc_cv_ld != x
; then
26912 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26913 gcc_cv_ld_buildid
=yes
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26918 $as_echo "$gcc_cv_ld_buildid" >&6; }
26919 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26921 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26925 # Check whether --enable-linker-build-id was given.
26926 if test "${enable_linker_build_id+set}" = set; then :
26927 enableval
=$enable_linker_build_id;
26929 enable_linker_build_id
=no
26933 if test x
"$enable_linker_build_id" = xyes
; then
26934 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26936 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26940 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26944 # In binutils 2.21, GNU ld gained support for new emulations fully
26945 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26947 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26948 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26949 $as_echo_n "(cached) " >&6
26951 gcc_cv_ld_sol2_emulation
=no
26952 if test $in_tree_ld = yes ; then
26953 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26954 "$gcc_cv_gld_minor_version" -ge 21 -o \
26955 "$gcc_cv_gld_major_version" -gt 2 \
26956 && test $in_tree_ld_is_elf = yes; then
26957 gcc_cv_ld_sol2_emulation
=yes
26959 elif test x
$gcc_cv_ld != x
; then
26960 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26961 grep _sol2
> /dev
/null
; then
26962 gcc_cv_ld_sol2_emulation
=yes
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26967 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26968 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26970 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26975 $as_echo_n "checking linker --sysroot support... " >&6; }
26976 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26977 $as_echo_n "(cached) " >&6
26979 gcc_cv_ld_sysroot
=no
26980 if test $in_tree_ld = yes ; then
26981 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
26982 gcc_cv_ld_sysroot
=yes
26984 elif test x
$gcc_cv_ld != x
; then
26985 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26986 gcc_cv_ld_sysroot
=yes
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26991 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26992 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26994 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26998 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26999 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27000 && test "$prefix" != "NONE"; then
27002 cat >>confdefs.h
<<_ACEOF
27003 #define PREFIX_INCLUDE_DIR "$prefix/include"
27008 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
27009 if test "x$with_headers" != x
; then
27010 target_header_dir
=$with_headers
27011 elif test "x$with_sysroot" = x
; then
27012 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
27013 elif test "x$with_build_sysroot" != "x"; then
27014 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
27015 elif test "x$with_sysroot" = xyes
; then
27016 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
27018 target_header_dir
="${with_sysroot}${native_system_header_dir}"
27021 target_header_dir
=${native_system_header_dir}
27024 # Test for stack protector support in target C library.
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27026 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27027 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27028 $as_echo_n "(cached) " >&6
27030 gcc_cv_libc_provides_ssp
=no
27032 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27033 # glibc 2.4 and later provides __stack_chk_fail and
27034 # either __stack_chk_guard, or TLS access to stack guard canary.
27035 if test -f $target_header_dir/features.h \
27036 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27037 $target_header_dir/features.h
> /dev
/null
; then
27038 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
27039 $target_header_dir/features.h
> /dev
/null
; then
27040 gcc_cv_libc_provides_ssp
=yes
27041 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
27042 $target_header_dir/features.h
> /dev
/null \
27043 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
27044 $target_header_dir/features.h
> /dev
/null
; then
27045 gcc_cv_libc_provides_ssp
=yes
27046 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27047 $target_header_dir/features.h
> /dev
/null
&& \
27048 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27049 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27050 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27051 gcc_cv_libc_provides_ssp
=yes
27053 # all versions of Bionic support stack protector
27054 elif test -f $target_header_dir/sys
/cdefs.h \
27055 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27056 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27057 gcc_cv_libc_provides_ssp
=yes
27061 # Avoid complicated tests (see
27062 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27063 # simply assert that glibc does provide this, which is true for all
27064 # realistically usable GNU/Hurd configurations.
27065 gcc_cv_libc_provides_ssp
=yes;;
27066 *-*-darwin* |
*-*-freebsd*)
27067 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27068 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27069 gcc_cv_libc_provides_ssp
=yes
27071 echo "no __stack_chk_fail on this target"
27075 *) gcc_cv_libc_provides_ssp
=no
;;
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27079 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27081 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27083 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27087 # Test for <sys/sdt.h> on the target.
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27090 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27092 if test -f $target_header_dir/sys
/sdt.h
; then
27095 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27099 $as_echo "$have_sys_sdt_h" >&6; }
27101 # Check if TFmode long double should be used by default or not.
27102 # Some glibc targets used DFmode long double, but with glibc 2.4
27103 # and later they can use TFmode.
27105 powerpc
*-*-linux* | \
27106 sparc
*-*-linux* | \
27110 # Check whether --with-long-double-128 was given.
27111 if test "${with_long_double_128+set}" = set; then :
27112 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27114 gcc_cv_target_ldbl128
=no
27115 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27116 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27117 && gcc_cv_target_ldbl128
=yes
27123 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27125 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27130 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27131 gcc_cv_target_dl_iterate_phdr
=unknown
27133 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27134 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27135 # libdl there, both complicating its use and breaking compatibility
27136 # between Solaris 10 updates.
27137 *-*-solaris2.1
[1-9]*)
27138 # <link.h> needs both a dl_iterate_phdr declaration and support for
27139 # compilation with largefile support.
27140 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27141 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27142 gcc_cv_target_dl_iterate_phdr
=yes
27144 gcc_cv_target_dl_iterate_phdr
=no
27149 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27151 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27155 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27157 # We no longer support different GC mechanisms. Emit an error if
27158 # the user configures with --with-gc.
27160 # Check whether --with-gc was given.
27161 if test "${with_gc+set}" = set; then :
27162 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27166 # Libraries to use on the host. This will normally be set by the top
27167 # level Makefile. Here we simply capture the value for our Makefile.
27168 if test -z "${HOST_LIBS+set}"; then
27173 # Use the system's zlib library.
27175 zlibinc
="-I\$(srcdir)/../zlib"
27177 # Check whether --with-system-zlib was given.
27178 if test "${with_system_zlib+set}" = set; then :
27179 withval
=$with_system_zlib; zlibdir
=
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27189 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27190 # Check whether --enable-maintainer-mode was given.
27191 if test "${enable_maintainer_mode+set}" = set; then :
27192 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27199 $as_echo "$maintainer_mode" >&6; }
27201 if test "$maintainer_mode" = "yes"; then
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27209 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27210 # Check whether --enable-link-mutex was given.
27211 if test "${enable_link_mutex+set}" = set; then :
27212 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27218 $as_echo "$do_link_mutex" >&6; }
27220 if test "$do_link_mutex" = "yes"; then
27223 DO_LINK_MUTEX
=false
27231 # Make empty files to contain the specs and options for each language.
27232 # Then add #include lines to for a compiler that has specs and/or options.
27238 # These (without "all_") are set in each config-lang.in.
27239 # `language' must be a single word so is spelled singularly.
27242 all_outputs
='Makefile'
27243 # List of language makefile fragments.
27244 all_lang_makefrags
=
27245 # Additional files for gengtype
27246 all_gtfiles
="$target_gtfiles"
27248 # These are the languages that are set in --enable-languages,
27249 # and are available in the GCC tree.
27250 all_selected_languages
=
27252 # Add the language fragments.
27253 # Languages are added via two mechanisms. Some information must be
27254 # recorded in makefile variables, these are defined in config-lang.in.
27255 # We accumulate them and plug them into the main Makefile.
27256 # The other mechanism is a set of hooks for each of the main targets
27257 # like `clean', `install', etc.
27259 language_hooks
="Make-hooks"
27261 for lang
in ${srcdir}/*/config-lang.
in
27263 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27265 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27266 if test "x$lang_alias" = x
27268 echo "$lang doesn't set \$language." 1>&2
27271 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27272 subdirs
="$subdirs $subdir"
27274 # $gcc_subdir is where the gcc integration files are to be found
27275 # for a language, both for internal compiler purposes (compiler
27276 # sources implementing front-end to GCC tree converters), and for
27277 # build infrastructure purposes (Make-lang.in, etc.)
27279 # This will be <subdir> (relative to $srcdir) if a line like
27280 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27281 # is found in <langdir>/config-lang.in, and will remain <langdir>
27284 # Except for the language alias (fetched above), the regular
27285 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27286 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27287 # only this and the language alias.
27289 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27290 if [ "$gcc_subdir" = "" ]; then
27291 gcc_subdir
="$subdir"
27294 case ",$enable_languages," in
27296 all_selected_languages
="$all_selected_languages $lang_alias"
27297 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27298 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27309 .
${srcdir}/$gcc_subdir/config-lang.
in
27310 if test "x$language" = x
27312 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27317 case ",$enable_languages," in
27318 *,$lang_alias,*) ;;
27320 for i
in $subdir_requires; do
27321 test -f "${srcdir}/$i/config-lang.in" && continue
27329 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27330 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27331 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27332 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27334 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27335 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27337 all_languages
="$all_languages $language"
27338 all_compilers
="$all_compilers $compilers"
27339 all_outputs
="$all_outputs $outputs"
27340 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27341 case ",$enable_languages," in
27344 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27354 for language
in $all_selected_languages
27356 check_languages
="$check_languages check-$language"
27359 # We link each language in with a set of hooks, reached indirectly via
27360 # lang.${target}. Only do so for selected languages.
27364 target_list
="all.cross start.encap rest.encap tags \
27365 install-common install-man install-info install-pdf install-html dvi \
27366 pdf html uninstall info man srcextra srcman srcinfo \
27367 mostlyclean clean distclean maintainer-clean install-plugin"
27369 for t
in $target_list
27372 for lang
in $all_selected_languages
27376 echo "lang.$t: $x" >> Make-hooks
27380 # Option include files
27383 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27384 option_includes
="option-includes.mk"
27393 echo "dir ." > .gdbinit
27394 echo "dir ${srcdir}" >> .gdbinit
27395 if test x
$gdb_needs_out_file_path = xyes
27397 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27399 if test "x$subdirs" != x
; then
27402 echo "dir ${srcdir}/$s" >> .gdbinit
27405 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27406 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27408 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27412 # Find a directory in which to install a shared libgcc.
27414 # Check whether --enable-version-specific-runtime-libs was given.
27415 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27416 enableval
=$enable_version_specific_runtime_libs;
27420 # Substitute configuration variables
27484 if test x
${build} = x
${host} ; then
27485 if test x
${host} = x
${target} ; then
27486 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27488 echo "Links are now set up to build a cross-compiler" 1>&2
27489 echo " from ${host} to ${target}." 1>&2
27492 if test x
${host} = x
${target} ; then
27493 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27494 echo " for ${target}." 1>&2
27496 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27497 echo " from ${host} to ${target}." 1>&2
27509 if test "x${CLOOGLIBS}" != "x" ; then
27511 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27515 # Check for plugin support
27516 # Check whether --enable-plugin was given.
27517 if test "${enable_plugin+set}" = set; then :
27518 enableval
=$enable_plugin; enable_plugin
=$enableval
27520 enable_plugin
=yes; default_plugin
=yes
27528 if test x
$build = x
$host; then
27529 export_sym_check
="nm${exeext} -g"
27530 elif test x
$host = x
$target; then
27531 export_sym_check
="$gcc_cv_nm -g"
27537 if test x
$build = x
$host; then
27538 export_sym_check
="objdump${exeext} -T"
27539 elif test x
$host = x
$target; then
27540 export_sym_check
="$gcc_cv_objdump -T"
27547 if test x
"$enable_plugin" = x
"yes"; then
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27550 $as_echo_n "checking for exported symbols... " >&6; }
27551 if test "x$export_sym_check" != x
; then
27552 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27553 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27554 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27555 : # No need to use a flag
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27557 $as_echo "yes" >&6; }
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27560 $as_echo "yes" >&6; }
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27562 $as_echo_n "checking for -rdynamic... " >&6; }
27563 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27564 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27565 plugin_rdynamic
=yes
27566 pluginlibs
="-rdynamic"
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27572 $as_echo "$plugin_rdynamic" >&6; }
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27576 $as_echo "unable to check" >&6; }
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27582 $as_echo_n "checking for library containing dlopen... " >&6; }
27583 if test "${ac_cv_search_dlopen+set}" = set; then :
27584 $as_echo_n "(cached) " >&6
27586 ac_func_search_save_LIBS
=$LIBS
27587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27588 /* end confdefs.h. */
27590 /* Override any GCC internal prototype to avoid an error.
27591 Use char because int might match the return type of a GCC
27592 builtin and then its argument prototype would still apply. */
27605 for ac_lib
in '' dl
; do
27606 if test -z "$ac_lib"; then
27607 ac_res
="none required"
27610 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27612 if ac_fn_c_try_link
"$LINENO"; then :
27613 ac_cv_search_dlopen
=$ac_res
27615 rm -f core conftest.err conftest.
$ac_objext \
27617 if test "${ac_cv_search_dlopen+set}" = set; then :
27621 if test "${ac_cv_search_dlopen+set}" = set; then :
27624 ac_cv_search_dlopen
=no
27626 rm conftest.
$ac_ext
27627 LIBS
=$ac_func_search_save_LIBS
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27630 $as_echo "$ac_cv_search_dlopen" >&6; }
27631 ac_res
=$ac_cv_search_dlopen
27632 if test "$ac_res" != no
; then :
27633 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27637 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27638 pluginlibs
="$pluginlibs -ldl"
27642 # Check that we can build shared objects with -fPIC -shared
27643 saved_LDFLAGS
="$LDFLAGS"
27644 saved_CFLAGS
="$CFLAGS"
27647 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27648 CFLAGS
="$CFLAGS -fPIC"
27649 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27652 CFLAGS
="$CFLAGS -fPIC"
27653 LDFLAGS
="$LDFLAGS -fPIC -shared"
27656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27657 $as_echo_n "checking for -fPIC -shared... " >&6; }
27658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27659 /* end confdefs.h. */
27669 if ac_fn_c_try_link
"$LINENO"; then :
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27671 $as_echo "yes" >&6; }; have_pic_shared
=yes
27673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27674 $as_echo "no" >&6; }; have_pic_shared
=no
27676 rm -f core conftest.err conftest.
$ac_objext \
27677 conftest
$ac_exeext conftest.
$ac_ext
27678 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27682 LDFLAGS
="$saved_LDFLAGS"
27683 CFLAGS
="$saved_CFLAGS"
27685 # If plugin support had been requested but not available, fail.
27686 if test x
"$enable_plugin" = x
"no" ; then
27687 if test x
"$default_plugin" != x
"yes"; then
27689 Building GCC with plugin support requires a host that supports
27690 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27697 if test x
"$enable_plugin" = x
"yes"; then
27699 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27704 # Check whether --enable-libquadmath-support was given.
27705 if test "${enable_libquadmath_support+set}" = set; then :
27706 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27708 ENABLE_LIBQUADMATH_SUPPORT
=yes
27711 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27713 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27718 # Specify what hash style to use by default.
27720 # Check whether --with-linker-hash-style was given.
27721 if test "${with_linker_hash_style+set}" = set; then :
27722 withval
=$with_linker_hash_style; case x
"$withval" in
27724 LINKER_HASH_STYLE
=sysv
27727 LINKER_HASH_STYLE
=gnu
27730 LINKER_HASH_STYLE
=both
27733 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27737 LINKER_HASH_STYLE
=''
27740 if test x
"${LINKER_HASH_STYLE}" != x
; then
27742 cat >>confdefs.h
<<_ACEOF
27743 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27748 # Configure the subdirectories
27749 # AC_CONFIG_SUBDIRS($subdirs)
27751 # Create the Makefile
27752 # and configure language subdirectories
27753 ac_config_files
="$ac_config_files $all_outputs"
27756 ac_config_commands
="$ac_config_commands default"
27758 cat >confcache
<<\_ACEOF
27759 # This file is a shell script that caches the results of configure
27760 # tests run on this system so they can be shared between configure
27761 # scripts and configure runs, see configure's option --config-cache.
27762 # It is not useful on other systems. If it contains results you don't
27763 # want to keep, you may remove or edit it.
27765 # config.status only pays attention to the cache file if you give it
27766 # the --recheck option to rerun configure.
27768 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27769 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27770 # following values.
27774 # The following way of writing the cache mishandles newlines in values,
27775 # but we know of no workaround that is simple, portable, and efficient.
27776 # So, we kill variables containing newlines.
27777 # Ultrix sh set writes to stderr and can't be redirected directly,
27778 # and sets the high bit in the cache file unless we assign to the vars.
27780 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27781 eval ac_val
=\$
$ac_var
27785 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27786 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27789 _ | IFS | as_nl
) ;; #(
27790 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27791 *) { eval $ac_var=; unset $ac_var;} ;;
27797 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27798 *${as_nl}ac_space
=\
*)
27799 # `set' does not quote correctly, so add quotes: double-quote
27800 # substitution turns \\\\ into \\, and sed turns \\ into \.
27803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27806 # `set' quotes correctly as required by POSIX, so do not add quotes.
27807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27816 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27818 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27820 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27821 if test -w "$cache_file"; then
27822 test "x$cache_file" != "x/dev/null" &&
27823 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27824 $as_echo "$as_me: updating cache $cache_file" >&6;}
27825 cat confcache
>$cache_file
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27828 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27833 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27834 # Let make expand exec_prefix.
27835 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27837 DEFS
=-DHAVE_CONFIG_H
27841 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27842 # 1. Remove the extension, and $U if already installed.
27843 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27844 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27845 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27846 # will be set to the directory where LIBOBJS objects are built.
27847 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27848 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27850 LIBOBJS
=$ac_libobjs
27852 LTLIBOBJS
=$ac_ltlibobjs
27857 : ${CONFIG_STATUS=./config.status}
27859 ac_clean_files_save
=$ac_clean_files
27860 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27862 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27864 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27866 # Generated by $as_me.
27867 # Run this file to recreate the current configuration.
27868 # Compiler output produced by configure, useful for debugging
27869 # configure, is in config.log if it exists.
27872 ac_cs_recheck=false
27875 SHELL=\${CONFIG_SHELL-$SHELL}
27878 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27879 ## -------------------- ##
27880 ## M4sh Initialization. ##
27881 ## -------------------- ##
27883 # Be more Bourne compatible
27884 DUALCASE
=1; export DUALCASE
# for MKS sh
27885 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27888 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27889 # is contrary to our usage. Disable this feature.
27890 alias -g '${1+"$@"}'='"$@"'
27891 setopt NO_GLOB_SUBST
27893 case `(set -o) 2>/dev/null` in #(
27905 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27906 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27907 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27908 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27909 # Prefer a ksh shell builtin over an external printf program on Solaris,
27910 # but without wasting forks for bash or zsh.
27911 if test -z "$BASH_VERSION$ZSH_VERSION" \
27912 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27913 as_echo='print
-r --'
27914 as_echo_n='print
-rn --'
27915 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27916 as_echo='printf %s
\n'
27917 as_echo_n='printf %s
'
27919 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27920 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27921 as_echo_n='/usr
/ucb
/echo -n'
27923 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27924 as_echo_n_body='eval
27928 expr "X$arg" : "X\\(.*\\)$as_nl";
27929 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27931 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27933 export as_echo_n_body
27934 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27936 export as_echo_body
27937 as_echo='sh
-c $as_echo_body as_echo
'
27940 # The user is always right.
27941 if test "${PATH_SEPARATOR+set}" != set; then
27943 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27944 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27951 # We need space, tab and new line, in precisely that order. Quoting is
27952 # there to prevent editors from complaining about space-tab.
27953 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27954 # splitting by setting IFS to empty value.)
27957 # Find who we are. Look in the path if we contain no directory separator.
27959 *[\\/]* ) as_myself=$0 ;;
27960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27961 for as_dir in $PATH
27964 test -z "$as_dir" && as_dir=.
27965 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27971 # We did not find ourselves, most probably we were run as `sh COMMAND'
27972 # in which case we are not to be found in the path.
27973 if test "x$as_myself" = x
; then
27976 if test ! -f "$as_myself"; then
27977 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27981 # Unset variables that we do not need and which cause bugs (e.g. in
27982 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27983 # suppresses any "Segmentation fault" message there. '((' could
27984 # trigger a bug in pdksh 5.2.14.
27985 for as_var
in BASH_ENV ENV MAIL MAILPATH
27986 do eval test x\
${$as_var+set} = xset \
27987 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28000 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28003 # as_fn_error ERROR [LINENO LOG_FD]
28004 # ---------------------------------
28005 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28006 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28007 # script with status $?, using 1 if that was 0.
28010 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28012 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28013 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28015 $as_echo "$as_me: error: $1" >&2
28016 as_fn_exit
$as_status
28020 # as_fn_set_status STATUS
28021 # -----------------------
28022 # Set $? to STATUS, without forking.
28023 as_fn_set_status
()
28026 } # as_fn_set_status
28028 # as_fn_exit STATUS
28029 # -----------------
28030 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28034 as_fn_set_status
$1
28040 # Portably unset VAR.
28043 { eval $1=; unset $1;}
28045 as_unset
=as_fn_unset
28046 # as_fn_append VAR VALUE
28047 # ----------------------
28048 # Append the text in VALUE to the end of the definition contained in VAR. Take
28049 # advantage of any shell optimizations that allow amortized linear growth over
28050 # repeated appends, instead of the typical quadratic growth present in naive
28052 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28053 eval 'as_fn_append ()
28064 # as_fn_arith ARG...
28065 # ------------------
28066 # Perform arithmetic evaluation on the ARGs, and store the result in the
28067 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28068 # must be portable across $(()) and expr.
28069 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28070 eval 'as_fn_arith ()
28077 as_val
=`expr "$@" || test $? -eq 1`
28082 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28083 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28089 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28090 as_basename
=basename
28095 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28101 as_me
=`$as_basename -- "$0" ||
28102 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28103 X"$0" : 'X\(//\)$' \| \
28104 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28106 sed '/^.*\/\([^/][^/]*\)\/*$/{
28120 # Avoid depending upon Character Ranges.
28121 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28122 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28123 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28124 as_cr_digits
='0123456789'
28125 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28127 ECHO_C
= ECHO_N
= ECHO_T
=
28128 case `echo -n x` in #(((((
28130 case `echo 'xy\c'` in
28131 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28133 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28140 rm -f conf$$ conf$$.exe conf$$.
file
28141 if test -d conf$$.dir
; then
28142 rm -f conf$$.dir
/conf$$.
file
28145 mkdir conf$$.dir
2>/dev
/null
28147 if (echo >conf$$.
file) 2>/dev
/null
; then
28148 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28150 # ... but there are two gotchas:
28151 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28152 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28153 # In both cases, we have to default to `cp -p'.
28154 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28156 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28164 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28165 rmdir conf$$.dir
2>/dev
/null
28170 # Create "$as_dir" as a directory, including parents if necessary.
28175 -*) as_dir
=.
/$as_dir;;
28177 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28181 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28182 *) as_qdir
=$as_dir;;
28184 as_dirs
="'$as_qdir' $as_dirs"
28185 as_dir
=`$as_dirname -- "$as_dir" ||
28186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28187 X"$as_dir" : 'X\(//\)[^/]' \| \
28188 X"$as_dir" : 'X\(//\)$' \| \
28189 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28190 $as_echo X"$as_dir" |
28191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28195 /^X\(\/\/\)[^/].*/{
28208 test -d "$as_dir" && break
28210 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28211 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28215 if mkdir
-p .
2>/dev
/null
; then
28216 as_mkdir_p
='mkdir -p "$as_dir"'
28218 test -d .
/-p && rmdir .
/-p
28222 if test -x / >/dev
/null
2>&1; then
28223 as_test_x
='test -x'
28225 if ls -dL / >/dev
/null
2>&1; then
28232 if test -d "$1"; then
28238 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28239 ???[sx]*):;;*)false;;esac;fi
28243 as_executable_p
=$as_test_x
28245 # Sed expression to map a string onto a valid CPP name.
28246 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28248 # Sed expression to map a string onto a valid variable name.
28249 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28253 ## ----------------------------------- ##
28254 ## Main body of $CONFIG_STATUS script. ##
28255 ## ----------------------------------- ##
28257 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28260 # Save the log message, to keep $0 and so on meaningful, and to
28261 # report actual input values of CONFIG_FILES etc. instead of their
28262 # values after options handling.
28264 This file was extended by $as_me, which was
28265 generated by GNU Autoconf 2.64. Invocation command line was
28267 CONFIG_FILES = $CONFIG_FILES
28268 CONFIG_HEADERS = $CONFIG_HEADERS
28269 CONFIG_LINKS = $CONFIG_LINKS
28270 CONFIG_COMMANDS = $CONFIG_COMMANDS
28273 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28278 case $ac_config_files in *"
28279 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28282 case $ac_config_headers in *"
28283 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28288 # Files that config.status was made for.
28289 config_files="$ac_config_files"
28290 config_headers="$ac_config_headers"
28291 config_commands="$ac_config_commands"
28295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28297 \`$as_me' instantiates files and other configuration actions
28298 from templates according to the current configuration. Unless the files
28299 and actions are specified as TAGs, all are instantiated by default.
28301 Usage: $0 [OPTION]... [TAG]...
28303 -h, --help print this help, then exit
28304 -V, --version print version number and configuration settings, then exit
28305 -q, --quiet, --silent
28306 do not print progress messages
28307 -d, --debug don't remove temporary files
28308 --recheck update $as_me by reconfiguring in the same conditions
28309 --file=FILE[:TEMPLATE]
28310 instantiate the configuration file FILE
28311 --header=FILE[:TEMPLATE]
28312 instantiate the configuration header FILE
28314 Configuration files:
28317 Configuration headers:
28320 Configuration commands:
28323 Report bugs to the package provider."
28326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28329 configured by $0, generated by GNU Autoconf 2.64,
28330 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28332 Copyright (C) 2009 Free Software Foundation, Inc.
28333 This config.status script is free software; the Free Software Foundation
28334 gives unlimited permission to copy, distribute and modify it."
28339 test -n "\$AWK" || AWK=awk
28342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28343 # The default lists apply if the user does not specify any file.
28349 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28350 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28361 # Handling of the options.
28362 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28364 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28365 $as_echo "$ac_cs_version"; exit ;;
28366 --debug |
--debu |
--deb |
--de |
--d |
-d )
28368 --file |
--fil |
--fi |
--f )
28371 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28373 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28374 ac_need_defaults
=false
;;
28375 --header |
--heade |
--head |
--hea )
28378 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28380 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28381 ac_need_defaults
=false
;;
28383 # Conflict between --help and --header
28384 as_fn_error
"ambiguous option: \`$1'
28385 Try \`$0 --help' for more information.";;
28386 --help |
--hel |
-h )
28387 $as_echo "$ac_cs_usage"; exit ;;
28388 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28389 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28392 # This is an error.
28393 -*) as_fn_error
"unrecognized option: \`$1'
28394 Try \`$0 --help' for more information." ;;
28396 *) as_fn_append ac_config_targets
" $1"
28397 ac_need_defaults
=false
;;
28403 ac_configure_extra_args
=
28405 if $ac_cs_silent; then
28407 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28412 if \$ac_cs_recheck; then
28413 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28415 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28416 CONFIG_SHELL='$SHELL'
28417 export CONFIG_SHELL
28422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28426 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28427 ## Running $as_me. ##
28433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28443 # Handling of arguments.
28444 for ac_config_target
in $ac_config_targets
28446 case $ac_config_target in
28447 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28448 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28449 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28450 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28451 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28452 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28454 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28459 # If the user did not use the arguments to specify the items to instantiate,
28460 # then the envvar interface is used. Set only those that are not.
28461 # We use the long form for the default assignment because of an extremely
28462 # bizarre bug on SunOS 4.1.3.
28463 if $ac_need_defaults; then
28464 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28465 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28466 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28469 # Have a temporary directory for convenience. Make it in the build tree
28470 # simply because there is no reason against having it here, and in addition,
28471 # creating and moving files from /tmp can sometimes cause problems.
28472 # Hook for its removal unless debugging.
28473 # Note that there is a small window in which the directory will not be cleaned:
28474 # after its creation but before its name has been assigned to `$tmp'.
28478 trap 'exit_status=$?
28479 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28481 trap 'as_fn_exit 1' 1 2 13 15
28483 # Create a (secure) tmp directory for tmp files.
28486 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28487 test -n "$tmp" && test -d "$tmp"
28490 tmp
=.
/conf$$
-$RANDOM
28491 (umask 077 && mkdir
"$tmp")
28492 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28494 # Set up the scripts for CONFIG_FILES section.
28495 # No need to generate them if there are no CONFIG_FILES.
28496 # This happens for instance with `./config.status config.h'.
28497 if test -n "$CONFIG_FILES"; then
28499 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28500 ac_cs_awk_getline
=:
28501 ac_cs_awk_pipe_init
=
28502 ac_cs_awk_read_file
='
28503 while ((getline aline < (F[key])) > 0)
28506 ac_cs_awk_pipe_fini
=
28508 ac_cs_awk_getline
=false
28509 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28510 ac_cs_awk_read_file
='
28512 print "cat " F[key] " &&"
28513 '$ac_cs_awk_pipe_init
28514 # The final `:' finishes the AND list.
28515 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28517 ac_cr
=`echo X | tr X '\015'`
28518 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28519 # But we know of no other shell where ac_cr would be empty at this
28520 # point, so we can use a bashism as a fallback.
28521 if test "x$ac_cr" = x
; then
28522 eval ac_cr
=\$
\'\\r
\'
28524 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28525 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28528 ac_cs_awk_cr
=$ac_cr
28531 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28534 # Create commands to substitute file output variables.
28536 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28537 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28538 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28541 } >conf$
$files.sh
&&
28542 . .
/conf$
$files.sh ||
28543 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28544 rm -f conf$
$files.sh
28547 echo "cat >conf$$subs.awk <<_ACEOF" &&
28548 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28550 } >conf$$subs.sh ||
28551 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28552 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28554 for ac_last_try in false false false false false :; do
28555 . ./conf$$subs.sh ||
28556 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28558 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28559 if test $ac_delim_n = $ac_delim_num; then
28561 elif $ac_last_try; then
28562 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28564 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28567 rm -f conf$$subs.sh
28569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28570 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28574 s/^/S["/; s
/!.
*/"]=/
28584 s/\(.\{148\}\).*/\1/
28586 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28591 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28598 s/\(.\{148\}\).*/\1/
28600 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28604 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28609 ' <conf$$subs.awk | sed '
28614 ' >>$CONFIG_STATUS || ac_write_fail=1
28615 rm -f conf$$subs.awk
28616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28618 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28619 for (key in S) S_is_set[key] = 1
28621 \$ac_cs_awk_pipe_init
28625 nfields = split(line, field, "@
")
28627 len = length(field[1])
28628 for (i = 2; i < nfields; i++) {
28630 keylen = length(key)
28631 if (S_is_set[key]) {
28633 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28634 len += length(value) + length(field[++i])
28639 if (nfields == 3 && !substed) {
28641 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28642 \$ac_cs_awk_read_file
28648 \$ac_cs_awk_pipe_fini
28651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28652 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28653 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28656 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28657 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28660 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28661 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28662 # trailing colons and then remove the whole line if VPATH becomes empty
28663 # (actually we leave an empty line to preserve line numbers).
28664 if test "x
$srcdir" = x.; then
28665 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28666 s/:*\$(srcdir):*/:/
28667 s/:*\${srcdir}:*/:/
28669 s/^\([^=]*=[ ]*\):*/\1/
28675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28676 fi # test -n "$CONFIG_FILES"
28678 # Set up the scripts for CONFIG_HEADERS section.
28679 # No need to generate them if there are no CONFIG_HEADERS.
28680 # This happens for instance with `./config.status Makefile'.
28681 if test -n "$CONFIG_HEADERS"; then
28682 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28686 # Transform confdefs.h into an awk script `defines.awk', embedded as
28687 # here-document in config.status, that substitutes the proper values into
28688 # config.h.in to produce config.h.
28690 # Create a delimiter string that does not exist in confdefs.h, to ease
28691 # handling of long lines.
28693 for ac_last_try in false false :; do
28694 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28695 if test -z "$ac_t"; then
28697 elif $ac_last_try; then
28698 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28700 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28704 # For the awk script, D is an array of macro values keyed by name,
28705 # likewise P contains macro parameters if any. Preserve backslash
28706 # newline sequences.
28708 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28710 s/.\{148\}/&'"$ac_delim"'/g
28713 s/^[ ]*#[ ]*define[ ][ ]*/ /
28720 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28722 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28726 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28727 D["\
1"]=" \
3\\\\\\n
"\\/p
28729 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28734 s/.\{148\}/&'"$ac_delim"'/g
28739 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28742 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28744 ' <confdefs.h | sed '
28745 s/'"$ac_delim"'/"\\\
28746 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28749 for (key in D) D_is_set[key] = 1
28752 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28754 split(line, arg, " ")
28755 if (arg[1] == "#") {
28759 defundef
= substr
(arg
[1], 2)
28762 split(mac1
, mac2
, "(") #)
28764 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28765 if (D_is_set
[macro
]) {
28766 # Preserve the white space surrounding the "#".
28767 print prefix
"define", macro P
[macro
] D
[macro
]
28770 # Replace #undef with comments. This is necessary, for example,
28771 # in the case of _POSIX_SOURCE, which is predefined and required
28772 # on some systems where configure will not decide to define it.
28773 if (defundef
== "undef") {
28774 print
"/*", prefix defundef
, macro
, "*/"
28782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28783 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28784 fi # test -n "$CONFIG_HEADERS"
28787 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28792 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28794 case $ac_mode$ac_tag in
28796 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28797 :[FH
]-) ac_tag
=-:-;;
28798 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28815 -) ac_f
="$tmp/stdin";;
28816 *) # Look for the file first in the build tree, then in the source tree
28817 # (if the path is not absolute). The absolute path cannot be DOS-style,
28818 # because $ac_f cannot contain `:'.
28822 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28824 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28826 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28827 as_fn_append ac_file_inputs
" '$ac_f'"
28830 # Let's still pretend it is `configure' which instantiates (i.e., don't
28831 # use $as_me), people would be surprised to read:
28832 # /* config.h. Generated by config.status. */
28833 configure_input
='Generated from '`
28834 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28836 if test x
"$ac_file" != x-
; then
28837 configure_input
="$ac_file. $configure_input"
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28839 $as_echo "$as_me: creating $ac_file" >&6;}
28841 # Neutralize special characters interpreted by sed in replacement strings.
28842 case $configure_input in #(
28843 *\
&* |
*\|
* |
*\\* )
28844 ac_sed_conf_input
=`$as_echo "$configure_input" |
28845 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28846 *) ac_sed_conf_input
=$configure_input;;
28850 *:-:* |
*:-) cat >"$tmp/stdin" \
28851 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28856 ac_dir
=`$as_dirname -- "$ac_file" ||
28857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28858 X"$ac_file" : 'X\(//\)[^/]' \| \
28859 X"$ac_file" : 'X\(//\)$' \| \
28860 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28861 $as_echo X"$ac_file" |
28862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28866 /^X\(\/\/\)[^/].*/{
28879 as_dir
="$ac_dir"; as_fn_mkdir_p
28883 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28885 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28886 # A ".." for each directory in $ac_dir_suffix.
28887 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28888 case $ac_top_builddir_sub in
28889 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28890 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28893 ac_abs_top_builddir
=$ac_pwd
28894 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28895 # for backward compatibility:
28896 ac_top_builddir
=$ac_top_build_prefix
28899 .
) # We are building in place.
28901 ac_top_srcdir
=$ac_top_builddir_sub
28902 ac_abs_top_srcdir
=$ac_pwd ;;
28903 [\\/]* | ?
:[\\/]* ) # Absolute name.
28904 ac_srcdir
=$srcdir$ac_dir_suffix;
28905 ac_top_srcdir
=$srcdir
28906 ac_abs_top_srcdir
=$srcdir ;;
28907 *) # Relative name.
28908 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28909 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28910 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28912 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28924 # If the template does not know about datarootdir, expand it.
28925 # FIXME: This hack should be removed a few years after 2.60.
28926 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28937 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28938 *datarootdir
*) ac_datarootdir_seen
=yes;;
28939 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28941 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28944 ac_datarootdir_hack='
28945 s&@datadir@&$datadir&g
28946 s&@docdir@&$docdir&g
28947 s&@infodir@&$infodir&g
28948 s&@localedir@&$localedir&g
28949 s&@mandir@&$mandir&g
28950 s&\\\${datarootdir}&$datarootdir&g' ;;
28954 # Neutralize VPATH when `$srcdir' = `.'.
28955 # Shell code in configure.ac might set extrasub.
28956 # FIXME: do we really want to maintain this feature?
28957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28958 ac_sed_extra="$ac_vpsub
28961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28963 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28964 s|@configure_input@|
$ac_sed_conf_input|
;t t
28965 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28966 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28967 s
&@srcdir@
&$ac_srcdir&;t t
28968 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28969 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28970 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28971 s
&@builddir@
&$ac_builddir&;t t
28972 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28973 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28974 $ac_datarootdir_hack
28976 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28977 if $ac_cs_awk_getline; then
28978 $AWK -f "$tmp/subs.
awk"
28980 $AWK -f "$tmp/subs.
awk" | $SHELL
28982 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28984 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28985 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28986 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28988 which seems to be undefined. Please make sure it is defined." >&5
28989 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28990 which seems to be undefined. Please make sure it is defined." >&2;}
28994 -) cat "$tmp/out" && rm -f "$tmp/out";;
28995 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28997 || as_fn_error "could not create $ac_file" "$LINENO" 5
29003 if test x"$ac_file" != x-; then
29005 $as_echo "/* $configure_input */" \
29006 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29007 } >"$tmp/config.h" \
29008 || as_fn_error "could not create $ac_file" "$LINENO" 5
29009 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29011 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29014 mv "$tmp/config.h" "$ac_file" \
29015 || as_fn_error "could not create $ac_file" "$LINENO" 5
29018 $as_echo "/* $configure_input */" \
29019 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29020 || as_fn_error "could not create -" "$LINENO" 5
29024 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29025 $as_echo "$as_me: executing $ac_file commands" >&6;}
29030 case $ac_file$ac_mode in
29031 "as":F) chmod +x as ;;
29032 "collect-ld":F) chmod +x collect-ld ;;
29033 "nm":F) chmod +x nm ;;
29035 case ${CONFIG_HEADERS} in
29036 *auto-host.h:config.in*)
29039 # Make sure all the subdirs exist.
29040 for d in $subdirs doc build common c-family
29042 test -d $d || mkdir $d
29052 ac_clean_files=$ac_clean_files_save
29054 test $ac_write_fail = 0 ||
29055 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29058 # configure is writing to config.log, and then calls config.status.
29059 # config.status does its own redirection, appending to config.log.
29060 # Unfortunately, on DOS this fails, as config.log is still kept open
29061 # by configure, so config.status won't be able to
write to it
; its
29062 # output is simply discarded. So we exec the FD to /dev/null,
29063 # effectively closing config.log, so it can be properly (re)opened and
29064 # appended to by config.status. When coming back to configure, we
29065 # need to make the FD available again.
29066 if test "$no_create" != yes; then
29068 ac_config_status_args
=
29069 test "$silent" = yes &&
29070 ac_config_status_args
="$ac_config_status_args --quiet"
29072 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29074 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29075 # would make configure fail if this is the last instruction.
29076 $ac_cs_success || as_fn_exit $?
29078 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29080 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}