2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
626 common_out_object_file
642 gcc_gxx_include_dir_add_sysroot
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
652 TM_MULTILIB_EXCEPTIONS_CONFIG
661 build_xm_include_list
663 build_install_headers_dir
665 all_selected_languages
683 ORIGINAL_NM_FOR_TARGET
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 ORIGINAL_AS_FOR_TARGET
732 NATIVE_SYSTEM_HEADER_DIR
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
771 SYSROOT_CFLAGS_FOR_TARGET
781 valgrind_path_defines
854 program_transform_name
865 ac_subst_files
='option_includes
868 enable_option_checking
873 enable_generated_files_in_srcdir
880 enable_build_format_warnings
884 enable_gather_detailed_mem_stats
896 with_native_system_header_dir
906 enable_sjlj_exceptions
908 enable_leading_mingw64_underscores
911 enable_win32_registry
919 enable_gnu_indirect_function
920 enable_initfini_array
922 enable_fix_cortex_a53_835769
923 enable_fix_cortex_a53_843419
925 enable_gnu_unique_object
926 enable_linker_build_id
930 enable_maintainer_mode
932 enable_version_specific_runtime_libs
935 enable_libquadmath_support
936 with_linker_hash_style
938 ac_precious_vars
='build_alias
959 # Initialize some variables set by options.
961 ac_init_version
=false
962 ac_unrecognized_opts
=
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
973 program_transform_name
=s
,x
,x
,
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir
='${exec_prefix}/bin'
988 sbindir
='${exec_prefix}/sbin'
989 libexecdir
='${exec_prefix}/libexec'
990 datarootdir
='${prefix}/share'
991 datadir
='${datarootdir}'
992 sysconfdir
='${prefix}/etc'
993 sharedstatedir
='${prefix}/com'
994 localstatedir
='${prefix}/var'
995 includedir
='${prefix}/include'
996 oldincludedir
='/usr/include'
997 docdir
='${datarootdir}/doc/${PACKAGE}'
998 infodir
='${datarootdir}/info'
1003 libdir
='${exec_prefix}/lib'
1004 localedir
='${datarootdir}/locale'
1005 mandir
='${datarootdir}/man'
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\
$ac_option
1019 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1029 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1031 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1032 bindir
=$ac_optarg ;;
1034 -build |
--build |
--buil |
--bui |
--bu)
1035 ac_prev
=build_alias
;;
1036 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1037 build_alias
=$ac_optarg ;;
1039 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1040 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1041 ac_prev
=cache_file
;;
1042 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1043 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1044 cache_file
=$ac_optarg ;;
1046 --config-cache |
-C)
1047 cache_file
=config.cache
;;
1049 -datadir |
--datadir |
--datadi |
--datad)
1051 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1052 datadir
=$ac_optarg ;;
1054 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1055 |
--dataroo |
--dataro |
--datar)
1056 ac_prev
=datarootdir
;;
1057 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1058 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1059 datarootdir
=$ac_optarg ;;
1061 -disable-* |
--disable-*)
1062 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1065 as_fn_error
"invalid feature name: $ac_useropt"
1066 ac_useropt_orig
=$ac_useropt
1067 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1070 "enable_
$ac_useropt"
1072 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep
=', ';;
1075 eval enable_
$ac_useropt=no
;;
1077 -docdir |
--docdir |
--docdi |
--doc |
--do)
1079 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1080 docdir
=$ac_optarg ;;
1082 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1084 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1085 dvidir
=$ac_optarg ;;
1087 -enable-* |
--enable-*)
1088 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1091 as_fn_error
"invalid feature name: $ac_useropt"
1092 ac_useropt_orig
=$ac_useropt
1093 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "enable_
$ac_useropt"
1098 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099 ac_unrecognized_sep
=', ';;
1101 eval enable_
$ac_useropt=\
$ac_optarg ;;
1103 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1104 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1105 |
--exec |
--exe |
--ex)
1106 ac_prev
=exec_prefix
;;
1107 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1108 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1109 |
--exec=* |
--exe=* |
--ex=*)
1110 exec_prefix
=$ac_optarg ;;
1112 -gas |
--gas |
--ga |
--g)
1113 # Obsolete; use --with-gas.
1116 -help |
--help |
--hel |
--he |
-h)
1117 ac_init_help
=long
;;
1118 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1119 ac_init_help
=recursive
;;
1120 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1121 ac_init_help
=short
;;
1123 -host |
--host |
--hos |
--ho)
1124 ac_prev
=host_alias
;;
1125 -host=* |
--host=* |
--hos=* |
--ho=*)
1126 host_alias
=$ac_optarg ;;
1128 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1130 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1132 htmldir
=$ac_optarg ;;
1134 -includedir |
--includedir |
--includedi |
--included |
--include \
1135 |
--includ |
--inclu |
--incl |
--inc)
1136 ac_prev
=includedir
;;
1137 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1138 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1139 includedir
=$ac_optarg ;;
1141 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1143 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1144 infodir
=$ac_optarg ;;
1146 -libdir |
--libdir |
--libdi |
--libd)
1148 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1149 libdir
=$ac_optarg ;;
1151 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1152 |
--libexe |
--libex |
--libe)
1153 ac_prev
=libexecdir
;;
1154 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1155 |
--libexe=* |
--libex=* |
--libe=*)
1156 libexecdir
=$ac_optarg ;;
1158 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1159 ac_prev
=localedir
;;
1160 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1161 localedir
=$ac_optarg ;;
1163 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1164 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1165 ac_prev
=localstatedir
;;
1166 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1167 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1168 localstatedir
=$ac_optarg ;;
1170 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1172 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1173 mandir
=$ac_optarg ;;
1175 -nfp |
--nfp |
--nf)
1176 # Obsolete; use --without-fp.
1179 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1180 |
--no-cr |
--no-c |
-n)
1183 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1184 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1187 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1188 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1189 |
--oldin |
--oldi |
--old |
--ol |
--o)
1190 ac_prev
=oldincludedir
;;
1191 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1192 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1193 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1194 oldincludedir
=$ac_optarg ;;
1196 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1198 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1199 prefix
=$ac_optarg ;;
1201 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1202 |
--program-pre |
--program-pr |
--program-p)
1203 ac_prev
=program_prefix
;;
1204 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1205 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1206 program_prefix
=$ac_optarg ;;
1208 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1209 |
--program-suf |
--program-su |
--program-s)
1210 ac_prev
=program_suffix
;;
1211 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1212 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1213 program_suffix
=$ac_optarg ;;
1215 -program-transform-name |
--program-transform-name \
1216 |
--program-transform-nam |
--program-transform-na \
1217 |
--program-transform-n |
--program-transform- \
1218 |
--program-transform |
--program-transfor \
1219 |
--program-transfo |
--program-transf \
1220 |
--program-trans |
--program-tran \
1221 |
--progr-tra |
--program-tr |
--program-t)
1222 ac_prev
=program_transform_name
;;
1223 -program-transform-name=* |
--program-transform-name=* \
1224 |
--program-transform-nam=* |
--program-transform-na=* \
1225 |
--program-transform-n=* |
--program-transform-=* \
1226 |
--program-transform=* |
--program-transfor=* \
1227 |
--program-transfo=* |
--program-transf=* \
1228 |
--program-trans=* |
--program-tran=* \
1229 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1230 program_transform_name
=$ac_optarg ;;
1232 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1234 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1235 pdfdir
=$ac_optarg ;;
1237 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1239 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1242 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1243 |
-silent |
--silent |
--silen |
--sile |
--sil)
1246 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1248 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1250 sbindir
=$ac_optarg ;;
1252 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1253 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1254 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1256 ac_prev
=sharedstatedir
;;
1257 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1258 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1259 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1261 sharedstatedir
=$ac_optarg ;;
1263 -site |
--site |
--sit)
1265 -site=* |
--site=* |
--sit=*)
1268 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1270 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1271 srcdir
=$ac_optarg ;;
1273 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1274 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1275 ac_prev
=sysconfdir
;;
1276 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1277 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1278 sysconfdir
=$ac_optarg ;;
1280 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1281 ac_prev
=target_alias
;;
1282 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1283 target_alias
=$ac_optarg ;;
1285 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1288 -version |
--version |
--versio |
--versi |
--vers |
-V)
1289 ac_init_version
=: ;;
1292 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1295 as_fn_error
"invalid package name: $ac_useropt"
1296 ac_useropt_orig
=$ac_useropt
1297 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep
=', ';;
1305 eval with_
$ac_useropt=\
$ac_optarg ;;
1307 -without-* |
--without-*)
1308 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1311 as_fn_error
"invalid package name: $ac_useropt"
1312 ac_useropt_orig
=$ac_useropt
1313 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1318 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep
=', ';;
1321 eval with_
$ac_useropt=no
;;
1324 # Obsolete; use --with-x.
1327 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1328 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1329 ac_prev
=x_includes
;;
1330 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1331 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1332 x_includes
=$ac_optarg ;;
1334 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1335 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1336 ac_prev
=x_libraries
;;
1337 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1338 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1339 x_libraries
=$ac_optarg ;;
1341 -*) as_fn_error
"unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information."
1346 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 case $ac_envvar in #(
1349 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1350 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1352 eval $ac_envvar=\
$ac_optarg
1353 export $ac_envvar ;;
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1366 if test -n "$ac_prev"; then
1367 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1368 as_fn_error
"missing argument to $ac_option"
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1374 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 # Check all directory arguments for consistency.
1380 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
1385 eval ac_val
=\$
$ac_var
1386 # Remove trailing slashes.
1389 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\
$ac_val;;
1392 # Be sure to have absolute directory names.
1394 [\\/$
]* | ?
:[\\/]* ) continue;;
1395 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1397 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1405 target
=$target_alias
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x
; then
1409 if test "x$build_alias" = x
; then
1410 cross_compiling
=maybe
1411 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1412 If a cross compiler is detected then cross compile mode will be used." >&2
1413 elif test "x$build_alias" != "x$host_alias"; then
1419 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1421 test "$silent" = yes && exec 6>/dev
/null
1424 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1425 ac_ls_di
=`ls -di .` &&
1426 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1427 as_fn_error
"working directory cannot be determined"
1428 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1429 as_fn_error
"pwd does not report name of working directory"
1432 # Find the source files, if location was not specified.
1433 if test -z "$srcdir"; then
1434 ac_srcdir_defaulted
=yes
1435 # Try the directory containing this script, then the parent directory.
1436 ac_confdir
=`$as_dirname -- "$as_myself" ||
1437 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438 X"$as_myself" : 'X\(//\)[^/]' \| \
1439 X"$as_myself" : 'X\(//\)$' \| \
1440 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1441 $as_echo X"$as_myself" |
1442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1464 ac_srcdir_defaulted
=no
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1468 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1470 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1474 # When building in place, set srcdir=.
1475 if test "$ac_abs_confdir" = "$ac_pwd"; then
1478 # Remove unnecessary trailing slashes from srcdir.
1479 # Double slashes in file names in object file debugging info
1480 # mess up M-x gdb in Emacs.
1482 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 for ac_var
in $ac_precious_vars; do
1485 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1486 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1487 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1488 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1492 # Report the --help message.
1494 if test "$ac_init_help" = "long"; then
1495 # Omit some internal or obsolete options to make the list less imposing.
1496 # This message is too long to be a string in the A/UX 3.1 sh.
1498 \`configure' configures this package to adapt to many kinds of systems.
1500 Usage: $0 [OPTION]... [VAR=VALUE]...
1502 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1503 VAR=VALUE. See below for descriptions of some of the useful variables.
1505 Defaults for the options are specified in brackets.
1508 -h, --help display this help and exit
1509 --help=short display options specific to this package
1510 --help=recursive display the short help of all the included packages
1511 -V, --version display version information and exit
1512 -q, --quiet, --silent do not print \`checking...' messages
1513 --cache-file=FILE cache test results in FILE [disabled]
1514 -C, --config-cache alias for \`--cache-file=config.cache'
1515 -n, --no-create do not create output files
1516 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518 Installation directories:
1519 --prefix=PREFIX install architecture-independent files in PREFIX
1520 [$ac_default_prefix]
1521 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1524 By default, \`make install' will install all the files in
1525 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1526 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1527 for instance \`--prefix=\$HOME'.
1529 For better control, use the options below.
1531 Fine tuning of the installation directories:
1532 --bindir=DIR user executables [EPREFIX/bin]
1533 --sbindir=DIR system admin executables [EPREFIX/sbin]
1534 --libexecdir=DIR program executables [EPREFIX/libexec]
1535 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1536 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1537 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1538 --libdir=DIR object code libraries [EPREFIX/lib]
1539 --includedir=DIR C header files [PREFIX/include]
1540 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1541 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1542 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1543 --infodir=DIR info documentation [DATAROOTDIR/info]
1544 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1545 --mandir=DIR man documentation [DATAROOTDIR/man]
1546 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1547 --htmldir=DIR html documentation [DOCDIR]
1548 --dvidir=DIR dvi documentation [DOCDIR]
1549 --pdfdir=DIR pdf documentation [DOCDIR]
1550 --psdir=DIR ps documentation [DOCDIR]
1556 --program-prefix=PREFIX prepend PREFIX to installed program names
1557 --program-suffix=SUFFIX append SUFFIX to installed program names
1558 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1561 --build=BUILD configure
for building on BUILD
[guessed
]
1562 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1563 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1567 if test -n "$ac_init_help"; then
1572 --disable-option-checking ignore unrecognized
--enable/--with options
1573 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1574 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1575 --enable-generated-files-in-srcdir
1576 put copies of generated files
in source dir intended
1577 for creating
source tarballs
for users without
1578 texinfo bison or flex
1579 --disable-largefile omit support
for large files
1580 --disable-build-format-warnings
1581 don
't use -Wformat while building GCC
1582 --enable-werror-always enable -Werror despite compiler version
1583 --enable-checking[=LIST]
1584 enable expensive run-time checks. With LIST, enable
1585 only specific categories of checks. Categories are:
1586 yes,no,all,none,release. Flags are:
1587 assert,df,fold,gc,gcac,gimple,misc,
1588 rtlflag,rtl,runtime,tree,valgrind,types
1589 --enable-coverage[=LEVEL]
1590 enable compiler's code coverage collection. Use to
1591 measure compiler performance and
locate unused parts
1592 of the compiler. With LEVEL
, specify optimization.
1593 Values are opt
, noopt
, default is noopt
1594 --enable-gather-detailed-mem-stats
1595 enable detailed memory allocation stats gathering
1596 --enable-multilib enable library support
for multiple ABIs
1597 --enable-multiarch enable support
for multiarch paths
1598 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1599 --enable-decimal-float={no
,yes,bid
,dpd
}
1600 enable decimal float extension to C. Selecting
'bid'
1601 or
'dpd' choses
which decimal floating point format
1603 --enable-fixed-point enable fixed-point arithmetic extension to C
1604 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1606 --enable-tls enable or disable generation of tls code overriding
1607 the assembler check
for tls support
1608 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1609 GNU Objective-C runtime
1610 --disable-shared don't provide a shared libgcc
1611 --enable-languages=LIST specify
which front-ends to build
1612 --disable-rpath do not hardcode runtime library paths
1613 --enable-sjlj-exceptions
1614 arrange to use setjmp
/longjmp exception handling
1615 --enable-secureplt enable -msecure-plt by default
for PowerPC
1616 --enable-leading-mingw64-underscores
1617 enable leading underscores on
64 bit mingw targets
1618 --enable-cld enable -mcld by default
for 32bit x86
1619 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1621 --disable-win32-registry
1622 disable lookup of installation paths
in the Registry
1624 --enable-win32-registry enable registry lookup
(default
)
1625 --enable-win32-registry=KEY
1626 use KEY instead of GCC version as the last portion
1628 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1629 --enable-static[=PKGS
] build static libraries
[default
=yes]
1630 --enable-fast-install[=PKGS
]
1631 optimize
for fast installation
[default
=yes]
1632 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1633 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1634 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1635 --enable-gnu-indirect-function
1636 enable the use of the @gnu_indirect_function to
1638 --enable-initfini-array use .init_array
/.fini_array sections
1639 --enable-comdat enable COMDAT group support
1641 --enable-fix-cortex-a53-835769
1642 enable workaround
for AArch64 Cortex-A53 erratum
1644 --disable-fix-cortex-a53-835769
1645 disable workaround
for AArch64 Cortex-A53 erratum
1649 --enable-fix-cortex-a53-843419
1650 enable workaround
for AArch64 Cortex-A53 erratum
1652 --disable-fix-cortex-a53-843419
1653 disable workaround
for AArch64 Cortex-A53 erratum
1656 --enable-gnu-unique-object
1657 enable the use of the @gnu_unique_object ELF
1658 extension on glibc systems
1659 --enable-linker-build-id
1660 compiler will always pass
--build-id to linker
1661 --enable-maintainer-mode
1662 enable make rules and dependencies not useful
(and
1663 sometimes confusing
) to the casual installer
1664 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1665 thrashing on the build machine
1666 --enable-version-specific-runtime-libs
1667 specify that runtime libraries should be installed
1668 in a compiler-specific directory
1669 --enable-plugin enable plugin support
1670 --enable-host-shared build
host code as shared libraries
1671 --disable-libquadmath-support
1672 disable libquadmath support
for Fortran
1675 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1676 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1677 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1678 --with-local-prefix=DIR specifies directory to put
local include
1679 --with-gxx-include-dir=DIR
1680 specifies directory to put g
++ header files
1681 --with-cpp-install-dir=DIR
1682 install the user visible C preprocessor
in DIR
1683 (relative to PREFIX
) as well as PREFIX
/bin
1684 --with-gnu-ld arrange to work with GNU ld
1685 --with-ld arrange to use the specified ld
(full pathname
)
1686 --with-demangler-in-ld try to use demangler
in GNU ld
1687 --with-gnu-as arrange to work with GNU as
1688 --with-as arrange to use the specified as
(full pathname
)
1689 --with-stabs arrange to use stabs instead of
host debug format
1690 --with-dwarf2 force the default debug format to be DWARF
2
1691 --with-native-system-header-dir=dir
1692 use dir as the directory to
look for standard
1693 system header files
in. Defaults to
/usr
/include.
1694 --with-build-sysroot=sysroot
1695 use sysroot as the system root during the build
1696 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1697 --with-specs=SPECS add SPECS to driver command-line processing
1698 --with-pkgversion=PKG Use PKG
in the version string
in place of
"Linaro
1699 GCC `cat $srcdir/LINARO-VERSION`"
1700 --with-bugurl=URL Direct users to URL to report a bug
1701 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1702 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1703 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1704 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1705 --with-pic try to use only PIC/non-PIC objects [default=use
1707 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1708 --with-plugin-ld=[ARG] specify the plugin linker
1709 --with-glibc-version=M.N
1710 assume GCC used with glibc version M.N or later
1711 --with-long-double-128 use 128-bit long double by default
1712 --with-gc={page,zone} this option is not supported anymore. It used to
1713 choose the garbage collection mechanism to use with
1715 --with-system-zlib use installed libz
1716 --with-linker-hash-style={sysv,gnu,both}
1717 specify the linker hash style
1719 Some influential environment variables:
1720 CC C compiler command
1721 CFLAGS C compiler flags
1722 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1723 nonstandard directory <lib dir>
1724 LIBS libraries to pass to the linker, e.g. -l<library>
1725 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1726 you have headers in a nonstandard directory <include dir>
1727 CXX C++ compiler command
1728 CXXFLAGS C++ compiler flags
1730 CXXCPP C++ preprocessor
1731 GMPLIBS How to link GMP
1732 GMPINC How to find GMP include files
1733 ISLLIBS How to link ISL
1734 ISLINC How to find ISL include files
1735 CLOOGLIBS How to link CLOOG
1736 CLOOGINC How to find CLOOG include files
1738 Use these variables to override the choices made by `configure' or to
help
1739 it to
find libraries and programs with nonstandard names
/locations.
1741 Report bugs to the package provider.
1746 if test "$ac_init_help" = "recursive"; then
1747 # If there are subdirs, report their specific --help.
1748 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1749 test -d "$ac_dir" ||
1750 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1755 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1757 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1758 # A ".." for each directory in $ac_dir_suffix.
1759 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1760 case $ac_top_builddir_sub in
1761 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1762 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1765 ac_abs_top_builddir
=$ac_pwd
1766 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1767 # for backward compatibility:
1768 ac_top_builddir
=$ac_top_build_prefix
1771 .
) # We are building in place.
1773 ac_top_srcdir
=$ac_top_builddir_sub
1774 ac_abs_top_srcdir
=$ac_pwd ;;
1775 [\\/]* | ?
:[\\/]* ) # Absolute name.
1776 ac_srcdir
=$srcdir$ac_dir_suffix;
1777 ac_top_srcdir
=$srcdir
1778 ac_abs_top_srcdir
=$srcdir ;;
1780 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1781 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1782 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1784 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1786 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1787 # Check for guested configure.
1788 if test -f "$ac_srcdir/configure.gnu"; then
1790 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1791 elif test -f "$ac_srcdir/configure"; then
1793 $SHELL "$ac_srcdir/configure" --help=recursive
1795 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1797 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1801 test -n "$ac_init_help" && exit $ac_status
1802 if $ac_init_version; then
1805 generated by GNU Autoconf
2.64
1807 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1808 This configure
script is free software
; the Free Software Foundation
1809 gives unlimited permission to copy
, distribute and modify it.
1814 ## ------------------------ ##
1815 ## Autoconf initialization. ##
1816 ## ------------------------ ##
1818 # ac_fn_c_try_compile LINENO
1819 # --------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_c_try_compile
()
1823 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1824 rm -f conftest.
$ac_objext
1825 if { { ac_try
="$ac_compile"
1827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_compile") 2>conftest.err
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest.$ac_objext; then :
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 } # ac_fn_c_try_compile
1856 # ac_fn_cxx_try_compile LINENO
1857 # ----------------------------
1858 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_cxx_try_compile ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 rm -f conftest.$ac_objext
1863 if { { ac_try="$ac_compile"
1865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1866 *) ac_try_echo
=$ac_try;;
1868 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_compile") 2>conftest.err
1872 if test -s conftest.err
; then
1873 grep -v '^ *+' conftest.err
>conftest.er1
1874 cat conftest.er1
>&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && {
1879 test -z "$ac_cxx_werror_flag" ||
1880 test ! -s conftest.err
1881 } && test -s conftest.
$ac_objext; then :
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.
$ac_ext >&5
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1892 } # ac_fn_cxx_try_compile
1894 # ac_fn_c_try_cpp LINENO
1895 # ----------------------
1896 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1899 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1900 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } >/dev/null && {
1916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1931 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1934 # the include files in INCLUDES and setting the cache variable VAR
1936 ac_fn_c_check_header_mongrel ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1943 $as_echo_n "(cached) " >&6
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1949 # Is the header compilable?
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1951 $as_echo_n "checking $2 usability... " >&6; }
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_header_compiler=yes
1960 ac_header_compiler=no
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1964 $as_echo "$ac_header_compiler" >&6; }
1966 # Is the header present?
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1968 $as_echo_n "checking $2 presence... " >&6; }
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1973 if ac_fn_c_try_cpp "$LINENO"; then :
1974 ac_header_preproc=yes
1976 ac_header_preproc=no
1978 rm -f conftest.err conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1980 $as_echo "$ac_header_preproc" >&6; }
1982 # So? What about this header?
1983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1986 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1992 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1994 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1996 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1998 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 $as_echo_n "checking for $2... " >&6; }
2005 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2006 $as_echo_n "(cached) " >&6
2008 eval "$3=\$ac_header_compiler"
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016 } # ac_fn_c_check_header_mongrel
2018 # ac_fn_c_try_run LINENO
2019 # ----------------------
2020 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2021 # that executables *can* be run.
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 if { { ac_try="$ac_link"
2027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2028 *) ac_try_echo
=$ac_try;;
2030 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 $as_echo "$ac_try_echo"; } >&5
2032 (eval "$ac_link") 2>&5
2034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2036 { { case "(($ac_try" in
2037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2038 *) ac_try_echo=$ac_try;;
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042 (eval "$ac_try") 2>&5
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; }; }; then :
2048 $as_echo "$as_me: program exited with status $ac_status" >&5
2049 $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2052 ac_retval=$ac_status
2054 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2061 # -------------------------------------------------------
2062 # Tests whether HEADER exists and can be compiled using the include files in
2063 # INCLUDES, setting the cache variable VAR accordingly.
2064 ac_fn_c_check_header_compile ()
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2070 $as_echo_n "(cached) " >&6
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2077 if ac_fn_c_try_compile "$LINENO"; then :
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086 $as_echo "$ac_res" >&6; }
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2089 } # ac_fn_c_check_header_compile
2091 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2092 # --------------------------------------------
2093 # Tries to find the compile-time value of EXPR in a program that includes
2094 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2096 ac_fn_c_compute_int ()
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 if test "$cross_compiling" = yes; then
2100 # Depending upon the size, compute the lo and hi bounds.
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 static int test_array [1 - 2 * !(($2) >= 0)];
2114 if ac_fn_c_try_compile "$LINENO"; then :
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2123 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 ac_hi=$ac_mid; break
2133 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2134 if test $ac_lo -le $ac_mid; then
2138 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2149 static int test_array [1 - 2 * !(($2) < 0)];
2156 if ac_fn_c_try_compile "$LINENO"; then :
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2165 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_lo=$ac_mid; break
2175 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2176 if test $ac_mid -le $ac_hi; then
2180 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 # Binary search between lo and hi bounds.
2191 while test "x$ac_lo" != "x$ac_hi"; do
2192 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2199 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 if ac_fn_c_try_compile "$LINENO"; then :
2209 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2221 static long int longval () { return $2; }
2222 static unsigned long int ulongval () { return $2; }
2229 FILE *f = fopen ("conftest.val", "w");
2234 long int i = longval ();
2237 fprintf (f, "%ld", i);
2241 unsigned long int i = ulongval ();
2244 fprintf (f, "%lu", i);
2246 /* Do not output a trailing newline, as this causes \r\n confusion
2247 on some platforms. */
2248 return ferror (f) || fclose (f) != 0;
2254 if ac_fn_c_try_run "$LINENO"; then :
2255 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2260 conftest.$ac_objext conftest.beam conftest.$ac_ext
2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2267 } # ac_fn_c_compute_int
2269 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2270 # -------------------------------------------
2271 # Tests whether TYPE exists after having included INCLUDES, setting cache
2272 # variable VAR accordingly.
2273 ac_fn_c_check_type ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277 $as_echo_n "checking for $2... " >&6; }
2278 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2279 $as_echo_n "(cached) " >&6
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2307 if ac_fn_c_try_compile "$LINENO"; then :
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318 $as_echo "$ac_res" >&6; }
2319 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321 } # ac_fn_c_check_type
2323 # ac_fn_c_find_intX_t LINENO BITS VAR
2324 # -----------------------------------
2325 # Finds a signed integer type with width BITS, setting cache variable VAR
2327 ac_fn_c_find_intX_t ()
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2331 $as_echo_n "checking for int$2_t... " >&6; }
2332 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2333 $as_echo_n "(cached) " >&6
2336 for ac_type in int$2_t 'int' 'long int' \
2337 'long long int' 'short int' 'signed char'; do
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2340 $ac_includes_default
2344 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2351 if ac_fn_c_try_compile "$LINENO"; then :
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2354 $ac_includes_default
2358 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2359 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2366 if ac_fn_c_try_compile "$LINENO"; then :
2373 eval "$3=\$ac_type" ;;
2376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 if test "x$as_val" = x""no; then :
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 } # ac_fn_c_find_intX_t
2394 # ac_fn_c_try_link LINENO
2395 # -----------------------
2396 # Try to link conftest.$ac_ext, and return whether this succeeded.
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 rm -f conftest.$ac_objext conftest$ac_exeext
2401 if { { ac_try="$ac_link"
2403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2404 *) ac_try_echo
=$ac_try;;
2406 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407 $as_echo "$ac_try_echo"; } >&5
2408 (eval "$ac_link") 2>conftest.err
2410 if test -s conftest.err
; then
2411 grep -v '^ *+' conftest.err
>conftest.er1
2412 cat conftest.er1
>&5
2413 mv -f conftest.er1 conftest.err
2415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2416 test $ac_status = 0; } && {
2417 test -z "$ac_c_werror_flag" ||
2418 test ! -s conftest.err
2419 } && test -s conftest
$ac_exeext && {
2420 test "$cross_compiling" = yes ||
2421 $as_test_x conftest
$ac_exeext
2425 $as_echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.
$ac_ext >&5
2430 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2431 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2432 # interfere with the next link command; also delete a directory that is
2433 # left behind by Apple's compiler. We do this before executing the actions.
2434 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2435 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2438 } # ac_fn_c_try_link
2440 # ac_fn_c_find_uintX_t LINENO BITS VAR
2441 # ------------------------------------
2442 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2444 ac_fn_c_find_uintX_t
()
2446 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2448 $as_echo_n "checking for uint$2_t... " >&6; }
2449 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2450 $as_echo_n "(cached) " >&6
2453 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2454 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h. */
2457 $ac_includes_default
2461 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2468 if ac_fn_c_try_compile
"$LINENO"; then :
2473 eval "$3=\$ac_type" ;;
2476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2478 if test "x$as_val" = x
""no
; then :
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2488 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2490 } # ac_fn_c_find_uintX_t
2492 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2493 # ----------------------------------------------
2494 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2495 ac_fn_c_check_header_preproc
()
2497 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2499 $as_echo_n "checking for $2... " >&6; }
2500 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2501 $as_echo_n "(cached) " >&6
2503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2507 if ac_fn_c_try_cpp
"$LINENO"; then :
2512 rm -f conftest.err conftest.
$ac_ext
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2519 } # ac_fn_c_check_header_preproc
2521 # ac_fn_cxx_try_cpp LINENO
2522 # ------------------------
2523 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2524 ac_fn_cxx_try_cpp
()
2526 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2527 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2533 $as_echo "$ac_try_echo"; } >&5
2534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2536 if test -s conftest.err; then
2537 grep -v '^ *+' conftest.err >conftest.er1
2538 cat conftest.er1 >&5
2539 mv -f conftest.er1 conftest.err
2541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2542 test $ac_status = 0; } >/dev/null && {
2543 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2544 test ! -s conftest.err
2548 $as_echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2556 } # ac_fn_cxx_try_cpp
2558 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2559 # ------------------------------------------------
2560 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2561 ac_fn_cxx_check_header_preproc ()
2563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2565 $as_echo_n "checking for $2... " >&6; }
2566 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2567 $as_echo_n "(cached) " >&6
2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2573 if ac_fn_cxx_try_cpp "$LINENO"; then :
2578 rm -f conftest.err conftest.$ac_ext
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2582 $as_echo "$ac_res" >&6; }
2583 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2585 } # ac_fn_cxx_check_header_preproc
2587 # ac_fn_c_check_func LINENO FUNC VAR
2588 # ----------------------------------
2589 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2590 ac_fn_c_check_func ()
2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2594 $as_echo_n "checking for $2... " >&6; }
2595 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2596 $as_echo_n "(cached) " >&6
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2600 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2602 #define $2 innocuous_$2
2604 /* System header to define __stub macros and hopefully few prototypes,
2605 which can conflict with char $2 (); below.
2606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2607 <limits.h> exists even on freestanding compilers. */
2610 # include <limits.h>
2612 # include <assert.h>
2617 /* Override any GCC internal prototype to avoid an error.
2618 Use char because int might match the return type of a GCC
2619 builtin and then its argument prototype would still apply. */
2624 /* The GNU C library defines this for functions which it implements
2625 to always fail with ENOSYS. Some functions are actually named
2626 something starting with __ and the normal name is an alias. */
2627 #if defined __stub_$2 || defined __stub___$2
2639 if ac_fn_c_try_link "$LINENO"; then :
2644 rm -f core conftest.err conftest.$ac_objext \
2645 conftest$ac_exeext conftest.$ac_ext
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2649 $as_echo "$ac_res" >&6; }
2650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652 } # ac_fn_c_check_func
2654 # ac_fn_cxx_try_link LINENO
2655 # -------------------------
2656 # Try to link conftest.$ac_ext, and return whether this succeeded.
2657 ac_fn_cxx_try_link ()
2659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2660 rm -f conftest.$ac_objext conftest$ac_exeext
2661 if { { ac_try="$ac_link"
2663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2664 *) ac_try_echo
=$ac_try;;
2666 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2667 $as_echo "$ac_try_echo"; } >&5
2668 (eval "$ac_link") 2>conftest.err
2670 if test -s conftest.err
; then
2671 grep -v '^ *+' conftest.err
>conftest.er1
2672 cat conftest.er1
>&5
2673 mv -f conftest.er1 conftest.err
2675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676 test $ac_status = 0; } && {
2677 test -z "$ac_cxx_werror_flag" ||
2678 test ! -s conftest.err
2679 } && test -s conftest
$ac_exeext && {
2680 test "$cross_compiling" = yes ||
2681 $as_test_x conftest
$ac_exeext
2685 $as_echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.
$ac_ext >&5
2690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2692 # interfere with the next link command; also delete a directory that is
2693 # left behind by Apple's compiler. We do this before executing the actions.
2694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2695 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2698 } # ac_fn_cxx_try_link
2699 cat >config.log
<<_ACEOF
2700 This file contains any messages produced by compilers while
2701 running configure, to aid debugging if configure makes a mistake.
2703 It was created by $as_me, which was
2704 generated by GNU Autoconf 2.64. Invocation command line was
2716 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2717 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2718 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2719 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2720 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2722 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2723 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2725 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2726 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2727 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2728 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2729 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2730 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2731 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir
=.
2740 $as_echo "PATH: $as_dir"
2756 # Keep a trace of the command line.
2757 # Strip out --no-create and --no-recursion so they do not pile up.
2758 # Strip out --silent because we don't want to record it for future runs.
2759 # Also quote any args containing shell meta-characters.
2760 # Make two passes to allow for proper duplicate-argument suppression.
2764 ac_must_keep_next
=false
2770 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2771 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2772 |
-silent |
--silent |
--silen |
--sile |
--sil)
2775 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2778 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2780 as_fn_append ac_configure_args1
" '$ac_arg'"
2781 if test $ac_must_keep_next = true
; then
2782 ac_must_keep_next
=false
# Got value, back to normal.
2785 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2786 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2787 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2788 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2789 case "$ac_configure_args0 " in
2790 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2793 -* ) ac_must_keep_next
=true
;;
2796 as_fn_append ac_configure_args
" '$ac_arg'"
2801 { ac_configure_args0
=; unset ac_configure_args0
;}
2802 { ac_configure_args1
=; unset ac_configure_args1
;}
2804 # When interrupted or exit'd, cleanup temporary files, and complete
2805 # config.log. We remove comments because anyway the quotes in there
2806 # would cause problems or look ugly.
2807 # WARNING: Use '\'' to represent an apostrophe within the trap.
2808 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2809 trap 'exit_status=$?
2810 # Save into config.log some information that might help in debugging.
2815 ## ---------------- ##
2816 ## Cache variables. ##
2817 ## ---------------- ##
2820 # The following way of writing the cache mishandles newlines in values,
2822 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2823 eval ac_val=\$$ac_var
2827 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2828 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2831 _ | IFS | as_nl) ;; #(
2832 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2833 *) { eval $ac_var=; unset $ac_var;} ;;
2838 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2839 *${as_nl}ac_space=\ *)
2841 "s/'\''/'\''\\\\'\'''\''/g;
2842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2845 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2853 ## ----------------- ##
2854 ## Output variables. ##
2855 ## ----------------- ##
2858 for ac_var in $ac_subst_vars
2860 eval ac_val=\$$ac_var
2862 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2864 $as_echo "$ac_var='\''$ac_val'\''"
2868 if test -n "$ac_subst_files"; then
2870 ## ------------------- ##
2871 ## File substitutions. ##
2872 ## ------------------- ##
2875 for ac_var
in $ac_subst_files
2877 eval ac_val
=\$
$ac_var
2879 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2881 $as_echo "$ac_var='\''$ac_val'\''"
2886 if test -s confdefs.h; then
2896 test "$ac_signal" != 0 &&
2897 $as_echo "$as_me: caught signal $ac_signal"
2898 $as_echo "$as_me: exit $exit_status"
2900 rm -f core *.core core.conftest.* &&
2901 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2904 for ac_signal
in 1 2 13 15; do
2905 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2909 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2910 rm -f -r conftest
* confdefs.h
2912 $as_echo "/* confdefs.h */" > confdefs.h
2914 # Predefined preprocessor variables.
2916 cat >>confdefs.h
<<_ACEOF
2917 #define PACKAGE_NAME "$PACKAGE_NAME"
2920 cat >>confdefs.h
<<_ACEOF
2921 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2924 cat >>confdefs.h
<<_ACEOF
2925 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2928 cat >>confdefs.h
<<_ACEOF
2929 #define PACKAGE_STRING "$PACKAGE_STRING"
2932 cat >>confdefs.h
<<_ACEOF
2933 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2936 cat >>confdefs.h
<<_ACEOF
2937 #define PACKAGE_URL "$PACKAGE_URL"
2941 # Let the site file select an alternate cache file if it wants to.
2942 # Prefer an explicitly selected file to automatically selected ones.
2945 if test -n "$CONFIG_SITE"; then
2946 ac_site_file1
=$CONFIG_SITE
2947 elif test "x$prefix" != xNONE
; then
2948 ac_site_file1
=$prefix/share
/config.site
2949 ac_site_file2
=$prefix/etc
/config.site
2951 ac_site_file1
=$ac_default_prefix/share
/config.site
2952 ac_site_file2
=$ac_default_prefix/etc
/config.site
2954 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2956 test "x$ac_site_file" = xNONE
&& continue
2957 if test -r "$ac_site_file"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2959 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2960 sed 's/^/| /' "$ac_site_file" >&5
2965 if test -r "$cache_file"; then
2966 # Some versions of bash will fail to source /dev/null (special
2967 # files actually), so we avoid doing that.
2968 if test -f "$cache_file"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2970 $as_echo "$as_me: loading cache $cache_file" >&6;}
2972 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2973 *) .
"./$cache_file";;
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2978 $as_echo "$as_me: creating cache $cache_file" >&6;}
2982 # Check that the precious variables saved in the cache have kept the same
2984 ac_cache_corrupted
=false
2985 for ac_var
in $ac_precious_vars; do
2986 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2987 eval ac_new_set
=\
$ac_env_${ac_var}_set
2988 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2989 eval ac_new_val
=\
$ac_env_${ac_var}_value
2990 case $ac_old_set,$ac_new_set in
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2993 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2994 ac_cache_corrupted
=: ;;
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2997 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2998 ac_cache_corrupted
=: ;;
3001 if test "x$ac_old_val" != "x$ac_new_val"; then
3002 # differences in whitespace do not lead to failure.
3003 ac_old_val_w
=`echo x $ac_old_val`
3004 ac_new_val_w
=`echo x $ac_new_val`
3005 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3007 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3008 ac_cache_corrupted
=:
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3011 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3012 eval $ac_var=\
$ac_old_val
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3015 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3017 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3020 # Pass precious variables to config.status.
3021 if test "$ac_new_set" = set; then
3023 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3024 *) ac_arg
=$ac_var=$ac_new_val ;;
3026 case " $ac_configure_args " in
3027 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3028 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3032 if $ac_cache_corrupted; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3036 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3037 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3039 ## -------------------- ##
3040 ## Main body of script. ##
3041 ## -------------------- ##
3044 ac_cpp
='$CPP $CPPFLAGS'
3045 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3054 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3057 gcc_version
=`cat $srcdir/BASE-VER`
3059 # Determine the host, build, and target systems
3061 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3062 for ac_t
in install-sh
install.sh shtool
; do
3063 if test -f "$ac_dir/$ac_t"; then
3065 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3070 if test -z "$ac_aux_dir"; then
3071 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3074 # These three variables are undocumented and unsupported,
3075 # and are intended to be withdrawn in a future Autoconf release.
3076 # They can cause serious problems if a builder's source tree is in a directory
3077 # whose full name contains unusual characters.
3078 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3079 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3080 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3083 # Make sure we can run config.sub.
3084 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3085 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3088 $as_echo_n "checking build system type... " >&6; }
3089 if test "${ac_cv_build+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3092 ac_build_alias
=$build_alias
3093 test "x$ac_build_alias" = x
&&
3094 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3095 test "x$ac_build_alias" = x
&&
3096 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3097 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3098 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3102 $as_echo "$ac_cv_build" >&6; }
3103 case $ac_cv_build in
3105 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3108 ac_save_IFS
=$IFS; IFS
='-'
3114 # Remember, the first character of IFS is used to create $*,
3115 # except with old shells:
3118 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3122 $as_echo_n "checking host system type... " >&6; }
3123 if test "${ac_cv_host+set}" = set; then :
3124 $as_echo_n "(cached) " >&6
3126 if test "x$host_alias" = x
; then
3127 ac_cv_host
=$ac_cv_build
3129 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3130 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3135 $as_echo "$ac_cv_host" >&6; }
3138 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3141 ac_save_IFS
=$IFS; IFS
='-'
3147 # Remember, the first character of IFS is used to create $*,
3148 # except with old shells:
3151 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3155 $as_echo_n "checking target system type... " >&6; }
3156 if test "${ac_cv_target+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3159 if test "x$target_alias" = x
; then
3160 ac_cv_target
=$ac_cv_host
3162 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3163 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3168 $as_echo "$ac_cv_target" >&6; }
3169 case $ac_cv_target in
3171 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3173 target
=$ac_cv_target
3174 ac_save_IFS
=$IFS; IFS
='-'
3180 # Remember, the first character of IFS is used to create $*,
3181 # except with old shells:
3184 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3187 # The aliases save the names the user supplied, while $host etc.
3188 # will get canonicalized.
3189 test -n "$target_alias" &&
3190 test "$program_prefix$program_suffix$program_transform_name" = \
3192 program_prefix
=${target_alias}-
3194 # Determine the noncanonical target name, for directory use.
3195 case ${build_alias} in
3196 "") build_noncanonical
=${build} ;;
3197 *) build_noncanonical
=${build_alias} ;;
3200 case ${host_alias} in
3201 "") host_noncanonical
=${build_noncanonical} ;;
3202 *) host_noncanonical
=${host_alias} ;;
3205 case ${target_alias} in
3206 "") target_noncanonical
=${host_noncanonical} ;;
3207 *) target_noncanonical
=${target_alias} ;;
3213 # Determine the target- and build-specific subdirectories
3215 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3216 # have matching libraries, they should use host libraries: Makefile.tpl
3217 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3218 # However, they still use the build modules, because the corresponding
3219 # host modules (e.g. bison) are only built for the host when bootstrap
3221 # - build_subdir is where we find build modules, and never changes.
3222 # - build_libsubdir is where we find build libraries, and can be overridden.
3224 # Prefix 'build-' so this never conflicts with target_subdir.
3225 build_subdir
="build-${build_noncanonical}"
3227 # Check whether --with-build-libsubdir was given.
3228 if test "${with_build_libsubdir+set}" = set; then :
3229 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3231 build_libsubdir
="$build_subdir"
3234 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3235 if ( test $srcdir = .
&& test -d gcc
) \
3236 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3237 host_subdir
="host-${host_noncanonical}"
3242 target_subdir
=${target_noncanonical}
3245 # Set program_transform_name
3246 test "$program_prefix" != NONE
&&
3247 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3248 # Use a double $ so make ignores it.
3249 test "$program_suffix" != NONE
&&
3250 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3251 # Double any \ or $.
3252 # By default was `s,x,x', remove it if useless.
3253 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3254 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3257 # Check for bogus environment variables.
3258 # Test if LIBRARY_PATH contains the notation for the current directory
3259 # since this would lead to problems installing/building glibc.
3260 # LIBRARY_PATH contains the current directory if one of the following
3262 # - one of the terminals (":" and ";") is the first or last sign
3263 # - two terminals occur directly after each other
3264 # - the path contains an element with a dot in it
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3266 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3267 case ${LIBRARY_PATH} in
3268 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3269 library_path_setting
="contains current directory"
3272 library_path_setting
="ok"
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3276 $as_echo "$library_path_setting" >&6; }
3277 if test "$library_path_setting" != "ok"; then
3279 *** LIBRARY_PATH shouldn't contain the current directory when
3280 *** building gcc. Please change the environment variable
3281 *** and run configure again." "$LINENO" 5
3284 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3285 # since this would lead to problems installing/building glibc.
3286 # GCC_EXEC_PREFIX contains the current directory if one of the following
3288 # - one of the terminals (":" and ";") is the first or last sign
3289 # - two terminals occur directly after each other
3290 # - the path contains an element with a dot in it
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3292 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3293 case ${GCC_EXEC_PREFIX} in
3294 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3295 gcc_exec_prefix_setting
="contains current directory"
3298 gcc_exec_prefix_setting
="ok"
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3302 $as_echo "$gcc_exec_prefix_setting" >&6; }
3303 if test "$gcc_exec_prefix_setting" != "ok"; then
3305 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3306 *** building gcc. Please change the environment variable
3307 *** and run configure again." "$LINENO" 5
3314 # Specify the local prefix
3317 # Check whether --with-local-prefix was given.
3318 if test "${with_local_prefix+set}" = set; then :
3319 withval
=$with_local_prefix; case "${withval}" in
3320 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3322 *) local_prefix
=$with_local_prefix ;;
3327 # Default local prefix if it is empty
3328 if test x
$local_prefix = x
; then
3329 local_prefix
=/usr
/local
3332 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3333 # passed in by the toplevel make and thus we'd get different behavior
3334 # depending on where we built the sources.
3335 gcc_gxx_include_dir
=
3336 # Specify the g++ header file directory
3338 # Check whether --with-gxx-include-dir was given.
3339 if test "${with_gxx_include_dir+set}" = set; then :
3340 withval
=$with_gxx_include_dir; case "${withval}" in
3341 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3343 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3348 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3349 if test x
${gcc_gxx_include_dir} = x
; then
3350 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3351 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3353 libstdcxx_incdir
='include/c++/$(version)'
3354 if test x
$host != x
$target; then
3355 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3357 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3361 gcc_gxx_include_dir_add_sysroot
=0
3362 if test "${with_sysroot+set}" = set; then
3363 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3364 if test "${gcc_gxx_without_sysroot}"; then
3365 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3366 gcc_gxx_include_dir_add_sysroot
=1
3371 # Check whether --with-cpp_install_dir was given.
3372 if test "${with_cpp_install_dir+set}" = set; then :
3373 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3374 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3375 elif test x
$withval != xno
; then
3376 cpp_install_dir
=$withval
3381 # We would like to our source tree to be readonly. However when releases or
3382 # pre-releases are generated, the flex/bison generated files as well as the
3383 # various formats of manuals need to be included along with the rest of the
3384 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3388 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3389 # Check whether --enable-generated-files-in-srcdir was given.
3390 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3391 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3393 generated_files_in_srcdir
=no
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3398 $as_echo "$generated_files_in_srcdir" >&6; }
3400 if test "$generated_files_in_srcdir" = "yes"; then
3407 # -------------------
3408 # Find default linker
3409 # -------------------
3413 # Check whether --with-gnu-ld was given.
3414 if test "${with_gnu_ld+set}" = set; then :
3415 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3421 # With pre-defined ld
3423 # Check whether --with-ld was given.
3424 if test "${with_ld+set}" = set; then :
3425 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3428 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3429 if test ! -x "$DEFAULT_LINKER"; then
3430 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3431 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3435 cat >>confdefs.h
<<_ACEOF
3436 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3442 $as_echo_n "checking whether a default linker was specified... " >&6; }
3443 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3444 if test x
"$gnu_ld_flag" = x
"no"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3446 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3449 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3456 # With demangler in GNU ld
3458 # Check whether --with-demangler-in-ld was given.
3459 if test "${with_demangler_in_ld+set}" = set; then :
3460 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3466 # ----------------------
3467 # Find default assembler
3468 # ----------------------
3472 # Check whether --with-gnu-as was given.
3473 if test "${with_gnu_as+set}" = set; then :
3474 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3481 # Check whether --with-as was given.
3482 if test "${with_as+set}" = set; then :
3483 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3486 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3487 if test ! -x "$DEFAULT_ASSEMBLER"; then
3488 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3489 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3493 cat >>confdefs.h
<<_ACEOF
3494 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3500 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3501 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3502 if test x
"$gas_flag" = x
"no"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3504 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3507 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3518 # If a non-executable a.out is present (e.g. created by GNU as above even if
3519 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3520 # file, even when creating an executable, so an execution test fails.
3521 # Remove possible default executable files to avoid this.
3523 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3524 # Autoconf includes it.
3525 rm -f a.out a.exe b.out
3527 # Find the native compiler
3529 ac_cpp
='$CPP $CPPFLAGS'
3530 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3533 if test -n "$ac_tool_prefix"; then
3534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3535 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_CC+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3541 if test -n "$CC"; then
3542 ac_cv_prog_CC
="$CC" # Let the user override the test.
3544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir
=.
3549 for ac_exec_ext
in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 if test -n "$CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3564 $as_echo "$CC" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3572 if test -z "$ac_cv_prog_CC"; then
3574 # Extract the first word of "gcc", so it can be a program name with args.
3575 set dummy gcc
; ac_word
=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3579 $as_echo_n "(cached) " >&6
3581 if test -n "$ac_ct_CC"; then
3582 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3588 test -z "$as_dir" && as_dir
=.
3589 for ac_exec_ext
in '' $ac_executable_extensions; do
3590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591 ac_cv_prog_ac_ct_CC
="gcc"
3592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3602 if test -n "$ac_ct_CC"; then
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3604 $as_echo "$ac_ct_CC" >&6; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3610 if test "x$ac_ct_CC" = x
; then
3613 case $cross_compiling:$ac_tool_warned in
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3617 ac_tool_warned
=yes ;;
3625 if test -z "$CC"; then
3626 if test -n "$ac_tool_prefix"; then
3627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3628 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC
="$CC" # Let the user override the test.
3637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir
=.
3642 for ac_exec_ext
in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 if test -n "$CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3657 $as_echo "$CC" >&6; }
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3666 if test -z "$CC"; then
3667 # Extract the first word of "cc", so it can be a program name with args.
3668 set dummy cc
; ac_word
=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if test "${ac_cv_prog_CC+set}" = set; then :
3672 $as_echo_n "(cached) " >&6
3674 if test -n "$CC"; then
3675 ac_cv_prog_CC
="$CC" # Let the user override the test.
3678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3682 test -z "$as_dir" && as_dir
=.
3683 for ac_exec_ext
in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3686 ac_prog_rejected
=yes
3690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 if test $ac_prog_rejected = yes; then
3698 # We found a bogon in the path, so make sure we never use it.
3699 set dummy
$ac_cv_prog_CC
3701 if test $# != 0; then
3702 # We chose a different compiler from the bogus one.
3703 # However, it has the same basename, so the bogon will be chosen
3704 # first if we set CC to just the basename; use the full file name.
3706 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3712 if test -n "$CC"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3714 $as_echo "$CC" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3722 if test -z "$CC"; then
3723 if test -n "$ac_tool_prefix"; then
3724 for ac_prog
in cl.exe
3726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3727 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729 $as_echo_n "checking for $ac_word... " >&6; }
3730 if test "${ac_cv_prog_CC+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
3733 if test -n "$CC"; then
3734 ac_cv_prog_CC
="$CC" # Let the user override the test.
3736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3740 test -z "$as_dir" && as_dir
=.
3741 for ac_exec_ext
in '' $ac_executable_extensions; do
3742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3743 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 if test -n "$CC"; then
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3756 $as_echo "$CC" >&6; }
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759 $as_echo "no" >&6; }
3763 test -n "$CC" && break
3766 if test -z "$CC"; then
3768 for ac_prog
in cl.exe
3770 # Extract the first word of "$ac_prog", so it can be a program name with args.
3771 set dummy
$ac_prog; ac_word
=$2
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3777 if test -n "$ac_ct_CC"; then
3778 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3784 test -z "$as_dir" && as_dir
=.
3785 for ac_exec_ext
in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787 ac_cv_prog_ac_ct_CC
="$ac_prog"
3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3798 if test -n "$ac_ct_CC"; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3800 $as_echo "$ac_ct_CC" >&6; }
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3807 test -n "$ac_ct_CC" && break
3810 if test "x$ac_ct_CC" = x
; then
3813 case $cross_compiling:$ac_tool_warned in
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3817 ac_tool_warned
=yes ;;
3826 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3828 as_fn_error
"no acceptable C compiler found in \$PATH
3829 See \`config.log' for more details." "$LINENO" 5; }
3831 # Provide some information about the compiler.
3832 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3835 for ac_option
in --version -v -V -qversion; do
3836 { { ac_try
="$ac_compiler $ac_option >&5"
3838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3845 if test -s conftest.err; then
3847 ... rest of stderr output deleted ...
3848 10q' conftest.err >conftest.er1
3849 cat conftest.er1 >&5
3850 rm -f conftest.er1 conftest.err
3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3867 ac_clean_files_save=$ac_clean_files
3868 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3869 # Try to create an executable without -o first, disregard a.out.
3870 # It will help us diagnose broken compilers, and finding out an intuition
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3873 $as_echo_n "checking for C compiler default output file name... " >&6; }
3874 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3876 # The possible output files:
3877 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3880 for ac_file in $ac_files
3883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3884 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3889 if { { ac_try="$ac_link_default"
3891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3892 *) ac_try_echo
=$ac_try;;
3894 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895 $as_echo "$ac_try_echo"; } >&5
3896 (eval "$ac_link_default") 2>&5
3898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899 test $ac_status = 0; }; then :
3900 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3901 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3902 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3903 # so that the user can short-circuit this test for compilers unknown to
3905 for ac_file
in $ac_files ''
3907 test -f "$ac_file" ||
continue
3909 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3912 # We found the default executable, but exeext='' is most
3916 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3918 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920 # We set ac_cv_exeext here because the later test for it is not
3921 # safe: cross compilers may not add the suffix if given an `-o'
3922 # argument, so we may need to know it at that point already.
3923 # Even if this section looks crufty: it has the advantage of
3930 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3936 $as_echo "$ac_file" >&6; }
3937 if test -z "$ac_file"; then :
3938 $as_echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.
$ac_ext >&5
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 { as_fn_set_status
77
3944 as_fn_error
"C compiler cannot create executables
3945 See \`config.log' for more details." "$LINENO" 5; }; }
3947 ac_exeext
=$ac_cv_exeext
3949 # Check that the compiler produces executables we can run. If not, either
3950 # the compiler is broken, or we cross compile.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3952 $as_echo_n "checking whether the C compiler works... " >&6; }
3953 # If not cross compiling, check that we can run a simple program.
3954 if test "$cross_compiling" != yes; then
3955 if { ac_try
='./$ac_file'
3956 { { case "(($ac_try" in
3957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 $as_echo "$ac_try_echo"; } >&5
3962 (eval "$ac_try") 2>&5
3964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965 test $ac_status = 0; }; }; then
3968 if test "$cross_compiling" = maybe; then
3971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973 as_fn_error "cannot run C compiled programs.
3974 If you meant to cross compile
, use \
`--host'.
3975 See \`config.log
' for more details." "$LINENO" 5; }
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3980 $as_echo "yes" >&6; }
3982 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3983 ac_clean_files=$ac_clean_files_save
3984 # Check that the compiler produces executables we can run. If not, either
3985 # the compiler is broken, or we cross compile.
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3987 $as_echo_n "checking whether we are cross compiling... " >&6; }
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3989 $as_echo "$cross_compiling" >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3992 $as_echo_n "checking for suffix of executables... " >&6; }
3993 if { { ac_try="$ac_link"
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999 $as_echo "$ac_try_echo"; } >&5
4000 (eval "$ac_link") 2>&5
4002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003 test $ac_status = 0; }; then :
4004 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4005 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4006 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4008 for ac_file
in conftest.exe conftest conftest.
*; do
4009 test -f "$ac_file" ||
continue
4011 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4012 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4021 See \`config.log' for more details." "$LINENO" 5; }
4023 rm -f conftest
$ac_cv_exeext
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4025 $as_echo "$ac_cv_exeext" >&6; }
4027 rm -f conftest.
$ac_ext
4028 EXEEXT
=$ac_cv_exeext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4031 $as_echo_n "checking for suffix of object files... " >&6; }
4032 if test "${ac_cv_objext+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
4035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4046 rm -f conftest.o conftest.obj
4047 if { { ac_try
="$ac_compile"
4049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053 $as_echo "$ac_try_echo"; } >&5
4054 (eval "$ac_compile") 2>&5
4056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4057 test $ac_status = 0; }; then :
4058 for ac_file in conftest.o conftest.obj conftest.*; do
4059 test -f "$ac_file" || continue;
4061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4062 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4067 $as_echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error "cannot compute suffix of object files
: cannot compile
4073 See \
`config.log' for more details." "$LINENO" 5; }
4075 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4078 $as_echo "$ac_cv_objext" >&6; }
4079 OBJEXT=$ac_cv_objext
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4082 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4083 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4100 if ac_fn_c_try_compile "$LINENO"; then :
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4110 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4111 if test $ac_compiler_gnu = yes; then
4116 ac_test_CFLAGS=${CFLAGS+set}
4117 ac_save_CFLAGS=$CFLAGS
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4119 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4120 if test "${ac_cv_prog_cc_g+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
4123 ac_save_c_werror_flag=$ac_c_werror_flag
4124 ac_c_werror_flag=yes
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4138 if ac_fn_c_try_compile "$LINENO"; then :
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4153 if ac_fn_c_try_compile "$LINENO"; then :
4156 ac_c_werror_flag=$ac_save_c_werror_flag
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4169 if ac_fn_c_try_compile "$LINENO"; then :
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_c_werror_flag=$ac_save_c_werror_flag
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4180 $as_echo "$ac_cv_prog_cc_g" >&6; }
4181 if test "$ac_test_CFLAGS" = set; then
4182 CFLAGS=$ac_save_CFLAGS
4183 elif test $ac_cv_prog_cc_g = yes; then
4184 if test "$GCC" = yes; then
4190 if test "$GCC" = yes; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4197 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4198 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4199 $as_echo_n "(cached) " >&6
4201 ac_cv_prog_cc_c89=no
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4207 #include <sys/types.h>
4208 #include <sys/stat.h>
4209 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4210 struct buf { int x; };
4211 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4212 static char *e (p, i)
4218 static char *f (char * (*g) (char **, int), char **p, ...)
4223 s = g (p, va_arg (v,int));
4228 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4229 function prototypes and stuff, but not '\xHH' hex character constants.
4230 These don't provoke an error unfortunately, instead are silently treated
4231 as 'x'. The following induces an error, until -std is added to get
4232 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4233 array size at least. It's necessary to write '\x00'==0 to get something
4234 that's true only with -std. */
4235 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4237 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4238 inside strings and character constants. */
4240 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4242 int test (int i, double x);
4243 struct s1 {int (*f) (int a);};
4244 struct s2 {int (*f) (double a);};
4245 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4251 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4256 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4257 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4259 CC="$ac_save_CC $ac_arg"
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261 ac_cv_prog_cc_c89=$ac_arg
4263 rm -f core conftest.err conftest.$ac_objext
4264 test "x$ac_cv_prog_cc_c89" != "xno" && break
4266 rm -f conftest.$ac_ext
4271 case "x$ac_cv_prog_cc_c89" in
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4274 $as_echo "none needed" >&6; } ;;
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4277 $as_echo "unsupported" >&6; } ;;
4279 CC="$CC $ac_cv_prog_cc_c89"
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4281 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4283 if test "x$ac_cv_prog_cc_c89" != xno; then :
4288 ac_cpp='$CPP $CPPFLAGS'
4289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4294 ac_cpp='$CXXCPP $CPPFLAGS'
4295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4298 if test -z "$CXX"; then
4299 if test -n "$CCC"; then
4302 if test -n "$ac_tool_prefix"; then
4303 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if test "${ac_cv_prog_CXX+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4312 if test -n "$CXX"; then
4313 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 if test -n "$CXX"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4335 $as_echo "$CXX" >&6; }
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4342 test -n "$CXX" && break
4345 if test -z "$CXX"; then
4347 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4349 # Extract the first word of "$ac_prog", so it can be a program name with args.
4350 set dummy $ac_prog; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4356 if test -n "$ac_ct_CXX"; then
4357 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_prog_ac_ct_CXX="$ac_prog"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4377 if test -n "$ac_ct_CXX"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4379 $as_echo "$ac_ct_CXX" >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4386 test -n "$ac_ct_CXX" && break
4389 if test "x$ac_ct_CXX" = x; then
4392 case $cross_compiling:$ac_tool_warned in
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4396 ac_tool_warned=yes ;;
4404 # Provide some information about the compiler.
4405 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4408 for ac_option in --version -v -V -qversion; do
4409 { { ac_try="$ac_compiler $ac_option >&5"
4411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4412 *) ac_try_echo
=$ac_try;;
4414 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4415 $as_echo "$ac_try_echo"; } >&5
4416 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4418 if test -s conftest.err
; then
4420 ... rest of stderr output deleted ...
4421 10q' conftest.err
>conftest.er1
4422 cat conftest.er1
>&5
4423 rm -f conftest.er1 conftest.err
4425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4426 test $ac_status = 0; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4430 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4431 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4448 if ac_fn_cxx_try_compile
"$LINENO"; then :
4453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4454 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4458 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4459 if test $ac_compiler_gnu = yes; then
4464 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4465 ac_save_CXXFLAGS
=$CXXFLAGS
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4467 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4468 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4469 $as_echo_n "(cached) " >&6
4471 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4472 ac_cxx_werror_flag
=yes
4475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4486 if ac_fn_cxx_try_compile
"$LINENO"; then :
4487 ac_cv_prog_cxx_g
=yes
4490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4501 if ac_fn_cxx_try_compile
"$LINENO"; then :
4504 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4517 if ac_fn_cxx_try_compile
"$LINENO"; then :
4518 ac_cv_prog_cxx_g
=yes
4520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4525 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4528 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4529 if test "$ac_test_CXXFLAGS" = set; then
4530 CXXFLAGS
=$ac_save_CXXFLAGS
4531 elif test $ac_cv_prog_cxx_g = yes; then
4532 if test "$GXX" = yes; then
4538 if test "$GXX" = yes; then
4545 ac_cpp
='$CPP $CPPFLAGS'
4546 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4553 if test -n "$ac_tool_prefix"; then
4554 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4555 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4561 if test -n "$GNATBIND"; then
4562 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir
=.
4569 for ac_exec_ext
in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 GNATBIND
=$ac_cv_prog_GNATBIND
4582 if test -n "$GNATBIND"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4584 $as_echo "$GNATBIND" >&6; }
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4592 if test -z "$ac_cv_prog_GNATBIND"; then
4593 ac_ct_GNATBIND
=$GNATBIND
4594 # Extract the first word of "gnatbind", so it can be a program name with args.
4595 set dummy gnatbind
; ac_word
=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4599 $as_echo_n "(cached) " >&6
4601 if test -n "$ac_ct_GNATBIND"; then
4602 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir
=.
4609 for ac_exec_ext
in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4622 if test -n "$ac_ct_GNATBIND"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4624 $as_echo "$ac_ct_GNATBIND" >&6; }
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4630 if test "x$ac_ct_GNATBIND" = x
; then
4633 case $cross_compiling:$ac_tool_warned in
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4637 ac_tool_warned
=yes ;;
4639 GNATBIND
=$ac_ct_GNATBIND
4642 GNATBIND
="$ac_cv_prog_GNATBIND"
4645 if test -n "$ac_tool_prefix"; then
4646 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4647 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4651 $as_echo_n "(cached) " >&6
4653 if test -n "$GNATMAKE"; then
4654 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir
=.
4661 for ac_exec_ext
in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 GNATMAKE
=$ac_cv_prog_GNATMAKE
4674 if test -n "$GNATMAKE"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4676 $as_echo "$GNATMAKE" >&6; }
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4684 if test -z "$ac_cv_prog_GNATMAKE"; then
4685 ac_ct_GNATMAKE
=$GNATMAKE
4686 # Extract the first word of "gnatmake", so it can be a program name with args.
4687 set dummy gnatmake
; ac_word
=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4693 if test -n "$ac_ct_GNATMAKE"; then
4694 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4700 test -z "$as_dir" && as_dir
=.
4701 for ac_exec_ext
in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4714 if test -n "$ac_ct_GNATMAKE"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4716 $as_echo "$ac_ct_GNATMAKE" >&6; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4722 if test "x$ac_ct_GNATMAKE" = x
; then
4725 case $cross_compiling:$ac_tool_warned in
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4729 ac_tool_warned
=yes ;;
4731 GNATMAKE
=$ac_ct_GNATMAKE
4734 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4738 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4739 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4742 cat >conftest.adb
<<EOF
4743 procedure conftest is begin null; end conftest;
4745 acx_cv_cc_gcc_supports_ada
=no
4746 # There is a bug in old released versions of GCC which causes the
4747 # driver to exit successfully when the appropriate language module
4748 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4749 # Therefore we must check for the error message as well as an
4750 # unsuccessful exit.
4751 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4752 # given a .adb file, but produce no object file. So we must check
4753 # if an object file was really produced to guard against this.
4754 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4755 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4756 acx_cv_cc_gcc_supports_ada
=yes
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4761 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4763 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4770 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4771 # optimizations to be activated explicitly by the toplevel.
4773 */prev-gcc
/xgcc
*) ;;
4774 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4775 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4780 # Determine PICFLAG for target gnatlib.
4786 # PIC is the default on some targets or must not be used.
4788 # PIC is the default on this platform
4789 # Common symbols not allowed in MH_DYLIB files
4790 PICFLAG_FOR_TARGET
=-fno-common
4793 # PIC is the default.
4796 # PIC is the default for 64-bit PA HP-UX.
4798 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4800 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4802 i
[34567]86-*-interix[3-9]*)
4803 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4804 # Instead, we relocate shared libraries at runtime.
4806 i
[34567]86-*-nto-qnx*)
4807 # QNX uses GNU C++, but need to define -shared option too, otherwise
4809 PICFLAG_FOR_TARGET
='-fPIC -shared'
4811 i
[34567]86-pc-msdosdjgpp*)
4812 # DJGPP does not support shared libraries at all.
4815 # On IA64 HP-UX, PIC is the default but the pic flag
4816 # sets the default TLS model and affects inlining.
4817 PICFLAG_FOR_TARGET
=-fPIC
4820 # PIC is the default.
4822 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4823 # All AIX code is PIC.
4826 # Some targets support both -fPIC and -fpic, but prefer the latter.
4828 i
[34567]86-*-* | x86_64-
*-*)
4829 PICFLAG_FOR_TARGET
=-fpic
4831 # FIXME: Override -fPIC default in libgcc only?
4832 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4833 PICFLAG_FOR_TARGET
=-fpic
4835 # FIXME: Simplify to sh*-*-netbsd*?
4836 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4837 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4838 PICFLAG_FOR_TARGET
=-fpic
4840 # Default to -fPIC unless specified otherwise.
4842 PICFLAG_FOR_TARGET
=-fPIC
4846 # If the user explicitly uses -fpic/-fPIC, keep that.
4847 case "${CFLAGS_FOR_TARGET}" in
4849 PICFLAG_FOR_TARGET
=-fpic
4852 PICFLAG_FOR_TARGET
=-fPIC
4858 # -------------------------
4859 # Check C compiler features
4860 # -------------------------
4864 ac_cpp
='$CPP $CPPFLAGS'
4865 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4869 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4870 # On Suns, sometimes $CPP names a directory.
4871 if test -n "$CPP" && test -d "$CPP"; then
4874 if test -z "$CPP"; then
4875 if test "${ac_cv_prog_CPP+set}" = set; then :
4876 $as_echo_n "(cached) " >&6
4878 # Double quotes because CPP needs to be expanded
4879 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4882 for ac_c_preproc_warn_flag
in '' yes
4884 # Use a header file that comes with gcc, so configuring glibc
4885 # with a fresh cross-compiler works.
4886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4887 # <limits.h> exists even on freestanding compilers.
4888 # On the NeXT, cc -E runs the code through the compiler's parser,
4889 # not just through cpp. "Syntax error" is here to catch this case.
4890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4893 # include <limits.h>
4895 # include <assert.h>
4899 if ac_fn_c_try_cpp
"$LINENO"; then :
4902 # Broken: fails on valid input.
4905 rm -f conftest.err conftest.
$ac_ext
4907 # OK, works on sane cases. Now check whether nonexistent headers
4908 # can be detected and how.
4909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911 #include <ac_nonexistent.h>
4913 if ac_fn_c_try_cpp
"$LINENO"; then :
4914 # Broken: success on invalid input.
4917 # Passes both tests.
4921 rm -f conftest.err conftest.
$ac_ext
4924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4925 rm -f conftest.err conftest.
$ac_ext
4926 if $ac_preproc_ok; then :
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4939 $as_echo "$CPP" >&6; }
4941 for ac_c_preproc_warn_flag
in '' yes
4943 # Use a header file that comes with gcc, so configuring glibc
4944 # with a fresh cross-compiler works.
4945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4946 # <limits.h> exists even on freestanding compilers.
4947 # On the NeXT, cc -E runs the code through the compiler's parser,
4948 # not just through cpp. "Syntax error" is here to catch this case.
4949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4952 # include <limits.h>
4954 # include <assert.h>
4958 if ac_fn_c_try_cpp
"$LINENO"; then :
4961 # Broken: fails on valid input.
4964 rm -f conftest.err conftest.
$ac_ext
4966 # OK, works on sane cases. Now check whether nonexistent headers
4967 # can be detected and how.
4968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4970 #include <ac_nonexistent.h>
4972 if ac_fn_c_try_cpp
"$LINENO"; then :
4973 # Broken: success on invalid input.
4976 # Passes both tests.
4980 rm -f conftest.err conftest.
$ac_ext
4983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4984 rm -f conftest.err conftest.
$ac_ext
4985 if $ac_preproc_ok; then :
4988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4990 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4991 See \`config.log' for more details." "$LINENO" 5; }
4995 ac_cpp
='$CPP $CPPFLAGS'
4996 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5002 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5003 if test "${ac_cv_path_GREP+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5006 if test -z "$GREP"; then
5007 ac_path_GREP_found
=false
5008 # Loop through the user's path and test for each of PROGNAME-LIST
5009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5010 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5013 test -z "$as_dir" && as_dir
=.
5014 for ac_prog
in grep ggrep
; do
5015 for ac_exec_ext
in '' $ac_executable_extensions; do
5016 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5017 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5018 # Check for GNU ac_path_GREP and select it if it is found.
5019 # Check for GNU $ac_path_GREP
5020 case `"$ac_path_GREP" --version 2>&1` in
5022 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5025 $as_echo_n 0123456789 >"conftest.in"
5028 cat "conftest.in" "conftest.in" >"conftest.tmp"
5029 mv "conftest.tmp" "conftest.in"
5030 cp "conftest.in" "conftest.nl"
5031 $as_echo 'GREP' >> "conftest.nl"
5032 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5033 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5034 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5035 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5036 # Best one so far, save it but keep looking for a better one
5037 ac_cv_path_GREP
="$ac_path_GREP"
5038 ac_path_GREP_max
=$ac_count
5040 # 10*(2^10) chars as input seems more than enough
5041 test $ac_count -gt 10 && break
5043 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5046 $ac_path_GREP_found && break 3
5051 if test -z "$ac_cv_path_GREP"; then
5052 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5055 ac_cv_path_GREP
=$GREP
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5060 $as_echo "$ac_cv_path_GREP" >&6; }
5061 GREP
="$ac_cv_path_GREP"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5065 $as_echo_n "checking for egrep... " >&6; }
5066 if test "${ac_cv_path_EGREP+set}" = set; then :
5067 $as_echo_n "(cached) " >&6
5069 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5070 then ac_cv_path_EGREP
="$GREP -E"
5072 if test -z "$EGREP"; then
5073 ac_path_EGREP_found
=false
5074 # Loop through the user's path and test for each of PROGNAME-LIST
5075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5076 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5079 test -z "$as_dir" && as_dir
=.
5080 for ac_prog
in egrep; do
5081 for ac_exec_ext
in '' $ac_executable_extensions; do
5082 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5083 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5084 # Check for GNU ac_path_EGREP and select it if it is found.
5085 # Check for GNU $ac_path_EGREP
5086 case `"$ac_path_EGREP" --version 2>&1` in
5088 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5091 $as_echo_n 0123456789 >"conftest.in"
5094 cat "conftest.in" "conftest.in" >"conftest.tmp"
5095 mv "conftest.tmp" "conftest.in"
5096 cp "conftest.in" "conftest.nl"
5097 $as_echo 'EGREP' >> "conftest.nl"
5098 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5099 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5100 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5101 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5102 # Best one so far, save it but keep looking for a better one
5103 ac_cv_path_EGREP
="$ac_path_EGREP"
5104 ac_path_EGREP_max
=$ac_count
5106 # 10*(2^10) chars as input seems more than enough
5107 test $ac_count -gt 10 && break
5109 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5112 $ac_path_EGREP_found && break 3
5117 if test -z "$ac_cv_path_EGREP"; then
5118 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5121 ac_cv_path_EGREP
=$EGREP
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5127 $as_echo "$ac_cv_path_EGREP" >&6; }
5128 EGREP
="$ac_cv_path_EGREP"
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5132 $as_echo_n "checking for ANSI C header files... " >&6; }
5133 if test "${ac_cv_header_stdc+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5151 if ac_fn_c_try_compile
"$LINENO"; then :
5152 ac_cv_header_stdc
=yes
5154 ac_cv_header_stdc
=no
5156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5158 if test $ac_cv_header_stdc = yes; then
5159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5166 $EGREP "memchr" >/dev
/null
2>&1; then :
5169 ac_cv_header_stdc
=no
5175 if test $ac_cv_header_stdc = yes; then
5176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5183 $EGREP "free" >/dev
/null
2>&1; then :
5186 ac_cv_header_stdc
=no
5192 if test $ac_cv_header_stdc = yes; then
5193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5194 if test "$cross_compiling" = yes; then :
5197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5201 #if ((' ' & 0x0FF) == 0x020)
5202 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5203 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5205 # define ISLOWER(c) \
5206 (('a' <= (c) && (c) <= 'i') \
5207 || ('j' <= (c) && (c) <= 'r') \
5208 || ('s' <= (c) && (c) <= 'z'))
5209 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5217 for (i = 0; i < 256; i++)
5218 if (XOR (islower (i), ISLOWER (i))
5219 || toupper (i) != TOUPPER (i))
5224 if ac_fn_c_try_run
"$LINENO"; then :
5227 ac_cv_header_stdc
=no
5229 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5230 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5236 $as_echo "$ac_cv_header_stdc" >&6; }
5237 if test $ac_cv_header_stdc = yes; then
5239 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5243 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5244 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5245 inttypes.h stdint.h unistd.h
5247 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5248 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5250 eval as_val
=\$
$as_ac_Header
5251 if test "x$as_val" = x
""yes; then :
5252 cat >>confdefs.h
<<_ACEOF
5253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5262 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5263 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5270 if test "$MINIX" = yes; then
5272 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5275 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5278 $as_echo "#define _MINIX 1" >>confdefs.h
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5284 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5285 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5291 # define __EXTENSIONS__ 1
5292 $ac_includes_default
5301 if ac_fn_c_try_compile
"$LINENO"; then :
5302 ac_cv_safe_to_define___extensions__
=yes
5304 ac_cv_safe_to_define___extensions__
=no
5306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5309 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5310 test $ac_cv_safe_to_define___extensions__ = yes &&
5311 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5313 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5315 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5317 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5319 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5323 ac_cpp
='$CPP $CPPFLAGS'
5324 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5328 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5329 # On Suns, sometimes $CPP names a directory.
5330 if test -n "$CPP" && test -d "$CPP"; then
5333 if test -z "$CPP"; then
5334 if test "${ac_cv_prog_CPP+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5337 # Double quotes because CPP needs to be expanded
5338 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5341 for ac_c_preproc_warn_flag
in '' yes
5343 # Use a header file that comes with gcc, so configuring glibc
5344 # with a fresh cross-compiler works.
5345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5346 # <limits.h> exists even on freestanding compilers.
5347 # On the NeXT, cc -E runs the code through the compiler's parser,
5348 # not just through cpp. "Syntax error" is here to catch this case.
5349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5352 # include <limits.h>
5354 # include <assert.h>
5358 if ac_fn_c_try_cpp
"$LINENO"; then :
5361 # Broken: fails on valid input.
5364 rm -f conftest.err conftest.
$ac_ext
5366 # OK, works on sane cases. Now check whether nonexistent headers
5367 # can be detected and how.
5368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370 #include <ac_nonexistent.h>
5372 if ac_fn_c_try_cpp
"$LINENO"; then :
5373 # Broken: success on invalid input.
5376 # Passes both tests.
5380 rm -f conftest.err conftest.
$ac_ext
5383 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5384 rm -f conftest.err conftest.
$ac_ext
5385 if $ac_preproc_ok; then :
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5398 $as_echo "$CPP" >&6; }
5400 for ac_c_preproc_warn_flag
in '' yes
5402 # Use a header file that comes with gcc, so configuring glibc
5403 # with a fresh cross-compiler works.
5404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5405 # <limits.h> exists even on freestanding compilers.
5406 # On the NeXT, cc -E runs the code through the compiler's parser,
5407 # not just through cpp. "Syntax error" is here to catch this case.
5408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5411 # include <limits.h>
5413 # include <assert.h>
5417 if ac_fn_c_try_cpp
"$LINENO"; then :
5420 # Broken: fails on valid input.
5423 rm -f conftest.err conftest.
$ac_ext
5425 # OK, works on sane cases. Now check whether nonexistent headers
5426 # can be detected and how.
5427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 #include <ac_nonexistent.h>
5431 if ac_fn_c_try_cpp
"$LINENO"; then :
5432 # Broken: success on invalid input.
5435 # Passes both tests.
5439 rm -f conftest.err conftest.
$ac_ext
5442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5443 rm -f conftest.err conftest.
$ac_ext
5444 if $ac_preproc_ok; then :
5447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5449 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5450 See \`config.log' for more details." "$LINENO" 5; }
5454 ac_cpp
='$CPP $CPPFLAGS'
5455 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5456 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5457 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5460 $as_echo_n "checking for inline... " >&6; }
5461 if test "${ac_cv_c_inline+set}" = set; then :
5462 $as_echo_n "(cached) " >&6
5465 for ac_kw
in inline __inline__ __inline
; do
5466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5470 static $ac_kw foo_t static_foo () {return 0; }
5471 $ac_kw foo_t foo () {return 0; }
5475 if ac_fn_c_try_compile
"$LINENO"; then :
5476 ac_cv_c_inline
=$ac_kw
5478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5479 test "$ac_cv_c_inline" != no
&& break
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5484 $as_echo "$ac_cv_c_inline" >&6; }
5486 case $ac_cv_c_inline in
5489 case $ac_cv_c_inline in
5491 *) ac_val
=$ac_cv_c_inline;;
5493 cat >>confdefs.h
<<_ACEOF
5495 #define inline $ac_val
5502 # Check whether --enable-largefile was given.
5503 if test "${enable_largefile+set}" = set; then :
5504 enableval
=$enable_largefile;
5507 if test "$enable_largefile" != no
; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5510 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5511 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5514 ac_cv_sys_largefile_CC
=no
5515 if test "$GCC" != yes; then
5518 # IRIX 6.2 and later do not support large files by default,
5519 # so use the C compiler's -n32 option if that helps.
5520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 #include <sys/types.h>
5523 /* Check that off_t can represent 2**63 - 1 correctly.
5524 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5525 since some C++ compilers masquerading as C compilers
5526 incorrectly reject 9223372036854775807. */
5527 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5528 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5529 && LARGE_OFF_T % 2147483647 == 1)
5539 if ac_fn_c_try_compile
"$LINENO"; then :
5542 rm -f core conftest.err conftest.
$ac_objext
5544 if ac_fn_c_try_compile
"$LINENO"; then :
5545 ac_cv_sys_largefile_CC
=' -n32'; break
5547 rm -f core conftest.err conftest.
$ac_objext
5551 rm -f conftest.
$ac_ext
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5555 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5556 if test "$ac_cv_sys_largefile_CC" != no
; then
5557 CC
=$CC$ac_cv_sys_largefile_CC
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5561 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5562 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #include <sys/types.h>
5569 /* Check that off_t can represent 2**63 - 1 correctly.
5570 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5571 since some C++ compilers masquerading as C compilers
5572 incorrectly reject 9223372036854775807. */
5573 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5574 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5575 && LARGE_OFF_T % 2147483647 == 1)
5585 if ac_fn_c_try_compile
"$LINENO"; then :
5586 ac_cv_sys_file_offset_bits
=no
; break
5588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 #define _FILE_OFFSET_BITS 64
5592 #include <sys/types.h>
5593 /* Check that off_t can represent 2**63 - 1 correctly.
5594 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5595 since some C++ compilers masquerading as C compilers
5596 incorrectly reject 9223372036854775807. */
5597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5598 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5599 && LARGE_OFF_T % 2147483647 == 1)
5609 if ac_fn_c_try_compile
"$LINENO"; then :
5610 ac_cv_sys_file_offset_bits
=64; break
5612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5613 ac_cv_sys_file_offset_bits
=unknown
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5618 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5619 case $ac_cv_sys_file_offset_bits in #(
5622 cat >>confdefs.h
<<_ACEOF
5623 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5628 if test $ac_cv_sys_file_offset_bits = unknown
; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5630 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5631 if test "${ac_cv_sys_large_files+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #include <sys/types.h>
5638 /* Check that off_t can represent 2**63 - 1 correctly.
5639 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5640 since some C++ compilers masquerading as C compilers
5641 incorrectly reject 9223372036854775807. */
5642 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5644 && LARGE_OFF_T % 2147483647 == 1)
5654 if ac_fn_c_try_compile
"$LINENO"; then :
5655 ac_cv_sys_large_files
=no
; break
5657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 #define _LARGE_FILES 1
5661 #include <sys/types.h>
5662 /* Check that off_t can represent 2**63 - 1 correctly.
5663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5664 since some C++ compilers masquerading as C compilers
5665 incorrectly reject 9223372036854775807. */
5666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5668 && LARGE_OFF_T % 2147483647 == 1)
5678 if ac_fn_c_try_compile
"$LINENO"; then :
5679 ac_cv_sys_large_files
=1; break
5681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5682 ac_cv_sys_large_files
=unknown
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5687 $as_echo "$ac_cv_sys_large_files" >&6; }
5688 case $ac_cv_sys_large_files in #(
5691 cat >>confdefs.h
<<_ACEOF
5692 #define _LARGE_FILES $ac_cv_sys_large_files
5701 # sizeof(char) is 1 by definition.
5702 # The cast to long int works around a bug in the HP C Compiler
5703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5705 # This bug is HP SR number 8606223364.
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5707 $as_echo_n "checking size of void *... " >&6; }
5708 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5711 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5714 if test "$ac_cv_type_void_p" = yes; then
5715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5717 { as_fn_set_status
77
5718 as_fn_error
"cannot compute sizeof (void *)
5719 See \`config.log' for more details." "$LINENO" 5; }; }
5721 ac_cv_sizeof_void_p
=0
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5727 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5731 cat >>confdefs.h
<<_ACEOF
5732 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5736 # The cast to long int works around a bug in the HP C Compiler
5737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5739 # This bug is HP SR number 8606223364.
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5741 $as_echo_n "checking size of short... " >&6; }
5742 if test "${ac_cv_sizeof_short+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5745 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5748 if test "$ac_cv_type_short" = yes; then
5749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5751 { as_fn_set_status
77
5752 as_fn_error
"cannot compute sizeof (short)
5753 See \`config.log' for more details." "$LINENO" 5; }; }
5755 ac_cv_sizeof_short
=0
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5761 $as_echo "$ac_cv_sizeof_short" >&6; }
5765 cat >>confdefs.h
<<_ACEOF
5766 #define SIZEOF_SHORT $ac_cv_sizeof_short
5770 # The cast to long int works around a bug in the HP C Compiler
5771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5773 # This bug is HP SR number 8606223364.
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5775 $as_echo_n "checking size of int... " >&6; }
5776 if test "${ac_cv_sizeof_int+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5779 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5782 if test "$ac_cv_type_int" = yes; then
5783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5785 { as_fn_set_status
77
5786 as_fn_error
"cannot compute sizeof (int)
5787 See \`config.log' for more details." "$LINENO" 5; }; }
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5795 $as_echo "$ac_cv_sizeof_int" >&6; }
5799 cat >>confdefs.h
<<_ACEOF
5800 #define SIZEOF_INT $ac_cv_sizeof_int
5804 # The cast to long int works around a bug in the HP C Compiler
5805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5807 # This bug is HP SR number 8606223364.
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5809 $as_echo_n "checking size of long... " >&6; }
5810 if test "${ac_cv_sizeof_long+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5813 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5816 if test "$ac_cv_type_long" = yes; then
5817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5819 { as_fn_set_status
77
5820 as_fn_error
"cannot compute sizeof (long)
5821 See \`config.log' for more details." "$LINENO" 5; }; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5829 $as_echo "$ac_cv_sizeof_long" >&6; }
5833 cat >>confdefs.h
<<_ACEOF
5834 #define SIZEOF_LONG $ac_cv_sizeof_long
5838 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5839 if test "x$ac_cv_type_long_long" = x
""yes; then :
5841 cat >>confdefs.h
<<_ACEOF
5842 #define HAVE_LONG_LONG 1
5845 # The cast to long int works around a bug in the HP C Compiler
5846 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5847 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5848 # This bug is HP SR number 8606223364.
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5850 $as_echo_n "checking size of long long... " >&6; }
5851 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5854 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5857 if test "$ac_cv_type_long_long" = yes; then
5858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5860 { as_fn_set_status
77
5861 as_fn_error
"cannot compute sizeof (long long)
5862 See \`config.log' for more details." "$LINENO" 5; }; }
5864 ac_cv_sizeof_long_long
=0
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5870 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5874 cat >>confdefs.h
<<_ACEOF
5875 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5881 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5882 if test "x$ac_cv_type___int64" = x
""yes; then :
5884 cat >>confdefs.h
<<_ACEOF
5885 #define HAVE___INT64 1
5888 # The cast to long int works around a bug in the HP C Compiler
5889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5891 # This bug is HP SR number 8606223364.
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5893 $as_echo_n "checking size of __int64... " >&6; }
5894 if test "${ac_cv_sizeof___int64+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5897 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5900 if test "$ac_cv_type___int64" = yes; then
5901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5903 { as_fn_set_status
77
5904 as_fn_error
"cannot compute sizeof (__int64)
5905 See \`config.log' for more details." "$LINENO" 5; }; }
5907 ac_cv_sizeof___int64
=0
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5913 $as_echo "$ac_cv_sizeof___int64" >&6; }
5917 cat >>confdefs.h
<<_ACEOF
5918 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5924 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5925 case $ac_cv_c_int8_t in #(
5929 cat >>confdefs.h
<<_ACEOF
5930 #define int8_t $ac_cv_c_int8_t
5935 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5936 case $ac_cv_c_int16_t in #(
5940 cat >>confdefs.h
<<_ACEOF
5941 #define int16_t $ac_cv_c_int16_t
5946 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5947 case $ac_cv_c_int32_t in #(
5951 cat >>confdefs.h
<<_ACEOF
5952 #define int32_t $ac_cv_c_int32_t
5957 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5958 case $ac_cv_c_int64_t in #(
5962 cat >>confdefs.h
<<_ACEOF
5963 #define int64_t $ac_cv_c_int64_t
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5970 $as_echo_n "checking for long long int... " >&6; }
5971 if test "${ac_cv_type_long_long_int+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5977 /* For now, do not test the preprocessor; as of 2007 there are too many
5978 implementations with broken preprocessors. Perhaps this can
5979 be revisited in 2012. In the meantime, code should not expect
5980 #if to work with literals wider than 32 bits. */
5981 /* Test literals. */
5982 long long int ll = 9223372036854775807ll;
5983 long long int nll = -9223372036854775807LL;
5984 unsigned long long int ull = 18446744073709551615ULL;
5985 /* Test constant expressions. */
5986 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5988 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5994 /* Test availability of runtime routines for shift and division. */
5995 long long int llmax = 9223372036854775807ll;
5996 unsigned long long int ullmax = 18446744073709551615ull;
5997 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5998 | (llmax / ll) | (llmax % ll)
5999 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6000 | (ullmax / ull) | (ullmax % ull));
6006 if ac_fn_c_try_link
"$LINENO"; then :
6007 if test "$cross_compiling" = yes; then :
6008 ac_cv_type_long_long_int
=yes
6010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6015 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6016 # define LLONG_MAX (HALF - 1 + HALF)
6021 long long int n = 1;
6025 long long int m = n << i;
6028 if (LLONG_MAX / 2 < m)
6036 if ac_fn_c_try_run
"$LINENO"; then :
6037 ac_cv_type_long_long_int
=yes
6039 ac_cv_type_long_long_int
=no
6041 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6042 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6046 ac_cv_type_long_long_int
=no
6048 rm -f core conftest.err conftest.
$ac_objext \
6049 conftest
$ac_exeext conftest.
$ac_ext
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6052 $as_echo "$ac_cv_type_long_long_int" >&6; }
6053 if test $ac_cv_type_long_long_int = yes; then
6055 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6061 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6062 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6064 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6067 test $ac_cv_type_long_long_int = yes \
6068 && ac_type
='long long int' \
6069 || ac_type
='long int'
6071 cat >>confdefs.h
<<_ACEOF
6072 #define intmax_t $ac_type
6079 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6080 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6082 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6085 for ac_type
in 'int' 'long int' 'long long int'; do
6086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 $ac_includes_default
6092 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6099 if ac_fn_c_try_compile
"$LINENO"; then :
6101 cat >>confdefs.h
<<_ACEOF
6102 #define intptr_t $ac_type
6107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6108 test -z "$ac_type" && break
6113 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6114 case $ac_cv_c_uint8_t in #(
6118 $as_echo "#define _UINT8_T 1" >>confdefs.h
6121 cat >>confdefs.h
<<_ACEOF
6122 #define uint8_t $ac_cv_c_uint8_t
6127 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6128 case $ac_cv_c_uint16_t in #(
6133 cat >>confdefs.h
<<_ACEOF
6134 #define uint16_t $ac_cv_c_uint16_t
6139 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6140 case $ac_cv_c_uint32_t in #(
6144 $as_echo "#define _UINT32_T 1" >>confdefs.h
6147 cat >>confdefs.h
<<_ACEOF
6148 #define uint32_t $ac_cv_c_uint32_t
6153 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6154 case $ac_cv_c_uint64_t in #(
6158 $as_echo "#define _UINT64_T 1" >>confdefs.h
6161 cat >>confdefs.h
<<_ACEOF
6162 #define uint64_t $ac_cv_c_uint64_t
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6169 $as_echo_n "checking for unsigned long long int... " >&6; }
6170 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6176 /* For now, do not test the preprocessor; as of 2007 there are too many
6177 implementations with broken preprocessors. Perhaps this can
6178 be revisited in 2012. In the meantime, code should not expect
6179 #if to work with literals wider than 32 bits. */
6180 /* Test literals. */
6181 long long int ll = 9223372036854775807ll;
6182 long long int nll = -9223372036854775807LL;
6183 unsigned long long int ull = 18446744073709551615ULL;
6184 /* Test constant expressions. */
6185 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6187 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6193 /* Test availability of runtime routines for shift and division. */
6194 long long int llmax = 9223372036854775807ll;
6195 unsigned long long int ullmax = 18446744073709551615ull;
6196 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6197 | (llmax / ll) | (llmax % ll)
6198 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6199 | (ullmax / ull) | (ullmax % ull));
6205 if ac_fn_c_try_link
"$LINENO"; then :
6206 ac_cv_type_unsigned_long_long_int
=yes
6208 ac_cv_type_unsigned_long_long_int
=no
6210 rm -f core conftest.err conftest.
$ac_objext \
6211 conftest
$ac_exeext conftest.
$ac_ext
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6214 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6215 if test $ac_cv_type_unsigned_long_long_int = yes; then
6217 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6223 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6224 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6226 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6229 test $ac_cv_type_unsigned_long_long_int = yes \
6230 && ac_type
='unsigned long long int' \
6231 || ac_type
='unsigned long int'
6233 cat >>confdefs.h
<<_ACEOF
6234 #define uintmax_t $ac_type
6241 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6242 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6244 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6247 for ac_type
in 'unsigned int' 'unsigned long int' \
6248 'unsigned long long int'; do
6249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251 $ac_includes_default
6255 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6262 if ac_fn_c_try_compile
"$LINENO"; then :
6264 cat >>confdefs.h
<<_ACEOF
6265 #define uintptr_t $ac_type
6270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6271 test -z "$ac_type" && break
6289 # ---------------------
6290 # Warnings and checking
6291 # ---------------------
6293 # Check $CC warning features (if it's GCC).
6294 # We want to use -pedantic, but we don't want warnings about
6297 # * overlong strings
6298 # * C++11 narrowing conversions in { }
6299 # So, we only use -pedantic if we can disable those warnings.
6301 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6302 # Check whether --enable-build-format-warnings was given.
6303 if test "${enable_build_format_warnings+set}" = set; then :
6304 enableval
=$enable_build_format_warnings;
6306 enable_build_format_warnings
=yes
6309 if test $enable_build_format_warnings = no
; then :
6315 save_CFLAGS
="$CFLAGS"
6316 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6317 # Do the check with the no- prefix removed since gcc silently
6318 # accepts any -Wno-* option on purpose
6319 case $real_option in
6320 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6321 *) option
=$real_option ;;
6323 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6326 $as_echo_n "checking whether $CC supports $option... " >&6; }
6327 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6328 $as_echo_n "(cached) " >&6
6331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6342 if ac_fn_c_try_compile
"$LINENO"; then :
6343 eval "$as_acx_Woption=yes"
6345 eval "$as_acx_Woption=no"
6347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6350 eval ac_res
=\$
$as_acx_Woption
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6352 $as_echo "$ac_res" >&6; }
6353 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6354 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6357 CFLAGS
="$save_CFLAGS"
6360 save_CFLAGS
="$CFLAGS"
6361 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6362 # Do the check with the no- prefix removed since gcc silently
6363 # accepts any -Wno-* option on purpose
6364 case $real_option in
6365 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6366 *) option
=$real_option ;;
6368 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6371 $as_echo_n "checking whether $CC supports $option... " >&6; }
6372 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6373 $as_echo_n "(cached) " >&6
6376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6387 if ac_fn_c_try_compile
"$LINENO"; then :
6388 eval "$as_acx_Woption=yes"
6390 eval "$as_acx_Woption=no"
6392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6395 eval ac_res
=\$
$as_acx_Woption
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6397 $as_echo "$ac_res" >&6; }
6398 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6399 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6402 CFLAGS
="$save_CFLAGS"
6405 save_CFLAGS
="$CFLAGS"
6406 for real_option
in -Wmissing-format-attribute; do
6407 # Do the check with the no- prefix removed since gcc silently
6408 # accepts any -Wno-* option on purpose
6409 case $real_option in
6410 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6411 *) option
=$real_option ;;
6413 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6416 $as_echo_n "checking whether $CC supports $option... " >&6; }
6417 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6418 $as_echo_n "(cached) " >&6
6421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6432 if ac_fn_c_try_compile
"$LINENO"; then :
6433 eval "$as_acx_Woption=yes"
6435 eval "$as_acx_Woption=no"
6437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6440 eval ac_res
=\$
$as_acx_Woption
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6442 $as_echo "$ac_res" >&6; }
6443 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6444 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6447 CFLAGS
="$save_CFLAGS"
6450 save_CFLAGS
="$CFLAGS"
6451 for real_option
in -Wold-style-definition -Wc++-compat; do
6452 # Do the check with the no- prefix removed since gcc silently
6453 # accepts any -Wno-* option on purpose
6454 case $real_option in
6455 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6456 *) option
=$real_option ;;
6458 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6461 $as_echo_n "checking whether $CC supports $option... " >&6; }
6462 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6463 $as_echo_n "(cached) " >&6
6466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6477 if ac_fn_c_try_compile
"$LINENO"; then :
6478 eval "$as_acx_Woption=yes"
6480 eval "$as_acx_Woption=no"
6482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6485 eval ac_res
=\$
$as_acx_Woption
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6487 $as_echo "$ac_res" >&6; }
6488 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6489 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6492 CFLAGS
="$save_CFLAGS"
6494 # Do the check with the no- prefix removed from the warning options
6495 # since gcc silently accepts any -Wno-* option on purpose
6496 if test "$GCC" = yes; then :
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6498 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6499 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6500 $as_echo_n "(cached) " >&6
6502 save_CFLAGS
="$CFLAGS"
6503 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6515 if ac_fn_c_try_compile
"$LINENO"; then :
6516 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6518 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6521 CFLAGS
="$save_CFLAGS"
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6524 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6525 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6526 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6531 # Check whether --enable-werror-always was given.
6532 if test "${enable_werror_always+set}" = set; then :
6533 enableval
=$enable_werror_always;
6535 enable_werror_always
=no
6538 if test $enable_werror_always = yes; then :
6539 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6544 # The above macros do nothing if the compiler is not GCC. However, the
6545 # Makefile has more goo to add other flags, so these variables are used
6546 # to enable warnings only for GCC.
6549 if test "x$GCC" = "xyes"; then
6550 warn_cflags
='$(GCC_WARN_CFLAGS)'
6551 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6556 # Disable exceptions and RTTI if building with g++
6558 save_CFLAGS
="$CFLAGS"
6559 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6560 # Do the check with the no- prefix removed since gcc silently
6561 # accepts any -Wno-* option on purpose
6562 case $real_option in
6563 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6564 *) option
=$real_option ;;
6566 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6569 $as_echo_n "checking whether $CC supports $option... " >&6; }
6570 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6571 $as_echo_n "(cached) " >&6
6574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6585 if ac_fn_c_try_compile
"$LINENO"; then :
6586 eval "$as_acx_Woption=yes"
6588 eval "$as_acx_Woption=no"
6590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6593 eval ac_res
=\$
$as_acx_Woption
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6595 $as_echo "$ac_res" >&6; }
6596 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6597 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6600 CFLAGS
="$save_CFLAGS"
6603 # Enable expensive internal checks
6605 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6609 # Check whether --enable-checking was given.
6610 if test "${enable_checking+set}" = set; then :
6611 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6614 # Determine the default checks.
6615 if test x
$is_release = x
; then
6616 ac_checking_flags
=yes
6618 ac_checking_flags
=release
6622 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6623 for check
in release
$ac_checking_flags
6626 # these set all the flags to specific states
6627 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6628 ac_fold_checking
= ; ac_gc_checking
=1 ;
6629 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6630 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6631 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6632 ac_types_checking
=1 ;;
6633 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6634 ac_fold_checking
= ; ac_gc_checking
= ;
6635 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6636 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6637 ac_tree_checking
= ; ac_valgrind_checking
= ;
6638 ac_types_checking
= ;;
6639 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6640 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6641 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6642 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6643 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6644 ac_types_checking
=1 ;;
6645 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6646 ac_fold_checking
= ; ac_gc_checking
= ;
6647 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6648 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6649 ac_tree_checking
= ; ac_valgrind_checking
= ;
6650 ac_types_checking
= ;;
6651 # these enable particular checks
6652 assert
) ac_assert_checking
=1 ;;
6653 df
) ac_df_checking
=1 ;;
6654 fold) ac_fold_checking
=1 ;;
6655 gc
) ac_gc_checking
=1 ;;
6656 gcac
) ac_gc_always_collect
=1 ;;
6657 gimple
) ac_gimple_checking
=1 ;;
6658 misc
) ac_checking
=1 ;;
6659 rtl
) ac_rtl_checking
=1 ;;
6660 rtlflag
) ac_rtlflag_checking
=1 ;;
6661 runtime
) ac_runtime_checking
=1 ;;
6662 tree
) ac_tree_checking
=1 ;;
6663 types
) ac_types_checking
=1 ;;
6664 valgrind
) ac_valgrind_checking
=1 ;;
6665 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6671 if test x
$ac_checking != x
; then
6673 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6675 nocommon_flag
=-fno-common
6678 if test x
$ac_df_checking != x
; then
6680 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6683 if test x
$ac_assert_checking != x
; then
6685 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6688 if test x
$ac_gimple_checking != x
; then
6690 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6694 if test x
$ac_runtime_checking != x
; then
6696 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6699 if test x
$ac_tree_checking != x
; then
6701 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6703 TREEBROWSER
=tree-browser.o
6706 if test x
$ac_types_checking != x
; then
6708 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6713 if test x
$ac_rtl_checking != x
; then
6715 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6718 if test x
$ac_rtlflag_checking != x
; then
6720 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6723 if test x
$ac_gc_checking != x
; then
6725 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6728 if test x
$ac_gc_always_collect != x
; then
6730 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6733 if test x
$ac_fold_checking != x
; then
6735 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6738 valgrind_path_defines
=
6741 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6742 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6750 if test x
$ac_valgrind_checking != x
; then
6751 # It is certainly possible that there's valgrind but no valgrind.h.
6752 # GCC relies on making annotations so we must have both.
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6754 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757 #include <valgrind/memcheck.h>
6758 #ifndef VALGRIND_DISCARD
6759 #error VALGRIND_DISCARD not defined
6762 if ac_fn_c_try_cpp
"$LINENO"; then :
6763 gcc_cv_header_valgrind_memcheck_h
=yes
6765 gcc_cv_header_valgrind_memcheck_h
=no
6767 rm -f conftest.err conftest.
$ac_ext
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6769 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6771 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6774 #include <memcheck.h>
6775 #ifndef VALGRIND_DISCARD
6776 #error VALGRIND_DISCARD not defined
6779 if ac_fn_c_try_cpp
"$LINENO"; then :
6780 gcc_cv_header_memcheck_h
=yes
6782 gcc_cv_header_memcheck_h
=no
6784 rm -f conftest.err conftest.
$ac_ext
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6786 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6788 # Prepare PATH_SEPARATOR.
6789 # The user is always right.
6790 if test "${PATH_SEPARATOR+set}" != set; then
6791 echo "#! /bin/sh" >conf$$.sh
6792 echo "exit 0" >>conf$$.sh
6794 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6802 # Find out how to test for executable files. Don't use a zero-byte file,
6803 # as systems may use methods other than mode bits to determine executability.
6804 cat >conf$$.
file <<_ASEOF
6808 chmod +x conf$$.
file
6809 if test -x conf$$.
file >/dev
/null
2>&1; then
6810 ac_executable_p
="test -x"
6812 ac_executable_p
="test -f"
6816 # Extract the first word of "valgrind", so it can be a program name with args.
6817 set dummy valgrind
; ac_word
=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6821 $as_echo_n "(cached) " >&6
6823 case "$valgrind_path" in
6825 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6828 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6829 for ac_dir
in $PATH; do
6831 test -z "$ac_dir" && ac_dir
=.
6832 for ac_exec_ext
in '' $ac_executable_extensions; do
6833 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6834 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6835 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6845 valgrind_path
="$ac_cv_path_valgrind_path"
6846 if test -n "$valgrind_path"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6848 $as_echo "$valgrind_path" >&6; }
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 $as_echo "no" >&6; }
6854 if test "x$valgrind_path" = "x" \
6855 ||
(test $have_valgrind_h = no \
6856 && test $gcc_cv_header_memcheck_h = no \
6857 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6858 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6860 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6861 valgrind_command
="$valgrind_path -q"
6863 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6865 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6867 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6870 if test $gcc_cv_header_memcheck_h = yes; then
6872 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6879 # Enable code coverage collection
6880 # Check whether --enable-coverage was given.
6881 if test "${enable_coverage+set}" = set; then :
6882 enableval
=$enable_coverage; case "${enableval}" in
6884 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6887 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6890 # a.k.a. --disable-coverage
6894 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6903 # Check whether --enable-gather-detailed-mem-stats was given.
6904 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6905 enableval
=$enable_gather_detailed_mem_stats;
6907 enable_gather_detailed_mem_stats
=no
6910 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6912 cat >>confdefs.h
<<_ACEOF
6913 #define GATHER_STATISTICS $gather_stats
6917 # -------------------------------
6918 # Miscenalleous configure options
6919 # -------------------------------
6923 # Check whether --with-stabs was given.
6924 if test "${with_stabs+set}" = set; then :
6925 withval
=$with_stabs; stabs
="$with_stabs"
6931 # Determine whether or not multilibs are enabled.
6932 # Check whether --enable-multilib was given.
6933 if test "${enable_multilib+set}" = set; then :
6934 enableval
=$enable_multilib;
6941 # Determine whether or not multiarch is enabled.
6942 # Check whether --enable-multiarch was given.
6943 if test "${enable_multiarch+set}" = set; then :
6944 enableval
=$enable_multiarch; case "${enableval}" in
6945 yes|no|auto
) enable_multiarch
=$enableval;;
6946 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6949 enable_multiarch
=auto
6952 if test x
${enable_multiarch} = xauto
; then
6953 if test x
${with_native_system_header_dir} != x
; then
6954 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
6957 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
6958 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6963 $as_echo_n "checking for multiarch configuration... " >&6; }
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6966 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6968 # needed for setting the multiarch name for soft-float/hard-float ABIs
6972 # Enable __cxa_atexit for C++.
6973 # Check whether --enable-__cxa_atexit was given.
6974 if test "${enable___cxa_atexit+set}" = set; then :
6975 enableval
=$enable___cxa_atexit;
6979 # Enable C extension for decimal float if target supports it.
6981 # Check whether --enable-decimal-float was given.
6982 if test "${enable_decimal_float+set}" = set; then :
6983 enableval
=$enable_decimal_float;
6984 case $enable_decimal_float in
6985 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6986 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6987 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6993 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6995 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6996 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
6997 enable_decimal_float
=yes
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7001 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7002 enable_decimal_float
=no
7009 # x86's use BID format instead of DPD
7010 case x
$enable_decimal_float in
7013 i?
86*-*-* | x86_64
*-*-*)
7014 enable_decimal_float
=bid
7017 enable_decimal_float
=dpd
7020 default_decimal_float
=$enable_decimal_float
7023 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7024 # dependency on libdecnumber.
7025 default_decimal_float
=dpd
7032 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7034 cat >>confdefs.h
<<_ACEOF
7035 #define ENABLE_DECIMAL_FLOAT $dfp
7039 # Use default_decimal_float for dependency.
7040 enable_decimal_float
=$default_decimal_float
7042 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7044 cat >>confdefs.h
<<_ACEOF
7045 #define ENABLE_DECIMAL_BID_FORMAT $bid
7049 # Enable C extension for fixed-point arithmetic.
7050 # Check whether --enable-fixed-point was given.
7051 if test "${enable_fixed_point+set}" = set; then :
7052 enableval
=$enable_fixed_point;
7057 enable_fixed_point
=yes
7061 enable_fixed_point
=yes
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7065 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7066 enable_fixed_point
=no
7074 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7076 cat >>confdefs.h
<<_ACEOF
7077 #define ENABLE_FIXED_POINT $fixedpoint
7082 # Pass with no value to take the default
7083 # Pass with a value to specify a thread package
7084 # Check whether --enable-threads was given.
7085 if test "${enable_threads+set}" = set; then :
7086 enableval
=$enable_threads;
7092 # Check whether --enable-tls was given.
7093 if test "${enable_tls+set}" = set; then :
7094 enableval
=$enable_tls;
7097 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7098 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7106 # Check whether --enable-objc-gc was given.
7107 if test "${enable_objc_gc+set}" = set; then :
7108 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7119 # Check whether --with-dwarf2 was given.
7120 if test "${with_dwarf2+set}" = set; then :
7121 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7127 # Check whether --enable-shared was given.
7128 if test "${enable_shared+set}" = set; then :
7129 enableval
=$enable_shared;
7130 case $enable_shared in
7134 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7135 for pkg
in $enableval; do
7136 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7151 # Check whether --with-native-system-header-dir was given.
7152 if test "${with_native_system_header_dir+set}" = set; then :
7153 withval
=$with_native_system_header_dir;
7154 case ${with_native_system_header_dir} in
7155 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7156 /* |
[A-Za-z
]:[\\/]*) ;;
7157 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7159 configured_native_system_header_dir
="${withval}"
7162 configured_native_system_header_dir
=
7167 # Check whether --with-build-sysroot was given.
7168 if test "${with_build_sysroot+set}" = set; then :
7169 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7170 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7173 SYSROOT_CFLAGS_FOR_TARGET
=
7178 if test "x$prefix" = xNONE
; then
7179 test_prefix
=/usr
/local
7183 if test "x$exec_prefix" = xNONE
; then
7184 test_exec_prefix
=$test_prefix
7186 test_exec_prefix
=$exec_prefix
7190 # Check whether --with-sysroot was given.
7191 if test "${with_sysroot+set}" = set; then :
7192 withval
=$with_sysroot;
7193 case ${with_sysroot} in
7194 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7195 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7198 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7199 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7201 case ${TARGET_SYSTEM_ROOT} in
7202 "${test_prefix}"|
"${test_prefix}/"*|\
7203 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7204 '${prefix}'|
'${prefix}/'*|\
7205 '${exec_prefix}'|
'${exec_prefix}/'*)
7206 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7207 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7214 TARGET_SYSTEM_ROOT_DEFINE
=
7215 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7224 # Check whether --with-specs was given.
7225 if test "${with_specs+set}" = set; then :
7226 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7236 # Check whether --with-pkgversion was given.
7237 if test "${with_pkgversion+set}" = set; then :
7238 withval
=$with_pkgversion; case "$withval" in
7239 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7241 *) PKGVERSION
="($withval) " ;;
7244 PKGVERSION
="(Linaro GCC `cat $srcdir/LINARO-VERSION`) "
7252 # Check whether --with-bugurl was given.
7253 if test "${with_bugurl+set}" = set; then :
7254 withval
=$with_bugurl; case "$withval" in
7255 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7258 *) BUGURL
="$withval"
7262 BUGURL
="http://gcc.gnu.org/bugs.html"
7272 REPORT_BUGS_TO
="<$BUGURL>"
7273 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7280 # Sanity check enable_languages in case someone does not run the toplevel
7281 # configure # script.
7282 # Check whether --enable-languages was given.
7283 if test "${enable_languages+set}" = set; then :
7284 enableval
=$enable_languages; case ,${enable_languages}, in
7286 # go safe -- we cannot be much sure without the toplevel
7288 # analysis of which target libs are present and usable
7292 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7297 enable_languages
=c
,${enable_languages}
7306 # Check whether --with-multilib-list was given.
7307 if test "${with_multilib_list+set}" = set; then :
7308 withval
=$with_multilib_list; :
7310 with_multilib_list
=default
7314 # -------------------------
7315 # Checks for other programs
7316 # -------------------------
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7319 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7321 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7322 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7323 $as_echo_n "(cached) " >&6
7325 cat >conftest.
make <<\_ACEOF
7328 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7330 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7331 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7333 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7335 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7339 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341 $as_echo "yes" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 SET_MAKE
="MAKE=${MAKE-make}"
7350 # Find some useful tools
7351 for ac_prog
in gawk mawk nawk
awk
7353 # Extract the first word of "$ac_prog", so it can be a program name with args.
7354 set dummy
$ac_prog; ac_word
=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if test "${ac_cv_prog_AWK+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7360 if test -n "$AWK"; then
7361 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir
=.
7368 for ac_exec_ext
in '' $ac_executable_extensions; do
7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370 ac_cv_prog_AWK
="$ac_prog"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 if test -n "$AWK"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7383 $as_echo "$AWK" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7390 test -n "$AWK" && break
7393 # We need awk to create options.c and options.h.
7394 # Bail out if it's missing.
7396 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7400 $as_echo_n "checking whether ln -s works... " >&6; }
7401 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7404 rm -f conftestdata_t
7405 echo >conftestdata_f
7406 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7408 gcc_cv_prog_LN_S
="ln -s"
7410 if ln conftestdata_f conftestdata_t
2>/dev
/null
7414 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7416 gcc_cv_prog_LN_S
="cp -p"
7422 rm -f conftestdata_f conftestdata_t
7425 LN_S
="$gcc_cv_prog_LN_S"
7426 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7428 $as_echo "yes" >&6; }
7430 if test "$gcc_cv_prog_LN_S" = "ln"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7432 $as_echo "no, using ln" >&6; }
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7435 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7440 $as_echo_n "checking whether ln works... " >&6; }
7441 if test "${acx_cv_prog_LN+set}" = set; then :
7442 $as_echo_n "(cached) " >&6
7444 rm -f conftestdata_t
7445 echo >conftestdata_f
7446 if ln conftestdata_f conftestdata_t
2>/dev
/null
7452 rm -f conftestdata_f conftestdata_t
7455 if test $acx_cv_prog_LN = no
; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7458 $as_echo "no, using $LN" >&6; }
7460 LN
="$acx_cv_prog_LN"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7462 $as_echo "yes" >&6; }
7465 if test -n "$ac_tool_prefix"; then
7466 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7467 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7473 if test -n "$RANLIB"; then
7474 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7480 test -z "$as_dir" && as_dir
=.
7481 for ac_exec_ext
in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 RANLIB
=$ac_cv_prog_RANLIB
7494 if test -n "$RANLIB"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7496 $as_echo "$RANLIB" >&6; }
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7504 if test -z "$ac_cv_prog_RANLIB"; then
7505 ac_ct_RANLIB
=$RANLIB
7506 # Extract the first word of "ranlib", so it can be a program name with args.
7507 set dummy ranlib
; ac_word
=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7513 if test -n "$ac_ct_RANLIB"; then
7514 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir
=.
7521 for ac_exec_ext
in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7534 if test -n "$ac_ct_RANLIB"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7536 $as_echo "$ac_ct_RANLIB" >&6; }
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7542 if test "x$ac_ct_RANLIB" = x
; then
7545 case $cross_compiling:$ac_tool_warned in
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7549 ac_tool_warned
=yes ;;
7551 RANLIB
=$ac_ct_RANLIB
7554 RANLIB
="$ac_cv_prog_RANLIB"
7560 # Find a good install program. We prefer a C program (faster),
7561 # so one script is as good as another. But avoid the broken or
7562 # incompatible versions:
7563 # SysV /etc/install, /usr/sbin/install
7564 # SunOS /usr/etc/install
7565 # IRIX /sbin/install
7567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7569 # ./install, which can be erroneously created by make from ./install.sh.
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7571 $as_echo_n "checking for a BSD compatible install... " >&6; }
7572 if test -z "$INSTALL"; then
7573 if test "${ac_cv_path_install+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7576 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7577 for ac_dir
in $PATH; do
7578 # Account for people who put trailing slashes in PATH elements.
7580 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7582 # OSF1 and SCO ODT 3.0 have their own names for install.
7583 for ac_prog
in ginstall scoinst
install; do
7584 if test -f $ac_dir/$ac_prog; then
7585 if test $ac_prog = install &&
7586 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7587 # AIX install. It has an incompatible calling convention.
7588 # OSF/1 installbsd also uses dspmsg, but is usable.
7591 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7602 if test "${ac_cv_path_install+set}" = set; then
7603 INSTALL
="$ac_cv_path_install"
7605 # As a last resort, use the slow shell script. We don't cache a
7606 # path for INSTALL within a source directory, because that will
7607 # break other packages using the cache if that directory is
7608 # removed, or if the path is relative.
7609 INSTALL
="$ac_install_sh"
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7613 $as_echo "$INSTALL" >&6; }
7615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7616 # It thinks the first close brace ends the variable substitution.
7617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7619 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7622 # See if cmp has --ignore-initial.
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7624 $as_echo_n "checking for cmp's capabilities... " >&6; }
7625 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7630 gcc_cv_prog_cmp_skip
=slowcompare
7631 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7632 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7635 gcc_cv_prog_cmp_skip
=gnucompare
7638 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7639 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7640 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7643 gcc_cv_prog_cmp_skip
=fastcompare
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7651 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7652 make_compare_target
=$gcc_cv_prog_cmp_skip
7656 # See if we have the mktemp command.
7657 # Extract the first word of "mktemp", so it can be a program name with args.
7658 set dummy mktemp
; ac_word
=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
7664 if test -n "$have_mktemp_command"; then
7665 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir
=.
7672 for ac_exec_ext
in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_prog_have_mktemp_command
="yes"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7685 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7686 if test -n "$have_mktemp_command"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7688 $as_echo "$have_mktemp_command" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7696 # See if makeinfo has been installed and is modern enough
7697 # that we can use it.
7699 # Extract the first word of "makeinfo", so it can be a program name with args.
7700 set dummy makeinfo
; ac_word
=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7704 $as_echo_n "(cached) " >&6
7706 if test -n "$MAKEINFO"; then
7707 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7713 test -z "$as_dir" && as_dir
=.
7714 for ac_exec_ext
in '' $ac_executable_extensions; do
7715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7716 ac_cv_prog_MAKEINFO
="makeinfo"
7717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 MAKEINFO
=$ac_cv_prog_MAKEINFO
7727 if test -n "$MAKEINFO"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7729 $as_echo "$MAKEINFO" >&6; }
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7736 if test -n "$MAKEINFO"; then
7737 # Found it, now check the version.
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7739 $as_echo_n "checking for modern makeinfo... " >&6; }
7740 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7741 $as_echo_n "(cached) " >&6
7743 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7744 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7746 case $ac_prog_version in
7747 '') gcc_cv_prog_makeinfo_modern
=no
;;
7748 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7749 *) gcc_cv_prog_makeinfo_modern
=no
;;
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7754 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7756 gcc_cv_prog_makeinfo_modern
=no
7758 if test $gcc_cv_prog_makeinfo_modern = no
; then
7759 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7762 if test $gcc_cv_prog_makeinfo_modern = no
; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7764 *** Makeinfo is missing or too old.
7765 *** Info documentation will not be built." >&5
7766 $as_echo "$as_me: WARNING:
7767 *** Makeinfo is missing or too old.
7768 *** Info documentation will not be built." >&2;}
7775 # Is pod2man recent enough to regenerate manpages?
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7777 $as_echo_n "checking for recent Pod::Man... " >&6; }
7778 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7780 $as_echo "yes" >&6; }
7781 GENERATED_MANPAGES
=generated-manpages
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7789 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7794 # Extract the first word of "$ac_prog", so it can be a program name with args.
7795 set dummy
$ac_prog; ac_word
=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_FLEX+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7801 if test -n "$FLEX"; then
7802 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir
=.
7809 for ac_exec_ext
in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_prog_FLEX
="$ac_prog"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 FLEX
=$ac_cv_prog_FLEX
7822 if test -n "$FLEX"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7824 $as_echo "$FLEX" >&6; }
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7831 test -n "$FLEX" && break
7833 test -n "$FLEX" || FLEX
="$MISSING flex"
7837 for ac_prog
in bison
7839 # Extract the first word of "$ac_prog", so it can be a program name with args.
7840 set dummy
$ac_prog; ac_word
=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if test "${ac_cv_prog_BISON+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7846 if test -n "$BISON"; then
7847 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7853 test -z "$as_dir" && as_dir
=.
7854 for ac_exec_ext
in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_prog_BISON
="$ac_prog"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 BISON
=$ac_cv_prog_BISON
7867 if test -n "$BISON"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7869 $as_echo "$BISON" >&6; }
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7876 test -n "$BISON" && break
7878 test -n "$BISON" || BISON
="$MISSING bison"
7881 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7882 # check for build == host before using them.
7885 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7886 && test -d ..
/binutils
; then
7887 NM
='${objdir}/../binutils/nm-new'
7889 # Extract the first word of "nm", so it can be a program name with args.
7890 set dummy nm
; ac_word
=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if test "${ac_cv_prog_NM+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7896 if test -n "$NM"; then
7897 ac_cv_prog_NM
="$NM" # Let the user override the test.
7899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7903 test -z "$as_dir" && as_dir
=.
7904 for ac_exec_ext
in '' $ac_executable_extensions; do
7905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7918 if test -n "$NM"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7920 $as_echo "$NM" >&6; }
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 $as_echo "no" >&6; }
7930 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7931 && test -d ..
/binutils
; then
7932 AR
='${objdir}/../binutils/ar'
7934 # Extract the first word of "ar", so it can be a program name with args.
7935 set dummy
ar; ac_word
=$2
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 $as_echo_n "checking for $ac_word... " >&6; }
7938 if test "${ac_cv_prog_AR+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7941 if test -n "$AR"; then
7942 ac_cv_prog_AR
="$AR" # Let the user override the test.
7944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7948 test -z "$as_dir" && as_dir
=.
7949 for ac_exec_ext
in '' $ac_executable_extensions; do
7950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7963 if test -n "$AR"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7965 $as_echo "$AR" >&6; }
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7975 # --------------------
7976 # Checks for C headers
7977 # --------------------
7979 # Need to reject headers which give warnings, so that the -Werror bootstrap
7980 # works later. *sigh* This needs to come before all header checks.
7982 ac_c_preproc_warn_flag
=yes
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7985 $as_echo_n "checking for ANSI C header files... " >&6; }
7986 if test "${ac_cv_header_stdc+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
8004 if ac_fn_c_try_compile
"$LINENO"; then :
8005 ac_cv_header_stdc
=yes
8007 ac_cv_header_stdc
=no
8009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8011 if test $ac_cv_header_stdc = yes; then
8012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8019 $EGREP "memchr" >/dev
/null
2>&1; then :
8022 ac_cv_header_stdc
=no
8028 if test $ac_cv_header_stdc = yes; then
8029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8036 $EGREP "free" >/dev
/null
2>&1; then :
8039 ac_cv_header_stdc
=no
8045 if test $ac_cv_header_stdc = yes; then
8046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8047 if test "$cross_compiling" = yes; then :
8050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8054 #if ((' ' & 0x0FF) == 0x020)
8055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8058 # define ISLOWER(c) \
8059 (('a' <= (c) && (c) <= 'i') \
8060 || ('j' <= (c) && (c) <= 'r') \
8061 || ('s' <= (c) && (c) <= 'z'))
8062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8070 for (i = 0; i < 256; i++)
8071 if (XOR (islower (i), ISLOWER (i))
8072 || toupper (i) != TOUPPER (i))
8077 if ac_fn_c_try_run
"$LINENO"; then :
8080 ac_cv_header_stdc
=no
8082 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8083 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8089 $as_echo "$ac_cv_header_stdc" >&6; }
8090 if test $ac_cv_header_stdc = yes; then
8092 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8097 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8098 if test "${ac_cv_header_time+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103 #include <sys/types.h>
8104 #include <sys/time.h>
8110 if ((struct tm *) 0)
8116 if ac_fn_c_try_compile
"$LINENO"; then :
8117 ac_cv_header_time
=yes
8119 ac_cv_header_time
=no
8121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8124 $as_echo "$ac_cv_header_time" >&6; }
8125 if test $ac_cv_header_time = yes; then
8127 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8132 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8133 if test "${gcc_cv_header_string+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h. */
8139 #include <strings.h>
8148 if ac_fn_c_try_compile
"$LINENO"; then :
8149 gcc_cv_header_string
=yes
8151 gcc_cv_header_string
=no
8153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8156 $as_echo "$gcc_cv_header_string" >&6; }
8157 if test $gcc_cv_header_string = yes; then
8159 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8164 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8165 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 #include <sys/types.h>
8171 #include <sys/wait.h>
8173 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8176 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8184 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8189 if ac_fn_c_try_compile
"$LINENO"; then :
8190 ac_cv_header_sys_wait_h
=yes
8192 ac_cv_header_sys_wait_h
=no
8194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8197 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8198 if test $ac_cv_header_sys_wait_h = yes; then
8200 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8205 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8206 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211 #include <sys/types.h>
8212 #include <termios.h>
8218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8219 $EGREP "yes" >/dev
/null
2>&1; then :
8220 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8222 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8228 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8230 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8232 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8233 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8234 $as_echo_n "(cached) " >&6
8236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8238 #include <sys/types.h>
8239 #include <sys/ioctl.h>
8245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8246 $EGREP "yes" >/dev
/null
2>&1; then :
8247 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8249 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8255 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8257 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8259 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8264 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8265 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8266 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8267 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8269 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8270 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8271 eval as_val
=\$
$as_ac_Header
8272 if test "x$as_val" = x
""yes; then :
8273 cat >>confdefs.h
<<_ACEOF
8274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8281 # Check for thread headers.
8282 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8283 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8289 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8290 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8297 # These tests can't be done till we know if we have limits.h.
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8299 $as_echo_n "checking for CHAR_BIT... " >&6; }
8300 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8301 $as_echo_n "(cached) " >&6
8303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8305 #ifdef HAVE_LIMITS_H
8312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8313 $EGREP "found" >/dev
/null
2>&1; then :
8314 gcc_cv_decl_char_bit
=yes
8316 gcc_cv_decl_char_bit
=no
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8323 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8324 if test $gcc_cv_decl_char_bit = no
; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8326 $as_echo_n "checking number of bits in a byte... " >&6; }
8327 if test "${gcc_cv_c_nbby+set}" = set; then :
8328 $as_echo_n "(cached) " >&6
8332 while test $i -lt 65; do
8333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8340 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8341 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8347 if ac_fn_c_try_compile
"$LINENO"; then :
8348 gcc_cv_c_nbby
=$i; break
8350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8353 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8357 $as_echo "$gcc_cv_c_nbby" >&6; }
8358 if test $gcc_cv_c_nbby = failed
; then
8359 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8362 cat >>confdefs.h
<<_ACEOF
8363 #define CHAR_BIT $gcc_cv_c_nbby
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8369 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8370 if test "${ac_cv_c_bigendian+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
8373 ac_cv_c_bigendian
=unknown
8374 # See if we're dealing with a universal compiler.
8375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8377 #ifndef __APPLE_CC__
8378 not a universal capable compiler
8383 if ac_fn_c_try_compile
"$LINENO"; then :
8385 # Check for potential -arch flags. It is not universal unless
8386 # there are at least two -arch flags with different values.
8389 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8390 if test -n "$ac_prev"; then
8392 i?
86 | x86_64 | ppc | ppc64
)
8393 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8396 ac_cv_c_bigendian
=universal
8402 elif test "x$ac_word" = "x-arch"; then
8407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8408 if test $ac_cv_c_bigendian = unknown
; then
8409 # See if sys/param.h defines the BYTE_ORDER macro.
8410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 #include <sys/types.h>
8413 #include <sys/param.h>
8418 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8419 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8428 if ac_fn_c_try_compile
"$LINENO"; then :
8429 # It does; now see whether it defined to BIG_ENDIAN or not.
8430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <sys/types.h>
8433 #include <sys/param.h>
8438 #if BYTE_ORDER != BIG_ENDIAN
8446 if ac_fn_c_try_compile
"$LINENO"; then :
8447 ac_cv_c_bigendian
=yes
8449 ac_cv_c_bigendian
=no
8451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8455 if test $ac_cv_c_bigendian = unknown
; then
8456 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8464 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8472 if ac_fn_c_try_compile
"$LINENO"; then :
8473 # It does; now see whether it defined to _BIG_ENDIAN or not.
8474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8489 if ac_fn_c_try_compile
"$LINENO"; then :
8490 ac_cv_c_bigendian
=yes
8492 ac_cv_c_bigendian
=no
8494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8498 if test $ac_cv_c_bigendian = unknown
; then
8499 # Compile a test program.
8500 if test "$cross_compiling" = yes; then :
8501 # Try to guess by grepping values from an object file.
8502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 short int ascii_mm[] =
8505 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8506 short int ascii_ii[] =
8507 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8508 int use_ascii (int i) {
8509 return ascii_mm[i] + ascii_ii[i];
8511 short int ebcdic_ii[] =
8512 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8513 short int ebcdic_mm[] =
8514 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8515 int use_ebcdic (int i) {
8516 return ebcdic_mm[i] + ebcdic_ii[i];
8523 return use_ascii (foo) == use_ebcdic (foo);
8528 if ac_fn_c_try_compile
"$LINENO"; then :
8529 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8530 ac_cv_c_bigendian
=yes
8532 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8533 if test "$ac_cv_c_bigendian" = unknown
; then
8534 ac_cv_c_bigendian
=no
8536 # finding both strings is unlikely to happen, but who knows?
8537 ac_cv_c_bigendian
=unknown
8541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 $ac_includes_default
8550 /* Are we little or big endian? From Harbison&Steele. */
8554 char c[sizeof (long int)];
8557 return u.c[sizeof (long int) - 1] == 1;
8563 if ac_fn_c_try_run
"$LINENO"; then :
8564 ac_cv_c_bigendian
=no
8566 ac_cv_c_bigendian
=yes
8568 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8569 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8575 $as_echo "$ac_cv_c_bigendian" >&6; }
8576 case $ac_cv_c_bigendian in #(
8578 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8584 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8588 as_fn_error
"unknown endianness
8589 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8593 # ----------------------
8594 # Checks for C++ headers
8595 # ----------------------
8598 ac_cpp
='$CXXCPP $CPPFLAGS'
8599 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8600 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8601 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8603 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8604 if test -z "$CXXCPP"; then
8605 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8608 # Double quotes because CXXCPP needs to be expanded
8609 for CXXCPP
in "$CXX -E" "/lib/cpp"
8612 for ac_cxx_preproc_warn_flag
in '' yes
8614 # Use a header file that comes with gcc, so configuring glibc
8615 # with a fresh cross-compiler works.
8616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8617 # <limits.h> exists even on freestanding compilers.
8618 # On the NeXT, cc -E runs the code through the compiler's parser,
8619 # not just through cpp. "Syntax error" is here to catch this case.
8620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8623 # include <limits.h>
8625 # include <assert.h>
8629 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8632 # Broken: fails on valid input.
8635 rm -f conftest.err conftest.
$ac_ext
8637 # OK, works on sane cases. Now check whether nonexistent headers
8638 # can be detected and how.
8639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8641 #include <ac_nonexistent.h>
8643 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8644 # Broken: success on invalid input.
8647 # Passes both tests.
8651 rm -f conftest.err conftest.
$ac_ext
8654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8655 rm -f conftest.err conftest.
$ac_ext
8656 if $ac_preproc_ok; then :
8661 ac_cv_prog_CXXCPP
=$CXXCPP
8664 CXXCPP
=$ac_cv_prog_CXXCPP
8666 ac_cv_prog_CXXCPP
=$CXXCPP
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8669 $as_echo "$CXXCPP" >&6; }
8671 for ac_cxx_preproc_warn_flag
in '' yes
8673 # Use a header file that comes with gcc, so configuring glibc
8674 # with a fresh cross-compiler works.
8675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8676 # <limits.h> exists even on freestanding compilers.
8677 # On the NeXT, cc -E runs the code through the compiler's parser,
8678 # not just through cpp. "Syntax error" is here to catch this case.
8679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8682 # include <limits.h>
8684 # include <assert.h>
8688 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8691 # Broken: fails on valid input.
8694 rm -f conftest.err conftest.
$ac_ext
8696 # OK, works on sane cases. Now check whether nonexistent headers
8697 # can be detected and how.
8698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 #include <ac_nonexistent.h>
8702 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8703 # Broken: success on invalid input.
8706 # Passes both tests.
8710 rm -f conftest.err conftest.
$ac_ext
8713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8714 rm -f conftest.err conftest.
$ac_ext
8715 if $ac_preproc_ok; then :
8718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8721 See \`config.log' for more details." >&5
8722 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8723 See \`config.log' for more details." >&2;}; }
8727 ac_cpp
='$CPP $CPPFLAGS'
8728 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8729 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8730 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8734 ac_cpp
='$CXXCPP $CPPFLAGS'
8735 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8736 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8737 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8742 for ac_header
in unordered_map
8744 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8745 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8746 cat >>confdefs.h
<<_ACEOF
8747 #define HAVE_UNORDERED_MAP 1
8753 for ac_header
in tr1/unordered_map
8755 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8756 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8757 cat >>confdefs.h
<<_ACEOF
8758 #define HAVE_TR1_UNORDERED_MAP 1
8764 for ac_header
in ext
/hash_map
8766 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8767 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8768 cat >>confdefs.h
<<_ACEOF
8769 #define HAVE_EXT_HASH_MAP 1
8777 ac_cpp
='$CPP $CPPFLAGS'
8778 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8779 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8780 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8784 # Dependency checking.
8788 ac_cpp
='$CXXCPP $CPPFLAGS'
8789 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8790 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8791 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8793 rm -rf .tst
2>/dev
/null
8794 mkdir .tst
2>/dev
/null
8795 if test -d .tst
; then
8800 rmdir .tst
2>/dev
/null
8802 DEPDIR
="${am__leading_dot}deps"
8804 ac_config_commands
="$ac_config_commands depdir"
8807 ac_config_commands
="$ac_config_commands gccdepdir"
8810 depcc
="$CXX" am_compiler_list
=
8812 am_depcomp
=$ac_aux_dir/depcomp
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8814 $as_echo_n "checking dependency style of $depcc... " >&6; }
8815 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8818 if test -f "$am_depcomp"; then
8819 # We make a subdir and do the tests there. Otherwise we can end up
8820 # making bogus files that we don't know about and never remove. For
8821 # instance it was reported that on HP-UX the gcc test will end up
8822 # making a dummy file named `D' -- because `-MD' means `put the output
8825 # Copy depcomp to subdir because otherwise we won't find it if we're
8826 # using a relative directory.
8827 cp "$am_depcomp" conftest.dir
8829 # We will build objects and dependencies in a subdirectory because
8830 # it helps to detect inapplicable dependency modes. For instance
8831 # both Tru64's cc and ICC support -MD to output dependencies as a
8832 # side effect of compilation, but ICC will put the dependencies in
8833 # the current directory while Tru64 will put them in the object
8837 am_cv_CXX_dependencies_compiler_type
=none
8838 if test "$am_compiler_list" = ""; then
8839 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8841 for depmode
in $am_compiler_list; do
8842 if test $depmode = none
; then break; fi
8844 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8845 # Setup a source with many dependencies, because some compilers
8846 # like to wrap large dependency lists on column 80 (with \), and
8847 # we should not choose a depcomp mode which is confused by this.
8849 # We need to recreate these files for each test, as the compiler may
8850 # overwrite some of them when testing with obscure command lines.
8851 # This happens at least with the AIX C compiler.
8853 for i
in 1 2 3 4 5 6; do
8854 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
8855 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8856 # Solaris 8's {/usr,}/bin/sh.
8857 touch sub
/conftst
$i.h
8859 echo "include sub/conftest.Po" > confmf
8861 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8862 # mode. It turns out that the SunPro C++ compiler does not properly
8863 # handle `-M -o', and we need to detect this.
8864 depcmd
="depmode=$depmode \
8865 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8866 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8867 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8868 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
8869 if env
$depcmd > conftest.err
2>&1 &&
8870 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
8871 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
8872 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
8873 # icc doesn't choke on unknown options, it will just issue warnings
8874 # or remarks (even with -Werror). So we grep stderr for any message
8875 # that says an option was ignored or not supported.
8876 # When given -MP, icc 7.0 and 7.1 complain thusly:
8877 # icc: Command line warning: ignoring option '-M'; no argument required
8878 # The diagnosis changed in icc 8.0:
8879 # icc: Command line remark: option '-MP' not supported
8880 if (grep 'ignoring option' conftest.err ||
8881 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
8882 am_cv_CXX_dependencies_compiler_type
=$depmode
8883 $as_echo "$as_me:$LINENO: success" >&5
8887 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8888 sed -e 's/^/| /' < conftest.err
>&5
8894 am_cv_CXX_dependencies_compiler_type
=none
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8899 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8900 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
8901 then as_fn_error
"no usable dependency style found" "$LINENO" 5
8902 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
8907 ac_cpp
='$CPP $CPPFLAGS'
8908 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8909 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8910 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8918 # These libraries may be used by collect2.
8919 # We may need a special search path to get them linked.
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8921 $as_echo_n "checking for collect2 libraries... " >&6; }
8922 if test "${gcc_cv_collect2_libs+set}" = set; then :
8923 $as_echo_n "(cached) " >&6
8926 for libs
in '' -lld -lmld \
8927 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8928 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8949 if ac_fn_c_try_link
"$LINENO"; then :
8950 gcc_cv_collect2_libs
="$libs"; break
8952 rm -f core conftest.err conftest.
$ac_objext \
8953 conftest
$ac_exeext conftest.
$ac_ext
8956 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8959 $as_echo "$gcc_cv_collect2_libs" >&6; }
8960 case $gcc_cv_collect2_libs in
8962 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8966 # When building Ada code on Alpha, we need exc_resume which is usually in
8967 # -lexc. So test for it.
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8971 $as_echo_n "checking for library containing exc_resume... " >&6; }
8972 if test "${ac_cv_search_exc_resume+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
8975 ac_func_search_save_LIBS
=$LIBS
8976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8979 /* Override any GCC internal prototype to avoid an error.
8980 Use char because int might match the return type of a GCC
8981 builtin and then its argument prototype would still apply. */
8989 return exc_resume ();
8994 for ac_lib
in '' exc
; do
8995 if test -z "$ac_lib"; then
8996 ac_res
="none required"
8999 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9001 if ac_fn_c_try_link
"$LINENO"; then :
9002 ac_cv_search_exc_resume
=$ac_res
9004 rm -f core conftest.err conftest.
$ac_objext \
9006 if test "${ac_cv_search_exc_resume+set}" = set; then :
9010 if test "${ac_cv_search_exc_resume+set}" = set; then :
9013 ac_cv_search_exc_resume
=no
9016 LIBS
=$ac_func_search_save_LIBS
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9019 $as_echo "$ac_cv_search_exc_resume" >&6; }
9020 ac_res
=$ac_cv_search_exc_resume
9021 if test "$ac_res" != no
; then :
9022 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9030 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9034 $as_echo_n "checking for library containing kstat_open... " >&6; }
9035 if test "${ac_cv_search_kstat_open+set}" = set; then :
9036 $as_echo_n "(cached) " >&6
9038 ac_func_search_save_LIBS
=$LIBS
9039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9042 /* Override any GCC internal prototype to avoid an error.
9043 Use char because int might match the return type of a GCC
9044 builtin and then its argument prototype would still apply. */
9052 return kstat_open ();
9057 for ac_lib
in '' kstat
; do
9058 if test -z "$ac_lib"; then
9059 ac_res
="none required"
9062 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9064 if ac_fn_c_try_link
"$LINENO"; then :
9065 ac_cv_search_kstat_open
=$ac_res
9067 rm -f core conftest.err conftest.
$ac_objext \
9069 if test "${ac_cv_search_kstat_open+set}" = set; then :
9073 if test "${ac_cv_search_kstat_open+set}" = set; then :
9076 ac_cv_search_kstat_open
=no
9079 LIBS
=$ac_func_search_save_LIBS
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9082 $as_echo "$ac_cv_search_kstat_open" >&6; }
9083 ac_res
=$ac_cv_search_kstat_open
9084 if test "$ac_res" != no
; then :
9085 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9089 EXTRA_GCC_LIBS
="$LIBS"
9093 # Some systems put ldexp and frexp in libm instead of libc; assume
9094 # they're both in the same place. jcf-dump needs them.
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9098 $as_echo_n "checking for library containing ldexp... " >&6; }
9099 if test "${ac_cv_search_ldexp+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
9102 ac_func_search_save_LIBS
=$LIBS
9103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h. */
9106 /* Override any GCC internal prototype to avoid an error.
9107 Use char because int might match the return type of a GCC
9108 builtin and then its argument prototype would still apply. */
9121 for ac_lib
in '' m
; do
9122 if test -z "$ac_lib"; then
9123 ac_res
="none required"
9126 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9128 if ac_fn_c_try_link
"$LINENO"; then :
9129 ac_cv_search_ldexp
=$ac_res
9131 rm -f core conftest.err conftest.
$ac_objext \
9133 if test "${ac_cv_search_ldexp+set}" = set; then :
9137 if test "${ac_cv_search_ldexp+set}" = set; then :
9140 ac_cv_search_ldexp
=no
9143 LIBS
=$ac_func_search_save_LIBS
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9146 $as_echo "$ac_cv_search_ldexp" >&6; }
9147 ac_res
=$ac_cv_search_ldexp
9148 if test "$ac_res" != no
; then :
9149 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9157 # Use <inttypes.h> only if it exists,
9158 # doesn't clash with <sys/types.h>, and declares intmax_t.
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9160 $as_echo_n "checking for inttypes.h... " >&6; }
9161 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
9164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166 #include <sys/types.h>
9167 #include <inttypes.h>
9176 if ac_fn_c_try_compile
"$LINENO"; then :
9177 gcc_cv_header_inttypes_h
=yes
9179 gcc_cv_header_inttypes_h
=no
9181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9185 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9186 if test $gcc_cv_header_inttypes_h = yes; then
9188 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9194 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9195 sysconf strsignal getrusage nl_langinfo \
9196 gettimeofday mbstowcs wcswidth mmap setlocale \
9197 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
9199 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9200 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9201 eval as_val
=\$
$as_ac_var
9202 if test "x$as_val" = x
""yes; then :
9203 cat >>confdefs.h
<<_ACEOF
9204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9211 if test x
$ac_cv_func_mbstowcs = xyes
; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9213 $as_echo_n "checking whether mbstowcs works... " >&6; }
9214 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9217 if test "$cross_compiling" = yes; then :
9218 gcc_cv_func_mbstowcs_works
=yes
9220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9229 if ac_fn_c_try_run
"$LINENO"; then :
9230 gcc_cv_func_mbstowcs_works
=yes
9232 gcc_cv_func_mbstowcs_works
=no
9234 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9235 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9240 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9241 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9243 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9248 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9249 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9253 cat >>confdefs.h
<<_ACEOF
9259 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9260 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9264 cat >>confdefs.h
<<_ACEOF
9265 #define caddr_t char *
9272 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9273 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9274 gcc_header_sys_mman_h
=yes
9276 gcc_header_sys_mman_h
=no
9279 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9280 if test "x$ac_cv_func_mmap" = x
""yes; then :
9286 if test "$gcc_header_sys_mman_h" != yes \
9287 ||
test "$gcc_func_mmap" != yes; then
9288 gcc_cv_func_mmap_file
=no
9289 gcc_cv_func_mmap_dev_zero
=no
9290 gcc_cv_func_mmap_anon
=no
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9293 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9294 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9297 # Add a system to this blacklist if
9298 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9299 # memory area containing the same data that you'd get if you applied
9300 # read() to the same fd. The only system known to have a problem here
9301 # is VMS, where text files have record structure.
9304 gcc_cv_func_mmap_file
=no
;;
9306 gcc_cv_func_mmap_file
=yes;;
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9310 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9312 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9313 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9314 $as_echo_n "(cached) " >&6
9316 # Add a system to this blacklist if it has mmap() but /dev/zero
9317 # does not exist, or if mmapping /dev/zero does not give anonymous
9318 # zeroed pages with both the following properties:
9319 # 1. If you map N consecutive pages in with one call, and then
9320 # unmap any subset of those pages, the pages that were not
9321 # explicitly unmapped remain accessible.
9322 # 2. If you map two adjacent blocks of memory and then unmap them
9323 # both at once, they must both go away.
9324 # Systems known to be in this category are Windows (all variants),
9327 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9328 gcc_cv_func_mmap_dev_zero
=no
;;
9330 gcc_cv_func_mmap_dev_zero
=yes;;
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9334 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9336 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9338 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9339 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9340 $as_echo_n "(cached) " >&6
9342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 #include <sys/types.h>
9345 #include <sys/mman.h>
9348 #ifndef MAP_ANONYMOUS
9349 #define MAP_ANONYMOUS MAP_ANON
9355 int n = MAP_ANONYMOUS;
9360 if ac_fn_c_try_compile
"$LINENO"; then :
9361 gcc_cv_decl_map_anon
=yes
9363 gcc_cv_decl_map_anon
=no
9365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9368 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9370 if test $gcc_cv_decl_map_anon = no
; then
9371 gcc_cv_func_mmap_anon
=no
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9374 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9375 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9378 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9379 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9380 # doesn't give anonymous zeroed pages with the same properties listed
9381 # above for use of /dev/zero.
9382 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9384 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9385 gcc_cv_func_mmap_anon
=no
;;
9387 gcc_cv_func_mmap_anon
=yes;;
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9391 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9395 if test $gcc_cv_func_mmap_file = yes; then
9397 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9400 if test $gcc_cv_func_mmap_dev_zero = yes; then
9402 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9405 if test $gcc_cv_func_mmap_anon = yes; then
9407 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9414 # Under VMS, vfork works very differently than on Unix. The standard test
9415 # won't work, and it isn't easily adaptable. It makes more sense to
9417 ac_cv_func_vfork_works
=yes
9420 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9421 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9425 cat >>confdefs.h
<<_ACEOF
9431 for ac_header
in vfork.h
9433 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9434 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9435 cat >>confdefs.h
<<_ACEOF
9436 #define HAVE_VFORK_H 1
9442 for ac_func
in fork vfork
9444 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9445 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9446 eval as_val
=\$
$as_ac_var
9447 if test "x$as_val" = x
""yes; then :
9448 cat >>confdefs.h
<<_ACEOF
9449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9455 if test "x$ac_cv_func_fork" = xyes
; then
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9457 $as_echo_n "checking for working fork... " >&6; }
9458 if test "${ac_cv_func_fork_works+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9461 if test "$cross_compiling" = yes; then :
9462 ac_cv_func_fork_works
=cross
9464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466 $ac_includes_default
9471 /* By Ruediger Kuhlmann. */
9478 if ac_fn_c_try_run
"$LINENO"; then :
9479 ac_cv_func_fork_works
=yes
9481 ac_cv_func_fork_works
=no
9483 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9484 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9489 $as_echo "$ac_cv_func_fork_works" >&6; }
9492 ac_cv_func_fork_works
=$ac_cv_func_fork
9494 if test "x$ac_cv_func_fork_works" = xcross
; then
9496 *-*-amigaos* |
*-*-msdosdjgpp*)
9497 # Override, as these systems have only a dummy fork() stub
9498 ac_cv_func_fork_works
=no
9501 ac_cv_func_fork_works
=yes
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9505 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9507 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9508 if test "x$ac_cv_func_vfork" = xyes
; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9510 $as_echo_n "checking for working vfork... " >&6; }
9511 if test "${ac_cv_func_vfork_works+set}" = set; then :
9512 $as_echo_n "(cached) " >&6
9514 if test "$cross_compiling" = yes; then :
9515 ac_cv_func_vfork_works
=cross
9517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519 /* Thanks to Paul Eggert for this test. */
9520 $ac_includes_default
9521 #include <sys/wait.h>
9525 /* On some sparc systems, changes by the child to local and incoming
9526 argument registers are propagated back to the parent. The compiler
9527 is told about this with #include <vfork.h>, but some compilers
9528 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9529 static variable whose address is put into a register that is
9530 clobbered by the vfork. */
9533 sparc_address_test (int arg)
9535 sparc_address_test (arg) int arg;
9556 pid_t parent = getpid ();
9559 sparc_address_test (0);
9564 /* Here is another test for sparc vfork register problems. This
9565 test uses lots of local variables, at least as many local
9566 variables as main has allocated so far including compiler
9567 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9568 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9569 reuse the register of parent for one of the local variables,
9570 since it will think that parent can't possibly be used any more
9571 in this routine. Assigning to the local variable will thus
9572 munge parent in the parent process. */
9574 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9575 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9576 /* Convince the compiler that p..p7 are live; otherwise, it might
9577 use the same hardware register for all 8 local variables. */
9578 if (p != p1 || p != p2 || p != p3 || p != p4
9579 || p != p5 || p != p6 || p != p7)
9582 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9583 from child file descriptors. If the child closes a descriptor
9584 before it execs or exits, this munges the parent's descriptor
9585 as well. Test for this by closing stdout in the child. */
9586 _exit(close(fileno(stdout)) != 0);
9591 while (wait(&status) != child)
9594 /* Was there some problem with vforking? */
9597 /* Did the child fail? (This shouldn't happen.) */
9600 /* Did the vfork/compiler bug occur? */
9601 || parent != getpid()
9603 /* Did the file descriptor bug occur? */
9604 || fstat(fileno(stdout), &st) != 0
9609 if ac_fn_c_try_run
"$LINENO"; then :
9610 ac_cv_func_vfork_works
=yes
9612 ac_cv_func_vfork_works
=no
9614 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9615 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9620 $as_echo "$ac_cv_func_vfork_works" >&6; }
9623 if test "x$ac_cv_func_fork_works" = xcross
; then
9624 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9626 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9629 if test "x$ac_cv_func_vfork_works" = xyes
; then
9631 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9635 $as_echo "#define vfork fork" >>confdefs.h
9638 if test "x$ac_cv_func_fork_works" = xyes
; then
9640 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9645 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9646 # iconv() prototype.
9648 ac_cpp
='$CXXCPP $CPPFLAGS'
9649 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9650 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9651 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9654 if test "X$prefix" = "XNONE"; then
9655 acl_final_prefix
="$ac_default_prefix"
9657 acl_final_prefix
="$prefix"
9659 if test "X$exec_prefix" = "XNONE"; then
9660 acl_final_exec_prefix
='${prefix}'
9662 acl_final_exec_prefix
="$exec_prefix"
9664 acl_save_prefix
="$prefix"
9665 prefix
="$acl_final_prefix"
9666 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9667 prefix
="$acl_save_prefix"
9670 # Check whether --with-gnu-ld was given.
9671 if test "${with_gnu_ld+set}" = set; then :
9672 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9677 # Prepare PATH_SEPARATOR.
9678 # The user is always right.
9679 if test "${PATH_SEPARATOR+set}" != set; then
9680 echo "#! /bin/sh" >conf$$.sh
9681 echo "exit 0" >>conf$$.sh
9683 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9691 if test "$GCC" = yes; then
9692 # Check if gcc -print-prog-name=ld gives a path.
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9694 $as_echo_n "checking for ld used by GCC... " >&6; }
9697 # gcc leaves a trailing carriage return which upsets mingw
9698 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9700 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9703 # Accept absolute paths.
9704 [\\/]* |
[A-Za-z
]:[\\/]*)
9705 re_direlt
='/[^/][^/]*/\.\./'
9706 # Canonicalize the path of ld
9707 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9708 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9709 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9711 test -z "$LD" && LD
="$ac_prog"
9714 # If it fails, then pretend we aren't using GCC.
9718 # If it is relative, then search for the first ld in PATH.
9722 elif test "$with_gnu_ld" = yes; then
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9724 $as_echo_n "checking for GNU ld... " >&6; }
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9727 $as_echo_n "checking for non-GNU ld... " >&6; }
9729 if test "${acl_cv_path_LD+set}" = set; then :
9730 $as_echo_n "(cached) " >&6
9732 if test -z "$LD"; then
9733 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9734 for ac_dir
in $PATH; do
9735 test -z "$ac_dir" && ac_dir
=.
9736 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9737 acl_cv_path_LD
="$ac_dir/$ac_prog"
9738 # Check to see if the program is GNU ld. I'd rather use --version,
9739 # but apparently some GNU ld's only accept -v.
9740 # Break only if it was the GNU/non-GNU ld that we prefer.
9741 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9742 test "$with_gnu_ld" != no
&& break
9744 test "$with_gnu_ld" != yes && break
9750 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9754 LD
="$acl_cv_path_LD"
9755 if test -n "$LD"; then
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9757 $as_echo "$LD" >&6; }
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; }
9762 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9764 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9765 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9768 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9769 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9770 acl_cv_prog_gnu_ld
=yes
9772 acl_cv_prog_gnu_ld
=no
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9776 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9777 with_gnu_ld
=$acl_cv_prog_gnu_ld
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9782 $as_echo_n "checking for shared library run path origin... " >&6; }
9783 if test "${acl_cv_rpath+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9787 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9788 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9795 $as_echo "$acl_cv_rpath" >&6; }
9797 libext
="$acl_cv_libext"
9798 shlibext
="$acl_cv_shlibext"
9799 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9800 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9801 hardcode_direct
="$acl_cv_hardcode_direct"
9802 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9803 # Check whether --enable-rpath was given.
9804 if test "${enable_rpath+set}" = set; then :
9805 enableval
=$enable_rpath; :
9819 acl_save_prefix
="$prefix"
9820 prefix
="$acl_final_prefix"
9821 acl_save_exec_prefix
="$exec_prefix"
9822 exec_prefix
="$acl_final_exec_prefix"
9824 eval additional_includedir
=\"$includedir\"
9825 eval additional_libdir
=\"$libdir\"
9827 exec_prefix
="$acl_save_exec_prefix"
9828 prefix
="$acl_save_prefix"
9831 # Check whether --with-libiconv-prefix was given.
9832 if test "${with_libiconv_prefix+set}" = set; then :
9833 withval
=$with_libiconv_prefix;
9834 if test "X$withval" = "Xno"; then
9837 if test "X$withval" = "X"; then
9839 acl_save_prefix
="$prefix"
9840 prefix
="$acl_final_prefix"
9841 acl_save_exec_prefix
="$exec_prefix"
9842 exec_prefix
="$acl_final_exec_prefix"
9844 eval additional_includedir
=\"$includedir\"
9845 eval additional_libdir
=\"$libdir\"
9847 exec_prefix
="$acl_save_exec_prefix"
9848 prefix
="$acl_save_prefix"
9851 additional_includedir
="$withval/include"
9852 additional_libdir
="$withval/lib"
9863 names_already_handled
=
9864 names_next_round
='iconv '
9865 while test -n "$names_next_round"; do
9866 names_this_round
="$names_next_round"
9868 for name
in $names_this_round; do
9870 for n
in $names_already_handled; do
9871 if test "$n" = "$name"; then
9876 if test -z "$already_handled"; then
9877 names_already_handled
="$names_already_handled $name"
9878 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9879 eval value
=\"\
$HAVE_LIB$uppername\"
9880 if test -n "$value"; then
9881 if test "$value" = yes; then
9882 eval value
=\"\
$LIB$uppername\"
9883 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9884 eval value
=\"\
$LTLIB$uppername\"
9885 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9894 if test $use_additional = yes; then
9895 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9896 found_dir
="$additional_libdir"
9897 found_so
="$additional_libdir/lib$name.$shlibext"
9898 if test -f "$additional_libdir/lib$name.la"; then
9899 found_la
="$additional_libdir/lib$name.la"
9902 if test -f "$additional_libdir/lib$name.$libext"; then
9903 found_dir
="$additional_libdir"
9904 found_a
="$additional_libdir/lib$name.$libext"
9905 if test -f "$additional_libdir/lib$name.la"; then
9906 found_la
="$additional_libdir/lib$name.la"
9911 if test "X$found_dir" = "X"; then
9912 for x
in $LDFLAGS $LTLIBICONV; do
9914 acl_save_prefix
="$prefix"
9915 prefix
="$acl_final_prefix"
9916 acl_save_exec_prefix
="$exec_prefix"
9917 exec_prefix
="$acl_final_exec_prefix"
9919 exec_prefix
="$acl_save_exec_prefix"
9920 prefix
="$acl_save_prefix"
9924 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9925 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9927 found_so
="$dir/lib$name.$shlibext"
9928 if test -f "$dir/lib$name.la"; then
9929 found_la
="$dir/lib$name.la"
9932 if test -f "$dir/lib$name.$libext"; then
9934 found_a
="$dir/lib$name.$libext"
9935 if test -f "$dir/lib$name.la"; then
9936 found_la
="$dir/lib$name.la"
9942 if test "X$found_dir" != "X"; then
9947 if test "X$found_dir" != "X"; then
9948 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9949 if test "X$found_so" != "X"; then
9950 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9951 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9954 for x
in $ltrpathdirs; do
9955 if test "X$x" = "X$found_dir"; then
9960 if test -z "$haveit"; then
9961 ltrpathdirs
="$ltrpathdirs $found_dir"
9963 if test "$hardcode_direct" = yes; then
9964 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9966 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9967 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9969 for x
in $rpathdirs; do
9970 if test "X$x" = "X$found_dir"; then
9975 if test -z "$haveit"; then
9976 rpathdirs
="$rpathdirs $found_dir"
9980 for x
in $LDFLAGS $LIBICONV; do
9982 acl_save_prefix
="$prefix"
9983 prefix
="$acl_final_prefix"
9984 acl_save_exec_prefix
="$exec_prefix"
9985 exec_prefix
="$acl_final_exec_prefix"
9987 exec_prefix
="$acl_save_exec_prefix"
9988 prefix
="$acl_save_prefix"
9990 if test "X$x" = "X-L$found_dir"; then
9995 if test -z "$haveit"; then
9996 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9998 if test "$hardcode_minus_L" != no
; then
9999 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10001 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10007 if test "X$found_a" != "X"; then
10008 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10010 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10013 additional_includedir
=
10014 case "$found_dir" in
10016 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10017 additional_includedir
="$basedir/include"
10020 if test "X$additional_includedir" != "X"; then
10021 if test "X$additional_includedir" != "X/usr/include"; then
10023 if test "X$additional_includedir" = "X/usr/local/include"; then
10024 if test -n "$GCC"; then
10026 linux
*) haveit
=yes;;
10030 if test -z "$haveit"; then
10031 for x
in $CPPFLAGS $INCICONV; do
10033 acl_save_prefix
="$prefix"
10034 prefix
="$acl_final_prefix"
10035 acl_save_exec_prefix
="$exec_prefix"
10036 exec_prefix
="$acl_final_exec_prefix"
10038 exec_prefix
="$acl_save_exec_prefix"
10039 prefix
="$acl_save_prefix"
10041 if test "X$x" = "X-I$additional_includedir"; then
10046 if test -z "$haveit"; then
10047 if test -d "$additional_includedir"; then
10048 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10054 if test -n "$found_la"; then
10055 save_libdir
="$libdir"
10056 case "$found_la" in
10057 */* |
*\\*) .
"$found_la" ;;
10058 *) .
"./$found_la" ;;
10060 libdir
="$save_libdir"
10061 for dep
in $dependency_libs; do
10064 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10065 if test "X$additional_libdir" != "X/usr/lib"; then
10067 if test "X$additional_libdir" = "X/usr/local/lib"; then
10068 if test -n "$GCC"; then
10070 linux
*) haveit
=yes;;
10074 if test -z "$haveit"; then
10076 for x
in $LDFLAGS $LIBICONV; do
10078 acl_save_prefix
="$prefix"
10079 prefix
="$acl_final_prefix"
10080 acl_save_exec_prefix
="$exec_prefix"
10081 exec_prefix
="$acl_final_exec_prefix"
10083 exec_prefix
="$acl_save_exec_prefix"
10084 prefix
="$acl_save_prefix"
10086 if test "X$x" = "X-L$additional_libdir"; then
10091 if test -z "$haveit"; then
10092 if test -d "$additional_libdir"; then
10093 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10097 for x
in $LDFLAGS $LTLIBICONV; do
10099 acl_save_prefix
="$prefix"
10100 prefix
="$acl_final_prefix"
10101 acl_save_exec_prefix
="$exec_prefix"
10102 exec_prefix
="$acl_final_exec_prefix"
10104 exec_prefix
="$acl_save_exec_prefix"
10105 prefix
="$acl_save_prefix"
10107 if test "X$x" = "X-L$additional_libdir"; then
10112 if test -z "$haveit"; then
10113 if test -d "$additional_libdir"; then
10114 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10121 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10122 if test "$enable_rpath" != no
; then
10124 for x
in $rpathdirs; do
10125 if test "X$x" = "X$dir"; then
10130 if test -z "$haveit"; then
10131 rpathdirs
="$rpathdirs $dir"
10134 for x
in $ltrpathdirs; do
10135 if test "X$x" = "X$dir"; then
10140 if test -z "$haveit"; then
10141 ltrpathdirs
="$ltrpathdirs $dir"
10146 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10149 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10152 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10153 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10159 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10160 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10166 if test "X$rpathdirs" != "X"; then
10167 if test -n "$hardcode_libdir_separator"; then
10169 for found_dir
in $rpathdirs; do
10170 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10172 acl_save_libdir
="$libdir"
10174 eval flag
=\"$hardcode_libdir_flag_spec\"
10175 libdir
="$acl_save_libdir"
10176 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10178 for found_dir
in $rpathdirs; do
10179 acl_save_libdir
="$libdir"
10180 libdir
="$found_dir"
10181 eval flag
=\"$hardcode_libdir_flag_spec\"
10182 libdir
="$acl_save_libdir"
10183 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10187 if test "X$ltrpathdirs" != "X"; then
10188 for found_dir
in $ltrpathdirs; do
10189 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10199 am_save_CPPFLAGS
="$CPPFLAGS"
10201 for element
in $INCICONV; do
10203 for x
in $CPPFLAGS; do
10205 acl_save_prefix
="$prefix"
10206 prefix
="$acl_final_prefix"
10207 acl_save_exec_prefix
="$exec_prefix"
10208 exec_prefix
="$acl_final_exec_prefix"
10210 exec_prefix
="$acl_save_exec_prefix"
10211 prefix
="$acl_save_prefix"
10213 if test "X$x" = "X$element"; then
10218 if test -z "$haveit"; then
10219 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10225 $as_echo_n "checking for iconv... " >&6; }
10226 if test "${am_cv_func_iconv+set}" = set; then :
10227 $as_echo_n "(cached) " >&6
10230 am_cv_func_iconv
="no, consider installing GNU libiconv"
10232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10234 #include <stdlib.h>
10239 iconv_t cd = iconv_open("","");
10240 iconv(cd,NULL,NULL,NULL,NULL);
10246 if ac_fn_cxx_try_link
"$LINENO"; then :
10247 am_cv_func_iconv
=yes
10249 rm -f core conftest.err conftest.
$ac_objext \
10250 conftest
$ac_exeext conftest.
$ac_ext
10251 if test "$am_cv_func_iconv" != yes; then
10252 am_save_LIBS
="$LIBS"
10253 LIBS
="$LIBS $LIBICONV"
10254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10256 #include <stdlib.h>
10261 iconv_t cd = iconv_open("","");
10262 iconv(cd,NULL,NULL,NULL,NULL);
10268 if ac_fn_cxx_try_link
"$LINENO"; then :
10269 am_cv_lib_iconv
=yes
10270 am_cv_func_iconv
=yes
10272 rm -f core conftest.err conftest.
$ac_objext \
10273 conftest
$ac_exeext conftest.
$ac_ext
10274 LIBS
="$am_save_LIBS"
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10279 $as_echo "$am_cv_func_iconv" >&6; }
10280 if test "$am_cv_func_iconv" = yes; then
10282 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10285 if test "$am_cv_lib_iconv" = yes; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10287 $as_echo_n "checking how to link with libiconv... " >&6; }
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10289 $as_echo "$LIBICONV" >&6; }
10291 CPPFLAGS
="$am_save_CPPFLAGS"
10298 if test "$am_cv_func_iconv" = yes; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10300 $as_echo_n "checking for iconv declaration... " >&6; }
10301 if test "${am_cv_proto_iconv+set}" = set; then :
10302 $as_echo_n "(cached) " >&6
10305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10308 #include <stdlib.h>
10314 #if defined(__STDC__) || defined(__cplusplus)
10315 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10328 if ac_fn_cxx_try_compile
"$LINENO"; then :
10329 am_cv_proto_iconv_arg1
=""
10331 am_cv_proto_iconv_arg1
="const"
10333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10334 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);"
10337 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10339 }$am_cv_proto_iconv" >&5
10341 }$am_cv_proto_iconv" >&6; }
10343 cat >>confdefs.h
<<_ACEOF
10344 #define ICONV_CONST $am_cv_proto_iconv_arg1
10350 ac_cpp
='$CPP $CPPFLAGS'
10351 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10352 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10353 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10356 # Until we have in-tree GNU iconv:
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10362 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10363 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10364 $as_echo_n "(cached) " >&6
10366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10368 #include <locale.h>
10377 if ac_fn_c_try_link
"$LINENO"; then :
10378 am_cv_val_LC_MESSAGES
=yes
10380 am_cv_val_LC_MESSAGES
=no
10382 rm -f core conftest.err conftest.
$ac_objext \
10383 conftest
$ac_exeext conftest.
$ac_ext
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10386 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10387 if test $am_cv_val_LC_MESSAGES = yes; then
10389 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10396 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10397 if test "${am_cv_langinfo_codeset+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402 #include <langinfo.h>
10406 char* cs = nl_langinfo(CODESET);
10411 if ac_fn_c_try_link
"$LINENO"; then :
10412 am_cv_langinfo_codeset
=yes
10414 am_cv_langinfo_codeset
=no
10416 rm -f core conftest.err conftest.
$ac_objext \
10417 conftest
$ac_exeext conftest.
$ac_ext
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10421 $as_echo "$am_cv_langinfo_codeset" >&6; }
10422 if test $am_cv_langinfo_codeset = yes; then
10424 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10429 # We will need to find libiberty.h and ansidecl.h
10430 saved_CFLAGS
="$CFLAGS"
10431 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10432 saved_CXXFLAGS
="$CXXFLAGS"
10433 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10434 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10435 strsignal strstr stpcpy strverscmp \
10436 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10437 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
10439 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10441 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10442 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10443 $as_echo_n "(cached) " >&6
10445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10448 #define $ac_tr_decl 1
10450 #include "ansidecl.h"
10451 #include "system.h"
10457 char *(*pfn) = (char *(*)) $ac_func ;
10463 if ac_fn_c_try_compile
"$LINENO"; then :
10464 eval "gcc_cv_have_decl_$ac_func=yes"
10466 eval "gcc_cv_have_decl_$ac_func=no"
10468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10471 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10473 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10474 #define $ac_tr_decl 1
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10480 #define $ac_tr_decl 0
10488 for ac_func
in getrlimit setrlimit getrusage
10490 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10492 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10493 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10494 $as_echo_n "(cached) " >&6
10496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10499 #define $ac_tr_decl 1
10501 #include "ansidecl.h"
10502 #include "system.h"
10503 #ifdef HAVE_SYS_RESOURCE_H
10504 #include <sys/resource.h>
10512 char *(*pfn) = (char *(*)) $ac_func ;
10518 if ac_fn_c_try_compile
"$LINENO"; then :
10519 eval "gcc_cv_have_decl_$ac_func=yes"
10521 eval "gcc_cv_have_decl_$ac_func=no"
10523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10526 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10528 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10529 #define $ac_tr_decl 1
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10535 #define $ac_tr_decl 0
10543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10546 #include "ansidecl.h"
10547 #include "system.h"
10548 #ifdef HAVE_SYS_RESOURCE_H
10549 #include <sys/resource.h>
10560 if ac_fn_c_try_compile
"$LINENO"; then :
10564 $as_echo "#define rlim_t long" >>confdefs.h
10567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10569 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10570 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10571 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10572 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10573 for ac_func
in ldgetname
10575 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10577 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10578 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10579 $as_echo_n "(cached) " >&6
10581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h. */
10584 #define $ac_tr_decl 1
10586 #include "ansidecl.h"
10587 #include "system.h"
10588 #ifdef HAVE_LDFCN_H
10599 char *(*pfn) = (char *(*)) $ac_func ;
10605 if ac_fn_c_try_compile
"$LINENO"; then :
10606 eval "gcc_cv_have_decl_$ac_func=yes"
10608 eval "gcc_cv_have_decl_$ac_func=no"
10610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10613 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10615 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10616 #define $ac_tr_decl 1
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10622 #define $ac_tr_decl 0
10630 for ac_func
in times
10632 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10634 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10635 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10636 $as_echo_n "(cached) " >&6
10638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10641 #define $ac_tr_decl 1
10643 #include "ansidecl.h"
10644 #include "system.h"
10645 #ifdef HAVE_SYS_TIMES_H
10646 #include <sys/times.h>
10654 char *(*pfn) = (char *(*)) $ac_func ;
10660 if ac_fn_c_try_compile
"$LINENO"; then :
10661 eval "gcc_cv_have_decl_$ac_func=yes"
10663 eval "gcc_cv_have_decl_$ac_func=no"
10665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10668 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10670 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10671 #define $ac_tr_decl 1
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10677 #define $ac_tr_decl 0
10685 for ac_func
in sigaltstack
10687 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10689 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10690 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10691 $as_echo_n "(cached) " >&6
10693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10696 #define $ac_tr_decl 1
10698 #include "ansidecl.h"
10699 #include "system.h"
10700 #include <signal.h>
10707 char *(*pfn) = (char *(*)) $ac_func ;
10713 if ac_fn_c_try_compile
"$LINENO"; then :
10714 eval "gcc_cv_have_decl_$ac_func=yes"
10716 eval "gcc_cv_have_decl_$ac_func=no"
10718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10721 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10723 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10724 #define $ac_tr_decl 1
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10730 #define $ac_tr_decl 0
10738 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10741 ac_cpp
='$CXXCPP $CPPFLAGS'
10742 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10743 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10744 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10746 for ac_func
in madvise
10748 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10750 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10751 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10752 $as_echo_n "(cached) " >&6
10754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10757 #define $ac_tr_decl 1
10759 #include "ansidecl.h"
10760 #include "system.h"
10767 char *(*pfn) = (char *(*)) $ac_func ;
10773 if ac_fn_cxx_try_compile
"$LINENO"; then :
10774 eval "gcc_cv_have_decl_$ac_func=yes"
10776 eval "gcc_cv_have_decl_$ac_func=no"
10778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10781 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10783 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10784 #define $ac_tr_decl 1
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10790 #define $ac_tr_decl 0
10798 ac_cpp
='$CPP $CPPFLAGS'
10799 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10800 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10801 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10804 # More time-related stuff.
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10806 $as_echo_n "checking for struct tms... " >&6; }
10807 if test "${ac_cv_struct_tms+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10814 #include "ansidecl.h"
10815 #include "system.h"
10816 #ifdef HAVE_SYS_TIMES_H
10817 #include <sys/times.h>
10828 if ac_fn_c_try_compile
"$LINENO"; then :
10829 ac_cv_struct_tms
=yes
10831 ac_cv_struct_tms
=no
10833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10836 $as_echo "$ac_cv_struct_tms" >&6; }
10837 if test $ac_cv_struct_tms = yes; then
10839 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10843 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10844 # revisit after autoconf 2.50.
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10846 $as_echo_n "checking for clock_t... " >&6; }
10847 if test "${gcc_cv_type_clock_t+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
10851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10854 #include "ansidecl.h"
10855 #include "system.h"
10865 if ac_fn_c_try_compile
"$LINENO"; then :
10866 gcc_cv_type_clock_t
=yes
10868 gcc_cv_type_clock_t
=no
10870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10873 $as_echo "$gcc_cv_type_clock_t" >&6; }
10874 if test $gcc_cv_type_clock_t = yes; then
10876 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10880 # Check if F_SETLKW is supported by fcntl.
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10882 $as_echo_n "checking for F_SETLKW... " >&6; }
10883 if test "${ac_cv_f_setlkw+set}" = set; then :
10884 $as_echo_n "(cached) " >&6
10887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h. */
10900 return fcntl (1, F_SETLKW, &fl);
10905 if ac_fn_c_try_compile
"$LINENO"; then :
10910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10913 $as_echo "$ac_cv_f_setlkw" >&6; }
10914 if test $ac_cv_f_setlkw = yes; then
10916 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10920 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10921 CFLAGS
="$saved_CFLAGS"
10922 CXXFLAGS
="$saved_CXXFLAGS"
10924 # mkdir takes a single argument on some systems.
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10926 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10927 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10928 $as_echo_n "(cached) " >&6
10930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10931 /* end confdefs.h. */
10933 #include <sys/types.h>
10934 #ifdef HAVE_SYS_STAT_H
10935 # include <sys/stat.h>
10937 #ifdef HAVE_UNISTD_H
10938 # include <unistd.h>
10940 #ifdef HAVE_DIRECT_H
10941 # include <direct.h>
10951 if ac_fn_c_try_compile
"$LINENO"; then :
10952 gcc_cv_mkdir_takes_one_arg
=no
10954 gcc_cv_mkdir_takes_one_arg
=yes
10956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10959 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10960 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10962 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10973 # With Setjmp/Longjmp based exception handling.
10974 # Check whether --enable-sjlj-exceptions was given.
10975 if test "${enable_sjlj_exceptions+set}" = set; then :
10976 enableval
=$enable_sjlj_exceptions; case $target in
10978 if test $enableval != yes; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10980 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10985 force_sjlj_exceptions
=yes
10989 force_sjlj_exceptions
=yes
10993 force_sjlj_exceptions
=yes
10997 force_sjlj_exceptions
=no
11002 if test $force_sjlj_exceptions = yes; then
11003 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11005 cat >>confdefs.h
<<_ACEOF
11006 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11011 # --------------------------------------------------------
11012 # Build, host, and target specific configuration fragments
11013 # --------------------------------------------------------
11015 # Collect build-machine-specific information.
11016 .
${srcdir}/config.build
11018 # Collect host-machine-specific information.
11019 .
${srcdir}/config.
host
11023 # Collect target-machine-specific information.
11024 .
${srcdir}/config.gcc
11026 extra_objs
="${host_extra_objs} ${extra_objs}"
11027 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11029 # Default the target-machine variables that were not explicitly set.
11030 if test x
"$tm_file" = x
11031 then tm_file
=$cpu_type/$cpu_type.h
; fi
11033 if test x
"$extra_headers" = x
11034 then extra_headers
=; fi
11036 if test x
$md_file = x
11037 then md_file
=$cpu_type/$cpu_type.md
; fi
11039 if test x
$out_file = x
11040 then out_file
=$cpu_type/$cpu_type.c
; fi
11042 if test x
"$tmake_file" = x
11043 then tmake_file
=$cpu_type/t-
$cpu_type
11046 # Support --enable-initfini-array.
11047 if test x
$enable_initfini_array != xno
; then
11048 tm_file
="${tm_file} initfini-array.h"
11051 if test x
"$dwarf2" = xyes
11052 then tm_file
="$tm_file tm-dwarf2.h"
11055 # Say what files are being used for the output code and MD file.
11056 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11057 echo "Using \`$srcdir/config/$md_file' as machine description file."
11059 # If any of the xm_file variables contain nonexistent files, warn
11060 # about them and drop them.
11063 for x
in $build_xm_file; do
11064 if test -f $srcdir/config
/$x
11066 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11067 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11070 build_xm_file
="$bx"
11073 for x
in $host_xm_file; do
11074 if test -f $srcdir/config
/$x
11076 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11077 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11083 for x
in $xm_file; do
11084 if test -f $srcdir/config
/$x
11086 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11087 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11093 for f
in $tm_file; do
11096 if test $count = ax
; then
11097 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11099 echo "Using the following target machine macro files:"
11100 for f
in $tm_file; do
11101 echo " $srcdir/config/$f"
11105 if test x
$need_64bit_hwint = xyes
; then
11107 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11111 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11113 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11117 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11119 cat >>confdefs.h
<<_ACEOF
11120 #define HAVE_GNU_LD $gnu_ld_bool
11124 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11126 cat >>confdefs.h
<<_ACEOF
11127 #define HAVE_GNU_AS $gnu_as_bool
11132 for f
in $host_xm_file; do
11135 if test $count = a
; then
11137 elif test $count = ax
; then
11138 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11140 echo "Using the following host machine macro files:"
11141 for f
in $host_xm_file; do
11142 echo " $srcdir/config/$f"
11145 echo "Using ${out_host_hook_obj} for host machine hooks."
11147 if test "$host_xm_file" != "$build_xm_file"; then
11149 for f
in $build_xm_file; do
11152 if test $count = a
; then
11154 elif test $count = ax
; then
11155 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11157 echo "Using the following build machine macro files:"
11158 for f
in $build_xm_file; do
11159 echo " $srcdir/config/$f"
11164 if test -n "$configured_native_system_header_dir"; then
11165 native_system_header_dir
=$configured_native_system_header_dir
11167 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11171 powerpc
*-*-darwin*)
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11173 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11174 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11175 $as_echo_n "(cached) " >&6
11177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11178 /* end confdefs.h. */
11180 #include <sys/cdefs.h>
11181 #include <sys/signal.h>
11182 #include <ucontext.h>
11183 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11186 if ac_fn_c_try_compile
"$LINENO"; then :
11187 gcc_cv_mcontext_underscores
=no
11189 gcc_cv_mcontext_underscores
=yes
11191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11194 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11195 if test $gcc_cv_mcontext_underscores = yes; then
11197 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11207 # Check if a valid thread package
11208 case ${enable_threads} in
11211 target_thread_file
='single'
11215 target_thread_file
='single'
11217 aix | dce | lynx | mipssde | posix | rtems | \
11218 single | tpf | vxworks | win32
)
11219 target_thread_file
=${enable_threads}
11222 echo "${enable_threads} is an unknown thread package" 1>&2
11227 if test x
${thread_file} = x
; then
11228 # No thread file set by target-specific clauses in config.gcc,
11229 # so use file chosen by default logic above
11230 thread_file
=${target_thread_file}
11238 if test x
$enable___cxa_atexit = xyes || \
11239 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11240 if test x
$host = x
$target; then
11242 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11243 # keyed to flag_use_cxa_atexit
11251 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11252 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11255 echo "__cxa_atexit can't be enabled on this target"
11261 # We can't check for __cxa_atexit when building a cross, so assume
11265 if test x
$use_cxa_atexit = xyes
; then
11267 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11272 # Look for a file containing extra machine modes.
11273 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11274 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11277 cat >>confdefs.h
<<_ACEOF
11278 #define EXTRA_MODES_FILE "config/$extra_modes"
11283 # Convert extra_options into a form suitable for Makefile use.
11286 for f
in $extra_options; do
11287 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11288 all_opt_files
="$all_opt_files $srcdir/config/$f"
11292 # auto-host.h is the file containing items generated by autoconf and is
11293 # the first file included by config.h.
11294 # If host=build, it is correct to have bconfig include auto-host.h
11295 # as well. If host!=build, we are in error and need to do more
11296 # work to find out the build config parameters.
11297 if test x
$host = x
$build
11299 build_auto
=auto-host.h
11301 # We create a subdir, then run autoconf in the subdir.
11302 # To prevent recursion we set host and build for the new
11303 # invocation of configure to the build for this invocation
11310 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11311 *) realsrcdir
=..
/${srcdir};;
11313 # Clearing GMPINC is necessary to prevent host headers being
11314 # used by the build compiler. Defining GENERATOR_FILE stops
11315 # system.h from including gmp.h.
11316 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11317 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11318 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11319 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11320 ${realsrcdir}/configure \
11321 --enable-languages=${enable_languages-all} \
11322 --target=$target_alias --host=$build_alias --build=$build_alias
11324 # We just finished tests for the build machine, so rename
11325 # the file auto-build.h in the gcc directory.
11326 mv auto-host.h ..
/auto-build.h
11329 build_auto
=auto-build.h
11333 tm_file
="${tm_file} defaults.h"
11334 tm_p_file
="${tm_p_file} tm-preds.h"
11335 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11336 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11337 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11338 # put this back in temporarily.
11339 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11345 # Compile in configure arguments.
11346 if test -f configargs.h
; then
11347 # Being re-configured.
11348 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11349 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11351 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11354 # Double all backslashes and backslash all quotes to turn
11355 # gcc_config_arguments into a C string.
11356 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11357 $gcc_config_arguments
11359 gcc_config_arguments_str
=`cat conftest.out`
11362 cat > configargs.h
<<EOF
11363 /* Generated automatically. */
11364 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11365 static const char thread_model[] = "$thread_file";
11367 static const struct {
11368 const char *name, *value;
11369 } configure_default_options[] = $configure_default_options;
11372 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11373 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11374 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11375 if test -f $srcdir/REVISION
; then
11376 gcc_REVISION
=`cat $srcdir/REVISION`
11380 cat > plugin-version.h
<<EOF
11381 #include "configargs.h"
11383 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11384 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11385 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11386 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11388 static char basever[] = "$gcc_BASEVER";
11389 static char datestamp[] = "$gcc_DATESTAMP";
11390 static char devphase[] = "$gcc_DEVPHASE";
11391 static char revision[] = "$gcc_REVISION";
11393 /* FIXME plugins: We should make the version information more precise.
11394 One way to do is to add a checksum. */
11396 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11397 devphase, revision,
11398 configuration_arguments};
11401 # Internationalization
11402 # If we haven't got the data from the intl directory,
11403 # assume NLS is disabled.
11412 if test -f ..
/intl
/config.intl
; then
11413 . ..
/intl
/config.intl
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11416 $as_echo_n "checking whether NLS is requested... " >&6; }
11417 if test x
"$USE_NLS" != xyes
; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11422 $as_echo "yes" >&6; }
11424 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11428 $as_echo_n "checking for catalogs to be installed... " >&6; }
11429 # Look for .po and .gmo files in the source directory.
11432 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11433 # If there aren't any .gmo files the shell will give us the
11434 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11436 case "$cat" in *\
**)
11439 # The quadruple backslash is collapsed to a double backslash
11440 # by the backticks, then collapsed again by the double quotes,
11441 # leaving us with one backslash in the sed expression (right
11442 # before the dot that mustn't act as a wildcard).
11443 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11444 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11445 # The user is allowed to set LINGUAS to a list of languages to
11446 # install catalogs for. If it's empty that means "all of them."
11447 if test "x$LINGUAS" = x
; then
11448 CATALOGS
="$CATALOGS $cat"
11449 XLINGUAS
="$XLINGUAS $lang"
11451 case "$LINGUAS" in *$lang*)
11452 CATALOGS
="$CATALOGS $cat"
11453 XLINGUAS
="$XLINGUAS $lang"
11458 LINGUAS
="$XLINGUAS"
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11460 $as_echo "$LINGUAS" >&6; }
11473 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11474 # -liconv on the link line twice.
11475 case "$LIBINTL" in *$LIBICONV*)
11479 # Check whether --enable-secureplt was given.
11480 if test "${enable_secureplt+set}" = set; then :
11481 enableval
=$enable_secureplt;
11485 # Check whether --enable-leading-mingw64-underscores was given.
11486 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11487 enableval
=$enable_leading_mingw64_underscores;
11490 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11492 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11496 # Check whether --enable-cld was given.
11497 if test "${enable_cld+set}" = set; then :
11498 enableval
=$enable_cld;
11504 # Check whether --enable-frame-pointer was given.
11505 if test "${enable_frame_pointer+set}" = set; then :
11506 enableval
=$enable_frame_pointer;
11510 linux
* | darwin
[8912]*)
11511 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11513 enable_frame_pointer
=no
11516 enable_frame_pointer
=yes
11523 # Windows32 Registry support for specifying GCC installation paths.
11524 # Check whether --enable-win32-registry was given.
11525 if test "${enable_win32_registry+set}" = set; then :
11526 enableval
=$enable_win32_registry;
11531 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11532 if test "x$enable_win32_registry" != xno
; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11534 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11535 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11536 $as_echo_n "(cached) " >&6
11538 ac_func_search_save_LIBS
=$LIBS
11539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h. */
11542 /* Override any GCC internal prototype to avoid an error.
11543 Use char because int might match the return type of a GCC
11544 builtin and then its argument prototype would still apply. */
11548 char RegOpenKeyExA ();
11552 return RegOpenKeyExA ();
11557 for ac_lib
in '' advapi32
; do
11558 if test -z "$ac_lib"; then
11559 ac_res
="none required"
11562 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11564 if ac_fn_c_try_link
"$LINENO"; then :
11565 ac_cv_search_RegOpenKeyExA
=$ac_res
11567 rm -f core conftest.err conftest.
$ac_objext \
11569 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11573 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11576 ac_cv_search_RegOpenKeyExA
=no
11578 rm conftest.
$ac_ext
11579 LIBS
=$ac_func_search_save_LIBS
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11582 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11583 ac_res
=$ac_cv_search_RegOpenKeyExA
11584 if test "$ac_res" != no
; then :
11585 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11588 enable_win32_registry
=no
11593 if test "x$enable_win32_registry" != xno
; then
11595 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11598 if test "x$enable_win32_registry" != xyes \
11599 && test "x$enable_win32_registry" != x
; then
11601 cat >>confdefs.h
<<_ACEOF
11602 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11610 # Get an absolute path to the GCC top-level source directory
11611 holddir
=`${PWDCMD-pwd}`
11613 topdir
=`${PWDCMD-pwd}`
11616 # Conditionalize the makefile for this host machine.
11618 for f
in ${host_xmake_file}
11620 if test -f ${srcdir}/config
/$f
11622 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11626 # Conditionalize the makefile for this target machine.
11628 for f
in ${tmake_file}
11630 if test -f ${srcdir}/config
/$f
11632 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11635 tmake_file
="${tmake_file_}"
11637 out_object_file
=`basename $out_file .c`.o
11638 common_out_object_file
=`basename $common_out_file .c`.o
11640 tm_file_list
="options.h"
11641 tm_include_list
="options.h insn-constants.h"
11642 for f
in $tm_file; do
11645 f
=`echo $f | sed 's/^..//'`
11646 tm_file_list
="${tm_file_list} $f"
11647 tm_include_list
="${tm_include_list} $f"
11650 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11651 tm_include_list
="${tm_include_list} $f"
11654 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11655 tm_include_list
="${tm_include_list} config/$f"
11662 for f
in $tm_p_file; do
11665 tm_p_file_list
="${tm_p_file_list} $f"
11666 tm_p_include_list
="${tm_p_include_list} $f"
11669 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11670 tm_p_include_list
="${tm_p_include_list} config/$f"
11676 for f
in $xm_file; do
11679 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11680 xm_include_list
="${xm_include_list} $f"
11683 xm_file_list
="${xm_file_list} $f"
11684 xm_include_list
="${xm_include_list} $f"
11687 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11688 xm_include_list
="${xm_include_list} config/$f"
11694 host_xm_include_list
=
11695 for f
in $host_xm_file; do
11698 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11699 host_xm_include_list
="${host_xm_include_list} $f"
11702 host_xm_file_list
="${host_xm_file_list} $f"
11703 host_xm_include_list
="${host_xm_include_list} $f"
11706 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11707 host_xm_include_list
="${host_xm_include_list} config/$f"
11712 build_xm_file_list
=
11713 for f
in $build_xm_file; do
11716 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11717 build_xm_include_list
="${build_xm_include_list} $f"
11719 auto-build.h | auto-host.h
)
11720 build_xm_file_list
="${build_xm_file_list} $f"
11721 build_xm_include_list
="${build_xm_include_list} $f"
11724 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11725 build_xm_include_list
="${build_xm_include_list} config/$f"
11730 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11731 # cross-compiler which does not use the native headers and libraries.
11732 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11735 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11737 if test "x$with_build_sysroot" != x
; then
11738 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11740 # This value is used, even on a native system, because
11741 # CROSS_SYSTEM_HEADER_DIR is just
11742 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11743 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11746 if test x
$host != x
$target
11748 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11750 SYSTEM_HEADER_DIR
=$build_system_header_dir
11751 case "$host","$target" in
11752 # Darwin crosses can use the host system's libraries and headers,
11753 # because of the fat library support. Of course, it must be the
11754 # same version of Darwin on both sides. Allow the user to
11755 # just say --target=foo-darwin without a version number to mean
11756 # "the version on this system".
11757 *-*-darwin*,*-*-darwin*)
11758 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11759 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11760 if test $hostos = $targetos -o $targetos = darwin
; then
11762 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11767 i?
86-*-*,x86_64-
*-* \
11768 | powerpc
*-*-*,powerpc64
*-*-*)
11769 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11774 if test "x$with_headers" = x
; then
11781 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11782 SYSTEM_HEADER_DIR
=$build_system_header_dir
11785 # If this is a cross-compiler that does not
11786 # have its own set of headers then define
11789 # If this is using newlib, without having the headers available now,
11790 # then define inhibit_libc in LIBGCC2_CFLAGS.
11791 # This prevents libgcc2 from containing any code which requires libc
11793 : ${inhibit_libc=false}
11794 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11795 test x
$with_newlib = xyes
; } &&
11796 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11801 # When building gcc with a cross-compiler, we need to adjust things so
11802 # that the generator programs are still built with the native compiler.
11803 # Also, we cannot run fixincludes.
11805 # These are the normal (build=host) settings:
11806 CC_FOR_BUILD
='$(CC)'
11807 CXX_FOR_BUILD
='$(CXX)'
11808 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11809 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11810 BUILD_LDFLAGS
='$(LDFLAGS)'
11811 STMP_FIXINC
=stmp-fixinc
11813 # And these apply if build != host, or we are generating coverage data
11814 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11816 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11817 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11818 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11821 # Expand extra_headers to include complete path.
11822 # This substitutes for lots of t-* files.
11823 extra_headers_list
=
11824 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11825 for file in ${extra_headers} ; do
11826 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11829 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11830 if test x
"$use_gcc_tgmath" = xyes
11831 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11834 # Define collect2 in Makefile.
11835 case $host_can_use_collect2 in
11837 *) collect2
='collect2$(exeext)' ;;
11841 # Add a definition of USE_COLLECT2 if system wants one.
11842 case $use_collect2 in
11843 no
) use_collect2
= ;;
11846 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11847 xm_defines
="${xm_defines} USE_COLLECT2"
11848 case $host_can_use_collect2 in
11850 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11857 cat >>confdefs.h
<<_ACEOF
11858 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11862 # ---------------------------
11863 # Assembler & linker features
11864 # ---------------------------
11866 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11867 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11868 # However when ld-new is first executed from the build tree, libtool will
11869 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11870 # to the build tree. While doing this we need to use the previous-stage
11871 # linker, or we have an infinite loop. The presence of a shell script as
11872 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11873 # the gcc/collect-ld script. So we need to know how libtool works, or
11874 # exec-tool will fail.
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11880 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11885 macro_version
='2.2.7a'
11886 macro_revision
='1.3134'
11900 ltmain
="$ac_aux_dir/ltmain.sh"
11902 # Backslashify metacharacters that are still active within
11903 # double-quoted strings.
11904 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11906 # Same as above, but do not quote variable references.
11907 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11909 # Sed substitution to delay expansion of an escaped shell variable in a
11910 # double_quote_subst'ed string.
11911 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11913 # Sed substitution to delay expansion of an escaped single quote.
11914 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11916 # Sed substitution to avoid accidental globbing in evaled expressions
11917 no_glob_subst
='s/\*/\\\*/g'
11919 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11920 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11921 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11924 $as_echo_n "checking how to print strings... " >&6; }
11925 # Test print first, because it will be a builtin if present.
11926 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11927 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11929 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11932 # Use this function as a fallback that always works.
11933 func_fallback_echo ()
11935 eval 'cat <<_LTECHO_EOF
11939 ECHO='func_fallback_echo
'
11942 # func_echo_all arg...
11943 # Invoke $ECHO with all args, space-separated.
11950 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11951 $as_echo "printf" >&6; } ;;
11952 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11953 $as_echo "print -r" >&6; } ;;
11954 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11955 $as_echo "cat" >&6; } ;;
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11972 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11973 if test "${ac_cv_path_SED+set}" = set; then :
11974 $as_echo_n "(cached) " >&6
11976 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11977 for ac_i in 1 2 3 4 5 6 7; do
11978 ac_script="$ac_script$as_nl$ac_script"
11980 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11981 { ac_script=; unset ac_script;}
11982 if test -z "$SED"; then
11983 ac_path_SED_found=false
11984 # Loop through the user's path and
test for each of PROGNAME-LIST
11985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11986 for as_dir
in $PATH
11989 test -z "$as_dir" && as_dir
=.
11990 for ac_prog
in sed gsed
; do
11991 for ac_exec_ext
in '' $ac_executable_extensions; do
11992 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11993 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11994 # Check for GNU ac_path_SED and select it if it is found.
11995 # Check for GNU $ac_path_SED
11996 case `"$ac_path_SED" --version 2>&1` in
11998 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12001 $as_echo_n 0123456789 >"conftest.in"
12004 cat "conftest.in" "conftest.in" >"conftest.tmp"
12005 mv "conftest.tmp" "conftest.in"
12006 cp "conftest.in" "conftest.nl"
12007 $as_echo '' >> "conftest.nl"
12008 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12009 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12010 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12011 if test $ac_count -gt ${ac_path_SED_max-0}; then
12012 # Best one so far, save it but keep looking for a better one
12013 ac_cv_path_SED
="$ac_path_SED"
12014 ac_path_SED_max
=$ac_count
12016 # 10*(2^10) chars as input seems more than enough
12017 test $ac_count -gt 10 && break
12019 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12022 $ac_path_SED_found && break 3
12027 if test -z "$ac_cv_path_SED"; then
12028 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12031 ac_cv_path_SED
=$SED
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12036 $as_echo "$ac_cv_path_SED" >&6; }
12037 SED
="$ac_cv_path_SED"
12040 test -z "$SED" && SED
=sed
12041 Xsed
="$SED -e 1s/^X//"
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12054 $as_echo_n "checking for fgrep... " >&6; }
12055 if test "${ac_cv_path_FGREP+set}" = set; then :
12056 $as_echo_n "(cached) " >&6
12058 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12059 then ac_cv_path_FGREP
="$GREP -F"
12061 if test -z "$FGREP"; then
12062 ac_path_FGREP_found
=false
12063 # Loop through the user's path and test for each of PROGNAME-LIST
12064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12065 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12068 test -z "$as_dir" && as_dir
=.
12069 for ac_prog
in fgrep
; do
12070 for ac_exec_ext
in '' $ac_executable_extensions; do
12071 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12072 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12073 # Check for GNU ac_path_FGREP and select it if it is found.
12074 # Check for GNU $ac_path_FGREP
12075 case `"$ac_path_FGREP" --version 2>&1` in
12077 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12080 $as_echo_n 0123456789 >"conftest.in"
12083 cat "conftest.in" "conftest.in" >"conftest.tmp"
12084 mv "conftest.tmp" "conftest.in"
12085 cp "conftest.in" "conftest.nl"
12086 $as_echo 'FGREP' >> "conftest.nl"
12087 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12088 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12089 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12090 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12091 # Best one so far, save it but keep looking for a better one
12092 ac_cv_path_FGREP
="$ac_path_FGREP"
12093 ac_path_FGREP_max
=$ac_count
12095 # 10*(2^10) chars as input seems more than enough
12096 test $ac_count -gt 10 && break
12098 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12101 $ac_path_FGREP_found && break 3
12106 if test -z "$ac_cv_path_FGREP"; then
12107 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12110 ac_cv_path_FGREP
=$FGREP
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12116 $as_echo "$ac_cv_path_FGREP" >&6; }
12117 FGREP
="$ac_cv_path_FGREP"
12120 test -z "$GREP" && GREP
=grep
12140 # Check whether --with-gnu-ld was given.
12141 if test "${with_gnu_ld+set}" = set; then :
12142 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12148 if test "$GCC" = yes; then
12149 # Check if gcc -print-prog-name=ld gives a path.
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12151 $as_echo_n "checking for ld used by $CC... " >&6; }
12154 # gcc leaves a trailing carriage return which upsets mingw
12155 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12157 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12160 # Accept absolute paths.
12162 re_direlt
='/[^/][^/]*/\.\./'
12163 # Canonicalize the pathname of ld
12164 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12165 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12166 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12168 test -z "$LD" && LD
="$ac_prog"
12171 # If it fails, then pretend we aren't using GCC.
12175 # If it is relative, then search for the first ld in PATH.
12176 with_gnu_ld
=unknown
12179 elif test "$with_gnu_ld" = yes; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12181 $as_echo_n "checking for GNU ld... " >&6; }
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12184 $as_echo_n "checking for non-GNU ld... " >&6; }
12186 if test "${lt_cv_path_LD+set}" = set; then :
12187 $as_echo_n "(cached) " >&6
12189 if test -z "$LD"; then
12190 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12191 for ac_dir
in $PATH; do
12193 test -z "$ac_dir" && ac_dir
=.
12194 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12195 lt_cv_path_LD
="$ac_dir/$ac_prog"
12196 # Check to see if the program is GNU ld. I'd rather use --version,
12197 # but apparently some variants of GNU ld only accept -v.
12198 # Break only if it was the GNU/non-GNU ld that we prefer.
12199 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12200 *GNU
* |
*'with BFD'*)
12201 test "$with_gnu_ld" != no
&& break
12204 test "$with_gnu_ld" != yes && break
12211 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12215 LD
="$lt_cv_path_LD"
12216 if test -n "$LD"; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12218 $as_echo "$LD" >&6; }
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221 $as_echo "no" >&6; }
12223 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12225 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12226 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12227 $as_echo_n "(cached) " >&6
12229 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12230 case `$LD -v 2>&1 </dev/null` in
12231 *GNU
* |
*'with BFD'*)
12232 lt_cv_prog_gnu_ld
=yes
12235 lt_cv_prog_gnu_ld
=no
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12240 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12241 with_gnu_ld
=$lt_cv_prog_gnu_ld
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12252 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12253 if test "${lt_cv_path_NM+set}" = set; then :
12254 $as_echo_n "(cached) " >&6
12256 if test -n "$NM"; then
12257 # Let the user override the test.
12258 lt_cv_path_NM
="$NM"
12260 lt_nm_to_check
="${ac_tool_prefix}nm"
12261 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12262 lt_nm_to_check
="$lt_nm_to_check nm"
12264 for lt_tmp_nm
in $lt_nm_to_check; do
12265 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12266 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12268 test -z "$ac_dir" && ac_dir
=.
12269 tmp_nm
="$ac_dir/$lt_tmp_nm"
12270 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12271 # Check to see if the nm accepts a BSD-compat flag.
12272 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12273 # nm: unknown option "B" ignored
12274 # Tru64's nm complains that /dev/null is an invalid object file
12275 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12276 */dev
/null
* |
*'Invalid file or object type'*)
12277 lt_cv_path_NM
="$tmp_nm -B"
12281 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12283 lt_cv_path_NM
="$tmp_nm -p"
12287 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12288 continue # so that we can try to find one that supports BSD flags
12297 : ${lt_cv_path_NM=no}
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12301 $as_echo "$lt_cv_path_NM" >&6; }
12302 if test "$lt_cv_path_NM" != "no"; then
12303 NM
="$lt_cv_path_NM"
12305 # Didn't find any BSD compatible name lister, look for dumpbin.
12306 if test -n "$DUMPBIN"; then :
12307 # Let the user override the test.
12309 if test -n "$ac_tool_prefix"; then
12310 for ac_prog
in dumpbin
"link -dump"
12312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12313 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315 $as_echo_n "checking for $ac_word... " >&6; }
12316 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12319 if test -n "$DUMPBIN"; then
12320 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12323 for as_dir
in $PATH
12326 test -z "$as_dir" && as_dir
=.
12327 for ac_exec_ext
in '' $ac_executable_extensions; do
12328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12329 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339 DUMPBIN
=$ac_cv_prog_DUMPBIN
12340 if test -n "$DUMPBIN"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12342 $as_echo "$DUMPBIN" >&6; }
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12349 test -n "$DUMPBIN" && break
12352 if test -z "$DUMPBIN"; then
12353 ac_ct_DUMPBIN
=$DUMPBIN
12354 for ac_prog
in dumpbin
"link -dump"
12356 # Extract the first word of "$ac_prog", so it can be a program name with args.
12357 set dummy
$ac_prog; ac_word
=$2
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359 $as_echo_n "checking for $ac_word... " >&6; }
12360 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12363 if test -n "$ac_ct_DUMPBIN"; then
12364 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12367 for as_dir
in $PATH
12370 test -z "$as_dir" && as_dir
=.
12371 for ac_exec_ext
in '' $ac_executable_extensions; do
12372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12373 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12383 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12384 if test -n "$ac_ct_DUMPBIN"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12386 $as_echo "$ac_ct_DUMPBIN" >&6; }
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12393 test -n "$ac_ct_DUMPBIN" && break
12396 if test "x$ac_ct_DUMPBIN" = x
; then
12399 case $cross_compiling:$ac_tool_warned in
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12403 ac_tool_warned
=yes ;;
12405 DUMPBIN
=$ac_ct_DUMPBIN
12409 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12411 DUMPBIN
="$DUMPBIN -symbols"
12419 if test "$DUMPBIN" != ":"; then
12423 test -z "$NM" && NM
=nm
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12431 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12432 if test "${lt_cv_nm_interface+set}" = set; then :
12433 $as_echo_n "(cached) " >&6
12435 lt_cv_nm_interface
="BSD nm"
12436 echo "int some_variable = 0;" > conftest.
$ac_ext
12437 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12438 (eval "$ac_compile" 2>conftest.err
)
12439 cat conftest.err
>&5
12440 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12441 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12442 cat conftest.err
>&5
12443 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12444 cat conftest.out
>&5
12445 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12446 lt_cv_nm_interface
="MS dumpbin"
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12451 $as_echo "$lt_cv_nm_interface" >&6; }
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12454 $as_echo_n "checking whether ln -s works... " >&6; }
12456 if test "$LN_S" = "ln -s"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12458 $as_echo "yes" >&6; }
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12461 $as_echo "no, using $LN_S" >&6; }
12464 # find the maximum length of command line arguments
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12466 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12467 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12468 $as_echo_n "(cached) " >&6
12475 # On DJGPP, this test can blow up pretty badly due to problems in libc
12476 # (any single argument exceeding 2000 bytes causes a buffer overrun
12477 # during glob expansion). Even if it were fixed, the result of this
12478 # check would be larger than it should be.
12479 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12483 # Under GNU Hurd, this test is not required because there is
12484 # no limit to the length of command line arguments.
12485 # Libtool will interpret -1 as no limit whatsoever
12486 lt_cv_sys_max_cmd_len
=-1;
12489 cygwin
* | mingw
* | cegcc
*)
12490 # On Win9x/ME, this test blows up -- it succeeds, but takes
12491 # about 5 minutes as the teststring grows exponentially.
12492 # Worse, since 9x/ME are not pre-emptively multitasking,
12493 # you end up with a "frozen" computer, even though with patience
12494 # the test eventually succeeds (with a max line length of 256k).
12495 # Instead, let's just punt: use the minimum linelength reported by
12496 # all of the supported platforms: 8192 (on NT/2K/XP).
12497 lt_cv_sys_max_cmd_len
=8192;
12501 # On MiNT this can take a long time and run out of memory.
12502 lt_cv_sys_max_cmd_len
=8192;
12506 # On AmigaOS with pdksh, this test takes hours, literally.
12507 # So we just punt and use a minimum line length of 8192.
12508 lt_cv_sys_max_cmd_len
=8192;
12511 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12512 # This has been around since 386BSD, at least. Likely further.
12513 if test -x /sbin
/sysctl
; then
12514 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12515 elif test -x /usr
/sbin
/sysctl
; then
12516 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12518 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12520 # And add a safety zone
12521 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12522 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12526 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12527 lt_cv_sys_max_cmd_len
=196608
12531 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12532 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12533 # nice to cause kernel panics so lets avoid the loop below.
12534 # First set a reasonable default.
12535 lt_cv_sys_max_cmd_len
=16384
12537 if test -x /sbin
/sysconfig
; then
12538 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12539 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12544 lt_cv_sys_max_cmd_len
=102400
12546 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12547 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12548 if test -n "$kargmax"; then
12549 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12551 lt_cv_sys_max_cmd_len
=32768
12555 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12556 if test -n "$lt_cv_sys_max_cmd_len"; then
12557 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12558 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12560 # Make teststring a little bigger before we do anything with it.
12561 # a 1K string should be a reasonable start.
12562 for i
in 1 2 3 4 5 6 7 8 ; do
12563 teststring
=$teststring$teststring
12565 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12566 # If test is not a shell built-in, we'll probably end up computing a
12567 # maximum length that is only half of the actual maximum length, but
12569 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12570 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12571 test $i != 17 # 1/2 MB should be enough
12574 teststring
=$teststring$teststring
12576 # Only check the string length outside the loop.
12577 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12579 # Add a significant safety factor because C++ compilers can tack on
12580 # massive amounts of additional arguments before passing them to the
12581 # linker. It appears as though 1/2 is a usable value.
12582 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12589 if test -n $lt_cv_sys_max_cmd_len ; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12591 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12594 $as_echo "none" >&6; }
12596 max_cmd_len
=$lt_cv_sys_max_cmd_len
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12608 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12609 # Try some XSI features
12611 ( _lt_dummy
="a/b/c"
12612 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12614 && eval 'test $(( 1 + 1 )) -eq 2 \
12615 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12618 $as_echo "$xsi_shell" >&6; }
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12622 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12624 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12626 && lt_shell_append=yes
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12628 $as_echo "$lt_shell_append" >&6; }
12631 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12641 # test EBCDIC or ASCII
12642 case `echo X|tr X '\101'` in
12643 A) # ASCII based system
12644 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12645 lt_SP2NL='tr \040 \012'
12646 lt_NL2SP='tr \015\012 \040\040'
12648 *) # EBCDIC based system
12649 lt_SP2NL='tr \100 \n'
12650 lt_NL2SP='tr \r\n \100\100'
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12663 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12664 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12665 $as_echo_n "(cached
) " >&6
12667 lt_cv_ld_reload_flag='-r'
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12670 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12671 reload_flag=$lt_cv_ld_reload_flag
12672 case $reload_flag in
12674 *) reload_flag=" $reload_flag" ;;
12676 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12679 if test "$GCC" = yes; then
12680 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12682 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12695 if test -n "$ac_tool_prefix"; then
12696 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12697 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12699 $as_echo_n "checking
for $ac_word...
" >&6; }
12700 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12701 $as_echo_n "(cached
) " >&6
12703 if test -n "$OBJDUMP"; then
12704 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707 for as_dir in $PATH
12710 test -z "$as_dir" && as_dir=.
12711 for ac_exec_ext in '' $ac_executable_extensions; do
12712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12713 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12714 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12723 OBJDUMP=$ac_cv_prog_OBJDUMP
12724 if test -n "$OBJDUMP"; then
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12726 $as_echo "$OBJDUMP" >&6; }
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12729 $as_echo "no
" >&6; }
12734 if test -z "$ac_cv_prog_OBJDUMP"; then
12735 ac_ct_OBJDUMP=$OBJDUMP
12736 # Extract the first word of "objdump
", so it can be a program name with args.
12737 set dummy objdump; ac_word=$2
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12739 $as_echo_n "checking
for $ac_word...
" >&6; }
12740 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12741 $as_echo_n "(cached
) " >&6
12743 if test -n "$ac_ct_OBJDUMP"; then
12744 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747 for as_dir in $PATH
12750 test -z "$as_dir" && as_dir=.
12751 for ac_exec_ext in '' $ac_executable_extensions; do
12752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12753 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12754 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12763 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12764 if test -n "$ac_ct_OBJDUMP"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12766 $as_echo "$ac_ct_OBJDUMP" >&6; }
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12769 $as_echo "no
" >&6; }
12772 if test "x
$ac_ct_OBJDUMP" = x; then
12775 case $cross_compiling:$ac_tool_warned in
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12778 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12779 ac_tool_warned=yes ;;
12781 OBJDUMP=$ac_ct_OBJDUMP
12784 OBJDUMP="$ac_cv_prog_OBJDUMP"
12787 test -z "$OBJDUMP" && OBJDUMP=objdump
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12798 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12799 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12800 $as_echo_n "(cached
) " >&6
12802 lt_cv_file_magic_cmd='$MAGIC_CMD'
12803 lt_cv_file_magic_test_file=
12804 lt_cv_deplibs_check_method='unknown'
12805 # Need to set the preceding variable on all platforms that support
12806 # interlibrary dependencies.
12807 # 'none' -- dependencies not supported.
12808 # `unknown' -- same as none, but documents that we really don't know.
12809 # 'pass_all' -- all dependencies passed with no checks.
12810 # 'test_compile' -- check by making test program.
12811 # 'file_magic [[regex]]' -- check by looking for files in library path
12812 # which responds to the $file_magic_cmd with a given extended regex.
12813 # If you have `file' or equivalent on your system and you're not sure
12814 # whether `pass_all' will *always* work, you probably want this one.
12818 lt_cv_deplibs_check_method=pass_all
12822 lt_cv_deplibs_check_method=pass_all
12826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12827 lt_cv_file_magic_cmd='/usr/bin/file -L'
12828 lt_cv_file_magic_test_file=/shlib/libc.so
12832 # func_win32_libid is a shell function defined in ltmain.sh
12833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12834 lt_cv_file_magic_cmd='func_win32_libid'
12838 # Base MSYS/MinGW do not provide the 'file' command needed by
12839 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12840 # unless we find 'file', for example because we are cross-compiling.
12841 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12842 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12843 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12844 lt_cv_file_magic_cmd='func_win32_libid'
12846 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12847 lt_cv_file_magic_cmd='$OBJDUMP -f'
12852 # use the weaker test based on 'objdump'. See mingw*.
12853 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12854 lt_cv_file_magic_cmd='$OBJDUMP -f'
12857 darwin* | rhapsody*)
12858 lt_cv_deplibs_check_method=pass_all
12861 freebsd* | dragonfly*)
12862 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12865 # Not sure whether the presence of OpenBSD here was a mistake.
12866 # Let's accept both of them until this is cleared up.
12867 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12868 lt_cv_file_magic_cmd=/usr/bin/file
12869 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12873 lt_cv_deplibs_check_method=pass_all
12878 lt_cv_deplibs_check_method=pass_all
12882 lt_cv_deplibs_check_method=pass_all
12885 hpux10.20* | hpux11*)
12886 lt_cv_file_magic_cmd=/usr/bin/file
12889 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12890 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12893 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]'
12894 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12897 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12898 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12904 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12905 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12908 irix5* | irix6* | nonstopux*)
12910 *-32|*"-32 ") libmagic=32-bit;;
12911 *-n32|*"-n32 ") libmagic=N32;;
12912 *-64|*"-64 ") libmagic=64-bit;;
12913 *) libmagic=never-match;;
12915 lt_cv_deplibs_check_method=pass_all
12918 # This must be Linux ELF.
12919 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12920 lt_cv_deplibs_check_method=pass_all
12924 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12925 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12933 lt_cv_file_magic_cmd=/usr/bin/file
12934 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12938 lt_cv_deplibs_check_method=pass_all
12942 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12949 osf3* | osf4* | osf5*)
12950 lt_cv_deplibs_check_method=pass_all
12954 lt_cv_deplibs_check_method=pass_all
12958 lt_cv_deplibs_check_method=pass_all
12961 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12962 lt_cv_deplibs_check_method=pass_all
12966 case $host_vendor in
12968 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]'
12969 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12972 lt_cv_deplibs_check_method=pass_all
12975 lt_cv_file_magic_cmd='/bin/file'
12976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12979 lt_cv_file_magic_cmd='/bin/file'
12980 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12981 lt_cv_file_magic_test_file=/lib/libc.so
12984 lt_cv_deplibs_check_method=pass_all
12987 lt_cv_deplibs_check_method=pass_all
12993 lt_cv_deplibs_check_method=pass_all
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12999 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13000 file_magic_cmd=$lt_cv_file_magic_cmd
13001 deplibs_check_method=$lt_cv_deplibs_check_method
13002 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13015 if test -n "$ac_tool_prefix"; then
13016 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13017 set dummy ${ac_tool_prefix}ar; ac_word=$2
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13019 $as_echo_n "checking
for $ac_word...
" >&6; }
13020 if test "${ac_cv_prog_AR+set}" = set; then :
13021 $as_echo_n "(cached
) " >&6
13023 if test -n "$AR"; then
13024 ac_cv_prog_AR="$AR" # Let the user override the test.
13026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13027 for as_dir in $PATH
13030 test -z "$as_dir" && as_dir=.
13031 for ac_exec_ext in '' $ac_executable_extensions; do
13032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13033 ac_cv_prog_AR="${ac_tool_prefix}ar"
13034 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13044 if test -n "$AR"; then
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13046 $as_echo "$AR" >&6; }
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13049 $as_echo "no
" >&6; }
13054 if test -z "$ac_cv_prog_AR"; then
13056 # Extract the first word of "ar", so it can be a program name with args.
13057 set dummy ar; ac_word=$2
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13059 $as_echo_n "checking
for $ac_word...
" >&6; }
13060 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13061 $as_echo_n "(cached
) " >&6
13063 if test -n "$ac_ct_AR"; then
13064 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13070 test -z "$as_dir" && as_dir=.
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13073 ac_cv_prog_ac_ct_AR="ar"
13074 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13083 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13084 if test -n "$ac_ct_AR"; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13086 $as_echo "$ac_ct_AR" >&6; }
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13089 $as_echo "no
" >&6; }
13092 if test "x
$ac_ct_AR" = x; then
13095 case $cross_compiling:$ac_tool_warned in
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13098 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13099 ac_tool_warned=yes ;;
13104 AR="$ac_cv_prog_AR"
13107 test -z "$AR" && AR=ar
13108 test -z "$AR_FLAGS" && AR_FLAGS=cru
13120 if test -n "$ac_tool_prefix"; then
13121 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13122 set dummy ${ac_tool_prefix}strip; ac_word=$2
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13124 $as_echo_n "checking
for $ac_word...
" >&6; }
13125 if test "${ac_cv_prog_STRIP+set}" = set; then :
13126 $as_echo_n "(cached
) " >&6
13128 if test -n "$STRIP"; then
13129 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13135 test -z "$as_dir" && as_dir=.
13136 for ac_exec_ext in '' $ac_executable_extensions; do
13137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13138 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13148 STRIP=$ac_cv_prog_STRIP
13149 if test -n "$STRIP"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13151 $as_echo "$STRIP" >&6; }
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13154 $as_echo "no
" >&6; }
13159 if test -z "$ac_cv_prog_STRIP"; then
13161 # Extract the first word of "strip
", so it can be a program name with args.
13162 set dummy strip; ac_word=$2
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13164 $as_echo_n "checking
for $ac_word...
" >&6; }
13165 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13166 $as_echo_n "(cached
) " >&6
13168 if test -n "$ac_ct_STRIP"; then
13169 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13175 test -z "$as_dir" && as_dir=.
13176 for ac_exec_ext in '' $ac_executable_extensions; do
13177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13178 ac_cv_prog_ac_ct_STRIP="strip
"
13179 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13188 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13189 if test -n "$ac_ct_STRIP"; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13191 $as_echo "$ac_ct_STRIP" >&6; }
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13194 $as_echo "no
" >&6; }
13197 if test "x
$ac_ct_STRIP" = x; then
13200 case $cross_compiling:$ac_tool_warned in
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13203 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13204 ac_tool_warned=yes ;;
13209 STRIP="$ac_cv_prog_STRIP"
13212 test -z "$STRIP" && STRIP=:
13219 if test -n "$ac_tool_prefix"; then
13220 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13221 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13223 $as_echo_n "checking
for $ac_word...
" >&6; }
13224 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13225 $as_echo_n "(cached
) " >&6
13227 if test -n "$RANLIB"; then
13228 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231 for as_dir in $PATH
13234 test -z "$as_dir" && as_dir=.
13235 for ac_exec_ext in '' $ac_executable_extensions; do
13236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13237 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13238 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13247 RANLIB=$ac_cv_prog_RANLIB
13248 if test -n "$RANLIB"; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13250 $as_echo "$RANLIB" >&6; }
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13253 $as_echo "no
" >&6; }
13258 if test -z "$ac_cv_prog_RANLIB"; then
13259 ac_ct_RANLIB=$RANLIB
13260 # Extract the first word of "ranlib
", so it can be a program name with args.
13261 set dummy ranlib; ac_word=$2
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13263 $as_echo_n "checking
for $ac_word...
" >&6; }
13264 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13265 $as_echo_n "(cached
) " >&6
13267 if test -n "$ac_ct_RANLIB"; then
13268 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13271 for as_dir in $PATH
13274 test -z "$as_dir" && as_dir=.
13275 for ac_exec_ext in '' $ac_executable_extensions; do
13276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13277 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13278 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13287 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13288 if test -n "$ac_ct_RANLIB"; then
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13290 $as_echo "$ac_ct_RANLIB" >&6; }
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13293 $as_echo "no
" >&6; }
13296 if test "x
$ac_ct_RANLIB" = x; then
13299 case $cross_compiling:$ac_tool_warned in
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13302 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13303 ac_tool_warned=yes ;;
13305 RANLIB=$ac_ct_RANLIB
13308 RANLIB="$ac_cv_prog_RANLIB"
13311 test -z "$RANLIB" && RANLIB=:
13318 # Determine commands to create old-style static archives.
13319 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13320 old_postinstall_cmds='chmod 644 $oldlib'
13321 old_postuninstall_cmds=
13323 if test -n "$RANLIB"; then
13326 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13329 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13332 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13337 lock_old_archive_extraction=yes ;;
13339 lock_old_archive_extraction=no ;;
13380 # If no C compiler was specified, use CC.
13383 # If no C compiler flags were specified, use CFLAGS.
13384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13386 # Allow CC to be a program name with arguments.
13390 # Check for command to grab the raw symbol name followed by C symbol from nm.
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13392 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13393 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13394 $as_echo_n "(cached
) " >&6
13397 # These are sane defaults that work on at least a few old systems.
13398 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13400 # Character class describing NM global symbol codes.
13401 symcode='[BCDEGRST]'
13403 # Regexp to match symbols that can be accessed directly from C.
13404 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13406 # Define system-specific variables.
13411 cygwin* | mingw* | pw32* | cegcc*)
13412 symcode='[ABCDGISTW]'
13415 if test "$host_cpu" = ia64; then
13416 symcode='[ABCDEGRST]'
13419 irix* | nonstopux*)
13420 symcode='[BCDEGRST]'
13423 symcode='[BCDEGQRST]'
13434 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13442 # If we're using GNU nm, then use its standard symbol codes.
13443 case `$NM -V 2>&1` in
13444 *GNU* | *'with BFD'*)
13445 symcode='[ABCDGIRSTW]' ;;
13448 # Transform an extracted symbol line into a proper C declaration.
13449 # Some systems (esp. on ia64) link data and code symbols differently,
13450 # so use this general approach.
13451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13453 # Transform an extracted symbol line into symbol name and symbol address
13454 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13455 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'"
13457 # Handle CRLF in mingw tool chain
13461 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13465 # Try without a prefix underscore, then with it.
13466 for ac_symprfx in "" "_
"; do
13468 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13469 symxfrm="\\1 $ac_symprfx\\2 \\2"
13471 # Write the raw and C identifiers.
13472 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13473 # Fake it for dumpbin and say T for any non-static function
13474 # and D for any global variable.
13475 # Also find C++ and __fastcall symbols from MSVC++,
13476 # which start with @ or ?.
13477 lt_cv_sys_global_symbol_pipe="$AWK '"\
13478 " {last_section=section; section=\$ 3};"\
13479 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13480 " \$ 0!~/External *\|/{next};"\
13481 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13482 " {if(hide[section]) next};"\
13483 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13484 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13485 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13486 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13487 " ' prfx
=^
$ac_symprfx"
13489 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13492 # Check to see that the pipe works correctly.
13496 cat > conftest.$ac_ext <<_LT_EOF
13501 void nm_test_func(void);
13502 void nm_test_func(void){}
13506 int main(){nm_test_var='a';nm_test_func();return(0);}
13509 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13510 (eval $ac_compile) 2>&5
13512 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13513 test $ac_status = 0; }; then
13514 # Now try to grab the symbols.
13516 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13517 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13519 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13520 test $ac_status = 0; } && test -s "$nlist"; then
13521 # Try sorting and uniquifying the output.
13522 if sort "$nlist" | uniq > "$nlist"T; then
13523 mv -f "$nlist"T "$nlist"
13528 # Make sure that we snagged all the symbols we need.
13529 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13530 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13531 cat <<_LT_EOF > conftest.$ac_ext
13537 # Now generate the symbol file.
13538 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13540 cat <<_LT_EOF >> conftest.$ac_ext
13542 /* The mapping between symbol names and symbols. */
13547 lt__PROGRAM__LTX_preloaded_symbols[] =
13549 { "@PROGRAM@
", (void *) 0 },
13551 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13552 cat <<\_LT_EOF >> conftest.$ac_ext
13556 /* This works around a problem in FreeBSD linker */
13557 #ifdef FREEBSD_WORKAROUND
13558 static const void *lt_preloaded_setup() {
13559 return lt__PROGRAM__LTX_preloaded_symbols;
13567 # Now try linking the two files.
13568 mv conftest.$ac_objext conftstm.$ac_objext
13569 lt_save_LIBS="$LIBS"
13570 lt_save_CFLAGS="$CFLAGS"
13571 LIBS="conftstm.
$ac_objext"
13572 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13573 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13574 (eval $ac_link) 2>&5
13576 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13577 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13580 LIBS="$lt_save_LIBS"
13581 CFLAGS="$lt_save_CFLAGS"
13583 echo "cannot
find nm_test_func
in $nlist" >&5
13586 echo "cannot
find nm_test_var
in $nlist" >&5
13589 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13592 echo "$progname: failed program was
:" >&5
13593 cat conftest.$ac_ext >&5
13595 rm -rf conftest* conftst*
13597 # Do not use the global_symbol_pipe unless it works.
13598 if test "$pipe_works" = yes; then
13601 lt_cv_sys_global_symbol_pipe=
13607 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13608 lt_cv_sys_global_symbol_to_cdecl=
13610 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13612 $as_echo "failed
" >&6; }
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13615 $as_echo "ok
" >&6; }
13639 # Check whether --enable-libtool-lock was given.
13640 if test "${enable_libtool_lock+set}" = set; then :
13641 enableval=$enable_libtool_lock;
13644 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13646 # Some flags need to be propagated to the compiler or linker for good
13650 # Find out which ABI we are using.
13651 echo 'int i;' > conftest.$ac_ext
13652 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13653 (eval $ac_compile) 2>&5
13655 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13656 test $ac_status = 0; }; then
13657 case `/usr/bin/file conftest.$ac_objext` in
13659 HPUX_IA64_MODE="32"
13662 HPUX_IA64_MODE="64"
13669 # Find out which ABI we are using.
13670 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13671 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13672 (eval $ac_compile) 2>&5
13674 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13675 test $ac_status = 0; }; then
13676 if test "$lt_cv_prog_gnu_ld" = yes; then
13677 case `/usr/bin/file conftest.$ac_objext` in
13679 LD="${LD-ld} -melf32bsmip"
13682 LD="${LD-ld} -melf32bmipn32"
13685 LD="${LD-ld} -melf64bmip"
13689 case `/usr/bin/file conftest.$ac_objext` in
13705 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13706 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13707 # Find out which ABI we are using.
13708 echo 'int i;' > conftest.$ac_ext
13709 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13710 (eval $ac_compile) 2>&5
13712 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13713 test $ac_status = 0; }; then
13714 case `/usr/bin/file conftest.o` in
13717 x86_64-*kfreebsd*-gnu)
13718 LD="${LD-ld} -m elf_i386_fbsd
"
13721 case `/usr/bin/file conftest.o` in
13723 LD="${LD-ld} -m elf32_x86_64
"
13726 LD="${LD-ld} -m elf_i386
"
13730 powerpc64le-*linux*)
13731 LD="${LD-ld} -m elf32lppclinux
"
13734 LD="${LD-ld} -m elf32ppclinux
"
13737 LD="${LD-ld} -m elf_s390
"
13740 LD="${LD-ld} -m elf32_sparc
"
13746 x86_64-*kfreebsd*-gnu)
13747 LD="${LD-ld} -m elf_x86_64_fbsd
"
13750 LD="${LD-ld} -m elf_x86_64
"
13753 LD="${LD-ld} -m elf64lppc
"
13756 LD="${LD-ld} -m elf64ppc
"
13758 s390*-*linux*|s390*-*tpf*)
13759 LD="${LD-ld} -m elf64_s390
"
13762 LD="${LD-ld} -m elf64_sparc
"
13772 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13773 SAVE_CFLAGS="$CFLAGS"
13774 CFLAGS="$CFLAGS -belf"
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13776 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13777 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13778 $as_echo_n "(cached
) " >&6
13781 ac_cpp='$CPP $CPPFLAGS'
13782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13797 if ac_fn_c_try_link "$LINENO"; then :
13798 lt_cv_cc_needs_belf=yes
13800 lt_cv_cc_needs_belf=no
13802 rm -f core conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
13805 ac_cpp='$CPP $CPPFLAGS'
13806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13812 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13813 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13814 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13815 CFLAGS="$SAVE_CFLAGS"
13819 # Find out which ABI we are using.
13820 echo 'int i;' > conftest.$ac_ext
13821 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13822 (eval $ac_compile) 2>&5
13824 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13825 test $ac_status = 0; }; then
13826 case `/usr/bin/file conftest.o` in
13828 case $lt_cv_prog_gnu_ld in
13829 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13831 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13843 need_locks="$enable_libtool_lock"
13847 rhapsody* | darwin*)
13848 if test -n "$ac_tool_prefix"; then
13849 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13850 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13852 $as_echo_n "checking
for $ac_word...
" >&6; }
13853 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13854 $as_echo_n "(cached
) " >&6
13856 if test -n "$DSYMUTIL"; then
13857 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13860 for as_dir in $PATH
13863 test -z "$as_dir" && as_dir=.
13864 for ac_exec_ext in '' $ac_executable_extensions; do
13865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13866 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13867 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13876 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13877 if test -n "$DSYMUTIL"; then
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13879 $as_echo "$DSYMUTIL" >&6; }
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13882 $as_echo "no
" >&6; }
13887 if test -z "$ac_cv_prog_DSYMUTIL"; then
13888 ac_ct_DSYMUTIL=$DSYMUTIL
13889 # Extract the first word of "dsymutil
", so it can be a program name with args.
13890 set dummy dsymutil; ac_word=$2
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13892 $as_echo_n "checking
for $ac_word...
" >&6; }
13893 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13894 $as_echo_n "(cached
) " >&6
13896 if test -n "$ac_ct_DSYMUTIL"; then
13897 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13900 for as_dir in $PATH
13903 test -z "$as_dir" && as_dir=.
13904 for ac_exec_ext in '' $ac_executable_extensions; do
13905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13906 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13907 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13916 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13917 if test -n "$ac_ct_DSYMUTIL"; then
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13919 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13922 $as_echo "no
" >&6; }
13925 if test "x
$ac_ct_DSYMUTIL" = x; then
13928 case $cross_compiling:$ac_tool_warned in
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13931 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13932 ac_tool_warned=yes ;;
13934 DSYMUTIL=$ac_ct_DSYMUTIL
13937 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13940 if test -n "$ac_tool_prefix"; then
13941 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13942 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13944 $as_echo_n "checking
for $ac_word...
" >&6; }
13945 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13946 $as_echo_n "(cached
) " >&6
13948 if test -n "$NMEDIT"; then
13949 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13952 for as_dir in $PATH
13955 test -z "$as_dir" && as_dir=.
13956 for ac_exec_ext in '' $ac_executable_extensions; do
13957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13958 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13959 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13968 NMEDIT=$ac_cv_prog_NMEDIT
13969 if test -n "$NMEDIT"; then
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13971 $as_echo "$NMEDIT" >&6; }
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13974 $as_echo "no
" >&6; }
13979 if test -z "$ac_cv_prog_NMEDIT"; then
13980 ac_ct_NMEDIT=$NMEDIT
13981 # Extract the first word of "nmedit
", so it can be a program name with args.
13982 set dummy nmedit; ac_word=$2
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13984 $as_echo_n "checking
for $ac_word...
" >&6; }
13985 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13986 $as_echo_n "(cached
) " >&6
13988 if test -n "$ac_ct_NMEDIT"; then
13989 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13995 test -z "$as_dir" && as_dir=.
13996 for ac_exec_ext in '' $ac_executable_extensions; do
13997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13998 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13999 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14008 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14009 if test -n "$ac_ct_NMEDIT"; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14011 $as_echo "$ac_ct_NMEDIT" >&6; }
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14014 $as_echo "no
" >&6; }
14017 if test "x
$ac_ct_NMEDIT" = x; then
14020 case $cross_compiling:$ac_tool_warned in
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14023 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14024 ac_tool_warned=yes ;;
14026 NMEDIT=$ac_ct_NMEDIT
14029 NMEDIT="$ac_cv_prog_NMEDIT"
14032 if test -n "$ac_tool_prefix"; then
14033 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14034 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14036 $as_echo_n "checking
for $ac_word...
" >&6; }
14037 if test "${ac_cv_prog_LIPO+set}" = set; then :
14038 $as_echo_n "(cached
) " >&6
14040 if test -n "$LIPO"; then
14041 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14047 test -z "$as_dir" && as_dir=.
14048 for ac_exec_ext in '' $ac_executable_extensions; do
14049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14050 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14051 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14060 LIPO=$ac_cv_prog_LIPO
14061 if test -n "$LIPO"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14063 $as_echo "$LIPO" >&6; }
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14066 $as_echo "no
" >&6; }
14071 if test -z "$ac_cv_prog_LIPO"; then
14073 # Extract the first word of "lipo
", so it can be a program name with args.
14074 set dummy lipo; ac_word=$2
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14076 $as_echo_n "checking
for $ac_word...
" >&6; }
14077 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14078 $as_echo_n "(cached
) " >&6
14080 if test -n "$ac_ct_LIPO"; then
14081 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 for as_dir in $PATH
14087 test -z "$as_dir" && as_dir=.
14088 for ac_exec_ext in '' $ac_executable_extensions; do
14089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14090 ac_cv_prog_ac_ct_LIPO="lipo
"
14091 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14100 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14101 if test -n "$ac_ct_LIPO"; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14103 $as_echo "$ac_ct_LIPO" >&6; }
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14106 $as_echo "no
" >&6; }
14109 if test "x
$ac_ct_LIPO" = x; then
14112 case $cross_compiling:$ac_tool_warned in
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14115 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14116 ac_tool_warned=yes ;;
14121 LIPO="$ac_cv_prog_LIPO"
14124 if test -n "$ac_tool_prefix"; then
14125 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14126 set dummy ${ac_tool_prefix}otool; ac_word=$2
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14128 $as_echo_n "checking
for $ac_word...
" >&6; }
14129 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14130 $as_echo_n "(cached
) " >&6
14132 if test -n "$OTOOL"; then
14133 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136 for as_dir in $PATH
14139 test -z "$as_dir" && as_dir=.
14140 for ac_exec_ext in '' $ac_executable_extensions; do
14141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14142 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14143 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14152 OTOOL=$ac_cv_prog_OTOOL
14153 if test -n "$OTOOL"; then
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14155 $as_echo "$OTOOL" >&6; }
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14158 $as_echo "no
" >&6; }
14163 if test -z "$ac_cv_prog_OTOOL"; then
14165 # Extract the first word of "otool
", so it can be a program name with args.
14166 set dummy otool; ac_word=$2
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14168 $as_echo_n "checking
for $ac_word...
" >&6; }
14169 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14170 $as_echo_n "(cached
) " >&6
14172 if test -n "$ac_ct_OTOOL"; then
14173 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14182 ac_cv_prog_ac_ct_OTOOL="otool
"
14183 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14192 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14193 if test -n "$ac_ct_OTOOL"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14195 $as_echo "$ac_ct_OTOOL" >&6; }
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14198 $as_echo "no
" >&6; }
14201 if test "x
$ac_ct_OTOOL" = x; then
14204 case $cross_compiling:$ac_tool_warned in
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14207 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14208 ac_tool_warned=yes ;;
14213 OTOOL="$ac_cv_prog_OTOOL"
14216 if test -n "$ac_tool_prefix"; then
14217 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14218 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14220 $as_echo_n "checking
for $ac_word...
" >&6; }
14221 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14222 $as_echo_n "(cached
) " >&6
14224 if test -n "$OTOOL64"; then
14225 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228 for as_dir in $PATH
14231 test -z "$as_dir" && as_dir=.
14232 for ac_exec_ext in '' $ac_executable_extensions; do
14233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14234 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14235 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14244 OTOOL64=$ac_cv_prog_OTOOL64
14245 if test -n "$OTOOL64"; then
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14247 $as_echo "$OTOOL64" >&6; }
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14250 $as_echo "no
" >&6; }
14255 if test -z "$ac_cv_prog_OTOOL64"; then
14256 ac_ct_OTOOL64=$OTOOL64
14257 # Extract the first word of "otool64
", so it can be a program name with args.
14258 set dummy otool64; ac_word=$2
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14260 $as_echo_n "checking
for $ac_word...
" >&6; }
14261 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14262 $as_echo_n "(cached
) " >&6
14264 if test -n "$ac_ct_OTOOL64"; then
14265 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14271 test -z "$as_dir" && as_dir=.
14272 for ac_exec_ext in '' $ac_executable_extensions; do
14273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14274 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14275 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14284 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14285 if test -n "$ac_ct_OTOOL64"; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14287 $as_echo "$ac_ct_OTOOL64" >&6; }
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14290 $as_echo "no
" >&6; }
14293 if test "x
$ac_ct_OTOOL64" = x; then
14296 case $cross_compiling:$ac_tool_warned in
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14299 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14300 ac_tool_warned=yes ;;
14302 OTOOL64=$ac_ct_OTOOL64
14305 OTOOL64="$ac_cv_prog_OTOOL64"
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14335 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14336 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14337 $as_echo_n "(cached
) " >&6
14339 lt_cv_apple_cc_single_mod=no
14340 if test -z "${LT_MULTI_MODULE}"; then
14341 # By default we will add the -single_module flag. You can override
14342 # by either setting the environment variable LT_MULTI_MODULE
14343 # non-empty at configure time, or by adding -multi_module to the
14345 rm -rf libconftest.dylib*
14346 echo "int foo
(void
){return 1;}" > conftest.c
14347 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14348 -dynamiclib -Wl,-single_module conftest.c
" >&5
14349 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14350 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14352 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14353 lt_cv_apple_cc_single_mod=yes
14355 cat conftest.err >&5
14357 rm -rf libconftest.dylib*
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14362 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14364 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14365 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14366 $as_echo_n "(cached
) " >&6
14368 lt_cv_ld_exported_symbols_list=no
14369 save_LDFLAGS=$LDFLAGS
14370 echo "_main
" > conftest.sym
14371 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h. */
14383 if ac_fn_c_try_link "$LINENO"; then :
14384 lt_cv_ld_exported_symbols_list=yes
14386 lt_cv_ld_exported_symbols_list=no
14388 rm -f core conftest.err conftest.$ac_objext \
14389 conftest$ac_exeext conftest.$ac_ext
14390 LDFLAGS="$save_LDFLAGS"
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14394 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14396 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14397 if test "${lt_cv_ld_force_load+set}" = set; then :
14398 $as_echo_n "(cached
) " >&6
14400 lt_cv_ld_force_load=no
14401 cat > conftest.c << _LT_EOF
14402 int forced_loaded() { return 2;}
14404 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14405 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14406 echo "$AR cru libconftest.a conftest.o
" >&5
14407 $AR cru libconftest.a conftest.o 2>&5
14408 cat > conftest.c << _LT_EOF
14409 int main() { return 0;}
14411 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14412 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14414 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14415 lt_cv_ld_force_load=yes
14417 cat conftest.err >&5
14419 rm -f conftest.err libconftest.a conftest conftest.c
14420 rm -rf conftest.dSYM
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14424 $as_echo "$lt_cv_ld_force_load" >&6; }
14426 rhapsody* | darwin1.[012])
14427 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14429 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14430 darwin*) # darwin 5.x on
14431 # if running on 10.5 or later, the deployment target defaults
14432 # to the OS version, if on x86, and 10.4, the deployment
14433 # target defaults to 10.4. Don't you love it?
14434 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14435 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14436 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14438 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14440 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14444 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14445 _lt_dar_single_mod='$single_module'
14447 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14448 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14450 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14452 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14453 _lt_dsymutil='~$DSYMUTIL $lib || :'
14460 for ac_header in dlfcn.h
14462 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14463 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14464 cat >>confdefs.h <<_ACEOF
14465 #define HAVE_DLFCN_H 1
14482 enable_win32_dll=no
14485 # Check whether --enable-shared was given.
14486 if test "${enable_shared+set}" = set; then :
14487 enableval=$enable_shared; p=${PACKAGE-default}
14489 yes) enable_shared=yes ;;
14490 no) enable_shared=no ;;
14493 # Look at the argument we got. We use all the common list separators.
14494 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14495 for pkg in $enableval; do
14497 if test "X
$pkg" = "X
$p"; then
14516 # Check whether --enable-static was given.
14517 if test "${enable_static+set}" = set; then :
14518 enableval=$enable_static; p=${PACKAGE-default}
14520 yes) enable_static=yes ;;
14521 no) enable_static=no ;;
14524 # Look at the argument we got. We use all the common list separators.
14525 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14526 for pkg in $enableval; do
14528 if test "X
$pkg" = "X
$p"; then
14548 # Check whether --with-pic was given.
14549 if test "${with_pic+set}" = set; then :
14550 withval=$with_pic; pic_mode="$withval"
14556 test -z "$pic_mode" && pic_mode=default
14564 # Check whether --enable-fast-install was given.
14565 if test "${enable_fast_install+set}" = set; then :
14566 enableval=$enable_fast_install; p=${PACKAGE-default}
14568 yes) enable_fast_install=yes ;;
14569 no) enable_fast_install=no ;;
14571 enable_fast_install=no
14572 # Look at the argument we got. We use all the common list separators.
14573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14574 for pkg in $enableval; do
14576 if test "X
$pkg" = "X
$p"; then
14577 enable_fast_install=yes
14584 enable_fast_install=yes
14597 # This can be used to rebuild libtool when needed
14598 LIBTOOL_DEPS="$ltmain"
14600 # Always use our own libtool.
14601 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14628 test -z "$LN_S" && LN_S="ln -s"
14643 if test -n "${ZSH_VERSION+set}" ; then
14644 setopt NO_GLOB_SUBST
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14648 $as_echo_n "checking
for objdir...
" >&6; }
14649 if test "${lt_cv_objdir+set}" = set; then :
14650 $as_echo_n "(cached
) " >&6
14652 rm -f .libs 2>/dev/null
14653 mkdir .libs 2>/dev/null
14654 if test -d .libs; then
14657 # MS-DOS does not allow filenames that begin with a dot.
14660 rmdir .libs 2>/dev/null
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14663 $as_echo "$lt_cv_objdir" >&6; }
14664 objdir=$lt_cv_objdir
14670 cat >>confdefs.h <<_ACEOF
14671 #define LT_OBJDIR "$lt_cv_objdir/"
14679 # AIX sometimes has problems with the GCC collect2 program. For some
14680 # reason, if we set the COLLECT_NAMES environment variable, the problems
14681 # vanish in a puff of smoke.
14682 if test "X
${COLLECT_NAMES+set}" != Xset; then
14684 export COLLECT_NAMES
14689 # Global variables:
14691 can_build_shared=yes
14693 # All known linkers require a `.a' archive for static linking (except MSVC,
14694 # which needs '.lib').
14697 with_gnu_ld="$lt_cv_prog_gnu_ld"
14700 old_CFLAGS="$CFLAGS"
14702 # Set sane defaults for various variables
14703 test -z "$CC" && CC=cc
14704 test -z "$LTCC" && LTCC=$CC
14705 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14706 test -z "$LD" && LD=ld
14707 test -z "$ac_objext" && ac_objext=o
14709 for cc_temp in $compiler""; do
14711 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14712 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14717 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14720 # Only perform the check for file, if the check method requires it
14721 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14722 case $deplibs_check_method in
14724 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14726 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14727 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14728 $as_echo_n "(cached
) " >&6
14732 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14735 lt_save_MAGIC_CMD="$MAGIC_CMD"
14736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14737 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14738 for ac_dir in $ac_dummy; do
14740 test -z "$ac_dir" && ac_dir=.
14741 if test -f $ac_dir/${ac_tool_prefix}file; then
14742 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14743 if test -n "$file_magic_test_file"; then
14744 case $deplibs_check_method in
14746 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14747 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14748 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14749 $EGREP "$file_magic_regex" > /dev/null; then
14754 *** Warning: the command libtool uses to detect shared libraries,
14755 *** $file_magic_cmd, produces output that libtool cannot recognize.
14756 *** The result is that libtool may fail to recognize shared libraries
14757 *** as such. This will affect the creation of libtool libraries that
14758 *** depend on shared libraries, but programs linked with such libtool
14759 *** libraries will work regardless of this problem. Nevertheless, you
14760 *** may want to report the problem to your system manager and/or to
14761 *** bug-libtool@gnu.org
14771 MAGIC_CMD="$lt_save_MAGIC_CMD"
14776 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14777 if test -n "$MAGIC_CMD"; then
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14779 $as_echo "$MAGIC_CMD" >&6; }
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14782 $as_echo "no
" >&6; }
14789 if test -z "$lt_cv_path_MAGIC_CMD"; then
14790 if test -n "$ac_tool_prefix"; then
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14792 $as_echo_n "checking
for file...
" >&6; }
14793 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14794 $as_echo_n "(cached
) " >&6
14798 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14801 lt_save_MAGIC_CMD="$MAGIC_CMD"
14802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14803 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14804 for ac_dir in $ac_dummy; do
14806 test -z "$ac_dir" && ac_dir=.
14807 if test -f $ac_dir/file; then
14808 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14809 if test -n "$file_magic_test_file"; then
14810 case $deplibs_check_method in
14812 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14815 $EGREP "$file_magic_regex" > /dev/null; then
14820 *** Warning: the command libtool uses to detect shared libraries,
14821 *** $file_magic_cmd, produces output that libtool cannot recognize.
14822 *** The result is that libtool may fail to recognize shared libraries
14823 *** as such. This will affect the creation of libtool libraries that
14824 *** depend on shared libraries, but programs linked with such libtool
14825 *** libraries will work regardless of this problem. Nevertheless, you
14826 *** may want to report the problem to your system manager and/or to
14827 *** bug-libtool@gnu.org
14837 MAGIC_CMD="$lt_save_MAGIC_CMD"
14842 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14843 if test -n "$MAGIC_CMD"; then
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14845 $as_echo "$MAGIC_CMD" >&6; }
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14848 $as_echo "no
" >&6; }
14861 # Use C for the default configuration in the libtool script
14865 ac_cpp='$CPP $CPPFLAGS'
14866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14871 # Source file extension for C test sources.
14874 # Object file extension for compiled C test sources.
14878 # Code to be used in simple compile tests
14879 lt_simple_compile_test_code="int some_variable
= 0;"
14881 # Code to be used in simple link tests
14882 lt_simple_link_test_code='int main(){return(0);}'
14890 # If no C compiler was specified, use CC.
14893 # If no C compiler flags were specified, use CFLAGS.
14894 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14896 # Allow CC to be a program name with arguments.
14899 # Save the default compiler, since it gets overwritten when the other
14900 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14901 compiler_DEFAULT=$CC
14903 # save warnings/boilerplate of simple test code
14904 ac_outfile=conftest.$ac_objext
14905 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14906 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14907 _lt_compiler_boilerplate=`cat conftest.err`
14910 ac_outfile=conftest.$ac_objext
14911 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14912 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14913 _lt_linker_boilerplate=`cat conftest.err`
14918 ## There is no encapsulation within the following macros, do not change
14919 ## the running order or otherwise move them around unless you know exactly
14920 ## what you are doing...
14921 if test -n "$compiler"; then
14923 lt_prog_compiler_no_builtin_flag=
14925 if test "$GCC" = yes; then
14926 case $cc_basename in
14928 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14930 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14934 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14935 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14936 $as_echo_n "(cached
) " >&6
14938 lt_cv_prog_compiler_rtti_exceptions=no
14939 ac_outfile=conftest.$ac_objext
14940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14941 lt_compiler_flag="-fno-rtti -fno-exceptions"
14942 # Insert the option either (1) after the last *FLAGS variable, or
14943 # (2) before a word containing "conftest.
", or (3) at the end.
14944 # Note that $ac_compile itself does not contain backslashes and begins
14945 # with a dollar sign (not a hyphen), so the echo should work correctly.
14946 # The option is referenced via a variable to avoid confusing sed.
14947 lt_compile=`echo "$ac_compile" | $SED \
14948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14950 -e 's:$: $lt_compiler_flag:'`
14951 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14952 (eval "$lt_compile" 2>conftest.err)
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14956 if (exit $ac_status) && test -s "$ac_outfile"; then
14957 # The compiler can only warn and ignore the option if not recognized
14958 # So say no if there are warnings other than the usual output.
14959 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14961 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14962 lt_cv_prog_compiler_rtti_exceptions=yes
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14969 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14971 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14972 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14984 lt_prog_compiler_wl=
14985 lt_prog_compiler_pic=
14986 lt_prog_compiler_static=
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14989 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14991 if test "$GCC" = yes; then
14992 lt_prog_compiler_wl='-Wl,'
14993 lt_prog_compiler_static='-static'
14997 # All AIX code is PIC.
14998 if test "$host_cpu" = ia64; then
14999 # AIX 5 now supports IA64 processor
15000 lt_prog_compiler_static='-Bstatic'
15002 lt_prog_compiler_pic='-fPIC'
15008 # see comment about AmigaOS4 .so support
15009 lt_prog_compiler_pic='-fPIC'
15012 # FIXME: we need at least 68020 code to build shared libraries, but
15013 # adding the `-m68020' flag to GCC prevents building anything better,
15015 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15021 # PIC is the default for these OSes.
15024 mingw* | cygwin* | pw32* | os2* | cegcc*)
15025 # This hack is so that the source file can tell whether it is being
15026 # built for inclusion in a dll (and should export symbols for example).
15027 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15028 # (--disable-auto-import) libraries
15029 lt_prog_compiler_pic='-DDLL_EXPORT'
15032 darwin* | rhapsody*)
15033 # PIC is the default on this platform
15034 # Common symbols not allowed in MH_DYLIB files
15035 lt_prog_compiler_pic='-fno-common'
15039 # PIC is the default for Haiku.
15040 # The "-static" flag exists, but is broken.
15041 lt_prog_compiler_static=
15045 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15046 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15047 # sets the default TLS model and affects inlining.
15053 lt_prog_compiler_pic='-fPIC'
15059 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15060 # Instead, we relocate shared libraries at runtime.
15064 # Just because we use GCC doesn't mean we suddenly get shared libraries
15065 # on systems that don't support them.
15066 lt_prog_compiler_can_build_shared=no
15071 # QNX uses GNU C++, but need to define -shared option too, otherwise
15072 # it will coredump.
15073 lt_prog_compiler_pic='-fPIC -shared'
15077 if test -d /usr/nec; then
15078 lt_prog_compiler_pic=-Kconform_pic
15083 lt_prog_compiler_pic='-fPIC'
15087 case $cc_basename in
15088 nvcc*) # Cuda Compiler Driver 2.2
15089 lt_prog_compiler_wl='-Xlinker '
15090 lt_prog_compiler_pic='-Xcompiler -fPIC'
15094 # PORTME Check for flag to pass linker flags through the system compiler.
15097 lt_prog_compiler_wl='-Wl,'
15098 if test "$host_cpu" = ia64; then
15099 # AIX 5 now supports IA64 processor
15100 lt_prog_compiler_static='-Bstatic'
15102 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15106 mingw* | cygwin* | pw32* | os2* | cegcc*)
15107 # This hack is so that the source file can tell whether it is being
15108 # built for inclusion in a dll (and should export symbols for example).
15109 lt_prog_compiler_pic='-DDLL_EXPORT'
15112 hpux9* | hpux10* | hpux11*)
15113 lt_prog_compiler_wl='-Wl,'
15114 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15115 # not for PA HP-UX.
15121 lt_prog_compiler_pic='+Z'
15124 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15125 lt_prog_compiler_static='${wl}-a ${wl}archive'
15128 irix5* | irix6* | nonstopux*)
15129 lt_prog_compiler_wl='-Wl,'
15130 # PIC (with -KPIC) is the default.
15131 lt_prog_compiler_static='-non_shared'
15134 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15135 case $cc_basename in
15136 # old Intel for x86_64 which still supported -KPIC.
15138 lt_prog_compiler_wl='-Wl,'
15139 lt_prog_compiler_pic='-KPIC'
15140 lt_prog_compiler_static='-static'
15142 # icc used to be incompatible with GCC.
15143 # ICC 10 doesn't accept -KPIC any more.
15145 lt_prog_compiler_wl='-Wl,'
15146 lt_prog_compiler_pic='-fPIC'
15147 lt_prog_compiler_static='-static'
15149 # Lahey Fortran 8.1.
15151 lt_prog_compiler_wl='-Wl,'
15152 lt_prog_compiler_pic='--shared'
15153 lt_prog_compiler_static='--static'
15155 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15156 # Portland Group compilers (*not* the Pentium gcc compiler,
15157 # which looks to be a dead project)
15158 lt_prog_compiler_wl='-Wl,'
15159 lt_prog_compiler_pic='-fpic'
15160 lt_prog_compiler_static='-Bstatic'
15163 lt_prog_compiler_wl='-Wl,'
15164 # All Alpha code is PIC.
15165 lt_prog_compiler_static='-non_shared'
15167 xl* | bgxl* | bgf* | mpixl*)
15168 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15169 lt_prog_compiler_wl='-Wl,'
15170 lt_prog_compiler_pic='-qpic'
15171 lt_prog_compiler_static='-qstaticlink'
15174 case `$CC -V 2>&1 | sed 5q` in
15175 *Sun\ F* | *Sun*Fortran*)
15176 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15177 lt_prog_compiler_pic='-KPIC'
15178 lt_prog_compiler_static='-Bstatic'
15179 lt_prog_compiler_wl=''
15183 lt_prog_compiler_pic='-KPIC'
15184 lt_prog_compiler_static='-Bstatic'
15185 lt_prog_compiler_wl='-Wl,'
15193 lt_prog_compiler_pic='-KPIC'
15194 lt_prog_compiler_static='-Bstatic'
15198 # QNX uses GNU C++, but need to define -shared option too, otherwise
15199 # it will coredump.
15200 lt_prog_compiler_pic='-fPIC -shared'
15203 osf3* | osf4* | osf5*)
15204 lt_prog_compiler_wl='-Wl,'
15205 # All OSF/1 code is PIC.
15206 lt_prog_compiler_static='-non_shared'
15210 lt_prog_compiler_static='-non_shared'
15214 lt_prog_compiler_pic='-KPIC'
15215 lt_prog_compiler_static='-Bstatic'
15216 case $cc_basename in
15217 f77* | f90* | f95*)
15218 lt_prog_compiler_wl='-Qoption ld ';;
15220 lt_prog_compiler_wl='-Wl,';;
15225 lt_prog_compiler_wl='-Qoption ld '
15226 lt_prog_compiler_pic='-PIC'
15227 lt_prog_compiler_static='-Bstatic'
15230 sysv4 | sysv4.2uw2* | sysv4.3*)
15231 lt_prog_compiler_wl='-Wl,'
15232 lt_prog_compiler_pic='-KPIC'
15233 lt_prog_compiler_static='-Bstatic'
15237 if test -d /usr/nec ;then
15238 lt_prog_compiler_pic='-Kconform_pic'
15239 lt_prog_compiler_static='-Bstatic'
15243 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15244 lt_prog_compiler_wl='-Wl,'
15245 lt_prog_compiler_pic='-KPIC'
15246 lt_prog_compiler_static='-Bstatic'
15250 lt_prog_compiler_wl='-Wl,'
15251 lt_prog_compiler_can_build_shared=no
15255 lt_prog_compiler_pic='-pic'
15256 lt_prog_compiler_static='-Bstatic'
15260 lt_prog_compiler_can_build_shared=no
15266 # For platforms which do not support PIC, -DPIC is meaningless:
15268 lt_prog_compiler_pic=
15271 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15275 $as_echo "$lt_prog_compiler_pic" >&6; }
15283 # Check to make sure the PIC flag actually works.
15285 if test -n "$lt_prog_compiler_pic"; then
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15287 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15288 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15289 $as_echo_n "(cached
) " >&6
15291 lt_cv_prog_compiler_pic_works=no
15292 ac_outfile=conftest.$ac_objext
15293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15294 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15295 # Insert the option either (1) after the last *FLAGS variable, or
15296 # (2) before a word containing "conftest.
", or (3) at the end.
15297 # Note that $ac_compile itself does not contain backslashes and begins
15298 # with a dollar sign (not a hyphen), so the echo should work correctly.
15299 # The option is referenced via a variable to avoid confusing sed.
15300 lt_compile=`echo "$ac_compile" | $SED \
15301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15303 -e 's:$: $lt_compiler_flag:'`
15304 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15305 (eval "$lt_compile" 2>conftest.err)
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15309 if (exit $ac_status) && test -s "$ac_outfile"; then
15310 # The compiler can only warn and ignore the option if not recognized
15311 # So say no if there are warnings other than the usual output.
15312 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15314 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15315 lt_cv_prog_compiler_pic_works=yes
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15322 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15324 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15325 case $lt_prog_compiler_pic in
15327 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15330 lt_prog_compiler_pic=
15331 lt_prog_compiler_can_build_shared=no
15342 # Check to make sure the static flag actually works.
15344 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15346 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15347 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15348 $as_echo_n "(cached
) " >&6
15350 lt_cv_prog_compiler_static_works=no
15351 save_LDFLAGS="$LDFLAGS"
15352 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15353 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15355 # The linker can only warn and ignore the option if not recognized
15356 # So say no if there are warnings
15357 if test -s conftest.err; then
15358 # Append any errors to the config.log.
15359 cat conftest.err 1>&5
15360 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15362 if diff conftest.exp conftest.er2 >/dev/null; then
15363 lt_cv_prog_compiler_static_works=yes
15366 lt_cv_prog_compiler_static_works=yes
15370 LDFLAGS="$save_LDFLAGS"
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15374 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15376 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15379 lt_prog_compiler_static=
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15389 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15390 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15391 $as_echo_n "(cached
) " >&6
15393 lt_cv_prog_compiler_c_o=no
15394 $RM -r conftest 2>/dev/null
15398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15400 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15401 # Insert the option either (1) after the last *FLAGS variable, or
15402 # (2) before a word containing "conftest.
", or (3) at the end.
15403 # Note that $ac_compile itself does not contain backslashes and begins
15404 # with a dollar sign (not a hyphen), so the echo should work correctly.
15405 lt_compile=`echo "$ac_compile" | $SED \
15406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15408 -e 's:$: $lt_compiler_flag:'`
15409 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15410 (eval "$lt_compile" 2>out/conftest.err)
15412 cat out/conftest.err >&5
15413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15414 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15416 # The compiler can only warn and ignore the option if not recognized
15417 # So say no if there are warnings
15418 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15419 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15420 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15421 lt_cv_prog_compiler_c_o=yes
15426 # SGI C++ compiler will create directory out/ii_files/ for
15427 # template instantiation
15428 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15429 $RM out/* && rmdir out
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15436 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15444 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15445 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15446 $as_echo_n "(cached
) " >&6
15448 lt_cv_prog_compiler_c_o=no
15449 $RM -r conftest 2>/dev/null
15453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15455 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15456 # Insert the option either (1) after the last *FLAGS variable, or
15457 # (2) before a word containing "conftest.
", or (3) at the end.
15458 # Note that $ac_compile itself does not contain backslashes and begins
15459 # with a dollar sign (not a hyphen), so the echo should work correctly.
15460 lt_compile=`echo "$ac_compile" | $SED \
15461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15463 -e 's:$: $lt_compiler_flag:'`
15464 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15465 (eval "$lt_compile" 2>out/conftest.err)
15467 cat out/conftest.err >&5
15468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15469 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15471 # The compiler can only warn and ignore the option if not recognized
15472 # So say no if there are warnings
15473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15474 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15475 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15476 lt_cv_prog_compiler_c_o=yes
15481 # SGI C++ compiler will create directory out/ii_files/ for
15482 # template instantiation
15483 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15484 $RM out/* && rmdir out
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15491 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15496 hard_links="nottested
"
15497 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15498 # do not overwrite the value of need_locks provided by the user
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15500 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15505 ln conftest.a conftest.b 2>&5 || hard_links=no
15506 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15508 $as_echo "$hard_links" >&6; }
15509 if test "$hard_links" = no; then
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15511 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15524 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15527 allow_undefined_flag=
15528 always_export_symbols=no
15530 archive_expsym_cmds=
15531 compiler_needs_object=no
15532 enable_shared_with_static_runtimes=no
15533 export_dynamic_flag_spec=
15534 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15535 hardcode_automatic=no
15537 hardcode_direct_absolute=no
15538 hardcode_libdir_flag_spec=
15539 hardcode_libdir_flag_spec_ld=
15540 hardcode_libdir_separator=
15541 hardcode_minus_L=no
15542 hardcode_shlibpath_var=unsupported
15544 link_all_deplibs=unknown
15546 module_expsym_cmds=
15547 old_archive_from_new_cmds=
15548 old_archive_from_expsyms_cmds=
15549 thread_safe_flag_spec=
15550 whole_archive_flag_spec=
15551 # include_expsyms should be a list of space-separated symbols to be *always*
15552 # included in the symbol list
15554 # exclude_expsyms can be an extended regexp of symbols to exclude
15555 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15556 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15557 # as well as any symbol that contains `d'.
15558 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15559 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15560 # platforms (ab)use it in PIC code, but their linkers get confused if
15561 # the symbol is explicitly referenced. Since portable code cannot
15562 # rely on this symbol name, it's probably fine to never include it in
15563 # preloaded symbol tables.
15564 # Exclude shared library initialization/finalization symbols.
15565 extract_expsyms_cmds=
15568 cygwin* | mingw* | pw32* | cegcc*)
15569 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15570 # When not using gcc, we currently assume that we are using
15571 # Microsoft Visual C++.
15572 if test "$GCC" != yes; then
15577 # we just hope/assume this is gcc and not c89 (= MSVC++)
15587 # On some targets, GNU ld is compatible enough with the native linker
15588 # that we're better off using the native interface for both.
15589 lt_use_gnu_ld_interface=no
15590 if test "$with_gnu_ld" = yes; then
15593 # The AIX port of GNU ld has always aspired to compatibility
15594 # with the native linker. However, as the warning in the GNU ld
15595 # block says, versions before 2.19.5* couldn't really create working
15596 # shared libraries, regardless of the interface used.
15597 case `$LD -v 2>&1` in
15598 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15599 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15600 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15602 lt_use_gnu_ld_interface=yes
15607 lt_use_gnu_ld_interface=yes
15612 if test "$lt_use_gnu_ld_interface" = yes; then
15613 # If archive_cmds runs LD, not CC, wlarc should be empty
15616 # Set some defaults for GNU ld with shared library support. These
15617 # are reset later if shared libraries are not supported. Putting them
15618 # here allows them to be overridden if necessary.
15619 runpath_var=LD_RUN_PATH
15620 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15621 export_dynamic_flag_spec='${wl}--export-dynamic'
15622 # ancient GNU ld didn't support --whole-archive et. al.
15623 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15624 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15626 whole_archive_flag_spec=
15628 supports_anon_versioning=no
15629 case `$LD -v 2>&1` in
15630 *GNU\ gold*) supports_anon_versioning=yes ;;
15631 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15632 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15633 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15634 *\ 2.11.*) ;; # other 2.11 versions
15635 *) supports_anon_versioning=yes ;;
15638 # See if GNU ld supports shared libraries.
15641 # On AIX/PPC, the GNU linker is very broken
15642 if test "$host_cpu" != ia64; then
15646 *** Warning: the GNU linker, at least up to release 2.19, is reported
15647 *** to be unable to reliably create shared libraries on AIX.
15648 *** Therefore, libtool is disabling shared libraries support. If you
15649 *** really care for shared libraries, you may want to install binutils
15650 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15651 *** You will then need to restart the configuration process.
15660 # see comment about AmigaOS4 .so support
15661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15662 archive_expsym_cmds=''
15665 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)'
15666 hardcode_libdir_flag_spec
='-L$libdir'
15667 hardcode_minus_L
=yes
15673 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15674 allow_undefined_flag
=unsupported
15675 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15676 # support --undefined. This deserves some investigation. FIXME
15677 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15683 cygwin
* | mingw
* | pw32
* | cegcc
*)
15684 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15685 # as there is no search path for DLLs.
15686 hardcode_libdir_flag_spec
='-L$libdir'
15687 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15688 allow_undefined_flag
=unsupported
15689 always_export_symbols
=no
15690 enable_shared_with_static_runtimes
=yes
15691 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15693 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15694 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15695 # If the export-symbols file already is a .def file (1st line
15696 # is EXPORTS), use it as is; otherwise, prepend...
15697 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15698 cp $export_symbols $output_objdir/$soname.def;
15700 echo EXPORTS > $output_objdir/$soname.def;
15701 cat $export_symbols >> $output_objdir/$soname.def;
15703 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15710 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15711 link_all_deplibs
=yes
15716 hardcode_shlibpath_var
=no
15717 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15718 export_dynamic_flag_spec
='${wl}-E'
15719 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15720 # Instead, shared libraries are loaded at an image base (0x10000000 by
15721 # default) and relocated if they conflict, which is a slow very memory
15722 # consuming and fragmenting process. To avoid this, we pick a random,
15723 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15724 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15725 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15726 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'
15729 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15731 if test "$host_os" = linux-dietlibc
; then
15732 case $cc_basename in
15733 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15736 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15737 && test "$tmp_diet" = no
15740 tmp_sharedflag
='-shared'
15741 case $cc_basename,$host_cpu in
15742 pgcc
*) # Portland Group C compiler
15743 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'
15744 tmp_addflag
=' $pic_flag'
15746 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15747 # Portland Group f77 and f90 compilers
15748 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'
15749 tmp_addflag
=' $pic_flag -Mnomain' ;;
15750 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15751 tmp_addflag
=' -i_dynamic' ;;
15752 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15753 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15754 ifc
* | ifort
*) # Intel Fortran compiler
15755 tmp_addflag
=' -nofor_main' ;;
15756 lf95
*) # Lahey Fortran 8.1
15757 whole_archive_flag_spec
=
15758 tmp_sharedflag
='--shared' ;;
15759 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15760 tmp_sharedflag
='-qmkshrobj'
15762 nvcc
*) # Cuda Compiler Driver 2.2
15763 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'
15764 compiler_needs_object
=yes
15767 case `$CC -V 2>&1 | sed 5q` in
15768 *Sun\ C
*) # Sun C 5.9
15769 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'
15770 compiler_needs_object
=yes
15771 tmp_sharedflag
='-G' ;;
15772 *Sun\ F
*) # Sun Fortran 8.3
15773 tmp_sharedflag
='-G' ;;
15775 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777 if test "x$supports_anon_versioning" = xyes
; then
15778 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15780 echo "local: *; };" >> $output_objdir/$libname.ver~
15781 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15784 case $cc_basename in
15785 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15786 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15787 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15788 hardcode_libdir_flag_spec
=
15789 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15790 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15791 if test "x$supports_anon_versioning" = xyes
; then
15792 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15793 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15794 echo "local: *; };" >> $output_objdir/$libname.ver~
15795 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15805 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15806 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15809 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15810 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15815 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15819 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15820 *** create shared libraries on Solaris systems. Therefore, libtool
15821 *** is disabling shared libraries support. We urge you to upgrade GNU
15822 *** binutils to release 2.9.1 or newer. Another option is to modify
15823 *** your PATH or compiler configuration so that the native linker is
15824 *** used, and then restart.
15827 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15828 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15829 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15835 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15836 case `$LD -v 2>&1` in
15837 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15841 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15842 *** reliably create shared libraries on SCO systems. Therefore, libtool
15843 *** is disabling shared libraries support. We urge you to upgrade GNU
15844 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15845 *** your PATH or compiler configuration so that the native linker is
15846 *** used, and then restart.
15851 # For security reasons, it is highly recommended that you always
15852 # use absolute paths for naming shared libraries, and exclude the
15853 # DT_RUNPATH tag from executables and libraries. But doing so
15854 # requires that you compile everything twice, which is a pain.
15855 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15856 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15857 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15858 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15867 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15869 hardcode_direct
=yes
15870 hardcode_shlibpath_var
=no
15874 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15875 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15876 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15883 if test "$ld_shlibs" = no
; then
15885 hardcode_libdir_flag_spec
=
15886 export_dynamic_flag_spec
=
15887 whole_archive_flag_spec
=
15890 # PORTME fill in a description of your system's linker (not GNU ld)
15893 allow_undefined_flag
=unsupported
15894 always_export_symbols
=yes
15895 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'
15896 # Note: this linker hardcodes the directories in LIBPATH if there
15897 # are no directories specified by -L.
15898 hardcode_minus_L
=yes
15899 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15900 # Neither direct hardcoding nor static linking is supported with a
15902 hardcode_direct
=unsupported
15907 if test "$host_cpu" = ia64
; then
15908 # On IA64, the linker does run time linking by default, so we don't
15909 # have to do anything special.
15910 aix_use_runtimelinking
=no
15911 exp_sym_flag
='-Bexport'
15914 # If we're using GNU nm, then we don't want the "-C" option.
15915 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15916 # Also, AIX nm treats weak defined symbols like other global
15917 # defined symbols, whereas GNU nm marks them as "W".
15918 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15919 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'
15921 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'
15923 aix_use_runtimelinking
=no
15925 # Test if we are trying to use run time linking or normal
15926 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15927 # need to do runtime linking.
15928 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15929 for ld_flag
in $LDFLAGS; do
15930 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15931 aix_use_runtimelinking
=yes
15938 exp_sym_flag
='-bexport'
15939 no_entry_flag
='-bnoentry'
15942 # When large executables or shared objects are built, AIX ld can
15943 # have problems creating the table of contents. If linking a library
15944 # or program results in "error TOC overflow" add -mminimal-toc to
15945 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15946 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15949 hardcode_direct
=yes
15950 hardcode_direct_absolute
=yes
15951 hardcode_libdir_separator
=':'
15952 link_all_deplibs
=yes
15953 file_list_spec
='${wl}-f,'
15955 if test "$GCC" = yes; then
15956 case $host_os in aix4.
[012]|aix4.
[012].
*)
15957 # We only want to do this on AIX 4.2 and lower, the check
15958 # below for broken collect2 doesn't work under 4.3+
15959 collect2name
=`${CC} -print-prog-name=collect2`
15960 if test -f "$collect2name" &&
15961 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15963 # We have reworked collect2
15966 # We have old collect2
15967 hardcode_direct
=unsupported
15968 # It fails to find uninstalled libraries when the uninstalled
15969 # path is not listed in the libpath. Setting hardcode_minus_L
15970 # to unsupported forces relinking
15971 hardcode_minus_L
=yes
15972 hardcode_libdir_flag_spec
='-L$libdir'
15973 hardcode_libdir_separator
=
15977 shared_flag
='-shared'
15978 if test "$aix_use_runtimelinking" = yes; then
15979 shared_flag
="$shared_flag "'${wl}-G'
15983 if test "$host_cpu" = ia64
; then
15984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15985 # chokes on -Wl,-G. The following line is correct:
15988 if test "$aix_use_runtimelinking" = yes; then
15989 shared_flag
='${wl}-G'
15991 shared_flag
='${wl}-bM:SRE'
15996 export_dynamic_flag_spec
='${wl}-bexpall'
15997 # It seems that -bexpall does not export symbols beginning with
15998 # underscore (_), so it is better to generate a list of symbols to export.
15999 always_export_symbols
=yes
16000 if test "$aix_use_runtimelinking" = yes; then
16001 # Warning - without using the other runtime loading flags (-brtl),
16002 # -berok will link without error, but may produce a broken library.
16003 allow_undefined_flag
='-berok'
16004 # Determine the default libpath from the value encoded in an
16005 # empty executable.
16006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16017 if ac_fn_c_try_link
"$LINENO"; then :
16019 lt_aix_libpath_sed
='
16020 /Import File Strings/,/^$/ {
16026 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16027 # Check for a 64-bit object if we didn't find anything.
16028 if test -z "$aix_libpath"; then
16029 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16032 rm -f core conftest.err conftest.
$ac_objext \
16033 conftest
$ac_exeext conftest.
$ac_ext
16034 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16036 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16037 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"
16039 if test "$host_cpu" = ia64
; then
16040 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16041 allow_undefined_flag
="-z nodefs"
16042 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"
16044 # Determine the default libpath from the value encoded in an
16045 # empty executable.
16046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h. */
16057 if ac_fn_c_try_link
"$LINENO"; then :
16059 lt_aix_libpath_sed
='
16060 /Import File Strings/,/^$/ {
16066 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16067 # Check for a 64-bit object if we didn't find anything.
16068 if test -z "$aix_libpath"; then
16069 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16072 rm -f core conftest.err conftest.
$ac_objext \
16073 conftest
$ac_exeext conftest.
$ac_ext
16074 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16076 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16077 # Warning - without using the other run time loading flags,
16078 # -berok will link without error, but may produce a broken library.
16079 no_undefined_flag
=' ${wl}-bernotok'
16080 allow_undefined_flag
=' ${wl}-berok'
16081 if test "$with_gnu_ld" = yes; then
16082 # We only use this code for GNU lds that support --whole-archive.
16083 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16085 # Exported symbols can be pulled into shared objects from archives
16086 whole_archive_flag_spec
='$convenience'
16088 archive_cmds_need_lc
=yes
16089 # This is similar to how AIX traditionally builds its shared libraries.
16090 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'
16098 # see comment about AmigaOS4 .so support
16099 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16100 archive_expsym_cmds
=''
16103 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)'
16104 hardcode_libdir_flag_spec
='-L$libdir'
16105 hardcode_minus_L
=yes
16111 export_dynamic_flag_spec
=-rdynamic
16114 cygwin
* | mingw
* | pw32
* | cegcc
*)
16115 # When not using gcc, we currently assume that we are using
16116 # Microsoft Visual C++.
16117 # hardcode_libdir_flag_spec is actually meaningless, as there is
16118 # no search path for DLLs.
16119 hardcode_libdir_flag_spec
=' '
16120 allow_undefined_flag
=unsupported
16121 # Tell ltmain to make .lib files, not .a files.
16123 # Tell ltmain to make .dll files, not .so files.
16125 # FIXME: Setting linknames here is a bad hack.
16126 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16127 # The linker will automatically build a .lib file if we build a DLL.
16128 old_archive_from_new_cmds
='true'
16129 # FIXME: Should let the user specify the lib program.
16130 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16131 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16132 enable_shared_with_static_runtimes
=yes
16135 darwin
* | rhapsody
*)
16138 archive_cmds_need_lc
=no
16140 hardcode_automatic
=yes
16141 hardcode_shlibpath_var
=unsupported
16142 if test "$lt_cv_ld_force_load" = "yes"; then
16143 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\"`'
16145 whole_archive_flag_spec
=''
16147 link_all_deplibs
=yes
16148 allow_undefined_flag
="$_lt_dar_allow_undefined"
16149 case $cc_basename in
16150 ifort
*) _lt_dar_can_shared
=yes ;;
16151 *) _lt_dar_can_shared
=$GCC ;;
16153 if test "$_lt_dar_can_shared" = "yes"; then
16154 output_verbose_link_cmd
=func_echo_all
16155 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16156 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16157 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}"
16158 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}"
16167 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16168 hardcode_libdir_flag_spec
='-L$libdir'
16169 hardcode_shlibpath_var
=no
16172 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16173 # support. Future versions do this automatically, but an explicit c++rt0.o
16174 # does not break anything, and helps significantly (at the cost of a little
16177 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16178 hardcode_libdir_flag_spec
='-R$libdir'
16179 hardcode_direct
=yes
16180 hardcode_shlibpath_var
=no
16183 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16185 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16186 hardcode_direct
=yes
16187 hardcode_minus_L
=yes
16188 hardcode_shlibpath_var
=no
16191 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16192 freebsd
* | dragonfly
*)
16193 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16194 hardcode_libdir_flag_spec
='-R$libdir'
16195 hardcode_direct
=yes
16196 hardcode_shlibpath_var
=no
16200 if test "$GCC" = yes; then
16201 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'
16203 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'
16205 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16206 hardcode_libdir_separator
=:
16207 hardcode_direct
=yes
16209 # hardcode_minus_L: Not really in the search PATH,
16210 # but as the default location of the library.
16211 hardcode_minus_L
=yes
16212 export_dynamic_flag_spec
='${wl}-E'
16216 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16217 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16219 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16221 if test "$with_gnu_ld" = no
; then
16222 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16223 hardcode_libdir_flag_spec_ld
='+b $libdir'
16224 hardcode_libdir_separator
=:
16225 hardcode_direct
=yes
16226 hardcode_direct_absolute
=yes
16227 export_dynamic_flag_spec
='${wl}-E'
16228 # hardcode_minus_L: Not really in the search PATH,
16229 # but as the default location of the library.
16230 hardcode_minus_L
=yes
16235 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16238 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16241 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16244 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16250 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16253 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16257 # Older versions of the 11.00 compiler do not understand -b yet
16258 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16260 $as_echo_n "checking if $CC understands -b... " >&6; }
16261 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16262 $as_echo_n "(cached) " >&6
16264 lt_cv_prog_compiler__b
=no
16265 save_LDFLAGS
="$LDFLAGS"
16266 LDFLAGS
="$LDFLAGS -b"
16267 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16268 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16269 # The linker can only warn and ignore the option if not recognized
16270 # So say no if there are warnings
16271 if test -s conftest.err
; then
16272 # Append any errors to the config.log.
16273 cat conftest.err
1>&5
16274 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16275 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16276 if diff conftest.exp conftest.er2
>/dev
/null
; then
16277 lt_cv_prog_compiler__b
=yes
16280 lt_cv_prog_compiler__b
=yes
16284 LDFLAGS
="$save_LDFLAGS"
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16288 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16290 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16291 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16293 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16299 if test "$with_gnu_ld" = no
; then
16300 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16301 hardcode_libdir_separator
=:
16306 hardcode_shlibpath_var
=no
16309 hardcode_direct
=yes
16310 hardcode_direct_absolute
=yes
16311 export_dynamic_flag_spec
='${wl}-E'
16313 # hardcode_minus_L: Not really in the search PATH,
16314 # but as the default location of the library.
16315 hardcode_minus_L
=yes
16321 irix5
* | irix6
* | nonstopux
*)
16322 if test "$GCC" = yes; then
16323 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'
16324 # Try to use the -exported_symbol ld option, if it does not
16325 # work, assume that -exports_file does not work either and
16326 # implicitly export all symbols.
16327 save_LDFLAGS
="$LDFLAGS"
16328 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16330 /* end confdefs.h. */
16333 if ac_fn_c_try_link
"$LINENO"; then :
16334 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'
16337 rm -f core conftest.err conftest.
$ac_objext \
16338 conftest
$ac_exeext conftest.
$ac_ext
16339 LDFLAGS
="$save_LDFLAGS"
16341 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'
16342 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'
16344 archive_cmds_need_lc
='no'
16345 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16346 hardcode_libdir_separator
=:
16348 link_all_deplibs
=yes
16352 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16353 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16355 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16357 hardcode_libdir_flag_spec
='-R$libdir'
16358 hardcode_direct
=yes
16359 hardcode_shlibpath_var
=no
16363 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16364 hardcode_direct
=yes
16365 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16366 hardcode_libdir_separator
=:
16367 hardcode_shlibpath_var
=no
16374 if test -f /usr
/libexec
/ld.so
; then
16375 hardcode_direct
=yes
16376 hardcode_shlibpath_var
=no
16377 hardcode_direct_absolute
=yes
16378 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16379 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16380 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16381 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16382 export_dynamic_flag_spec
='${wl}-E'
16385 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16386 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16387 hardcode_libdir_flag_spec
='-R$libdir'
16390 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16391 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16401 hardcode_libdir_flag_spec
='-L$libdir'
16402 hardcode_minus_L
=yes
16403 allow_undefined_flag
=unsupported
16404 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'
16405 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16409 if test "$GCC" = yes; then
16410 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16411 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'
16413 allow_undefined_flag
=' -expect_unresolved \*'
16414 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'
16416 archive_cmds_need_lc
='no'
16417 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16418 hardcode_libdir_separator
=:
16421 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16422 if test "$GCC" = yes; then
16423 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16424 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'
16425 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16427 allow_undefined_flag
=' -expect_unresolved \*'
16428 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'
16429 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~
16430 $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'
16432 # Both c and cxx compiler support -rpath directly
16433 hardcode_libdir_flag_spec
='-rpath $libdir'
16435 archive_cmds_need_lc
='no'
16436 hardcode_libdir_separator
=:
16440 no_undefined_flag
=' -z defs'
16441 if test "$GCC" = yes; then
16443 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16444 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16445 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16447 case `$CC -V 2>&1` in
16450 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16451 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16452 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16456 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16457 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16458 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16462 hardcode_libdir_flag_spec
='-R$libdir'
16463 hardcode_shlibpath_var
=no
16465 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16467 # The compiler driver will combine and reorder linker options,
16468 # but understands `-z linker_flag'. GCC discards it without `$wl',
16469 # but is careful enough not to reorder.
16470 # Supported since Solaris 2.6 (maybe 2.5.1?)
16471 if test "$GCC" = yes; then
16472 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16474 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16478 link_all_deplibs
=yes
16482 if test "x$host_vendor" = xsequent
; then
16483 # Use $CC to link under sequent, because it throws in some extra .o
16484 # files that make .init and .fini sections work.
16485 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16487 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16489 hardcode_libdir_flag_spec
='-L$libdir'
16490 hardcode_direct
=yes
16491 hardcode_minus_L
=yes
16492 hardcode_shlibpath_var
=no
16496 case $host_vendor in
16498 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16499 hardcode_direct
=yes # is this really true???
16502 ## LD is ld it makes a PLAMLIB
16503 ## CC just makes a GrossModule.
16504 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16505 reload_cmds
='$CC -r -o $output$reload_objs'
16509 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16510 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16513 runpath_var
='LD_RUN_PATH'
16514 hardcode_shlibpath_var
=no
16518 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16519 hardcode_shlibpath_var
=no
16520 export_dynamic_flag_spec
='-Bexport'
16524 if test -d /usr
/nec
; then
16525 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16526 hardcode_shlibpath_var
=no
16527 runpath_var
=LD_RUN_PATH
16528 hardcode_runpath_var
=yes
16533 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16534 no_undefined_flag
='${wl}-z,text'
16535 archive_cmds_need_lc
=no
16536 hardcode_shlibpath_var
=no
16537 runpath_var
='LD_RUN_PATH'
16539 if test "$GCC" = yes; then
16540 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16541 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16543 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16544 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16548 sysv5
* | sco3.2v5
* | sco5v6
*)
16549 # Note: We can NOT use -z defs as we might desire, because we do not
16550 # link with -lc, and that would cause any symbols used from libc to
16551 # always be unresolved, which means just about no library would
16552 # ever link correctly. If we're not using GNU ld we use -z text
16553 # though, which does catch some bad symbols but isn't as heavy-handed
16555 no_undefined_flag
='${wl}-z,text'
16556 allow_undefined_flag
='${wl}-z,nodefs'
16557 archive_cmds_need_lc
=no
16558 hardcode_shlibpath_var
=no
16559 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16560 hardcode_libdir_separator
=':'
16561 link_all_deplibs
=yes
16562 export_dynamic_flag_spec
='${wl}-Bexport'
16563 runpath_var
='LD_RUN_PATH'
16565 if test "$GCC" = yes; then
16566 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16567 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16570 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16575 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16576 hardcode_libdir_flag_spec
='-L$libdir'
16577 hardcode_shlibpath_var
=no
16585 if test x
$host_vendor = xsni
; then
16587 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16588 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16595 $as_echo "$ld_shlibs" >&6; }
16596 test "$ld_shlibs" = no
&& can_build_shared
=no
16598 with_gnu_ld
=$with_gnu_ld
16615 # Do we need to explicitly link libc?
16617 case "x$archive_cmds_need_lc" in
16619 # Assume -lc should be added
16620 archive_cmds_need_lc
=yes
16622 if test "$enable_shared" = yes && test "$GCC" = yes; then
16623 case $archive_cmds in
16625 # FIXME: we may have to deal with multi-command sequences.
16628 # Test whether the compiler implicitly links with -lc since on some
16629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16630 # to ld, don't add -lc before -lgcc.
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16632 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16633 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16634 $as_echo_n "(cached) " >&6
16637 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16640 (eval $ac_compile) 2>&5
16642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16643 test $ac_status = 0; } 2>conftest.err
; then
16646 libobjs
=conftest.
$ac_objext
16648 wl
=$lt_prog_compiler_wl
16649 pic_flag
=$lt_prog_compiler_pic
16655 lt_save_allow_undefined_flag
=$allow_undefined_flag
16656 allow_undefined_flag
=
16657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16658 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16661 test $ac_status = 0; }
16663 lt_cv_archive_cmds_need_lc
=no
16665 lt_cv_archive_cmds_need_lc
=yes
16667 allow_undefined_flag
=$lt_save_allow_undefined_flag
16669 cat conftest.err
1>&5
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16675 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16676 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16840 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16842 if test "$GCC" = yes; then
16844 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16845 *) lt_awk_arg
="/^libraries:/" ;;
16848 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16849 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16851 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16852 case $lt_search_path_spec in
16854 # if the path contains ";" then we assume it to be the separator
16855 # otherwise default to the standard path separator (i.e. ":") - it is
16856 # assumed that no part of a normal pathname contains ";" but that should
16857 # okay in the real world where ";" in dirpaths is itself problematic.
16858 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16861 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16864 # Ok, now we have the path, separated by spaces, we can step through it
16865 # and add multilib dir if necessary.
16866 lt_tmp_lt_search_path_spec
=
16867 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16868 for lt_sys_path
in $lt_search_path_spec; do
16869 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16870 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16872 test -d "$lt_sys_path" && \
16873 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16876 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16877 BEGIN {RS=" "; FS="/|\n";} {
16880 for (lt_i = NF; lt_i > 0; lt_i--) {
16881 if ($lt_i != "" && $lt_i != ".") {
16882 if ($lt_i == "..") {
16885 if (lt_count == 0) {
16886 lt_foo="/" $lt_i lt_foo;
16893 if (lt_foo != "") { lt_freq[lt_foo]++; }
16894 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16896 # AWK program above erroneously prepends '/' to C:/dos/paths
16899 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16900 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16902 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16904 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16906 library_names_spec
=
16907 libname_spec
='lib$name'
16911 postuninstall_cmds
=
16915 shlibpath_overrides_runpath
=unknown
16917 dynamic_linker
="$host_os ld.so"
16918 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16919 need_lib_prefix
=unknown
16920 hardcode_into_libs
=no
16922 # when you set need_version to no, make sure it does not cause -set_version
16923 # flags to be left without arguments
16924 need_version
=unknown
16929 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16930 shlibpath_var
=LIBPATH
16932 # AIX 3 has no versioning support, so we append a major version to the name.
16933 soname_spec
='${libname}${release}${shared_ext}$major'
16940 hardcode_into_libs
=yes
16941 if test "$host_cpu" = ia64
; then
16942 # AIX 5 supports IA64
16943 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16944 shlibpath_var
=LD_LIBRARY_PATH
16946 # With GCC up to 2.95.x, collect2 would create an import file
16947 # for dependence libraries. The import file would start with
16948 # the line `#! .'. This would cause the generated library to
16949 # depend on `.', always an invalid library. This was fixed in
16950 # development snapshots of GCC prior to 3.0.
16952 aix4 | aix4.
[01] | aix4.
[01].
*)
16953 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16955 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16958 can_build_shared
=no
16962 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16963 # soname into executable. Probably we can add versioning support to
16964 # collect2, so additional links can be useful in future.
16965 if test "$aix_use_runtimelinking" = yes; then
16966 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16967 # instead of lib<name>.a to let people know that these are not
16968 # typical AIX shared libraries.
16969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971 # We preserve .a as extension for shared libraries through AIX4.2
16972 # and later when we are not doing run time linking.
16973 library_names_spec
='${libname}${release}.a $libname.a'
16974 soname_spec
='${libname}${release}${shared_ext}$major'
16976 shlibpath_var
=LIBPATH
16983 # Since July 2007 AmigaOS4 officially supports .so libraries.
16984 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988 library_names_spec
='$libname.ixlibrary $libname.a'
16989 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16990 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'
16996 library_names_spec
='${libname}${shared_ext}'
16997 dynamic_linker
="$host_os ld.so"
16998 shlibpath_var
=LIBRARY_PATH
17004 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005 soname_spec
='${libname}${release}${shared_ext}$major'
17006 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17007 shlibpath_var
=LD_LIBRARY_PATH
17008 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17009 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17010 # the default ld.so.conf also contains /usr/contrib/lib and
17011 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17012 # libtool to hard-code these into programs
17015 cygwin
* | mingw
* | pw32
* | cegcc
*)
17016 version_type
=windows
17021 case $GCC,$host_os in
17022 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17023 library_names_spec
='$libname.dll.a'
17024 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17025 postinstall_cmds
='base_file=`basename \${file}`~
17026 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17027 dldir=$destdir/`dirname \$dlpath`~
17028 test -d \$dldir || mkdir -p \$dldir~
17029 $install_prog $dir/$dlname \$dldir/$dlname~
17030 chmod a+x \$dldir/$dlname~
17031 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17032 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17034 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17035 dlpath=$dir/\$dldll~
17037 shlibpath_overrides_runpath
=yes
17041 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17042 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17044 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17047 # MinGW DLLs use traditional 'lib' prefix
17048 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17051 # pw32 DLLs use 'pw' prefix rather than 'lib'
17052 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17058 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17061 dynamic_linker
='Win32 ld.exe'
17062 # FIXME: first we should search . and the directory the executable is in
17066 darwin
* | rhapsody
*)
17067 dynamic_linker
="$host_os dyld"
17068 version_type
=darwin
17071 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17072 soname_spec
='${libname}${release}${major}$shared_ext'
17073 shlibpath_overrides_runpath
=yes
17074 shlibpath_var
=DYLD_LIBRARY_PATH
17075 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17077 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17078 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17085 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17086 soname_spec
='${libname}${release}${shared_ext}$major'
17087 shlibpath_var
=LD_LIBRARY_PATH
17090 freebsd
* | dragonfly
*)
17091 # DragonFly does not have aout. When/if they implement a new
17092 # versioning mechanism, adjust this.
17093 if test -x /usr
/bin
/objformat
; then
17094 objformat
=`/usr/bin/objformat`
17097 freebsd
[23].
*) objformat
=aout
;;
17098 *) objformat
=elf
;;
17101 version_type
=freebsd-
$objformat
17102 case $version_type in
17104 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17109 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17113 shlibpath_var
=LD_LIBRARY_PATH
17116 shlibpath_overrides_runpath
=yes
17118 freebsd3.
[01]* | freebsdelf3.
[01]*)
17119 shlibpath_overrides_runpath
=yes
17120 hardcode_into_libs
=yes
17122 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17123 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17124 shlibpath_overrides_runpath
=no
17125 hardcode_into_libs
=yes
17127 *) # from 4.6 on, and DragonFly
17128 shlibpath_overrides_runpath
=yes
17129 hardcode_into_libs
=yes
17138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17139 soname_spec
='${libname}${release}${shared_ext}$major'
17140 shlibpath_var
=LD_LIBRARY_PATH
17141 hardcode_into_libs
=yes
17148 dynamic_linker
="$host_os runtime_loader"
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'
17151 shlibpath_var
=LIBRARY_PATH
17152 shlibpath_overrides_runpath
=yes
17153 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17154 hardcode_into_libs
=yes
17157 hpux9
* | hpux10
* | hpux11
*)
17158 # Give a soname corresponding to the major version so that dld.sl refuses to
17159 # link against other versions.
17166 hardcode_into_libs
=yes
17167 dynamic_linker
="$host_os dld.so"
17168 shlibpath_var
=LD_LIBRARY_PATH
17169 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 soname_spec
='${libname}${release}${shared_ext}$major'
17172 if test "X$HPUX_IA64_MODE" = X32
; then
17173 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17175 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17177 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17181 hardcode_into_libs
=yes
17182 dynamic_linker
="$host_os dld.sl"
17183 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17184 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17186 soname_spec
='${libname}${release}${shared_ext}$major'
17187 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17188 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17192 dynamic_linker
="$host_os dld.sl"
17193 shlibpath_var
=SHLIB_PATH
17194 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196 soname_spec
='${libname}${release}${shared_ext}$major'
17199 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17200 postinstall_cmds
='chmod 555 $lib'
17201 # or fails outright, so override atomically:
17202 install_override_mode
=555
17209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17210 soname_spec
='${libname}${release}${shared_ext}$major'
17211 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17212 shlibpath_var
=LD_LIBRARY_PATH
17213 shlibpath_overrides_runpath
=no
17214 hardcode_into_libs
=yes
17217 irix5
* | irix6
* | nonstopux
*)
17219 nonstopux
*) version_type
=nonstopux
;;
17221 if test "$lt_cv_prog_gnu_ld" = yes; then
17229 soname_spec
='${libname}${release}${shared_ext}$major'
17230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17232 irix5
* | nonstopux
*)
17233 libsuff
= shlibsuff
=
17236 case $LD in # libtool.m4 will add one of these switches to LD
17237 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17238 libsuff
= shlibsuff
= libmagic
=32-bit;;
17239 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17240 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17241 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17242 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17243 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17247 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17248 shlibpath_overrides_runpath
=no
17249 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17250 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17251 hardcode_into_libs
=yes
17254 # No shared lib support for Linux oldld, aout, or coff.
17255 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17259 # This must be Linux ELF.
17260 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17265 soname_spec
='${libname}${release}${shared_ext}$major'
17266 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17267 shlibpath_var
=LD_LIBRARY_PATH
17268 shlibpath_overrides_runpath
=no
17270 # Some binutils ld are patched to set DT_RUNPATH
17271 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17272 $as_echo_n "(cached) " >&6
17274 lt_cv_shlibpath_overrides_runpath
=no
17275 save_LDFLAGS
=$LDFLAGS
17276 save_libdir
=$libdir
17277 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17278 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17280 /* end confdefs.h. */
17290 if ac_fn_c_try_link
"$LINENO"; then :
17291 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17292 lt_cv_shlibpath_overrides_runpath
=yes
17295 rm -f core conftest.err conftest.
$ac_objext \
17296 conftest
$ac_exeext conftest.
$ac_ext
17297 LDFLAGS
=$save_LDFLAGS
17298 libdir
=$save_libdir
17302 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17304 # This implies no fast_install, which is unacceptable.
17305 # Some rework will be needed to allow for fast_install
17306 # before this can be enabled.
17307 hardcode_into_libs
=yes
17309 # Append ld.so.conf contents to the search path
17310 if test -f /etc
/ld.so.conf
; then
17311 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' ' '`
17312 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17315 # We used to test for /lib/ld.so.1 and disable shared libraries on
17316 # powerpc, because MkLinux only supported shared libraries with the
17317 # GNU dynamic linker. Since this was broken with cross compilers,
17318 # most powerpc-linux boxes support dynamic linking these days and
17319 # people can always --disable-shared, the test was removed, and we
17320 # assume the GNU/Linux dynamic linker is in use.
17321 dynamic_linker
='GNU/Linux ld.so'
17328 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17330 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17331 dynamic_linker
='NetBSD (a.out) ld.so'
17333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17334 soname_spec
='${libname}${release}${shared_ext}$major'
17335 dynamic_linker
='NetBSD ld.elf_so'
17337 shlibpath_var
=LD_LIBRARY_PATH
17338 shlibpath_overrides_runpath
=yes
17339 hardcode_into_libs
=yes
17344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345 shlibpath_var
=LD_LIBRARY_PATH
17346 shlibpath_overrides_runpath
=yes
17353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17354 soname_spec
='${libname}${release}${shared_ext}$major'
17355 shlibpath_var
=LD_LIBRARY_PATH
17356 shlibpath_overrides_runpath
=no
17357 hardcode_into_libs
=yes
17358 dynamic_linker
='ldqnx.so'
17363 sys_lib_dlsearch_path_spec
="/usr/lib"
17365 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17367 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17368 *) need_version
=no
;;
17370 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17371 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17372 shlibpath_var
=LD_LIBRARY_PATH
17373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17375 openbsd2.
[89] | openbsd2.
[89].
*)
17376 shlibpath_overrides_runpath
=no
17379 shlibpath_overrides_runpath
=yes
17383 shlibpath_overrides_runpath
=yes
17388 libname_spec
='$name'
17391 library_names_spec
='$libname${shared_ext} $libname.a'
17392 dynamic_linker
='OS/2 ld.exe'
17393 shlibpath_var
=LIBPATH
17396 osf3
* | osf4
* | osf5
*)
17400 soname_spec
='${libname}${release}${shared_ext}$major'
17401 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17402 shlibpath_var
=LD_LIBRARY_PATH
17403 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17404 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17415 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17416 soname_spec
='${libname}${release}${shared_ext}$major'
17417 shlibpath_var
=LD_LIBRARY_PATH
17418 shlibpath_overrides_runpath
=yes
17419 hardcode_into_libs
=yes
17420 # ldd complains unless libraries are executable
17421 postinstall_cmds
='chmod +x $lib'
17426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17427 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17428 shlibpath_var
=LD_LIBRARY_PATH
17429 shlibpath_overrides_runpath
=yes
17430 if test "$with_gnu_ld" = yes; then
17438 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17439 soname_spec
='${libname}${release}${shared_ext}$major'
17440 shlibpath_var
=LD_LIBRARY_PATH
17441 case $host_vendor in
17443 shlibpath_overrides_runpath
=no
17445 runpath_var
=LD_RUN_PATH
17453 shlibpath_overrides_runpath
=no
17454 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17460 if test -d /usr
/nec
;then
17462 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17463 soname_spec
='$libname${shared_ext}.$major'
17464 shlibpath_var
=LD_LIBRARY_PATH
17468 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17469 version_type
=freebsd-elf
17472 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17473 soname_spec
='${libname}${release}${shared_ext}$major'
17474 shlibpath_var
=LD_LIBRARY_PATH
17475 shlibpath_overrides_runpath
=yes
17476 hardcode_into_libs
=yes
17477 if test "$with_gnu_ld" = yes; then
17478 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17480 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17483 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17487 sys_lib_dlsearch_path_spec
='/usr/lib'
17491 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17495 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17496 shlibpath_var
=LD_LIBRARY_PATH
17497 shlibpath_overrides_runpath
=no
17498 hardcode_into_libs
=yes
17503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17504 soname_spec
='${libname}${release}${shared_ext}$major'
17505 shlibpath_var
=LD_LIBRARY_PATH
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17513 $as_echo "$dynamic_linker" >&6; }
17514 test "$dynamic_linker" = no
&& can_build_shared
=no
17516 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17517 if test "$GCC" = yes; then
17518 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17521 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17522 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17524 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17525 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17620 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17622 if test -n "$hardcode_libdir_flag_spec" ||
17623 test -n "$runpath_var" ||
17624 test "X$hardcode_automatic" = "Xyes" ; then
17626 # We can hardcode non-existent directories.
17627 if test "$hardcode_direct" != no
&&
17628 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17629 # have to relink, otherwise we might link with an installed library
17630 # when we should be linking with a yet-to-be-installed one
17631 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17632 test "$hardcode_minus_L" != no
; then
17633 # Linking always hardcodes the temporary library directory.
17634 hardcode_action
=relink
17636 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17637 hardcode_action
=immediate
17640 # We cannot hardcode anything, or else we can only hardcode existing
17642 hardcode_action
=unsupported
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17645 $as_echo "$hardcode_action" >&6; }
17647 if test "$hardcode_action" = relink ||
17648 test "$inherit_rpath" = yes; then
17649 # Fast installation is not supported
17650 enable_fast_install
=no
17651 elif test "$shlibpath_overrides_runpath" = yes ||
17652 test "$enable_shared" = no
; then
17653 # Fast installation is not necessary
17654 enable_fast_install
=needless
17662 if test "x$enable_dlopen" != xyes
; then
17663 enable_dlopen
=unknown
17664 enable_dlopen_self
=unknown
17665 enable_dlopen_self_static
=unknown
17672 lt_cv_dlopen
="load_add_on"
17674 lt_cv_dlopen_self
=yes
17677 mingw
* | pw32
* | cegcc
*)
17678 lt_cv_dlopen
="LoadLibrary"
17683 lt_cv_dlopen
="dlopen"
17688 # if libdl is installed we need to link against it
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17690 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17691 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17692 $as_echo_n "(cached) " >&6
17694 ac_check_lib_save_LIBS
=$LIBS
17696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h. */
17699 /* Override any GCC internal prototype to avoid an error.
17700 Use char because int might match the return type of a GCC
17701 builtin and then its argument prototype would still apply. */
17714 if ac_fn_c_try_link
"$LINENO"; then :
17715 ac_cv_lib_dl_dlopen
=yes
17717 ac_cv_lib_dl_dlopen
=no
17719 rm -f core conftest.err conftest.
$ac_objext \
17720 conftest
$ac_exeext conftest.
$ac_ext
17721 LIBS
=$ac_check_lib_save_LIBS
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17724 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17725 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17726 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17729 lt_cv_dlopen
="dyld"
17731 lt_cv_dlopen_self
=yes
17738 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17739 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17740 lt_cv_dlopen
="shl_load"
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17743 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17744 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17745 $as_echo_n "(cached) " >&6
17747 ac_check_lib_save_LIBS
=$LIBS
17749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17750 /* end confdefs.h. */
17752 /* Override any GCC internal prototype to avoid an error.
17753 Use char because int might match the return type of a GCC
17754 builtin and then its argument prototype would still apply. */
17762 return shl_load ();
17767 if ac_fn_c_try_link
"$LINENO"; then :
17768 ac_cv_lib_dld_shl_load
=yes
17770 ac_cv_lib_dld_shl_load
=no
17772 rm -f core conftest.err conftest.
$ac_objext \
17773 conftest
$ac_exeext conftest.
$ac_ext
17774 LIBS
=$ac_check_lib_save_LIBS
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17777 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17778 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17779 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17781 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17782 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17783 lt_cv_dlopen
="dlopen"
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17786 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17787 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17788 $as_echo_n "(cached) " >&6
17790 ac_check_lib_save_LIBS
=$LIBS
17792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17793 /* end confdefs.h. */
17795 /* Override any GCC internal prototype to avoid an error.
17796 Use char because int might match the return type of a GCC
17797 builtin and then its argument prototype would still apply. */
17810 if ac_fn_c_try_link
"$LINENO"; then :
17811 ac_cv_lib_dl_dlopen
=yes
17813 ac_cv_lib_dl_dlopen
=no
17815 rm -f core conftest.err conftest.
$ac_objext \
17816 conftest
$ac_exeext conftest.
$ac_ext
17817 LIBS
=$ac_check_lib_save_LIBS
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17820 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17821 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17822 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17825 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17826 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17827 $as_echo_n "(cached) " >&6
17829 ac_check_lib_save_LIBS
=$LIBS
17830 LIBS
="-lsvld $LIBS"
17831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17832 /* end confdefs.h. */
17834 /* Override any GCC internal prototype to avoid an error.
17835 Use char because int might match the return type of a GCC
17836 builtin and then its argument prototype would still apply. */
17849 if ac_fn_c_try_link
"$LINENO"; then :
17850 ac_cv_lib_svld_dlopen
=yes
17852 ac_cv_lib_svld_dlopen
=no
17854 rm -f core conftest.err conftest.
$ac_objext \
17855 conftest
$ac_exeext conftest.
$ac_ext
17856 LIBS
=$ac_check_lib_save_LIBS
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17859 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17860 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17861 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17864 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17865 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17866 $as_echo_n "(cached) " >&6
17868 ac_check_lib_save_LIBS
=$LIBS
17870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17871 /* end confdefs.h. */
17873 /* Override any GCC internal prototype to avoid an error.
17874 Use char because int might match the return type of a GCC
17875 builtin and then its argument prototype would still apply. */
17883 return dld_link ();
17888 if ac_fn_c_try_link
"$LINENO"; then :
17889 ac_cv_lib_dld_dld_link
=yes
17891 ac_cv_lib_dld_dld_link
=no
17893 rm -f core conftest.err conftest.
$ac_objext \
17894 conftest
$ac_exeext conftest.
$ac_ext
17895 LIBS
=$ac_check_lib_save_LIBS
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17898 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17899 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17900 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17921 if test "x$lt_cv_dlopen" != xno
; then
17927 case $lt_cv_dlopen in
17929 save_CPPFLAGS
="$CPPFLAGS"
17930 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17932 save_LDFLAGS
="$LDFLAGS"
17933 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17936 LIBS
="$lt_cv_dlopen_libs $LIBS"
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17939 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17940 if test "${lt_cv_dlopen_self+set}" = set; then :
17941 $as_echo_n "(cached) " >&6
17943 if test "$cross_compiling" = yes; then :
17944 lt_cv_dlopen_self
=cross
17946 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17947 lt_status
=$lt_dlunknown
17948 cat > conftest.
$ac_ext <<_LT_EOF
17949 #line 17949 "configure"
17950 #include "confdefs.h"
17959 # define LT_DLGLOBAL RTLD_GLOBAL
17962 # define LT_DLGLOBAL DL_GLOBAL
17964 # define LT_DLGLOBAL 0
17968 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17969 find out it does not work in some platform. */
17970 #ifndef LT_DLLAZY_OR_NOW
17972 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17975 # define LT_DLLAZY_OR_NOW DL_LAZY
17978 # define LT_DLLAZY_OR_NOW RTLD_NOW
17981 # define LT_DLLAZY_OR_NOW DL_NOW
17983 # define LT_DLLAZY_OR_NOW 0
17990 /* When -fvisbility=hidden is used, assume the code has been annotated
17991 correspondingly for the symbols needed. */
17992 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17993 void fnord () __attribute__((visibility("default")));
17996 void fnord () { int i=42; }
17999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18000 int status = $lt_dlunknown;
18004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18007 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18008 else puts (dlerror ());
18010 /* dlclose (self); */
18018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18019 (eval $ac_link) 2>&5
18021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18022 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18023 (.
/conftest
; exit; ) >&5 2>/dev
/null
18025 case x
$lt_status in
18026 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18027 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18028 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18031 # compilation failed
18032 lt_cv_dlopen_self
=no
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18040 $as_echo "$lt_cv_dlopen_self" >&6; }
18042 if test "x$lt_cv_dlopen_self" = xyes
; then
18043 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18045 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18046 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18047 $as_echo_n "(cached) " >&6
18049 if test "$cross_compiling" = yes; then :
18050 lt_cv_dlopen_self_static
=cross
18052 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18053 lt_status
=$lt_dlunknown
18054 cat > conftest.
$ac_ext <<_LT_EOF
18055 #line 18055 "configure"
18056 #include "confdefs.h"
18065 # define LT_DLGLOBAL RTLD_GLOBAL
18068 # define LT_DLGLOBAL DL_GLOBAL
18070 # define LT_DLGLOBAL 0
18074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18075 find out it does not work in some platform. */
18076 #ifndef LT_DLLAZY_OR_NOW
18078 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18081 # define LT_DLLAZY_OR_NOW DL_LAZY
18084 # define LT_DLLAZY_OR_NOW RTLD_NOW
18087 # define LT_DLLAZY_OR_NOW DL_NOW
18089 # define LT_DLLAZY_OR_NOW 0
18096 /* When -fvisbility=hidden is used, assume the code has been annotated
18097 correspondingly for the symbols needed. */
18098 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18099 void fnord () __attribute__((visibility("default")));
18102 void fnord () { int i=42; }
18105 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18106 int status = $lt_dlunknown;
18110 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18113 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18114 else puts (dlerror ());
18116 /* dlclose (self); */
18124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18125 (eval $ac_link) 2>&5
18127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18128 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18129 (.
/conftest
; exit; ) >&5 2>/dev
/null
18131 case x
$lt_status in
18132 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18133 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18134 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18137 # compilation failed
18138 lt_cv_dlopen_self_static
=no
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18146 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18149 CPPFLAGS
="$save_CPPFLAGS"
18150 LDFLAGS
="$save_LDFLAGS"
18155 case $lt_cv_dlopen_self in
18156 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18157 *) enable_dlopen_self
=unknown
;;
18160 case $lt_cv_dlopen_self_static in
18161 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18162 *) enable_dlopen_self_static
=unknown
;;
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18185 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18186 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18187 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18188 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18190 $as_echo "yes" >&6; }
18192 # FIXME - insert some real tests, host_os isn't really good enough
18195 if test -n "$STRIP" ; then
18196 striplib
="$STRIP -x"
18197 old_striplib
="$STRIP -S"
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18199 $as_echo "yes" >&6; }
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18202 $as_echo "no" >&6; }
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18207 $as_echo "no" >&6; }
18223 # Report which library types will actually be built
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18225 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18227 $as_echo "$can_build_shared" >&6; }
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18230 $as_echo_n "checking whether to build shared libraries... " >&6; }
18231 test "$can_build_shared" = "no" && enable_shared
=no
18233 # On AIX, shared libraries and static libraries use the same namespace, and
18234 # are all built from PIC.
18237 test "$enable_shared" = yes && enable_static
=no
18238 if test -n "$RANLIB"; then
18239 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18240 postinstall_cmds
='$RANLIB $lib'
18245 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18246 test "$enable_shared" = yes && enable_static
=no
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18251 $as_echo "$enable_shared" >&6; }
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18254 $as_echo_n "checking whether to build static libraries... " >&6; }
18255 # Make sure either enable_shared or enable_static is yes.
18256 test "$enable_shared" = yes || enable_static
=yes
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18258 $as_echo "$enable_static" >&6; }
18265 ac_cpp
='$CPP $CPPFLAGS'
18266 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18267 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18268 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18272 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18273 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18274 (test "X$CXX" != "Xg++"))) ; then
18276 ac_cpp
='$CXXCPP $CPPFLAGS'
18277 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18278 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18279 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18281 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18282 if test -z "$CXXCPP"; then
18283 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18284 $as_echo_n "(cached) " >&6
18286 # Double quotes because CXXCPP needs to be expanded
18287 for CXXCPP
in "$CXX -E" "/lib/cpp"
18289 ac_preproc_ok
=false
18290 for ac_cxx_preproc_warn_flag
in '' yes
18292 # Use a header file that comes with gcc, so configuring glibc
18293 # with a fresh cross-compiler works.
18294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18295 # <limits.h> exists even on freestanding compilers.
18296 # On the NeXT, cc -E runs the code through the compiler's parser,
18297 # not just through cpp. "Syntax error" is here to catch this case.
18298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h. */
18301 # include <limits.h>
18303 # include <assert.h>
18307 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18310 # Broken: fails on valid input.
18313 rm -f conftest.err conftest.
$ac_ext
18315 # OK, works on sane cases. Now check whether nonexistent headers
18316 # can be detected and how.
18317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18318 /* end confdefs.h. */
18319 #include <ac_nonexistent.h>
18321 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18322 # Broken: success on invalid input.
18325 # Passes both tests.
18329 rm -f conftest.err conftest.
$ac_ext
18332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18333 rm -f conftest.err conftest.
$ac_ext
18334 if $ac_preproc_ok; then :
18339 ac_cv_prog_CXXCPP
=$CXXCPP
18342 CXXCPP
=$ac_cv_prog_CXXCPP
18344 ac_cv_prog_CXXCPP
=$CXXCPP
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18347 $as_echo "$CXXCPP" >&6; }
18348 ac_preproc_ok
=false
18349 for ac_cxx_preproc_warn_flag
in '' yes
18351 # Use a header file that comes with gcc, so configuring glibc
18352 # with a fresh cross-compiler works.
18353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18354 # <limits.h> exists even on freestanding compilers.
18355 # On the NeXT, cc -E runs the code through the compiler's parser,
18356 # not just through cpp. "Syntax error" is here to catch this case.
18357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18360 # include <limits.h>
18362 # include <assert.h>
18366 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18369 # Broken: fails on valid input.
18372 rm -f conftest.err conftest.
$ac_ext
18374 # OK, works on sane cases. Now check whether nonexistent headers
18375 # can be detected and how.
18376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18377 /* end confdefs.h. */
18378 #include <ac_nonexistent.h>
18380 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18381 # Broken: success on invalid input.
18384 # Passes both tests.
18388 rm -f conftest.err conftest.
$ac_ext
18391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18392 rm -f conftest.err conftest.
$ac_ext
18393 if $ac_preproc_ok; then :
18396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18398 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18399 See \`config.log' for more details." "$LINENO" 5; }
18403 ac_cpp
='$CPP $CPPFLAGS'
18404 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18405 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18406 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18409 _lt_caught_CXX_error
=yes
18413 ac_cpp
='$CXXCPP $CPPFLAGS'
18414 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18415 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18416 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18418 archive_cmds_need_lc_CXX
=no
18419 allow_undefined_flag_CXX
=
18420 always_export_symbols_CXX
=no
18421 archive_expsym_cmds_CXX
=
18422 compiler_needs_object_CXX
=no
18423 export_dynamic_flag_spec_CXX
=
18424 hardcode_direct_CXX
=no
18425 hardcode_direct_absolute_CXX
=no
18426 hardcode_libdir_flag_spec_CXX
=
18427 hardcode_libdir_flag_spec_ld_CXX
=
18428 hardcode_libdir_separator_CXX
=
18429 hardcode_minus_L_CXX
=no
18430 hardcode_shlibpath_var_CXX
=unsupported
18431 hardcode_automatic_CXX
=no
18432 inherit_rpath_CXX
=no
18434 module_expsym_cmds_CXX
=
18435 link_all_deplibs_CXX
=unknown
18436 old_archive_cmds_CXX
=$old_archive_cmds
18437 reload_flag_CXX
=$reload_flag
18438 reload_cmds_CXX
=$reload_cmds
18439 no_undefined_flag_CXX
=
18440 whole_archive_flag_spec_CXX
=
18441 enable_shared_with_static_runtimes_CXX
=no
18443 # Source file extension for C++ test sources.
18446 # Object file extension for compiled C++ test sources.
18450 # No sense in running all these tests if we already determined that
18451 # the CXX compiler isn't working. Some variables (like enable_shared)
18452 # are currently assumed to apply to all compilers on this platform,
18453 # and will be corrupted by setting them based on a non-working compiler.
18454 if test "$_lt_caught_CXX_error" != yes; then
18455 # Code to be used in simple compile tests
18456 lt_simple_compile_test_code
="int some_variable = 0;"
18458 # Code to be used in simple link tests
18459 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18461 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18468 # If no C compiler was specified, use CC.
18471 # If no C compiler flags were specified, use CFLAGS.
18472 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18474 # Allow CC to be a program name with arguments.
18478 # save warnings/boilerplate of simple test code
18479 ac_outfile
=conftest.
$ac_objext
18480 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18481 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18482 _lt_compiler_boilerplate
=`cat conftest.err`
18485 ac_outfile
=conftest.
$ac_objext
18486 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18487 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18488 _lt_linker_boilerplate
=`cat conftest.err`
18492 # Allow CC to be a program name with arguments.
18497 lt_save_with_gnu_ld
=$with_gnu_ld
18498 lt_save_path_LD
=$lt_cv_path_LD
18499 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18500 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18502 $as_unset lt_cv_prog_gnu_ld
18504 if test -n "${lt_cv_path_LDCXX+set}"; then
18505 lt_cv_path_LD
=$lt_cv_path_LDCXX
18507 $as_unset lt_cv_path_LD
18509 test -z "${LDCXX+set}" || LD
=$LDCXX
18513 for cc_temp
in $compiler""; do
18515 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18516 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18521 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18524 if test -n "$compiler"; then
18525 # We don't want -fno-exception when compiling C++ code, so set the
18526 # no_builtin_flag separately
18527 if test "$GXX" = yes; then
18528 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18530 lt_prog_compiler_no_builtin_flag_CXX
=
18533 if test "$GXX" = yes; then
18534 # Set up default GNU C++ configuration
18538 # Check whether --with-gnu-ld was given.
18539 if test "${with_gnu_ld+set}" = set; then :
18540 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18546 if test "$GCC" = yes; then
18547 # Check if gcc -print-prog-name=ld gives a path.
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18549 $as_echo_n "checking for ld used by $CC... " >&6; }
18552 # gcc leaves a trailing carriage return which upsets mingw
18553 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18555 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18558 # Accept absolute paths.
18560 re_direlt
='/[^/][^/]*/\.\./'
18561 # Canonicalize the pathname of ld
18562 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18563 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18564 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18566 test -z "$LD" && LD
="$ac_prog"
18569 # If it fails, then pretend we aren't using GCC.
18573 # If it is relative, then search for the first ld in PATH.
18574 with_gnu_ld
=unknown
18577 elif test "$with_gnu_ld" = yes; then
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18579 $as_echo_n "checking for GNU ld... " >&6; }
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18582 $as_echo_n "checking for non-GNU ld... " >&6; }
18584 if test "${lt_cv_path_LD+set}" = set; then :
18585 $as_echo_n "(cached) " >&6
18587 if test -z "$LD"; then
18588 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18589 for ac_dir
in $PATH; do
18591 test -z "$ac_dir" && ac_dir
=.
18592 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18593 lt_cv_path_LD
="$ac_dir/$ac_prog"
18594 # Check to see if the program is GNU ld. I'd rather use --version,
18595 # but apparently some variants of GNU ld only accept -v.
18596 # Break only if it was the GNU/non-GNU ld that we prefer.
18597 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18598 *GNU
* |
*'with BFD'*)
18599 test "$with_gnu_ld" != no
&& break
18602 test "$with_gnu_ld" != yes && break
18609 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18613 LD
="$lt_cv_path_LD"
18614 if test -n "$LD"; then
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18616 $as_echo "$LD" >&6; }
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18619 $as_echo "no" >&6; }
18621 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18623 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18624 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18625 $as_echo_n "(cached) " >&6
18627 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18628 case `$LD -v 2>&1 </dev/null` in
18629 *GNU
* |
*'with BFD'*)
18630 lt_cv_prog_gnu_ld
=yes
18633 lt_cv_prog_gnu_ld
=no
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18638 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18639 with_gnu_ld
=$lt_cv_prog_gnu_ld
18647 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18648 # archiving commands below assume that GNU ld is being used.
18649 if test "$with_gnu_ld" = yes; then
18650 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18651 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'
18653 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18654 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18656 # If archive_cmds runs LD, not CC, wlarc should be empty
18657 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18658 # investigate it a little bit more. (MM)
18661 # ancient GNU ld didn't support --whole-archive et. al.
18662 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18663 $GREP 'no-whole-archive' > /dev
/null
; then
18664 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18666 whole_archive_flag_spec_CXX
=
18672 # A generic and very simple default shared library creation
18673 # command for GNU C++ for the case where it uses the native
18674 # linker, instead of GNU ld. If possible, this setting should
18675 # overridden to take advantage of the native linker features on
18676 # the platform it is being used on.
18677 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18680 # Commands to make compiler produce verbose output that lists
18681 # what "hidden" libraries, object files and flags are used when
18682 # linking a shared library.
18683 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18691 # PORTME: fill in a description of your system's C++ link characteristics
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18693 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18697 # FIXME: insert proper C++ library support
18701 if test "$host_cpu" = ia64
; then
18702 # On IA64, the linker does run time linking by default, so we don't
18703 # have to do anything special.
18704 aix_use_runtimelinking
=no
18705 exp_sym_flag
='-Bexport'
18708 aix_use_runtimelinking
=no
18710 # Test if we are trying to use run time linking or normal
18711 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18712 # need to do runtime linking.
18713 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18714 for ld_flag
in $LDFLAGS; do
18717 aix_use_runtimelinking
=yes
18725 exp_sym_flag
='-bexport'
18726 no_entry_flag
='-bnoentry'
18729 # When large executables or shared objects are built, AIX ld can
18730 # have problems creating the table of contents. If linking a library
18731 # or program results in "error TOC overflow" add -mminimal-toc to
18732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18735 archive_cmds_CXX
=''
18736 hardcode_direct_CXX
=yes
18737 hardcode_direct_absolute_CXX
=yes
18738 hardcode_libdir_separator_CXX
=':'
18739 link_all_deplibs_CXX
=yes
18740 file_list_spec_CXX
='${wl}-f,'
18742 if test "$GXX" = yes; then
18743 case $host_os in aix4.
[012]|aix4.
[012].
*)
18744 # We only want to do this on AIX 4.2 and lower, the check
18745 # below for broken collect2 doesn't work under 4.3+
18746 collect2name
=`${CC} -print-prog-name=collect2`
18747 if test -f "$collect2name" &&
18748 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18750 # We have reworked collect2
18753 # We have old collect2
18754 hardcode_direct_CXX
=unsupported
18755 # It fails to find uninstalled libraries when the uninstalled
18756 # path is not listed in the libpath. Setting hardcode_minus_L
18757 # to unsupported forces relinking
18758 hardcode_minus_L_CXX
=yes
18759 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18760 hardcode_libdir_separator_CXX
=
18763 shared_flag
='-shared'
18764 if test "$aix_use_runtimelinking" = yes; then
18765 shared_flag
="$shared_flag "'${wl}-G'
18769 if test "$host_cpu" = ia64
; then
18770 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18771 # chokes on -Wl,-G. The following line is correct:
18774 if test "$aix_use_runtimelinking" = yes; then
18775 shared_flag
='${wl}-G'
18777 shared_flag
='${wl}-bM:SRE'
18782 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18783 # It seems that -bexpall does not export symbols beginning with
18784 # underscore (_), so it is better to generate a list of symbols to
18786 always_export_symbols_CXX
=yes
18787 if test "$aix_use_runtimelinking" = yes; then
18788 # Warning - without using the other runtime loading flags (-brtl),
18789 # -berok will link without error, but may produce a broken library.
18790 allow_undefined_flag_CXX
='-berok'
18791 # Determine the default libpath from the value encoded in an empty
18793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18794 /* end confdefs.h. */
18804 if ac_fn_cxx_try_link
"$LINENO"; then :
18806 lt_aix_libpath_sed
='
18807 /Import File Strings/,/^$/ {
18813 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18814 # Check for a 64-bit object if we didn't find anything.
18815 if test -z "$aix_libpath"; then
18816 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18819 rm -f core conftest.err conftest.
$ac_objext \
18820 conftest
$ac_exeext conftest.
$ac_ext
18821 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18823 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18825 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"
18827 if test "$host_cpu" = ia64
; then
18828 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18829 allow_undefined_flag_CXX
="-z nodefs"
18830 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"
18832 # Determine the default libpath from the value encoded in an
18833 # empty executable.
18834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18835 /* end confdefs.h. */
18845 if ac_fn_cxx_try_link
"$LINENO"; then :
18847 lt_aix_libpath_sed
='
18848 /Import File Strings/,/^$/ {
18854 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18855 # Check for a 64-bit object if we didn't find anything.
18856 if test -z "$aix_libpath"; then
18857 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18860 rm -f core conftest.err conftest.
$ac_objext \
18861 conftest
$ac_exeext conftest.
$ac_ext
18862 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18864 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18865 # Warning - without using the other run time loading flags,
18866 # -berok will link without error, but may produce a broken library.
18867 no_undefined_flag_CXX
=' ${wl}-bernotok'
18868 allow_undefined_flag_CXX
=' ${wl}-berok'
18869 if test "$with_gnu_ld" = yes; then
18870 # We only use this code for GNU lds that support --whole-archive.
18871 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18873 # Exported symbols can be pulled into shared objects from archives
18874 whole_archive_flag_spec_CXX
='$convenience'
18876 archive_cmds_need_lc_CXX
=yes
18877 # This is similar to how AIX traditionally builds its shared
18879 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'
18885 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18886 allow_undefined_flag_CXX
=unsupported
18887 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18888 # support --undefined. This deserves some investigation. FIXME
18889 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18896 case $cc_basename in
18898 # FIXME: insert proper C++ library support
18904 cygwin
* | mingw
* | pw32
* | cegcc
*)
18905 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18906 # as there is no search path for DLLs.
18907 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18908 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18909 allow_undefined_flag_CXX
=unsupported
18910 always_export_symbols_CXX
=no
18911 enable_shared_with_static_runtimes_CXX
=yes
18913 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18914 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'
18915 # If the export-symbols file already is a .def file (1st line
18916 # is EXPORTS), use it as is; otherwise, prepend...
18917 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18918 cp $export_symbols $output_objdir/$soname.def;
18920 echo EXPORTS > $output_objdir/$soname.def;
18921 cat $export_symbols >> $output_objdir/$soname.def;
18923 $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'
18928 darwin
* | rhapsody
*)
18931 archive_cmds_need_lc_CXX
=no
18932 hardcode_direct_CXX
=no
18933 hardcode_automatic_CXX
=yes
18934 hardcode_shlibpath_var_CXX
=unsupported
18935 if test "$lt_cv_ld_force_load" = "yes"; then
18936 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\"`'
18938 whole_archive_flag_spec_CXX
=''
18940 link_all_deplibs_CXX
=yes
18941 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18942 case $cc_basename in
18943 ifort
*) _lt_dar_can_shared
=yes ;;
18944 *) _lt_dar_can_shared
=$GCC ;;
18946 if test "$_lt_dar_can_shared" = "yes"; then
18947 output_verbose_link_cmd
=func_echo_all
18948 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}"
18949 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18950 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}"
18951 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}"
18952 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18953 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}"
18954 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}"
18964 case $cc_basename in
18966 # FIXME: insert proper C++ library support
18970 # Green Hills C++ Compiler
18971 # FIXME: insert proper C++ library support
18975 # FIXME: insert proper C++ library support
18982 # C++ shared libraries reported to be fairly broken before
18988 archive_cmds_need_lc_CXX
=no
18991 freebsd
* | dragonfly
*)
18992 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19001 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19002 link_all_deplibs_CXX
=yes
19006 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19007 hardcode_libdir_separator_CXX
=:
19008 export_dynamic_flag_spec_CXX
='${wl}-E'
19009 hardcode_direct_CXX
=yes
19010 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19011 # but as the default
19012 # location of the library.
19014 case $cc_basename in
19016 # FIXME: insert proper C++ library support
19020 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'
19021 # Commands to make compiler produce verbose output that lists
19022 # what "hidden" libraries, object files and flags are used when
19023 # linking a shared library.
19025 # There doesn't appear to be a way to prevent this compiler from
19026 # explicitly linking system object files so we need to strip them
19027 # from the output so that they don't get included in the library
19029 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"'
19032 if test "$GXX" = yes; then
19033 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'
19035 # FIXME: insert proper C++ library support
19043 if test $with_gnu_ld = no
; then
19044 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19045 hardcode_libdir_separator_CXX
=:
19051 export_dynamic_flag_spec_CXX
='${wl}-E'
19057 hardcode_direct_CXX
=no
19058 hardcode_shlibpath_var_CXX
=no
19061 hardcode_direct_CXX
=yes
19062 hardcode_direct_absolute_CXX
=yes
19063 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19064 # but as the default
19065 # location of the library.
19069 case $cc_basename in
19071 # FIXME: insert proper C++ library support
19077 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19080 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19083 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19086 # Commands to make compiler produce verbose output that lists
19087 # what "hidden" libraries, object files and flags are used when
19088 # linking a shared library.
19090 # There doesn't appear to be a way to prevent this compiler from
19091 # explicitly linking system object files so we need to strip them
19092 # from the output so that they don't get included in the library
19094 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"'
19097 if test "$GXX" = yes; then
19098 if test $with_gnu_ld = no
; then
19101 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19104 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19107 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'
19112 # FIXME: insert proper C++ library support
19120 hardcode_direct_CXX
=no
19121 hardcode_shlibpath_var_CXX
=no
19122 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19123 export_dynamic_flag_spec_CXX
='${wl}-E'
19124 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19125 # Instead, shared libraries are loaded at an image base (0x10000000 by
19126 # default) and relocated if they conflict, which is a slow very memory
19127 # consuming and fragmenting process. To avoid this, we pick a random,
19128 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19129 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19130 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'
19131 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'
19134 case $cc_basename in
19137 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'
19139 # Archives containing C++ object files must be created using
19140 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19141 # necessary to make sure instantiated templates are included
19143 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19146 if test "$GXX" = yes; then
19147 if test "$with_gnu_ld" = no
; then
19148 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'
19150 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'
19153 link_all_deplibs_CXX
=yes
19156 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19157 hardcode_libdir_separator_CXX
=:
19158 inherit_rpath_CXX
=yes
19161 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19162 case $cc_basename in
19164 # Kuck and Associates, Inc. (KAI) C++ Compiler
19166 # KCC will only create a shared library if the output file
19167 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19168 # to its proper name (with version) after linking.
19169 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'
19170 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'
19171 # Commands to make compiler produce verbose output that lists
19172 # what "hidden" libraries, object files and flags are used when
19173 # linking a shared library.
19175 # There doesn't appear to be a way to prevent this compiler from
19176 # explicitly linking system object files so we need to strip them
19177 # from the output so that they don't get included in the library
19179 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"'
19181 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19182 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19184 # Archives containing C++ object files must be created using
19185 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19186 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19191 # version 8.0 and above of icpc choke on multiply defined symbols
19192 # if we add $predep_objects and $postdep_objects, however 7.1 and
19193 # earlier do not add the objects themselves.
19194 case `$CC -V 2>&1` in
19196 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19197 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'
19199 *) # Version 8.0 or newer
19202 ia64
*) tmp_idyn
=' -i_dynamic';;
19204 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19205 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'
19208 archive_cmds_need_lc_CXX
=no
19209 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19210 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19211 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19214 # Portland Group C++ compiler
19216 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19217 prelink_cmds_CXX
='tpldir=Template.dir~
19219 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19220 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19221 old_archive_cmds_CXX
='tpldir=Template.dir~
19223 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19224 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19226 archive_cmds_CXX
='tpldir=Template.dir~
19228 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19229 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19230 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19232 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19233 $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'
19235 *) # Version 6 and above use weak symbols
19236 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19237 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'
19241 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19242 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19243 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'
19247 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19248 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'
19250 runpath_var
=LD_RUN_PATH
19251 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19252 hardcode_libdir_separator_CXX
=:
19254 # Commands to make compiler produce verbose output that lists
19255 # what "hidden" libraries, object files and flags are used when
19256 # linking a shared library.
19258 # There doesn't appear to be a way to prevent this compiler from
19259 # explicitly linking system object files so we need to strip them
19260 # from the output so that they don't get included in the library
19262 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'
19264 xl
* | mpixl
* | bgxl
*)
19265 # IBM XL 8.0 on PPC, with GNU ld
19266 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19267 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19268 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19269 if test "x$supports_anon_versioning" = xyes
; then
19270 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19271 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19272 echo "local: *; };" >> $output_objdir/$libname.ver~
19273 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19277 case `$CC -V 2>&1 | sed 5q` in
19280 no_undefined_flag_CXX
=' -zdefs'
19281 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19282 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'
19283 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19284 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'
19285 compiler_needs_object_CXX
=yes
19287 # Not sure whether something based on
19288 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19290 output_verbose_link_cmd
='func_echo_all'
19292 # Archives containing C++ object files must be created using
19293 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19294 # necessary to make sure instantiated templates are included
19296 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19304 # FIXME: insert proper C++ library support
19309 # FIXME: insert proper C++ library support
19314 case $cc_basename in
19316 # FIXME: insert proper C++ library support
19320 # FIXME: insert proper C++ library support
19327 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19328 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19330 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19331 hardcode_direct_CXX
=yes
19332 hardcode_shlibpath_var_CXX
=no
19334 # Workaround some broken pre-1.5 toolchains
19335 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19343 # C++ shared libraries are fairly broken
19348 if test -f /usr
/libexec
/ld.so
; then
19349 hardcode_direct_CXX
=yes
19350 hardcode_shlibpath_var_CXX
=no
19351 hardcode_direct_absolute_CXX
=yes
19352 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19353 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19355 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19356 export_dynamic_flag_spec_CXX
='${wl}-E'
19357 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19359 output_verbose_link_cmd
=func_echo_all
19365 osf3
* | osf4
* | osf5
*)
19366 case $cc_basename in
19368 # Kuck and Associates, Inc. (KAI) C++ Compiler
19370 # KCC will only create a shared library if the output file
19371 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19372 # to its proper name (with version) after linking.
19373 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'
19375 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19376 hardcode_libdir_separator_CXX
=:
19378 # Archives containing C++ object files must be created using
19379 # the KAI C++ compiler.
19381 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19382 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19386 # Rational C++ 2.4.1
19387 # FIXME: insert proper C++ library support
19393 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19394 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'
19395 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19398 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19399 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'
19400 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19401 echo "-hidden">> $lib.exp~
19402 $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~
19404 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19408 hardcode_libdir_separator_CXX
=:
19410 # Commands to make compiler produce verbose output that lists
19411 # what "hidden" libraries, object files and flags are used when
19412 # linking a shared library.
19414 # There doesn't appear to be a way to prevent this compiler from
19415 # explicitly linking system object files so we need to strip them
19416 # from the output so that they don't get included in the library
19418 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"'
19421 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19422 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19425 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'
19428 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'
19432 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19433 hardcode_libdir_separator_CXX
=:
19435 # Commands to make compiler produce verbose output that lists
19436 # what "hidden" libraries, object files and flags are used when
19437 # linking a shared library.
19438 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19441 # FIXME: insert proper C++ library support
19449 # FIXME: insert proper C++ library support
19454 case $cc_basename in
19457 # FIXME: insert proper C++ library support
19462 # FIXME: insert proper C++ library support
19466 # FIXME: insert proper C++ library support
19473 case $cc_basename in
19475 # Sun C++ 4.2, 5.x and Centerline C++
19476 archive_cmds_need_lc_CXX
=yes
19477 no_undefined_flag_CXX
=' -zdefs'
19478 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19479 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19480 $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'
19482 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19483 hardcode_shlibpath_var_CXX
=no
19485 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19487 # The compiler driver will combine and reorder linker options,
19488 # but understands `-z linker_flag'.
19489 # Supported since Solaris 2.6 (maybe 2.5.1?)
19490 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19493 link_all_deplibs_CXX
=yes
19495 output_verbose_link_cmd
='func_echo_all'
19497 # Archives containing C++ object files must be created using
19498 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19499 # necessary to make sure instantiated templates are included
19501 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19504 # Green Hills C++ Compiler
19505 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19507 # The C++ compiler must be used to create the archive.
19508 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19511 # GNU C++ compiler with Solaris linker
19512 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19513 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19514 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19515 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19516 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19517 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19519 # Commands to make compiler produce verbose output that lists
19520 # what "hidden" libraries, object files and flags are used when
19521 # linking a shared library.
19522 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19524 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19526 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19527 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19528 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19530 # Commands to make compiler produce verbose output that lists
19531 # what "hidden" libraries, object files and flags are used when
19532 # linking a shared library.
19533 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19536 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19538 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19540 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19548 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19549 no_undefined_flag_CXX
='${wl}-z,text'
19550 archive_cmds_need_lc_CXX
=no
19551 hardcode_shlibpath_var_CXX
=no
19552 runpath_var
='LD_RUN_PATH'
19554 case $cc_basename in
19556 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19557 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19560 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19566 sysv5
* | sco3.2v5
* | sco5v6
*)
19567 # Note: We can NOT use -z defs as we might desire, because we do not
19568 # link with -lc, and that would cause any symbols used from libc to
19569 # always be unresolved, which means just about no library would
19570 # ever link correctly. If we're not using GNU ld we use -z text
19571 # though, which does catch some bad symbols but isn't as heavy-handed
19573 no_undefined_flag_CXX
='${wl}-z,text'
19574 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19575 archive_cmds_need_lc_CXX
=no
19576 hardcode_shlibpath_var_CXX
=no
19577 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19578 hardcode_libdir_separator_CXX
=':'
19579 link_all_deplibs_CXX
=yes
19580 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19581 runpath_var
='LD_RUN_PATH'
19583 case $cc_basename in
19585 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19586 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19587 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19588 '"$old_archive_cmds_CXX"
19589 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19590 '"$reload_cmds_CXX"
19593 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19594 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19600 case $cc_basename in
19602 # NonStop-UX NCC 3.20
19603 # FIXME: insert proper C++ library support
19607 # FIXME: insert proper C++ library support
19614 # FIXME: insert proper C++ library support
19619 # FIXME: insert proper C++ library support
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19625 $as_echo "$ld_shlibs_CXX" >&6; }
19626 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19632 ## There is no encapsulation within the following macros, do not change
19633 ## the running order or otherwise move them around unless you know exactly
19634 ## what you are doing...
19635 # Dependencies to place before and after the object being linked:
19636 predep_objects_CXX
=
19637 postdep_objects_CXX
=
19640 compiler_lib_search_path_CXX
=
19642 cat > conftest.
$ac_ext <<_LT_EOF
19646 Foo (void) { a = 0; }
19652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19653 (eval $ac_compile) 2>&5
19655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19656 test $ac_status = 0; }; then
19657 # Parse the compiler output and extract the necessary
19658 # objects, libraries and library flags.
19660 # Sentinel used to keep track of whether or not we are before
19661 # the conftest object file.
19662 pre_test_object_deps_done
=no
19664 for p
in `eval "$output_verbose_link_cmd"`; do
19668 # Some compilers place space between "-{L,R}" and the path.
19669 # Remove the space.
19670 if test $p = "-L" ||
19671 test $p = "-R"; then
19678 if test "$pre_test_object_deps_done" = no
; then
19681 # Internal compiler library paths should come after those
19682 # provided the user. The postdeps already come after the
19683 # user supplied libs so there is no need to process them.
19684 if test -z "$compiler_lib_search_path_CXX"; then
19685 compiler_lib_search_path_CXX
="${prev}${p}"
19687 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19690 # The "-l" case would never come before the object being
19691 # linked, so don't bother handling this case.
19694 if test -z "$postdeps_CXX"; then
19695 postdeps_CXX
="${prev}${p}"
19697 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19703 # This assumes that the test object file only shows up
19704 # once in the compiler output.
19705 if test "$p" = "conftest.$objext"; then
19706 pre_test_object_deps_done
=yes
19710 if test "$pre_test_object_deps_done" = no
; then
19711 if test -z "$predep_objects_CXX"; then
19712 predep_objects_CXX
="$p"
19714 predep_objects_CXX
="$predep_objects_CXX $p"
19717 if test -z "$postdep_objects_CXX"; then
19718 postdep_objects_CXX
="$p"
19720 postdep_objects_CXX
="$postdep_objects_CXX $p"
19725 *) ;; # Ignore the rest.
19733 echo "libtool.m4: error: problem compiling CXX test program"
19736 $RM -f confest.
$objext
19738 # PORTME: override above test on systems where it is broken
19741 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19742 # hack all around it, let's just trust "g++" to DTRT.
19743 predep_objects_CXX
=
19744 postdep_objects_CXX
=
19749 case `$CC -V 2>&1 | sed 5q` in
19753 # The more standards-conforming stlport4 library is
19754 # incompatible with the Cstd library. Avoid specifying
19755 # it if it's in CXXFLAGS. Ignore libCrun as
19756 # -library=stlport4 depends on it.
19757 case " $CXX $CXXFLAGS " in
19758 *" -library=stlport4 "*)
19759 solaris_use_stlport4
=yes
19763 if test "$solaris_use_stlport4" != yes; then
19764 postdeps_CXX
='-library=Cstd -library=Crun'
19771 case $cc_basename in
19773 # The more standards-conforming stlport4 library is
19774 # incompatible with the Cstd library. Avoid specifying
19775 # it if it's in CXXFLAGS. Ignore libCrun as
19776 # -library=stlport4 depends on it.
19777 case " $CXX $CXXFLAGS " in
19778 *" -library=stlport4 "*)
19779 solaris_use_stlport4
=yes
19783 # Adding this requires a known-good setup of shared libraries for
19784 # Sun compiler versions before 5.6, else PIC objects from an old
19785 # archive will be linked into the output, leading to subtle bugs.
19786 if test "$solaris_use_stlport4" != yes; then
19787 postdeps_CXX
='-library=Cstd -library=Crun'
19795 case " $postdeps_CXX " in
19796 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19798 compiler_lib_search_dirs_CXX
=
19799 if test -n "${compiler_lib_search_path_CXX}"; then
19800 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19833 lt_prog_compiler_wl_CXX
=
19834 lt_prog_compiler_pic_CXX
=
19835 lt_prog_compiler_static_CXX
=
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19838 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19840 # C++ specific cases for pic, static, wl, etc.
19841 if test "$GXX" = yes; then
19842 lt_prog_compiler_wl_CXX
='-Wl,'
19843 lt_prog_compiler_static_CXX
='-static'
19847 # All AIX code is PIC.
19848 if test "$host_cpu" = ia64
; then
19849 # AIX 5 now supports IA64 processor
19850 lt_prog_compiler_static_CXX
='-Bstatic'
19852 lt_prog_compiler_pic_CXX
='-fPIC'
19858 # see comment about AmigaOS4 .so support
19859 lt_prog_compiler_pic_CXX
='-fPIC'
19862 # FIXME: we need at least 68020 code to build shared libraries, but
19863 # adding the `-m68020' flag to GCC prevents building anything better,
19865 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19870 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19871 # PIC is the default for these OSes.
19873 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19874 # This hack is so that the source file can tell whether it is being
19875 # built for inclusion in a dll (and should export symbols for example).
19876 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19877 # (--disable-auto-import) libraries
19878 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19880 darwin
* | rhapsody
*)
19881 # PIC is the default on this platform
19882 # Common symbols not allowed in MH_DYLIB files
19883 lt_prog_compiler_pic_CXX
='-fno-common'
19886 # DJGPP does not support shared libraries at all
19887 lt_prog_compiler_pic_CXX
=
19890 # PIC is the default for Haiku.
19891 # The "-static" flag exists, but is broken.
19892 lt_prog_compiler_static_CXX
=
19895 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19896 # Instead, we relocate shared libraries at runtime.
19899 if test -d /usr
/nec
; then
19900 lt_prog_compiler_pic_CXX
=-Kconform_pic
19904 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19905 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19906 # sets the default TLS model and affects inlining.
19911 lt_prog_compiler_pic_CXX
='-fPIC'
19916 # QNX uses GNU C++, but need to define -shared option too, otherwise
19917 # it will coredump.
19918 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19921 lt_prog_compiler_pic_CXX
='-fPIC'
19927 # All AIX code is PIC.
19928 if test "$host_cpu" = ia64
; then
19929 # AIX 5 now supports IA64 processor
19930 lt_prog_compiler_static_CXX
='-Bstatic'
19932 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19936 case $cc_basename in
19938 # Green Hills C++ Compiler
19939 # _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"
19944 case $cc_basename in
19946 lt_prog_compiler_pic_CXX
='-KPIC'
19949 # Green Hills C++ Compiler
19950 lt_prog_compiler_pic_CXX
='-pic'
19956 freebsd
* | dragonfly
*)
19957 # FreeBSD uses GNU C++
19959 hpux9
* | hpux10
* | hpux11
*)
19960 case $cc_basename in
19962 lt_prog_compiler_wl_CXX
='-Wl,'
19963 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19964 if test "$host_cpu" != ia64
; then
19965 lt_prog_compiler_pic_CXX
='+Z'
19969 lt_prog_compiler_wl_CXX
='-Wl,'
19970 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19976 lt_prog_compiler_pic_CXX
='+Z'
19985 # This is c89, which is MS Visual C++ (no shared libs)
19986 # Anyone wants to do a port?
19988 irix5
* | irix6
* | nonstopux
*)
19989 case $cc_basename in
19991 lt_prog_compiler_wl_CXX
='-Wl,'
19992 lt_prog_compiler_static_CXX
='-non_shared'
19993 # CC pic flag -KPIC is the default.
19999 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20000 case $cc_basename in
20003 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20004 lt_prog_compiler_pic_CXX
='-fPIC'
20007 # old Intel C++ for x86_64 which still supported -KPIC.
20008 lt_prog_compiler_wl_CXX
='-Wl,'
20009 lt_prog_compiler_pic_CXX
='-KPIC'
20010 lt_prog_compiler_static_CXX
='-static'
20013 # Intel C++, used to be incompatible with GCC.
20014 # ICC 10 doesn't accept -KPIC any more.
20015 lt_prog_compiler_wl_CXX
='-Wl,'
20016 lt_prog_compiler_pic_CXX
='-fPIC'
20017 lt_prog_compiler_static_CXX
='-static'
20020 # Portland Group C++ compiler
20021 lt_prog_compiler_wl_CXX
='-Wl,'
20022 lt_prog_compiler_pic_CXX
='-fpic'
20023 lt_prog_compiler_static_CXX
='-Bstatic'
20027 # Make sure the PIC flag is empty. It appears that all Alpha
20028 # Linux and Compaq Tru64 Unix objects are PIC.
20029 lt_prog_compiler_pic_CXX
=
20030 lt_prog_compiler_static_CXX
='-non_shared'
20032 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20033 # IBM XL 8.0, 9.0 on PPC and BlueGene
20034 lt_prog_compiler_wl_CXX
='-Wl,'
20035 lt_prog_compiler_pic_CXX
='-qpic'
20036 lt_prog_compiler_static_CXX
='-qstaticlink'
20039 case `$CC -V 2>&1 | sed 5q` in
20042 lt_prog_compiler_pic_CXX
='-KPIC'
20043 lt_prog_compiler_static_CXX
='-Bstatic'
20044 lt_prog_compiler_wl_CXX
='-Qoption ld '
20055 case $cc_basename in
20057 lt_prog_compiler_pic_CXX
='-W c,exportall'
20066 # QNX uses GNU C++, but need to define -shared option too, otherwise
20067 # it will coredump.
20068 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20070 osf3
* | osf4
* | osf5
*)
20071 case $cc_basename in
20073 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20076 # Rational C++ 2.4.1
20077 lt_prog_compiler_pic_CXX
='-pic'
20080 # Digital/Compaq C++
20081 lt_prog_compiler_wl_CXX
='-Wl,'
20082 # Make sure the PIC flag is empty. It appears that all Alpha
20083 # Linux and Compaq Tru64 Unix objects are PIC.
20084 lt_prog_compiler_pic_CXX
=
20085 lt_prog_compiler_static_CXX
='-non_shared'
20094 case $cc_basename in
20096 # Sun C++ 4.2, 5.x and Centerline C++
20097 lt_prog_compiler_pic_CXX
='-KPIC'
20098 lt_prog_compiler_static_CXX
='-Bstatic'
20099 lt_prog_compiler_wl_CXX
='-Qoption ld '
20102 # Green Hills C++ Compiler
20103 lt_prog_compiler_pic_CXX
='-PIC'
20110 case $cc_basename in
20113 lt_prog_compiler_pic_CXX
='-pic'
20114 lt_prog_compiler_static_CXX
='-Bstatic'
20118 lt_prog_compiler_pic_CXX
='-pic'
20124 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20125 case $cc_basename in
20127 lt_prog_compiler_wl_CXX
='-Wl,'
20128 lt_prog_compiler_pic_CXX
='-KPIC'
20129 lt_prog_compiler_static_CXX
='-Bstatic'
20134 case $cc_basename in
20136 # NonStop-UX NCC 3.20
20137 lt_prog_compiler_pic_CXX
='-KPIC'
20146 lt_prog_compiler_can_build_shared_CXX
=no
20152 # For platforms which do not support PIC, -DPIC is meaningless:
20154 lt_prog_compiler_pic_CXX
=
20157 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20161 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20166 # Check to make sure the PIC flag actually works.
20168 if test -n "$lt_prog_compiler_pic_CXX"; then
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20170 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20171 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20172 $as_echo_n "(cached) " >&6
20174 lt_cv_prog_compiler_pic_works_CXX
=no
20175 ac_outfile
=conftest.
$ac_objext
20176 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20177 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20178 # Insert the option either (1) after the last *FLAGS variable, or
20179 # (2) before a word containing "conftest.", or (3) at the end.
20180 # Note that $ac_compile itself does not contain backslashes and begins
20181 # with a dollar sign (not a hyphen), so the echo should work correctly.
20182 # The option is referenced via a variable to avoid confusing sed.
20183 lt_compile
=`echo "$ac_compile" | $SED \
20184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20186 -e 's:$: $lt_compiler_flag:'`
20187 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20188 (eval "$lt_compile" 2>conftest.err
)
20190 cat conftest.err
>&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 if (exit $ac_status) && test -s "$ac_outfile"; then
20193 # The compiler can only warn and ignore the option if not recognized
20194 # So say no if there are warnings other than the usual output.
20195 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20196 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20197 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20198 lt_cv_prog_compiler_pic_works_CXX
=yes
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20205 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20207 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20208 case $lt_prog_compiler_pic_CXX in
20210 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20213 lt_prog_compiler_pic_CXX
=
20214 lt_prog_compiler_can_build_shared_CXX
=no
20222 # Check to make sure the static flag actually works.
20224 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20226 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20227 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20228 $as_echo_n "(cached) " >&6
20230 lt_cv_prog_compiler_static_works_CXX
=no
20231 save_LDFLAGS
="$LDFLAGS"
20232 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20233 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20234 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20235 # The linker can only warn and ignore the option if not recognized
20236 # So say no if there are warnings
20237 if test -s conftest.err
; then
20238 # Append any errors to the config.log.
20239 cat conftest.err
1>&5
20240 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20241 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20242 if diff conftest.exp conftest.er2
>/dev
/null
; then
20243 lt_cv_prog_compiler_static_works_CXX
=yes
20246 lt_cv_prog_compiler_static_works_CXX
=yes
20250 LDFLAGS
="$save_LDFLAGS"
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20254 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20256 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20259 lt_prog_compiler_static_CXX
=
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20266 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20267 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20268 $as_echo_n "(cached) " >&6
20270 lt_cv_prog_compiler_c_o_CXX
=no
20271 $RM -r conftest
2>/dev
/null
20275 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20277 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20278 # Insert the option either (1) after the last *FLAGS variable, or
20279 # (2) before a word containing "conftest.", or (3) at the end.
20280 # Note that $ac_compile itself does not contain backslashes and begins
20281 # with a dollar sign (not a hyphen), so the echo should work correctly.
20282 lt_compile
=`echo "$ac_compile" | $SED \
20283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20285 -e 's:$: $lt_compiler_flag:'`
20286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20287 (eval "$lt_compile" 2>out
/conftest.err
)
20289 cat out
/conftest.err
>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20293 # The compiler can only warn and ignore the option if not recognized
20294 # So say no if there are warnings
20295 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20296 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20297 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20298 lt_cv_prog_compiler_c_o_CXX
=yes
20303 # SGI C++ compiler will create directory out/ii_files/ for
20304 # template instantiation
20305 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20306 $RM out
/* && rmdir out
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20313 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20318 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20319 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20320 $as_echo_n "(cached) " >&6
20322 lt_cv_prog_compiler_c_o_CXX
=no
20323 $RM -r conftest
2>/dev
/null
20327 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20329 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20330 # Insert the option either (1) after the last *FLAGS variable, or
20331 # (2) before a word containing "conftest.", or (3) at the end.
20332 # Note that $ac_compile itself does not contain backslashes and begins
20333 # with a dollar sign (not a hyphen), so the echo should work correctly.
20334 lt_compile
=`echo "$ac_compile" | $SED \
20335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20337 -e 's:$: $lt_compiler_flag:'`
20338 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20339 (eval "$lt_compile" 2>out
/conftest.err
)
20341 cat out
/conftest.err
>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20345 # The compiler can only warn and ignore the option if not recognized
20346 # So say no if there are warnings
20347 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20348 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20349 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20350 lt_cv_prog_compiler_c_o_CXX
=yes
20355 # SGI C++ compiler will create directory out/ii_files/ for
20356 # template instantiation
20357 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20358 $RM out
/* && rmdir out
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20365 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20370 hard_links
="nottested"
20371 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20372 # do not overwrite the value of need_locks provided by the user
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20374 $as_echo_n "checking if we can lock with hard links... " >&6; }
20377 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20379 ln conftest.a conftest.b
2>&5 || hard_links
=no
20380 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20382 $as_echo "$hard_links" >&6; }
20383 if test "$hard_links" = no
; then
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20385 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20395 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20397 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20400 # If we're using GNU nm, then we don't want the "-C" option.
20401 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20402 # Also, AIX nm treats weak defined symbols like other global defined
20403 # symbols, whereas GNU nm marks them as "W".
20404 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20405 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'
20407 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'
20411 export_symbols_cmds_CXX
="$ltdll_cmds"
20413 cygwin
* | mingw
* | cegcc
*)
20414 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'
20417 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20420 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20423 $as_echo "$ld_shlibs_CXX" >&6; }
20424 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20426 with_gnu_ld_CXX
=$with_gnu_ld
20434 # Do we need to explicitly link libc?
20436 case "x$archive_cmds_need_lc_CXX" in
20438 # Assume -lc should be added
20439 archive_cmds_need_lc_CXX
=yes
20441 if test "$enable_shared" = yes && test "$GCC" = yes; then
20442 case $archive_cmds_CXX in
20444 # FIXME: we may have to deal with multi-command sequences.
20447 # Test whether the compiler implicitly links with -lc since on some
20448 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20449 # to ld, don't add -lc before -lgcc.
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20451 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20452 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20453 $as_echo_n "(cached) " >&6
20456 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20459 (eval $ac_compile) 2>&5
20461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20462 test $ac_status = 0; } 2>conftest.err
; then
20465 libobjs
=conftest.
$ac_objext
20467 wl
=$lt_prog_compiler_wl_CXX
20468 pic_flag
=$lt_prog_compiler_pic_CXX
20474 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20475 allow_undefined_flag_CXX
=
20476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20477 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20480 test $ac_status = 0; }
20482 lt_cv_archive_cmds_need_lc_CXX
=no
20484 lt_cv_archive_cmds_need_lc_CXX
=yes
20486 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20488 cat conftest.err
1>&5
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20494 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20495 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20566 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20568 library_names_spec
=
20569 libname_spec
='lib$name'
20573 postuninstall_cmds
=
20577 shlibpath_overrides_runpath
=unknown
20579 dynamic_linker
="$host_os ld.so"
20580 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20581 need_lib_prefix
=unknown
20582 hardcode_into_libs
=no
20584 # when you set need_version to no, make sure it does not cause -set_version
20585 # flags to be left without arguments
20586 need_version
=unknown
20591 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20592 shlibpath_var
=LIBPATH
20594 # AIX 3 has no versioning support, so we append a major version to the name.
20595 soname_spec
='${libname}${release}${shared_ext}$major'
20602 hardcode_into_libs
=yes
20603 if test "$host_cpu" = ia64
; then
20604 # AIX 5 supports IA64
20605 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20606 shlibpath_var
=LD_LIBRARY_PATH
20608 # With GCC up to 2.95.x, collect2 would create an import file
20609 # for dependence libraries. The import file would start with
20610 # the line `#! .'. This would cause the generated library to
20611 # depend on `.', always an invalid library. This was fixed in
20612 # development snapshots of GCC prior to 3.0.
20614 aix4 | aix4.
[01] | aix4.
[01].
*)
20615 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20617 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20620 can_build_shared
=no
20624 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20625 # soname into executable. Probably we can add versioning support to
20626 # collect2, so additional links can be useful in future.
20627 if test "$aix_use_runtimelinking" = yes; then
20628 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20629 # instead of lib<name>.a to let people know that these are not
20630 # typical AIX shared libraries.
20631 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20633 # We preserve .a as extension for shared libraries through AIX4.2
20634 # and later when we are not doing run time linking.
20635 library_names_spec
='${libname}${release}.a $libname.a'
20636 soname_spec
='${libname}${release}${shared_ext}$major'
20638 shlibpath_var
=LIBPATH
20645 # Since July 2007 AmigaOS4 officially supports .so libraries.
20646 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20647 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20650 library_names_spec
='$libname.ixlibrary $libname.a'
20651 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20652 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'
20658 library_names_spec
='${libname}${shared_ext}'
20659 dynamic_linker
="$host_os ld.so"
20660 shlibpath_var
=LIBRARY_PATH
20666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20667 soname_spec
='${libname}${release}${shared_ext}$major'
20668 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20669 shlibpath_var
=LD_LIBRARY_PATH
20670 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20671 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20672 # the default ld.so.conf also contains /usr/contrib/lib and
20673 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20674 # libtool to hard-code these into programs
20677 cygwin
* | mingw
* | pw32
* | cegcc
*)
20678 version_type
=windows
20683 case $GCC,$host_os in
20684 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20685 library_names_spec
='$libname.dll.a'
20686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20687 postinstall_cmds
='base_file=`basename \${file}`~
20688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20689 dldir=$destdir/`dirname \$dlpath`~
20690 test -d \$dldir || mkdir -p \$dldir~
20691 $install_prog $dir/$dlname \$dldir/$dlname~
20692 chmod a+x \$dldir/$dlname~
20693 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20694 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20696 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20697 dlpath=$dir/\$dldll~
20699 shlibpath_overrides_runpath
=yes
20703 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20704 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20708 # MinGW DLLs use traditional 'lib' prefix
20709 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20712 # pw32 DLLs use 'pw' prefix rather than 'lib'
20713 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20719 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20722 dynamic_linker
='Win32 ld.exe'
20723 # FIXME: first we should search . and the directory the executable is in
20727 darwin
* | rhapsody
*)
20728 dynamic_linker
="$host_os dyld"
20729 version_type
=darwin
20732 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20733 soname_spec
='${libname}${release}${major}$shared_ext'
20734 shlibpath_overrides_runpath
=yes
20735 shlibpath_var
=DYLD_LIBRARY_PATH
20736 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20738 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20745 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20746 soname_spec
='${libname}${release}${shared_ext}$major'
20747 shlibpath_var
=LD_LIBRARY_PATH
20750 freebsd
* | dragonfly
*)
20751 # DragonFly does not have aout. When/if they implement a new
20752 # versioning mechanism, adjust this.
20753 if test -x /usr
/bin
/objformat
; then
20754 objformat
=`/usr/bin/objformat`
20757 freebsd
[23].
*) objformat
=aout
;;
20758 *) objformat
=elf
;;
20761 version_type
=freebsd-
$objformat
20762 case $version_type in
20764 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20769 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20773 shlibpath_var
=LD_LIBRARY_PATH
20776 shlibpath_overrides_runpath
=yes
20778 freebsd3.
[01]* | freebsdelf3.
[01]*)
20779 shlibpath_overrides_runpath
=yes
20780 hardcode_into_libs
=yes
20782 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20783 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20784 shlibpath_overrides_runpath
=no
20785 hardcode_into_libs
=yes
20787 *) # from 4.6 on, and DragonFly
20788 shlibpath_overrides_runpath
=yes
20789 hardcode_into_libs
=yes
20798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20799 soname_spec
='${libname}${release}${shared_ext}$major'
20800 shlibpath_var
=LD_LIBRARY_PATH
20801 hardcode_into_libs
=yes
20808 dynamic_linker
="$host_os runtime_loader"
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'
20811 shlibpath_var
=LIBRARY_PATH
20812 shlibpath_overrides_runpath
=yes
20813 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20814 hardcode_into_libs
=yes
20817 hpux9
* | hpux10
* | hpux11
*)
20818 # Give a soname corresponding to the major version so that dld.sl refuses to
20819 # link against other versions.
20826 hardcode_into_libs
=yes
20827 dynamic_linker
="$host_os dld.so"
20828 shlibpath_var
=LD_LIBRARY_PATH
20829 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20830 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20831 soname_spec
='${libname}${release}${shared_ext}$major'
20832 if test "X$HPUX_IA64_MODE" = X32
; then
20833 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20835 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20837 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20841 hardcode_into_libs
=yes
20842 dynamic_linker
="$host_os dld.sl"
20843 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20844 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20846 soname_spec
='${libname}${release}${shared_ext}$major'
20847 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20848 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20852 dynamic_linker
="$host_os dld.sl"
20853 shlibpath_var
=SHLIB_PATH
20854 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20856 soname_spec
='${libname}${release}${shared_ext}$major'
20859 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20860 postinstall_cmds
='chmod 555 $lib'
20861 # or fails outright, so override atomically:
20862 install_override_mode
=555
20869 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20870 soname_spec
='${libname}${release}${shared_ext}$major'
20871 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20872 shlibpath_var
=LD_LIBRARY_PATH
20873 shlibpath_overrides_runpath
=no
20874 hardcode_into_libs
=yes
20877 irix5
* | irix6
* | nonstopux
*)
20879 nonstopux
*) version_type
=nonstopux
;;
20881 if test "$lt_cv_prog_gnu_ld" = yes; then
20889 soname_spec
='${libname}${release}${shared_ext}$major'
20890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20892 irix5
* | nonstopux
*)
20893 libsuff
= shlibsuff
=
20896 case $LD in # libtool.m4 will add one of these switches to LD
20897 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20898 libsuff
= shlibsuff
= libmagic
=32-bit;;
20899 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20900 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20901 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20902 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20903 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20907 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20908 shlibpath_overrides_runpath
=no
20909 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20910 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20911 hardcode_into_libs
=yes
20914 # No shared lib support for Linux oldld, aout, or coff.
20915 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20919 # This must be Linux ELF.
20920 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20924 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20925 soname_spec
='${libname}${release}${shared_ext}$major'
20926 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20927 shlibpath_var
=LD_LIBRARY_PATH
20928 shlibpath_overrides_runpath
=no
20930 # Some binutils ld are patched to set DT_RUNPATH
20931 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20932 $as_echo_n "(cached) " >&6
20934 lt_cv_shlibpath_overrides_runpath
=no
20935 save_LDFLAGS
=$LDFLAGS
20936 save_libdir
=$libdir
20937 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20938 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20940 /* end confdefs.h. */
20950 if ac_fn_cxx_try_link
"$LINENO"; then :
20951 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20952 lt_cv_shlibpath_overrides_runpath
=yes
20955 rm -f core conftest.err conftest.
$ac_objext \
20956 conftest
$ac_exeext conftest.
$ac_ext
20957 LDFLAGS
=$save_LDFLAGS
20958 libdir
=$save_libdir
20962 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20964 # This implies no fast_install, which is unacceptable.
20965 # Some rework will be needed to allow for fast_install
20966 # before this can be enabled.
20967 hardcode_into_libs
=yes
20969 # Append ld.so.conf contents to the search path
20970 if test -f /etc
/ld.so.conf
; then
20971 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' ' '`
20972 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20975 # We used to test for /lib/ld.so.1 and disable shared libraries on
20976 # powerpc, because MkLinux only supported shared libraries with the
20977 # GNU dynamic linker. Since this was broken with cross compilers,
20978 # most powerpc-linux boxes support dynamic linking these days and
20979 # people can always --disable-shared, the test was removed, and we
20980 # assume the GNU/Linux dynamic linker is in use.
20981 dynamic_linker
='GNU/Linux ld.so'
20988 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20990 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20991 dynamic_linker
='NetBSD (a.out) ld.so'
20993 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20994 soname_spec
='${libname}${release}${shared_ext}$major'
20995 dynamic_linker
='NetBSD ld.elf_so'
20997 shlibpath_var
=LD_LIBRARY_PATH
20998 shlibpath_overrides_runpath
=yes
20999 hardcode_into_libs
=yes
21004 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21005 shlibpath_var
=LD_LIBRARY_PATH
21006 shlibpath_overrides_runpath
=yes
21013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21014 soname_spec
='${libname}${release}${shared_ext}$major'
21015 shlibpath_var
=LD_LIBRARY_PATH
21016 shlibpath_overrides_runpath
=no
21017 hardcode_into_libs
=yes
21018 dynamic_linker
='ldqnx.so'
21023 sys_lib_dlsearch_path_spec
="/usr/lib"
21025 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21027 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21028 *) need_version
=no
;;
21030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21031 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21032 shlibpath_var
=LD_LIBRARY_PATH
21033 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21035 openbsd2.
[89] | openbsd2.
[89].
*)
21036 shlibpath_overrides_runpath
=no
21039 shlibpath_overrides_runpath
=yes
21043 shlibpath_overrides_runpath
=yes
21048 libname_spec
='$name'
21051 library_names_spec
='$libname${shared_ext} $libname.a'
21052 dynamic_linker
='OS/2 ld.exe'
21053 shlibpath_var
=LIBPATH
21056 osf3
* | osf4
* | osf5
*)
21060 soname_spec
='${libname}${release}${shared_ext}$major'
21061 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21062 shlibpath_var
=LD_LIBRARY_PATH
21063 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21064 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21075 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21076 soname_spec
='${libname}${release}${shared_ext}$major'
21077 shlibpath_var
=LD_LIBRARY_PATH
21078 shlibpath_overrides_runpath
=yes
21079 hardcode_into_libs
=yes
21080 # ldd complains unless libraries are executable
21081 postinstall_cmds
='chmod +x $lib'
21086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21087 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21088 shlibpath_var
=LD_LIBRARY_PATH
21089 shlibpath_overrides_runpath
=yes
21090 if test "$with_gnu_ld" = yes; then
21098 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21099 soname_spec
='${libname}${release}${shared_ext}$major'
21100 shlibpath_var
=LD_LIBRARY_PATH
21101 case $host_vendor in
21103 shlibpath_overrides_runpath
=no
21105 runpath_var
=LD_RUN_PATH
21113 shlibpath_overrides_runpath
=no
21114 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21120 if test -d /usr
/nec
;then
21122 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21123 soname_spec
='$libname${shared_ext}.$major'
21124 shlibpath_var
=LD_LIBRARY_PATH
21128 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21129 version_type
=freebsd-elf
21132 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21133 soname_spec
='${libname}${release}${shared_ext}$major'
21134 shlibpath_var
=LD_LIBRARY_PATH
21135 shlibpath_overrides_runpath
=yes
21136 hardcode_into_libs
=yes
21137 if test "$with_gnu_ld" = yes; then
21138 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21140 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21143 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21147 sys_lib_dlsearch_path_spec
='/usr/lib'
21151 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21156 shlibpath_var
=LD_LIBRARY_PATH
21157 shlibpath_overrides_runpath
=no
21158 hardcode_into_libs
=yes
21163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21164 soname_spec
='${libname}${release}${shared_ext}$major'
21165 shlibpath_var
=LD_LIBRARY_PATH
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21173 $as_echo "$dynamic_linker" >&6; }
21174 test "$dynamic_linker" = no
&& can_build_shared
=no
21176 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21177 if test "$GCC" = yes; then
21178 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21181 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21182 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21184 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21185 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21226 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21227 hardcode_action_CXX
=
21228 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21229 test -n "$runpath_var_CXX" ||
21230 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21232 # We can hardcode non-existent directories.
21233 if test "$hardcode_direct_CXX" != no
&&
21234 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21235 # have to relink, otherwise we might link with an installed library
21236 # when we should be linking with a yet-to-be-installed one
21237 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21238 test "$hardcode_minus_L_CXX" != no
; then
21239 # Linking always hardcodes the temporary library directory.
21240 hardcode_action_CXX
=relink
21242 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21243 hardcode_action_CXX
=immediate
21246 # We cannot hardcode anything, or else we can only hardcode existing
21248 hardcode_action_CXX
=unsupported
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21251 $as_echo "$hardcode_action_CXX" >&6; }
21253 if test "$hardcode_action_CXX" = relink ||
21254 test "$inherit_rpath_CXX" = yes; then
21255 # Fast installation is not supported
21256 enable_fast_install
=no
21257 elif test "$shlibpath_overrides_runpath" = yes ||
21258 test "$enable_shared" = no
; then
21259 # Fast installation is not necessary
21260 enable_fast_install
=needless
21269 fi # test -n "$compiler"
21275 with_gnu_ld
=$lt_save_with_gnu_ld
21276 lt_cv_path_LDCXX
=$lt_cv_path_LD
21277 lt_cv_path_LD
=$lt_save_path_LD
21278 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21279 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21280 fi # test "$_lt_caught_CXX_error" != yes
21283 ac_cpp
='$CPP $CPPFLAGS'
21284 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21285 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21286 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21303 # Only expand once:
21309 # Identify the assembler which will work hand-in-glove with the newly
21310 # built GCC, so that we can examine its features. This is the assembler
21311 # which will be driven by the driver program.
21313 # If build != host, and we aren't building gas in-tree, we identify a
21314 # build->target assembler and hope that it will have the same features
21315 # as the host->target assembler we'll be using.
21316 gcc_cv_gas_major_version
=
21317 gcc_cv_gas_minor_version
=
21318 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21320 if test "${gcc_cv_as+set}" = set; then :
21324 if test -x "$DEFAULT_ASSEMBLER"; then
21325 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21326 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21327 && test -f ..
/gas
/Makefile \
21328 && test x
$build = x
$host; then
21329 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21330 elif test -x as
$build_exeext; then
21331 # Build using assembler in the current directory.
21332 gcc_cv_as
=.
/as
$build_exeext
21333 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21334 gcc_cv_as
="$AS_FOR_TARGET"
21336 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21337 set dummy
$AS_FOR_TARGET; ac_word
=$2
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21339 $as_echo_n "checking for $ac_word... " >&6; }
21340 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21341 $as_echo_n "(cached) " >&6
21345 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21349 for as_dir
in $PATH
21352 test -z "$as_dir" && as_dir
=.
21353 for ac_exec_ext
in '' $ac_executable_extensions; do
21354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21355 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21366 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21367 if test -n "$gcc_cv_as"; then
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21369 $as_echo "$gcc_cv_as" >&6; }
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21372 $as_echo "no" >&6; }
21379 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21381 case "$ORIGINAL_AS_FOR_TARGET" in
21382 .
/as | .
/as
$build_exeext) ;;
21383 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21388 $as_echo_n "checking what assembler to use... " >&6; }
21389 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21390 # Single tree build which includes gas. We want to prefer it
21391 # over whatever linker top-level may have detected, since
21392 # we'll use what we're building after installation anyway.
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21394 $as_echo "newly built gas" >&6; }
21396 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21397 for f
in $gcc_cv_as_bfd_srcdir/configure \
21398 $gcc_cv_as_gas_srcdir/configure \
21399 $gcc_cv_as_gas_srcdir/configure.
in \
21400 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21401 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21402 if test x
$gcc_cv_gas_version != x
; then
21406 case $gcc_cv_gas_version in
21408 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21410 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21411 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21412 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21413 case $gcc_cv_gas_patch_version in
21414 "") gcc_cv_gas_patch_version
="0" ;;
21416 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21417 + $gcc_cv_gas_minor_version \) \* 1000 \
21418 + $gcc_cv_gas_patch_version`
21420 in_tree_gas_is_elf
=no
21421 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21422 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21423 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21425 in_tree_gas_is_elf
=yes
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21429 $as_echo "$gcc_cv_as" >&6; }
21434 # Check whether --enable-ld was given.
21435 if test "${enable_ld+set}" = set; then :
21436 enableval
=$enable_ld; case "${enableval}" in
21444 # Check whether --enable-gold was given.
21445 if test "${enable_gold+set}" = set; then :
21446 enableval
=$enable_gold; case "${enableval}" in
21448 install_gold_as_default
=yes
21451 if test x
${default_ld} != x
; then
21452 install_gold_as_default
=yes
21458 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21462 install_gold_as_default
=no
21466 # Identify the linker which will work hand-in-glove with the newly
21467 # built GCC, so that we can examine its features. This is the linker
21468 # which will be driven by the driver program.
21470 # If build != host, and we aren't building gas in-tree, we identify a
21471 # build->target linker and hope that it will have the same features
21472 # as the host->target linker we'll be using.
21473 gcc_cv_gld_major_version
=
21474 gcc_cv_gld_minor_version
=
21475 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21476 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21477 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21479 if test "${gcc_cv_ld+set}" = set; then :
21483 if test -x "$DEFAULT_LINKER"; then
21484 gcc_cv_ld
="$DEFAULT_LINKER"
21485 elif test $install_gold_as_default = yes \
21486 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21487 && test -f ..
/gold
/Makefile \
21488 && test x
$build = x
$host; then
21489 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21490 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21491 && test -f ..
/ld
/Makefile \
21492 && test x
$build = x
$host; then
21493 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21494 elif test -x collect-ld
$build_exeext; then
21495 # Build using linker in the current directory.
21496 gcc_cv_ld
=.
/collect-ld
$build_exeext
21497 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21498 gcc_cv_ld
="$LD_FOR_TARGET"
21500 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21501 set dummy
$LD_FOR_TARGET; ac_word
=$2
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21503 $as_echo_n "checking for $ac_word... " >&6; }
21504 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21505 $as_echo_n "(cached) " >&6
21509 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21513 for as_dir
in $PATH
21516 test -z "$as_dir" && as_dir
=.
21517 for ac_exec_ext
in '' $ac_executable_extensions; do
21518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21519 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21530 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21531 if test -n "$gcc_cv_ld"; then
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21533 $as_echo "$gcc_cv_ld" >&6; }
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21536 $as_echo "no" >&6; }
21543 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21544 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21545 # if the PLUGIN_LD is set ld-new, just have it as ld
21546 # as that is the installed named.
21547 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21548 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21549 PLUGIN_LD_SUFFIX
=ld
21552 # Check whether --with-plugin-ld was given.
21553 if test "${with_plugin_ld+set}" = set; then :
21554 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21555 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21556 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21562 cat >>confdefs.h
<<_ACEOF
21563 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21567 # Check to see if we are using gold instead of ld
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21569 $as_echo_n "checking whether we are using gold... " >&6; }
21571 if test x
$gcc_cv_ld != x
; then
21572 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21573 |
grep "GNU gold" > /dev
/null
; then
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21578 $as_echo "$ld_is_gold" >&6; }
21580 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21582 case "$ORIGINAL_LD_FOR_TARGET" in
21583 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21584 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21589 $as_echo_n "checking what linker to use... " >&6; }
21590 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21591 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21592 # Single tree build which includes ld. We want to prefer it
21593 # over whatever linker top-level may have detected, since
21594 # we'll use what we're building after installation anyway.
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21596 $as_echo "newly built ld" >&6; }
21598 in_tree_ld_is_elf
=no
21599 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21600 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21601 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21602 in_tree_ld_is_elf
=yes
21603 elif test "$ld_is_gold" = yes; then
21604 in_tree_ld_is_elf
=yes
21606 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
21608 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21609 if test x
$gcc_cv_gld_version != x
; then
21613 case $gcc_cv_gld_version in
21615 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21617 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21618 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21619 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
21620 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21623 $as_echo "$gcc_cv_ld" >&6; }
21625 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21626 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
21627 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
21633 # Figure out what nm we will be using.
21634 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21635 if test "${gcc_cv_nm+set}" = set; then :
21639 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21640 && test -f ..
/binutils
/Makefile \
21641 && test x
$build = x
$host; then
21642 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21643 elif test -x nm
$build_exeext; then
21644 gcc_cv_nm
=.
/nm
$build_exeext
21645 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21646 gcc_cv_nm
="$NM_FOR_TARGET"
21648 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21649 set dummy
$NM_FOR_TARGET; ac_word
=$2
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21651 $as_echo_n "checking for $ac_word... " >&6; }
21652 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21653 $as_echo_n "(cached) " >&6
21657 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21661 for as_dir
in $PATH
21664 test -z "$as_dir" && as_dir
=.
21665 for ac_exec_ext
in '' $ac_executable_extensions; do
21666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21667 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21678 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21679 if test -n "$gcc_cv_nm"; then
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21681 $as_echo "$gcc_cv_nm" >&6; }
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21684 $as_echo "no" >&6; }
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21692 $as_echo_n "checking what nm to use... " >&6; }
21693 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21694 # Single tree build which includes binutils.
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21696 $as_echo "newly built nm" >&6; }
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21700 $as_echo "$gcc_cv_nm" >&6; }
21704 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21706 case "$ORIGINAL_NM_FOR_TARGET" in
21707 .
/nm | .
/nm
$build_exeext) ;;
21708 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21713 # Figure out what objdump we will be using.
21714 if test "${gcc_cv_objdump+set}" = set; then :
21718 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21719 && test -f ..
/binutils
/Makefile \
21720 && test x
$build = x
$host; then
21721 # Single tree build which includes binutils.
21722 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21723 elif test -x objdump
$build_exeext; then
21724 gcc_cv_objdump
=.
/objdump
$build_exeext
21725 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21726 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21728 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21729 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21731 $as_echo_n "checking for $ac_word... " >&6; }
21732 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21733 $as_echo_n "(cached) " >&6
21735 case $gcc_cv_objdump in
21737 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21741 for as_dir
in $PATH
21744 test -z "$as_dir" && as_dir
=.
21745 for ac_exec_ext
in '' $ac_executable_extensions; do
21746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21747 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21758 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21759 if test -n "$gcc_cv_objdump"; then
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21761 $as_echo "$gcc_cv_objdump" >&6; }
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21764 $as_echo "no" >&6; }
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21772 $as_echo_n "checking what objdump to use... " >&6; }
21773 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21774 # Single tree build which includes binutils.
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21776 $as_echo "newly built objdump" >&6; }
21777 elif test x
$gcc_cv_objdump = x
; then
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21779 $as_echo "not found" >&6; }
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21782 $as_echo "$gcc_cv_objdump" >&6; }
21785 # Figure out what readelf we will be using.
21786 if test "${gcc_cv_readelf+set}" = set; then :
21790 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21791 && test -f ..
/binutils
/Makefile \
21792 && test x
$build = x
$host; then
21793 # Single tree build which includes binutils.
21794 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21795 elif test -x readelf
$build_exeext; then
21796 gcc_cv_readelf
=.
/readelf
$build_exeext
21798 # Extract the first word of "readelf", so it can be a program name with args.
21799 set dummy readelf
; ac_word
=$2
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21801 $as_echo_n "checking for $ac_word... " >&6; }
21802 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21803 $as_echo_n "(cached) " >&6
21805 case $gcc_cv_readelf in
21807 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21811 for as_dir
in $PATH
21814 test -z "$as_dir" && as_dir
=.
21815 for ac_exec_ext
in '' $ac_executable_extensions; do
21816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21817 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21828 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21829 if test -n "$gcc_cv_readelf"; then
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21831 $as_echo "$gcc_cv_readelf" >&6; }
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21834 $as_echo "no" >&6; }
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21842 $as_echo_n "checking what readelf to use... " >&6; }
21843 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21844 # Single tree build which includes binutils.
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21846 $as_echo "newly built readelf" >&6; }
21847 elif test x
$gcc_cv_readelf = x
; then
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21849 $as_echo "not found" >&6; }
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21852 $as_echo "$gcc_cv_readelf" >&6; }
21855 # Figure out what assembler alignment features are present.
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21857 $as_echo_n "checking assembler flags... " >&6; }
21858 if test "${gcc_cv_as_flags+set}" = set; then :
21859 $as_echo_n "(cached) " >&6
21862 i
[34567]86-*-linux*)
21863 gcc_cv_as_flags
=--32
21865 x86_64-
*-linux-gnux32)
21866 gcc_cv_as_flags
=--x32
21869 gcc_cv_as_flags
=--64
21871 powerpc
*-*-darwin*)
21872 gcc_cv_as_flags
="-arch ppc"
21875 gcc_cv_as_flags
=" "
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21880 $as_echo "$gcc_cv_as_flags" >&6; }
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21883 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21884 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21885 $as_echo_n "(cached) " >&6
21887 gcc_cv_as_balign_and_p2align
=no
21888 if test $in_tree_gas = yes; then
21889 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21890 then gcc_cv_as_balign_and_p2align
=yes
21892 elif test x
$gcc_cv_as != x
; then
21893 $as_echo '.balign 4
21894 .p2align 2' > conftest.s
21895 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21897 (eval $ac_try) 2>&5
21899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21900 test $ac_status = 0; }; }
21902 gcc_cv_as_balign_and_p2align
=yes
21904 echo "configure: failed program was" >&5
21907 rm -f conftest.o conftest.s
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21911 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21912 if test $gcc_cv_as_balign_and_p2align = yes; then
21914 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21919 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21920 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21921 $as_echo_n "(cached) " >&6
21923 gcc_cv_as_max_skip_p2align
=no
21924 if test $in_tree_gas = yes; then
21925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21926 then gcc_cv_as_max_skip_p2align
=yes
21928 elif test x
$gcc_cv_as != x
; then
21929 $as_echo '.p2align 4,,7' > conftest.s
21930 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21932 (eval $ac_try) 2>&5
21934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21935 test $ac_status = 0; }; }
21937 gcc_cv_as_max_skip_p2align
=yes
21939 echo "configure: failed program was" >&5
21942 rm -f conftest.o conftest.s
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21946 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21947 if test $gcc_cv_as_max_skip_p2align = yes; then
21949 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21954 $as_echo_n "checking assembler for .literal16... " >&6; }
21955 if test "${gcc_cv_as_literal16+set}" = set; then :
21956 $as_echo_n "(cached) " >&6
21958 gcc_cv_as_literal16
=no
21959 if test $in_tree_gas = yes; then
21960 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21961 then gcc_cv_as_literal16
=yes
21963 elif test x
$gcc_cv_as != x
; then
21964 $as_echo '.literal16' > conftest.s
21965 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21967 (eval $ac_try) 2>&5
21969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21970 test $ac_status = 0; }; }
21972 gcc_cv_as_literal16
=yes
21974 echo "configure: failed program was" >&5
21977 rm -f conftest.o conftest.s
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21981 $as_echo "$gcc_cv_as_literal16" >&6; }
21982 if test $gcc_cv_as_literal16 = yes; then
21984 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21989 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21990 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21991 $as_echo_n "(cached) " >&6
21993 gcc_cv_as_subsection_m1
=no
21994 if test $in_tree_gas = yes; then
21995 if test $in_tree_gas_is_elf = yes \
21996 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21997 then gcc_cv_as_subsection_m1
=yes
21999 elif test x
$gcc_cv_as != x
; then
22000 $as_echo 'conftest_label1: .word 0
22002 conftest_label2: .word 0
22003 .previous' > conftest.s
22004 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22006 (eval $ac_try) 2>&5
22008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22009 test $ac_status = 0; }; }
22011 if test x
$gcc_cv_nm != x
; then
22012 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22013 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22014 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22016 else gcc_cv_as_subsection_m1
=yes
22018 rm -f conftest.nm1 conftest.nm2
22021 echo "configure: failed program was" >&5
22024 rm -f conftest.o conftest.s
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22028 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22029 if test $gcc_cv_as_subsection_m1 = yes; then
22031 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22036 $as_echo_n "checking assembler for .weak... " >&6; }
22037 if test "${gcc_cv_as_weak+set}" = set; then :
22038 $as_echo_n "(cached) " >&6
22041 if test $in_tree_gas = yes; then
22042 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22043 then gcc_cv_as_weak
=yes
22045 elif test x
$gcc_cv_as != x
; then
22046 $as_echo ' .weak foobar' > conftest.s
22047 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22049 (eval $ac_try) 2>&5
22051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22052 test $ac_status = 0; }; }
22056 echo "configure: failed program was" >&5
22059 rm -f conftest.o conftest.s
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22063 $as_echo "$gcc_cv_as_weak" >&6; }
22064 if test $gcc_cv_as_weak = yes; then
22066 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22071 $as_echo_n "checking assembler for .weakref... " >&6; }
22072 if test "${gcc_cv_as_weakref+set}" = set; then :
22073 $as_echo_n "(cached) " >&6
22075 gcc_cv_as_weakref
=no
22076 if test $in_tree_gas = yes; then
22077 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22078 then gcc_cv_as_weakref
=yes
22080 elif test x
$gcc_cv_as != x
; then
22081 $as_echo ' .weakref foobar, barfnot' > conftest.s
22082 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22084 (eval $ac_try) 2>&5
22086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22087 test $ac_status = 0; }; }
22089 gcc_cv_as_weakref
=yes
22091 echo "configure: failed program was" >&5
22094 rm -f conftest.o conftest.s
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22098 $as_echo "$gcc_cv_as_weakref" >&6; }
22099 if test $gcc_cv_as_weakref = yes; then
22101 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22106 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22107 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22108 $as_echo_n "(cached) " >&6
22110 gcc_cv_as_nsubspa_comdat
=no
22111 if test $in_tree_gas = yes; then
22112 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22113 then gcc_cv_as_nsubspa_comdat
=yes
22115 elif test x
$gcc_cv_as != x
; then
22116 $as_echo ' .SPACE $TEXT$
22117 .NSUBSPA $CODE$,COMDAT' > conftest.s
22118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22120 (eval $ac_try) 2>&5
22122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22123 test $ac_status = 0; }; }
22125 gcc_cv_as_nsubspa_comdat
=yes
22127 echo "configure: failed program was" >&5
22130 rm -f conftest.o conftest.s
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22134 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22135 if test $gcc_cv_as_nsubspa_comdat = yes; then
22137 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22141 # .hidden needs to be supported in both the assembler and the linker,
22142 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22143 # This is irritatingly difficult to feature test for; we have to check the
22144 # date string after the version number. If we've got an in-tree
22145 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22147 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22149 $as_echo_n "checking assembler for .hidden... " >&6; }
22150 if test "${gcc_cv_as_hidden+set}" = set; then :
22151 $as_echo_n "(cached) " >&6
22153 gcc_cv_as_hidden
=no
22154 if test $in_tree_gas = yes; then
22155 if test $in_tree_gas_is_elf = yes \
22156 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22157 then gcc_cv_as_hidden
=yes
22159 elif test x
$gcc_cv_as != x
; then
22160 $as_echo ' .hidden foobar
22161 foobar:' > conftest.s
22162 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22164 (eval $ac_try) 2>&5
22166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22167 test $ac_status = 0; }; }
22170 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22171 # STV_HIDDEN, so disable .hidden support if so.
22172 case "${target}" in
22173 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22174 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22175 cat > conftest.s
<<EOF
22180 .set default,hidden
22182 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22183 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22184 grep '\.hidden default' > /dev
/null
; then
22185 gcc_cv_as_hidden
=no
22187 gcc_cv_as_hidden
=yes
22190 # Assume bug is present if objdump is missing.
22191 gcc_cv_as_hidden
=no
22195 gcc_cv_as_hidden
=yes
22199 echo "configure: failed program was" >&5
22202 rm -f conftest.o conftest.s
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22206 $as_echo "$gcc_cv_as_hidden" >&6; }
22208 case "${target}" in
22210 # Darwin as has some visibility support, though with a different syntax.
22211 gcc_cv_as_hidden
=yes
22215 # gnu_indirect_function type is an extension proposed at
22216 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22217 # selection of function implementation
22218 # Check whether --enable-gnu-indirect-function was given.
22219 if test "${enable_gnu_indirect_function+set}" = set; then :
22220 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22222 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22223 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22226 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22230 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22232 cat >>confdefs.h
<<_ACEOF
22233 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22238 if test $in_tree_ld != yes ; then
22239 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22240 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22241 if test x
"$ld_is_gold" = xyes
; then
22242 # GNU gold --version looks like this:
22244 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22246 # We extract the binutils version which is more familiar and specific
22247 # than the gold version.
22248 ld_vers
=`echo $ld_ver | sed -n \
22249 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22251 # GNU ld --version looks like this:
22253 # GNU ld (GNU Binutils) 2.21.51.20110225
22254 ld_vers
=`echo $ld_ver | sed -n \
22255 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22257 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'`
22258 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22259 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22260 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22262 case "${target}" in
22264 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22267 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22268 # /usr/ccs/bin/ld has been configured.
22269 ld_ver
=`$gcc_cv_ld -V 2>&1`
22270 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22271 ld_vers
=`echo $ld_ver | sed -n \
22272 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22273 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22274 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22282 $as_echo_n "checking linker for .hidden support... " >&6; }
22283 if test "${gcc_cv_ld_hidden+set}" = set; then :
22284 $as_echo_n "(cached) " >&6
22286 if test $in_tree_ld = yes ; then
22287 gcc_cv_ld_hidden
=no
22288 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 \
22289 && test $in_tree_ld_is_elf = yes; then
22290 gcc_cv_ld_hidden
=yes
22293 gcc_cv_ld_hidden
=yes
22294 if test x
"$ld_is_gold" = xyes
; then
22296 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22297 case "${target}" in
22298 mmix-knuth-mmixware
)
22299 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22300 gcc_cv_ld_hidden
=no
22303 if test 0"$ld_date" -lt 20020404; then
22304 if test -n "$ld_date"; then
22305 # If there was date string, but was earlier than 2002-04-04, fail
22306 gcc_cv_ld_hidden
=no
22307 elif test -z "$ld_vers"; then
22308 # If there was no date string nor ld version number, something is wrong
22309 gcc_cv_ld_hidden
=no
22311 test -z "$ld_vers_patch" && ld_vers_patch
=0
22312 if test "$ld_vers_major" -lt 2; then
22313 gcc_cv_ld_hidden
=no
22314 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22315 gcc_cv_ld_hidden
="no"
22316 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22317 gcc_cv_ld_hidden
=no
22322 case "${target}" in
22324 # Darwin ld has some visibility support.
22325 gcc_cv_ld_hidden
=yes
22327 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22328 gcc_cv_ld_hidden
=yes
22330 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22331 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22332 # .symbolic was only added in Solaris 9 12/02.
22333 gcc_cv_ld_hidden
=yes
22336 gcc_cv_ld_hidden
=no
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22343 $as_echo "$gcc_cv_ld_hidden" >&6; }
22344 libgcc_visibility
=no
22347 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22348 libgcc_visibility
=yes
22350 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22355 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22356 gcc_cv_ld_ro_rw_mix
=unknown
22357 if test $in_tree_ld = yes ; then
22358 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 \
22359 && test $in_tree_ld_is_elf = yes; then
22360 gcc_cv_ld_ro_rw_mix
=read-write
22362 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22363 echo '.section myfoosect, "a"' > conftest1.s
22364 echo '.section myfoosect, "aw"' > conftest2.s
22365 echo '.byte 1' >> conftest2.s
22366 echo '.section myfoosect, "a"' > conftest3.s
22367 echo '.byte 0' >> conftest3.s
22368 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22369 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22370 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22371 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22372 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22373 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22374 | sed -e '/myfoosect/!d' -e N`
22375 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22376 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22377 gcc_cv_ld_ro_rw_mix
=read-only
22379 gcc_cv_ld_ro_rw_mix
=read-write
22383 rm -f conftest.
* conftest
[123].
*
22385 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22387 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22391 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22393 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22394 case "${target}" in
22397 # Solaris 2 ld -V output looks like this for a regular version:
22399 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22401 # but test versions add stuff at the end:
22403 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22405 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22406 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22407 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22408 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22409 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22410 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22416 # Check whether --enable-initfini-array was given.
22417 if test "${enable_initfini_array+set}" = set; then :
22418 enableval
=$enable_initfini_array;
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22422 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22423 if test "${gcc_cv_initfini_array+set}" = set; then :
22424 $as_echo_n "(cached) " >&6
22426 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22427 case "${target}" in
22429 if test "$cross_compiling" = yes; then :
22430 gcc_cv_initfini_array
=no
22432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22433 /* end confdefs.h. */
22436 #error Not an ELF OS
22438 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22439 if it can be used. */
22441 int main (void) { return x; }
22442 int foo (void) { x = 0; }
22443 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22446 if ac_fn_c_try_run
"$LINENO"; then :
22447 gcc_cv_initfini_array
=yes
22449 gcc_cv_initfini_array
=no
22451 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22452 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22456 gcc_cv_initfini_array
=no
22457 if test $in_tree_ld = yes ; then
22458 if test "$gcc_cv_gld_major_version" -eq 2 \
22459 -a "$gcc_cv_gld_minor_version" -ge 22 \
22460 -o "$gcc_cv_gld_major_version" -gt 2 \
22461 && test $in_tree_ld_is_elf = yes; then
22462 gcc_cv_initfini_array
=yes
22464 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22465 cat > conftest.s
<<\EOF
22466 .section .dtors
,"a",%progbits
22468 .byte
'A', 'A', 'A', 'A'
22469 .section .ctors
,"a",%progbits
22471 .byte
'B', 'B', 'B', 'B'
22472 .section .fini_array
.65530,"a",%progbits
22474 .byte
'C', 'C', 'C', 'C'
22475 .section .init_array
.65530,"a",%progbits
22477 .byte
'D', 'D', 'D', 'D'
22478 .section .dtors
.64528,"a",%progbits
22480 .byte
'E', 'E', 'E', 'E'
22481 .section .ctors
.64528,"a",%progbits
22483 .byte
'F', 'F', 'F', 'F'
22484 .section .fini_array
.01005,"a",%progbits
22486 .byte
'G', 'G', 'G', 'G'
22487 .section .init_array
.01005,"a",%progbits
22489 .byte
'H', 'H', 'H', 'H'
22494 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22495 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22496 && $gcc_cv_objdump -s -j .init_array conftest \
22497 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22498 && $gcc_cv_objdump -s -j .fini_array conftest \
22499 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22500 gcc_cv_initfini_array
=yes
22502 rm -f conftest conftest.
*
22504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22505 /* end confdefs.h. */
22508 # error Not an ELF OS
22510 #include <stdlib.h>
22511 #if defined __GLIBC_PREREQ
22512 # if __GLIBC_PREREQ (2, 4)
22514 # error GLIBC 2.4 required
22517 # if defined __sun__ && defined __svr4__
22518 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22520 # error The C library not known to support .init_array/.fini_array
22525 if ac_fn_c_try_cpp
"$LINENO"; then :
22528 gcc_cv_initfini_array
=no
22530 rm -f conftest.err conftest.
$ac_ext;;
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22534 $as_echo_n "checking cross compile... guessing... " >&6; }
22535 gcc_cv_initfini_array
=no
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22539 $as_echo "$gcc_cv_initfini_array" >&6; }
22540 enable_initfini_array
=$gcc_cv_initfini_array
22544 if test $enable_initfini_array = yes; then
22546 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22550 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22552 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22553 if test "${gcc_cv_as_leb128+set}" = set; then :
22554 $as_echo_n "(cached) " >&6
22556 gcc_cv_as_leb128
=no
22557 if test $in_tree_gas = yes; then
22558 if test $in_tree_gas_is_elf = yes \
22559 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22560 then gcc_cv_as_leb128
=yes
22562 elif test x
$gcc_cv_as != x
; then
22569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22571 (eval $ac_try) 2>&5
22573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22574 test $ac_status = 0; }; }
22576 # GAS versions before 2.11 do not support uleb128,
22577 # despite appearing to.
22578 # ??? There exists an elf-specific test that will crash
22579 # the assembler. Perhaps it's better to figure out whether
22580 # arbitrary sections are supported and try the test.
22581 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22582 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22583 as_vers
=`echo $as_ver | sed -n \
22584 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22585 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22586 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22587 if test $as_major -eq 2 && test $as_minor -lt 11
22589 else gcc_cv_as_leb128
=yes
22593 echo "configure: failed program was" >&5
22596 rm -f conftest.o conftest.s
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22600 $as_echo "$gcc_cv_as_leb128" >&6; }
22601 if test $gcc_cv_as_leb128 = yes; then
22603 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22607 # Check if we have assembler support for unwind directives.
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22609 $as_echo_n "checking assembler for cfi directives... " >&6; }
22610 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22611 $as_echo_n "(cached) " >&6
22613 gcc_cv_as_cfi_directive
=no
22614 if test x
$gcc_cv_as != x
; then
22620 .cfi_escape 1, 2, 3, 4, 5
22621 .cfi_endproc' > conftest.s
22622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22624 (eval $ac_try) 2>&5
22626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22627 test $ac_status = 0; }; }
22631 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22632 # read-only and read-write sections, we need to make sure that the
22633 # assembler used emits read-write .eh_frame sections.
22634 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22635 if test "x$gcc_cv_objdump" != x
; then
22636 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22637 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22638 gcc_cv_as_cfi_directive
=no
22641 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22642 # On Solaris/x86, make sure that GCC and gas agree on using
22643 # read-only .eh_frame sections for 64-bit.
22644 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22645 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22646 sed -e /.eh_frame
/!d
-e N | \
22647 grep READONLY
> /dev
/null
; then
22648 gcc_cv_as_cfi_directive
=yes
22650 gcc_cv_as_cfi_directive
=no
22654 gcc_cv_as_cfi_directive
=yes
22659 # no objdump, err on the side of caution
22660 gcc_cv_as_cfi_directive
=no
22663 gcc_cv_as_cfi_directive
=yes
22667 gcc_cv_as_cfi_directive
=yes
22671 echo "configure: failed program was" >&5
22674 rm -f conftest.o conftest.s
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22678 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22680 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22682 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22683 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22684 $as_echo_n "(cached) " >&6
22686 gcc_cv_as_cfi_advance_working
=no
22687 if test x
$gcc_cv_as != x
; then
22690 .cfi_adjust_cfa_offset 64
22692 .cfi_adjust_cfa_offset 128
22693 .cfi_endproc' > conftest.s
22694 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22696 (eval $ac_try) 2>&5
22698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22699 test $ac_status = 0; }; }
22702 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22703 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22704 gcc_cv_as_cfi_advance_working
=yes
22708 echo "configure: failed program was" >&5
22711 rm -f conftest.o conftest.s
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22715 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22718 # no objdump, err on the side of caution
22719 gcc_cv_as_cfi_advance_working
=no
22723 cat >>confdefs.h
<<_ACEOF
22724 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22725 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22731 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22732 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22733 $as_echo_n "(cached) " >&6
22735 gcc_cv_as_cfi_personality_directive
=no
22736 if test x
$gcc_cv_as != x
; then
22739 .cfi_personality 0, symbol
22740 .cfi_endproc' > conftest.s
22741 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22743 (eval $ac_try) 2>&5
22745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22746 test $ac_status = 0; }; }
22748 gcc_cv_as_cfi_personality_directive
=yes
22750 echo "configure: failed program was" >&5
22753 rm -f conftest.o conftest.s
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22757 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22760 cat >>confdefs.h
<<_ACEOF
22761 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22762 then echo 1; else echo 0; fi`
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22767 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22768 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22769 $as_echo_n "(cached) " >&6
22771 gcc_cv_as_cfi_sections_directive
=no
22772 if test x
$gcc_cv_as != x
; then
22774 .cfi_sections .debug_frame, .eh_frame
22776 .cfi_endproc' > conftest.s
22777 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22779 (eval $ac_try) 2>&5
22781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22782 test $ac_status = 0; }; }
22785 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22786 # Need to check that we generated the correct relocation for the
22787 # .debug_frame section. This was fixed for binutils 2.21.
22788 gcc_cv_as_cfi_sections_directive
=no
22789 if test "x$gcc_cv_objdump" != x
; then
22790 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22791 grep secrel
> /dev
/null
; then
22792 gcc_cv_as_cfi_sections_directive
=yes
22797 gcc_cv_as_cfi_sections_directive
=yes
22801 echo "configure: failed program was" >&5
22804 rm -f conftest.o conftest.s
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22808 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22812 cat >>confdefs.h
<<_ACEOF
22813 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22814 then echo 1; else echo 0; fi`
22818 # GAS versions up to and including 2.11.0 may mis-optimize
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22821 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22822 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22823 $as_echo_n "(cached) " >&6
22825 gcc_cv_as_eh_frame
=no
22826 if test $in_tree_gas = yes; then
22827 if test $in_tree_gas_is_elf = yes \
22828 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22829 then gcc_cv_as_eh_frame
=yes
22831 elif test x
$gcc_cv_as != x
; then
22838 .section .eh_frame,"aw",@progbits
22840 .4byte .LECIE1-.LSCIE1
22854 .4byte .LEFDE1-.LASFDE1
22856 .4byte .LASFDE1-__FRAME_BEGIN__
22863 .LEFDE1:' > conftest.s
22864 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22866 (eval $ac_try) 2>&5
22868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22869 test $ac_status = 0; }; }
22871 cat > conftest.lit
<<EOF
22872 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22873 0010 01000000 12000000 18000000 00000000 ................
22874 0020 08000000 04080000 0044 .........D
22876 cat > conftest.big
<<EOF
22877 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22878 0010 00000001 00000012 00000018 00000000 ................
22879 0020 00000008 04000000 0844 .........D
22881 # If the assembler didn't choke, and we can objdump,
22882 # and we got the correct data, then succeed.
22883 # The text in the here-document typically retains its unix-style line
22884 # endings, while the output of objdump will use host line endings.
22885 # Therefore, use diff -b for the comparisons.
22886 if test x
$gcc_cv_objdump != x \
22887 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22888 |
tail -3 > conftest.got \
22889 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22890 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22892 gcc_cv_as_eh_frame
=yes
22893 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22895 (eval $ac_try) 2>&5
22897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22898 test $ac_status = 0; }; }; then
22899 gcc_cv_as_eh_frame
=buggy
22901 # Uh oh, what do we do now?
22902 gcc_cv_as_eh_frame
=no
22905 echo "configure: failed program was" >&5
22908 rm -f conftest.o conftest.s
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22912 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22915 if test $gcc_cv_as_eh_frame = buggy
; then
22917 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22922 $as_echo_n "checking assembler for section merging support... " >&6; }
22923 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22924 $as_echo_n "(cached) " >&6
22926 gcc_cv_as_shf_merge
=no
22927 if test $in_tree_gas = yes; then
22928 if test $in_tree_gas_is_elf = yes \
22929 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22930 then gcc_cv_as_shf_merge
=yes
22932 elif test x
$gcc_cv_as != x
; then
22933 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22936 (eval $ac_try) 2>&5
22938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22939 test $ac_status = 0; }; }
22941 gcc_cv_as_shf_merge
=yes
22943 echo "configure: failed program was" >&5
22946 rm -f conftest.o conftest.s
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22950 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22952 if test $gcc_cv_as_shf_merge = no
; then
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22954 $as_echo_n "checking assembler for section merging support... " >&6; }
22955 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22956 $as_echo_n "(cached) " >&6
22958 gcc_cv_as_shf_merge
=no
22959 if test $in_tree_gas = yes; then
22960 if test $in_tree_gas_is_elf = yes \
22961 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22962 then gcc_cv_as_shf_merge
=yes
22964 elif test x
$gcc_cv_as != x
; then
22965 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22966 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22968 (eval $ac_try) 2>&5
22970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22971 test $ac_status = 0; }; }
22973 gcc_cv_as_shf_merge
=yes
22975 echo "configure: failed program was" >&5
22978 rm -f conftest.o conftest.s
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22982 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22986 cat >>confdefs.h
<<_ACEOF
22987 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22992 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22993 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22994 $as_echo_n "(cached) " >&6
22996 gcc_cv_as_comdat_group
=no
22997 if test $in_tree_gas = yes; then
22998 if test $in_tree_gas_is_elf = yes \
22999 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23000 then gcc_cv_as_comdat_group
=yes
23002 elif test x
$gcc_cv_as != x
; then
23003 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23004 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23006 (eval $ac_try) 2>&5
23008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23009 test $ac_status = 0; }; }
23011 gcc_cv_as_comdat_group
=yes
23013 echo "configure: failed program was" >&5
23016 rm -f conftest.o conftest.s
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23020 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23022 if test $gcc_cv_as_comdat_group = yes; then
23023 gcc_cv_as_comdat_group_percent
=no
23024 gcc_cv_as_comdat_group_group
=no
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23027 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23028 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23029 $as_echo_n "(cached) " >&6
23031 gcc_cv_as_comdat_group_percent
=no
23032 if test $in_tree_gas = yes; then
23033 if test $in_tree_gas_is_elf = yes \
23034 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23035 then gcc_cv_as_comdat_group_percent
=yes
23037 elif test x
$gcc_cv_as != x
; then
23038 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23039 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23041 (eval $ac_try) 2>&5
23043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23044 test $ac_status = 0; }; }
23046 gcc_cv_as_comdat_group_percent
=yes
23048 echo "configure: failed program was" >&5
23051 rm -f conftest.o conftest.s
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23055 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23057 if test $gcc_cv_as_comdat_group_percent = yes; then
23058 gcc_cv_as_comdat_group_group
=no
23060 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23061 gcc_cv_as_comdat_group_group
=no
23063 case "${target}" in
23064 # Sun as uses a completely different syntax.
23066 case "${target}" in
23067 sparc
*-*-solaris2*)
23069 .group foo,".text%foo",#comdat
23070 .section ".text%foo", #alloc,#execinstr,#progbits
23075 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23077 .group foo,.text%foo,#comdat
23078 .section .text%foo, "ax", @progbits
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23085 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23086 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23087 $as_echo_n "(cached) " >&6
23089 gcc_cv_as_comdat_group_group
=no
23090 if test x
$gcc_cv_as != x
; then
23091 $as_echo "$conftest_s" > 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_comdat_group_group
=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_comdat_group_group" >&5
23108 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23114 if test x
"$ld_is_gold" = xyes
; then
23116 elif test $in_tree_ld = yes ; then
23118 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 \
23119 && test $in_tree_ld_is_elf = yes; then
23122 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23124 if test 0"$ld_date" -lt 20050308; then
23125 if test -n "$ld_date"; then
23126 # If there was date string, but was earlier than 2005-03-08, fail
23128 elif test "$ld_vers_major" -lt 2; then
23130 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23135 case "${target}" in
23136 *-*-solaris2.1
[1-9]*)
23138 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23139 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23142 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23143 # least ld version 1.2267.
23144 if test "$ld_vers_major" -gt 1; then
23146 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23148 elif test "$ld_vers_minor" -ge 2267; then
23153 # Assume linkers other than GNU ld don't support COMDAT group.
23158 # Allow overriding the automatic COMDAT group tests above.
23159 # Check whether --enable-comdat was given.
23160 if test "${enable_comdat+set}" = set; then :
23161 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23164 if test $comdat_group = no
; then
23165 gcc_cv_as_comdat_group
=no
23166 gcc_cv_as_comdat_group_percent
=no
23167 gcc_cv_as_comdat_group_group
=no
23170 cat >>confdefs.h
<<_ACEOF
23171 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23172 || test $gcc_cv_as_comdat_group_percent = yes \
23173 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23178 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23179 if test "${gcc_cv_as_discriminator+set}" = set; then :
23180 $as_echo_n "(cached) " >&6
23182 gcc_cv_as_discriminator
=no
23183 if test $in_tree_gas = yes; then
23184 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23185 then gcc_cv_as_discriminator
=yes
23187 elif test x
$gcc_cv_as != x
; then
23190 .loc 1 1 0 discriminator 1' > conftest.s
23191 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23193 (eval $ac_try) 2>&5
23195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23196 test $ac_status = 0; }; }
23198 gcc_cv_as_discriminator
=yes
23200 echo "configure: failed program was" >&5
23203 rm -f conftest.o conftest.s
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23207 $as_echo "$gcc_cv_as_discriminator" >&6; }
23208 if test $gcc_cv_as_discriminator = yes; then
23210 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23214 # Thread-local storage - the check is heavily parameterized.
23222 .section ".tdata","awT",@progbits
23225 ldq $27,__tls_get_addr($29) !literal!1
23226 lda $16,foo($29) !tlsgd!1
23227 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23228 ldq $27,__tls_get_addr($29) !literal!2
23229 lda $16,foo($29) !tlsldm!2
23230 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23231 ldq $1,foo($29) !gotdtprel
23232 ldah $2,foo($29) !dtprelhi
23233 lda $3,foo($2) !dtprello
23234 lda $4,foo($29) !dtprel
23235 ldq $1,foo($29) !gottprel
23236 ldah $2,foo($29) !tprelhi
23237 lda $3,foo($2) !tprello
23238 lda $4,foo($29) !tprel'
23241 tls_as_opt
=--fatal-warnings
23243 cris-
*-*|crisv32-
*-*)
23245 .section ".tdata","awT",@progbits
23252 tls_as_opt
=--fatal-warnings
23256 .section ".tdata","awT",@progbits
23259 call #gettlsoff(x)'
23268 .section ".tdata","awT",@progbits
23272 addil LT%foo-$tls_gdidx$,gp
23273 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23276 addil LT%foo-$tls_ldidx$,gp
23278 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23279 addil LR%foo-$tls_dtpoff$,%ret0
23280 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23282 addil LT%foo-$tls_ieoff$,gp
23283 ldw RT%foo-$tls_ieoff$(%r1),%t2
23286 addil LR%foo-$tls_leoff$,%t1
23287 ldo RR%foo-$tls_leoff$(%r1),%t2'
23290 tls_as_opt
=--fatal-warnings
23294 .section ".tdata","awT",%progbits
23297 .word foo(gottpoff)
23305 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23307 i
[34567]86-*-solaris2.
*)
23309 tga_func
=___tls_get_addr
23311 x86_64-
*-solaris2.1
[0-9]*)
23313 tga_func
=__tls_get_addr
23319 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23321 .section .tdata,"awt",@progbits'
23326 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23330 .section ".tdata","awT",@progbits'
23334 tls_as_opt
="--fatal-warnings"
23336 conftest_s
="$conftest_s
23340 leal foo@tlsgd(,%ebx,1), %eax
23341 leal foo@tlsldm(%ebx), %eax
23342 leal foo@dtpoff(%eax), %edx
23343 movl foo@gottpoff(%ebx), %eax
23344 subl foo@gottpoff(%ebx), %eax
23345 addl foo@gotntpoff(%ebx), %eax
23346 movl foo@indntpoff, %eax
23347 movl \$foo@tpoff, %eax
23348 subl \$foo@tpoff, %eax
23349 leal foo@ntpoff(%ecx), %eax"
23353 .section ".tdata","awT",@progbits
23357 leaq foo@TLSGD(%rip), %rdi
23358 leaq foo@TLSLD(%rip), %rdi
23359 leaq foo@DTPOFF(%rax), %rdx
23360 movq foo@GOTTPOFF(%rip), %rax
23361 movq $foo@TPOFF, %rax'
23365 tls_as_opt
=--fatal-warnings
23369 .section ".tdata","awT",@progbits
23372 addl r16 = @ltoff(@dtpmod(foo#)), gp
23373 addl r17 = @ltoff(@dtprel(foo#)), gp
23374 addl r18 = @ltoff(@tprel(foo#)), gp
23375 addl r19 = @dtprel(foo#), gp
23376 adds r21 = @dtprel(foo#), r13
23377 movl r23 = @dtprel(foo#)
23378 addl r20 = @tprel(foo#), gp
23379 adds r22 = @tprel(foo#), r13
23380 movl r24 = @tprel(foo#)'
23383 tls_as_opt
=--fatal-warnings
23387 .section .tdata,"awT",@progbits
23391 addik r5,r20,x@TLSGD
23392 addik r5,r20,x@TLSLDM'
23395 tls_as_opt
='--fatal-warnings'
23399 .section .tdata,"awT",@progbits
23403 addiu $4, $28, %tlsgd(x)
23404 addiu $4, $28, %tlsldm(x)
23405 lui $4, %dtprel_hi(x)
23406 addiu $4, $4, %dtprel_lo(x)
23407 lw $4, %gottprel(x)($28)
23408 lui $4, %tprel_hi(x)
23409 addiu $4, $4, %tprel_lo(x)'
23412 tls_as_opt
='-32 --fatal-warnings'
23416 .section .tdata,"awT",@progbits
23421 move.l x@TLSGD(%a5),%a0
23422 move.l x@TLSLDM(%a5),%a0
23423 move.l x@TLSLDO(%a5),%a0
23424 move.l x@TLSIE(%a5),%a0
23425 move.l x@TLSLE(%a5),%a0'
23428 tls_as_opt
='--fatal-warnings'
23432 .section ".tdata","awT",@progbits'
23435 tls_as_opt
="--fatal-warnings"
23439 .section ".tdata","awT",%progbits
23443 add x0, x0, #:tlsgd_lo12:x
23448 tls_as_opt
='--fatal-warnings'
23452 .extern __get_tpointer
23470 .section ".tdata","awT",@progbits
23478 addi 3,2,ld0@got@tlsgd
23484 addi 3,2,x1@got@tlsld
23490 addis 9,3,x2@dtprel@ha
23491 addi 9,9,x2@dtprel@l
23494 ld 9,x3@got@dtprel(2)
23500 tls_as_opt
="-a64 --fatal-warnings"
23504 .section ".tdata","awT",@progbits
23512 addi 3,31,ld0@got@tlsgd
23514 addi 3,31,x1@got@tlsld
23517 addis 9,3,x2@dtprel@ha
23518 addi 9,9,x2@dtprel@l
23519 lwz 9,x3@got@tprel(31)
23522 addis 9,2,x2@tprel@ha
23523 addi 9,9,x2@tprel@l'
23526 tls_as_opt
="-a32 --fatal-warnings"
23530 .section ".tdata","awT",@progbits
23537 .long foo@GOTNTPOFF
23538 .long foo@INDNTPOFF
23539 l %r1,foo@GOTNTPOFF(%r12)
23540 l %r1,0(%r1):tls_load:foo
23541 bas %r14,0(%r1,%r13):tls_gdcall:foo
23542 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23545 tls_as_opt
="-m31 --fatal-warnings"
23549 .section ".tdata","awT",@progbits
23556 .quad foo@GOTNTPOFF
23557 lg %r1,foo@GOTNTPOFF(%r12)
23558 larl %r1,foo@INDNTPOFF
23559 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23560 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23563 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23565 sh-
*-* | sh
[34]-*-*)
23567 .section ".tdata","awT",@progbits
23577 tls_as_opt
=--fatal-warnings
23581 sparc
*-sun-solaris2.
*)
23583 tga_func
=__tls_get_addr
23589 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23591 .section ".tdata",#alloc,#write,#tls'
23596 .section ".tdata","awT",@progbits'
23599 tls_as_opt
="-32 --fatal-warnings"
23601 conftest_s
="$conftest_s
23604 sethi %tgd_hi22(foo), %o0
23605 add %o0, %tgd_lo10(foo), %o1
23606 add %l7, %o1, %o0, %tgd_add(foo)
23607 call __tls_get_addr, %tgd_call(foo)
23608 sethi %tldm_hi22(foo), %l1
23609 add %l1, %tldm_lo10(foo), %l2
23610 add %l7, %l2, %o0, %tldm_add(foo)
23611 call __tls_get_addr, %tldm_call(foo)
23612 sethi %tldo_hix22(foo), %l3
23613 xor %l3, %tldo_lox10(foo), %l4
23614 add %o0, %l4, %l5, %tldo_add(foo)
23615 sethi %tie_hi22(foo), %o3
23616 add %o3, %tie_lo10(foo), %o3
23617 ld [%l7 + %o3], %o2, %tie_ld(foo)
23618 add %g7, %o2, %o4, %tie_add(foo)
23619 sethi %tle_hix22(foo), %l1
23620 xor %l1, %tle_lox10(foo), %o5
23621 ld [%g7 + %o5], %o1"
23625 .section ".tdata","awT",@progbits
23628 addli r0, zero, tls_gd(foo)
23629 auli r0, zero, tls_gd_ha16(foo)
23630 addli r0, r0, tls_gd_lo16(foo)
23632 addli r0, zero, tls_ie(foo)
23633 auli r0, r0, tls_ie_ha16(foo)
23634 addli r0, r0, tls_ie_lo16(foo)'
23637 tls_as_opt
="--fatal-warnings"
23641 .section ".tdata","awT",@progbits
23644 shl16insli r0, zero, hw0_last_tls_gd(foo)
23645 shl16insli r0, zero, hw1_last_tls_gd(foo)
23646 shl16insli r0, r0, hw0_tls_gd(foo)
23648 shl16insli r0, zero, hw1_last_tls_ie(foo)
23649 shl16insli r0, r0, hw0_tls_ie(foo)'
23652 tls_as_opt
="--fatal-warnings"
23656 .section ".tdata","awT",@progbits
23659 movi a8, foo@TLSFUNC
23660 movi a10, foo@TLSARG
23661 callx8.tls a8, foo@TLSCALL'
23667 if test "x$enable_tls" = xno
; then
23668 : # TLS explicitly disabled.
23669 elif test "x$enable_tls" = xyes
; then
23670 set_have_as_tls
=yes # TLS explicitly enabled.
23671 elif test -z "$tls_first_major"; then
23672 : # If we don't have a check, assume no support.
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23675 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23676 if test "${gcc_cv_as_tls+set}" = set; then :
23677 $as_echo_n "(cached) " >&6
23680 if test $in_tree_gas = yes; then
23681 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23682 then gcc_cv_as_tls
=yes
23684 elif test x
$gcc_cv_as != x
; then
23685 $as_echo "$conftest_s" > conftest.s
23686 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23688 (eval $ac_try) 2>&5
23690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23691 test $ac_status = 0; }; }
23695 echo "configure: failed program was" >&5
23698 rm -f conftest.o conftest.s
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23702 $as_echo "$gcc_cv_as_tls" >&6; }
23703 if test $gcc_cv_as_tls = yes; then
23704 set_have_as_tls
=yes
23708 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23709 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23710 # Sun style that Sun ld and GCC don't support any longer.
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23713 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23715 # Check ld and ld.so.1 TLS support.
23716 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23717 # Assume all interesting versions of GNU ld have TLS support.
23718 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23722 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23724 min_tls_ld_vers_minor
=374
23726 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23727 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23728 min_tls_ld_vers_minor
=343
23731 if test "$ld_vers_major" -gt 1 || \
23732 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23739 $as_echo "$ld_tls_support" >&6; }
23742 save_LDFLAGS
="$LDFLAGS"
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23747 $as_echo_n "checking library containing $tga_func... " >&6; }
23748 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23749 # (32-bit x86) only lived in libthread, so check for that. Keep
23750 # set_have_as_tls if found, disable if not.
23751 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23753 $as_echo_n "checking for library containing $tga_func... " >&6; }
23754 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23755 $as_echo_n "(cached) " >&6
23757 ac_func_search_save_LIBS
=$LIBS
23758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23759 /* end confdefs.h. */
23761 /* Override any GCC internal prototype to avoid an error.
23762 Use char because int might match the return type of a GCC
23763 builtin and then its argument prototype would still apply. */
23771 return $tga_func ();
23776 for ac_lib
in '' thread
; do
23777 if test -z "$ac_lib"; then
23778 ac_res
="none required"
23781 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23783 if ac_fn_c_try_link
"$LINENO"; then :
23784 eval "$as_ac_Search=\$ac_res"
23786 rm -f core conftest.err conftest.
$ac_objext \
23788 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23792 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23795 eval "$as_ac_Search=no"
23797 rm conftest.
$ac_ext
23798 LIBS
=$ac_func_search_save_LIBS
23800 eval ac_res
=\$
$as_ac_Search
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23802 $as_echo "$ac_res" >&6; }
23803 eval ac_res
=\$
$as_ac_Search
23804 if test "$ac_res" != no
; then :
23805 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23811 ld_tls_libs
="$LIBS"
23812 # Clear LIBS if we cannot support TLS.
23813 if test $set_have_as_tls = no
; then
23816 # Always define LIB_TLS_SPEC, even without TLS support.
23818 cat >>confdefs.h
<<_ACEOF
23819 #define LIB_TLS_SPEC "$LIBS"
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23823 $as_echo "$LIBS" >&6; }
23826 LDFLAGS
="$save_LDFLAGS"
23829 if test $set_have_as_tls = yes ; then
23831 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23835 # Target-specific assembler checks.
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23838 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23839 gcc_cv_ld_static_dynamic
=no
23840 gcc_cv_ld_static_option
='-Bstatic'
23841 gcc_cv_ld_dynamic_option
='-Bdynamic'
23842 if test $in_tree_ld = yes ; then
23843 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
23844 gcc_cv_ld_static_dynamic
=yes
23846 elif test x
$gcc_cv_ld != x
; then
23847 # Check if linker supports -Bstatic/-Bdynamic option
23848 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23849 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23850 gcc_cv_ld_static_dynamic
=yes
23853 # AIX ld uses -b flags
23854 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23855 gcc_cv_ld_static_dynamic
=yes
23856 gcc_cv_ld_static_option
="-bstatic"
23857 gcc_cv_ld_dynamic_option
="-bdynamic"
23859 # HP-UX ld uses -a flags to select between shared and archive.
23861 if test x
"$gnu_ld" = xno
; then
23862 gcc_cv_ld_static_dynamic
=yes
23863 gcc_cv_ld_static_option
="-aarchive_shared"
23864 gcc_cv_ld_dynamic_option
="-adefault"
23867 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23869 gcc_cv_ld_static_dynamic
=yes
23874 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23876 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23879 cat >>confdefs.h
<<_ACEOF
23880 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23884 cat >>confdefs.h
<<_ACEOF
23885 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23890 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23892 if test x
"$demangler_in_ld" = xyes
; then
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23894 $as_echo_n "checking linker --demangle support... " >&6; }
23895 gcc_cv_ld_demangle
=no
23896 if test $in_tree_ld = yes; then
23897 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 \
23898 gcc_cv_ld_demangle
=yes
23900 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23901 # Check if the GNU linker supports --demangle option
23902 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23903 gcc_cv_ld_demangle
=yes
23906 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23908 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23912 $as_echo "$gcc_cv_ld_demangle" >&6; }
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23916 $as_echo_n "checking linker plugin support... " >&6; }
23917 gcc_cv_lto_plugin
=0
23918 if test -f liblto_plugin.la
; then
23919 save_ld_ver
="$ld_ver"
23920 save_ld_vers_major
="$ld_vers_major"
23921 save_ld_vers_minor
="$ld_vers_minor"
23922 save_ld_is_gold
="$ld_is_gold"
23926 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23928 # FIXME: ld_is_gold?
23929 ld_vers_major
="$gcc_cv_gld_major_version"
23930 ld_vers_minor
="$gcc_cv_gld_minor_version"
23932 # Determine plugin linker version.
23933 # FIXME: Partial duplicate from above, generalize.
23934 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23935 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23936 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23938 ld_vers
=`echo $ld_ver | sed -n \
23939 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23941 ld_vers
=`echo $ld_ver | sed -n \
23942 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23944 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23945 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23949 # Determine plugin support.
23950 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23951 # Require GNU ld or gold 2.21+ for plugin support by default.
23952 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23953 gcc_cv_lto_plugin
=2
23954 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23955 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23956 gcc_cv_lto_plugin
=1
23960 ld_ver
="$save_ld_ver"
23961 ld_vers_major
="$save_ld_vers_major"
23962 ld_vers_minor
="$save_ld_vers_minor"
23963 ld_is_gold
="$save_ld_is_gold"
23966 cat >>confdefs.h
<<_ACEOF
23967 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23971 $as_echo "$gcc_cv_lto_plugin" >&6; }
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23976 $as_echo_n "checking assembler for -mabi option... " >&6; }
23977 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23978 $as_echo_n "(cached) " >&6
23980 gcc_cv_as_aarch64_mabi
=no
23981 if test x
$gcc_cv_as != x
; then
23982 $as_echo '.text' > conftest.s
23983 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23985 (eval $ac_try) 2>&5
23987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23988 test $ac_status = 0; }; }
23990 gcc_cv_as_aarch64_mabi
=yes
23992 echo "configure: failed program was" >&5
23995 rm -f conftest.o conftest.s
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23999 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24001 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24003 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24006 if test x
$with_abi = xilp32
; then
24007 as_fn_error
"Assembler does not support -mabi=ilp32.\
24008 Upgrade the Assembler." "$LINENO" 5
24010 if test x
"$with_multilib_list" = xdefault
; then
24011 TM_MULTILIB_CONFIG
=lp64
24013 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24014 for aarch64_multilib
in ${aarch64_multilibs}; do
24015 case ${aarch64_multilib} in
24017 as_fn_error
"Assembler does not support -mabi=ilp32.\
24018 Upgrade the Assembler." "$LINENO" 5
24026 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24027 # Check whether --enable-fix-cortex-a53-835769 was given.
24028 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24029 enableval
=$enable_fix_cortex_a53_835769;
24032 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24037 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24038 Valid choices are 'yes' and 'no'." "$LINENO" 5
24045 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24046 # Check whether --enable-fix-cortex-a53-843419 was given.
24047 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24048 enableval
=$enable_fix_cortex_a53_843419;
24051 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24056 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24057 Valid choices are 'yes' and 'no'." "$LINENO" 5
24066 # All TARGET_ABI_OSF targets.
24067 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24069 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24070 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24071 $as_echo_n "(cached) " >&6
24073 gcc_cv_as_alpha_explicit_relocs
=no
24074 if test $in_tree_gas = yes; then
24075 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24076 then gcc_cv_as_alpha_explicit_relocs
=yes
24078 elif test x
$gcc_cv_as != x
; then
24079 $as_echo ' .set nomacro
24081 extbl $3, $2, $3 !lituse_bytoff!1
24082 ldq $2, a($29) !literal!1
24083 ldq $4, b($29) !literal!2
24084 ldq_u $3, 0($2) !lituse_base!1
24085 ldq $27, f($29) !literal!5
24086 jsr $26, ($27), f !lituse_jsr!5
24087 ldah $29, 0($26) !gpdisp!3
24088 lda $0, c($29) !gprel
24089 ldah $1, d($29) !gprelhigh
24090 lda $1, d($1) !gprellow
24091 lda $29, 0($29) !gpdisp!3' > conftest.s
24092 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24094 (eval $ac_try) 2>&5
24096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24097 test $ac_status = 0; }; }
24099 gcc_cv_as_alpha_explicit_relocs
=yes
24101 echo "configure: failed program was" >&5
24104 rm -f conftest.o conftest.s
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24108 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24109 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24111 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24115 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24116 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24117 $as_echo_n "(cached) " >&6
24119 gcc_cv_as_alpha_jsrdirect_relocs
=no
24120 if test $in_tree_gas = yes; then
24121 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24122 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24124 elif test x
$gcc_cv_as != x
; then
24125 $as_echo ' .set nomacro
24127 ldq $27, a($29) !literal!1
24128 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24129 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24131 (eval $ac_try) 2>&5
24133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24134 test $ac_status = 0; }; }
24136 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24138 echo "configure: failed program was" >&5
24141 rm -f conftest.o conftest.s
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24145 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24146 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24148 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24155 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24156 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24157 $as_echo_n "(cached) " >&6
24159 gcc_cv_as_cris_no_mul_bug
=no
24160 if test $in_tree_gas = yes; then
24161 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24162 then gcc_cv_as_cris_no_mul_bug
=yes
24164 elif test x
$gcc_cv_as != x
; then
24165 $as_echo '.text' > conftest.s
24166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168 (eval $ac_try) 2>&5
24170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171 test $ac_status = 0; }; }
24173 gcc_cv_as_cris_no_mul_bug
=yes
24175 echo "configure: failed program was" >&5
24178 rm -f conftest.o conftest.s
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24182 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24183 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24185 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24192 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24193 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24194 $as_echo_n "(cached) " >&6
24196 gcc_cv_as_avr_mrmw
=no
24197 if test x
$gcc_cv_as != x
; then
24198 $as_echo '.text' > conftest.s
24199 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24201 (eval $ac_try) 2>&5
24203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24204 test $ac_status = 0; }; }
24206 gcc_cv_as_avr_mrmw
=yes
24208 echo "configure: failed program was" >&5
24211 rm -f conftest.o conftest.s
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24215 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24216 if test $gcc_cv_as_avr_mrmw = yes; then
24218 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24225 $as_echo_n "checking assembler for .register... " >&6; }
24226 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24227 $as_echo_n "(cached) " >&6
24229 gcc_cv_as_sparc_register_op
=no
24230 if test x
$gcc_cv_as != x
; then
24231 $as_echo '.register %g2, #scratch' > conftest.s
24232 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24234 (eval $ac_try) 2>&5
24236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24237 test $ac_status = 0; }; }
24239 gcc_cv_as_sparc_register_op
=yes
24241 echo "configure: failed program was" >&5
24244 rm -f conftest.o conftest.s
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24248 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24249 if test $gcc_cv_as_sparc_register_op = yes; then
24251 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24256 $as_echo_n "checking assembler for #nobits... " >&6; }
24257 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24258 $as_echo_n "(cached) " >&6
24260 gcc_cv_as_sparc_nobits
=no
24261 if test x
$gcc_cv_as != x
; then
24262 $as_echo '.section "nobits",#alloc,#write,#nobits
24263 .section "progbits",#alloc,#write,#progbits' > conftest.s
24264 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24266 (eval $ac_try) 2>&5
24268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24269 test $ac_status = 0; }; }
24271 gcc_cv_as_sparc_nobits
=yes
24273 echo "configure: failed program was" >&5
24276 rm -f conftest.o conftest.s
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24280 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24283 cat >>confdefs.h
<<_ACEOF
24284 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24289 $as_echo_n "checking assembler for -relax option... " >&6; }
24290 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24291 $as_echo_n "(cached) " >&6
24293 gcc_cv_as_sparc_relax
=no
24294 if test x
$gcc_cv_as != x
; then
24295 $as_echo '.text' > conftest.s
24296 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24298 (eval $ac_try) 2>&5
24300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24301 test $ac_status = 0; }; }
24303 gcc_cv_as_sparc_relax
=yes
24305 echo "configure: failed program was" >&5
24308 rm -f conftest.o conftest.s
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24312 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24313 if test $gcc_cv_as_sparc_relax = yes; then
24315 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24320 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24321 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24322 $as_echo_n "(cached) " >&6
24324 gcc_cv_as_sparc_gotdata_op
=no
24325 if test x
$gcc_cv_as != x
; then
24331 sethi %gdop_hix22(foo), %g1
24332 xor %g1, %gdop_lox10(foo), %g1
24333 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24334 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336 (eval $ac_try) 2>&5
24338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339 test $ac_status = 0; }; }
24341 if test x
$gcc_cv_ld != x \
24342 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24343 if test x
$gcc_cv_objdump != x
; then
24344 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24345 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24346 gcc_cv_as_sparc_gotdata_op
=no
24348 gcc_cv_as_sparc_gotdata_op
=yes
24354 echo "configure: failed program was" >&5
24357 rm -f conftest.o conftest.s
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24361 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24362 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24364 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24369 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24370 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24371 $as_echo_n "(cached) " >&6
24373 gcc_cv_as_sparc_ua_pcrel
=no
24374 if test x
$gcc_cv_as != x
; then
24381 .uaword %r_disp32(foo)' > conftest.s
24382 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24384 (eval $ac_try) 2>&5
24386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24387 test $ac_status = 0; }; }
24389 if test x
$gcc_cv_ld != x \
24390 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24391 gcc_cv_as_sparc_ua_pcrel
=yes
24395 echo "configure: failed program was" >&5
24398 rm -f conftest.o conftest.s
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24402 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24403 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24405 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24409 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24410 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24411 $as_echo_n "(cached) " >&6
24413 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24414 if test x
$gcc_cv_as != x
; then
24418 .uaword %r_disp32(foo)
24419 .byte 0x32, 0x33, 0x34
24423 .skip 4' > conftest.s
24424 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24432 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24433 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24434 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24435 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24436 |
grep 'DISP32' > /dev
/null
2>&1; then
24439 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24444 echo "configure: failed program was" >&5
24447 rm -f conftest.o conftest.s
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24451 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24452 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24454 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24458 fi # unaligned pcrel relocs
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24461 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24462 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24463 $as_echo_n "(cached) " >&6
24465 gcc_cv_as_sparc_offsetable_lo10
=no
24466 if test x
$gcc_cv_as != x
; then
24468 or %g1, %lo(ab) + 12, %g1
24469 or %g1, %lo(ab + 12), %g1' > conftest.s
24470 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24472 (eval $ac_try) 2>&5
24474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24475 test $ac_status = 0; }; }
24477 if test x
$gcc_cv_objdump != x \
24478 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24479 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24480 gcc_cv_as_sparc_offsetable_lo10
=yes
24483 echo "configure: failed program was" >&5
24486 rm -f conftest.o conftest.s
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24490 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24491 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24493 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24498 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24499 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24500 $as_echo_n "(cached) " >&6
24502 gcc_cv_as_sparc_fmaf
=no
24503 if test x
$gcc_cv_as != x
; then
24505 .register %g2, #scratch
24506 .register %g3, #scratch
24508 fmaddd %f0, %f2, %f4, %f6
24509 addxccc %g1, %g2, %g3
24510 fsrl32 %f2, %f4, %f8
24511 fnaddd %f10, %f12, %f14' > conftest.s
24512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24514 (eval $ac_try) 2>&5
24516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517 test $ac_status = 0; }; }
24519 gcc_cv_as_sparc_fmaf
=yes
24521 echo "configure: failed program was" >&5
24524 rm -f conftest.o conftest.s
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24528 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24529 if test $gcc_cv_as_sparc_fmaf = yes; then
24531 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24536 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24537 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24538 $as_echo_n "(cached) " >&6
24540 gcc_cv_as_sparc_sparc4
=no
24541 if test x
$gcc_cv_as != x
; then
24543 .register %g2, #scratch
24544 .register %g3, #scratch
24547 1: cwbneg %g2, %g3, 1f
24550 aes_kexpand0 %f4, %f6, %f8
24551 des_round %f38, %f40, %f42, %f44
24552 camellia_f %f54, %f56, %f58, %f60
24553 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24554 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24556 (eval $ac_try) 2>&5
24558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24559 test $ac_status = 0; }; }
24561 gcc_cv_as_sparc_sparc4
=yes
24563 echo "configure: failed program was" >&5
24566 rm -f conftest.o conftest.s
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24570 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24571 if test $gcc_cv_as_sparc_sparc4 = yes; then
24573 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24578 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24579 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24580 $as_echo_n "(cached) " >&6
24582 gcc_cv_as_sparc_leon
=no
24583 if test x
$gcc_cv_as != x
; then
24585 .register %g2, #scratch
24586 .register %g3, #scratch
24590 casa [%g2] 0xb, %g3, %g1' > conftest.s
24591 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24593 (eval $ac_try) 2>&5
24595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24596 test $ac_status = 0; }; }
24598 gcc_cv_as_sparc_leon
=yes
24600 echo "configure: failed program was" >&5
24603 rm -f conftest.o conftest.s
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24607 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24608 if test $gcc_cv_as_sparc_leon = yes; then
24610 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24615 i
[34567]86-*-* | x86_64-
*-*)
24618 # Full C++ conformance when using a shared libstdc++-v3 requires some
24619 # support from the Cygwin DLL, which in more recent versions exports
24620 # wrappers to aid in interposing and redirecting operators new, delete,
24621 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24622 # are configuring for a version of Cygwin that exports the wrappers.
24623 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24624 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24625 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24626 gcc_ac_cygwin_dll_wrappers
=yes
24628 gcc_ac_cygwin_dll_wrappers
=no
24632 # Can't check presence of libc functions during cross-compile, so
24633 # we just have to assume we're building for an up-to-date target.
24634 gcc_ac_cygwin_dll_wrappers
=yes
24637 cat >>confdefs.h
<<_ACEOF
24638 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24643 cygwin
* | pe | mingw32
* | interix
*)
24644 # Recent binutils allows the three-operand form of ".comm" on PE. This
24645 # definition is used unconditionally to initialise the default state of
24646 # the target option variable that governs usage of the feature.
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24648 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24649 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24650 $as_echo_n "(cached) " >&6
24652 gcc_cv_as_comm_has_align
=no
24653 if test $in_tree_gas = yes; then
24654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24655 then gcc_cv_as_comm_has_align
=yes
24657 elif test x
$gcc_cv_as != x
; then
24658 $as_echo '.comm foo,1,32' > conftest.s
24659 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24661 (eval $ac_try) 2>&5
24663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24664 test $ac_status = 0; }; }
24666 gcc_cv_as_comm_has_align
=yes
24668 echo "configure: failed program was" >&5
24671 rm -f conftest.o conftest.s
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24675 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24678 cat >>confdefs.h
<<_ACEOF
24679 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24682 # Used for DWARF 2 in PE
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24684 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24685 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24686 $as_echo_n "(cached) " >&6
24688 gcc_cv_as_ix86_pe_secrel32
=no
24689 if test $in_tree_gas = yes; then
24690 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24691 then gcc_cv_as_ix86_pe_secrel32
=yes
24693 elif test x
$gcc_cv_as != x
; then
24697 .secrel32 foo' > conftest.s
24698 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24700 (eval $ac_try) 2>&5
24702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24703 test $ac_status = 0; }; }
24705 if test x
$gcc_cv_ld != x \
24706 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24707 gcc_cv_as_ix86_pe_secrel32
=yes
24711 echo "configure: failed program was" >&5
24714 rm -f conftest.o conftest.s
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24718 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24719 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24721 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24724 # Test if the assembler supports the extended form of the .section
24725 # directive that specifies section alignment. LTO support uses this,
24726 # but normally only after installation, so we warn but don't fail the
24727 # configure if LTO is enabled but the assembler does not support it.
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24729 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24730 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24731 $as_echo_n "(cached) " >&6
24733 gcc_cv_as_section_has_align
=no
24734 if test $in_tree_gas = yes; then
24735 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24736 then gcc_cv_as_section_has_align
=yes
24738 elif test x
$gcc_cv_as != x
; then
24739 $as_echo '.section lto_test,"dr0"' > conftest.s
24740 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24742 (eval $ac_try) 2>&5
24744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24745 test $ac_status = 0; }; }
24747 gcc_cv_as_section_has_align
=yes
24749 echo "configure: failed program was" >&5
24752 rm -f conftest.o conftest.s
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24756 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24758 if test x
$gcc_cv_as_section_has_align != xyes
; then
24759 case ",$enable_languages," in
24761 { $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
24762 $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;}
24766 # Test if the assembler supports the section flag 'e' for specifying
24767 # an excluded section.
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24769 $as_echo_n "checking assembler for .section with e... " >&6; }
24770 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24771 $as_echo_n "(cached) " >&6
24773 gcc_cv_as_section_has_e
=no
24774 if test $in_tree_gas = yes; then
24775 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24776 then gcc_cv_as_section_has_e
=yes
24778 elif test x
$gcc_cv_as != x
; then
24779 $as_echo '.section foo1,"e"
24780 .byte 0,0,0,0' > conftest.s
24781 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24783 (eval $ac_try) 2>&5
24785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24786 test $ac_status = 0; }; }
24788 gcc_cv_as_section_has_e
=yes
24790 echo "configure: failed program was" >&5
24793 rm -f conftest.o conftest.s
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24797 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24800 cat >>confdefs.h
<<_ACEOF
24801 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24808 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24809 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24810 $as_echo_n "(cached) " >&6
24812 gcc_cv_as_ix86_filds
=no
24813 if test x
$gcc_cv_as != x
; then
24814 $as_echo 'filds mem; fists mem' > conftest.s
24815 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24817 (eval $ac_try) 2>&5
24819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24820 test $ac_status = 0; }; }
24822 gcc_cv_as_ix86_filds
=yes
24824 echo "configure: failed program was" >&5
24827 rm -f conftest.o conftest.s
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24831 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24832 if test $gcc_cv_as_ix86_filds = yes; then
24834 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24839 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24840 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24841 $as_echo_n "(cached) " >&6
24843 gcc_cv_as_ix86_fildq
=no
24844 if test x
$gcc_cv_as != x
; then
24845 $as_echo 'fildq mem; fistpq mem' > conftest.s
24846 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24848 (eval $ac_try) 2>&5
24850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24851 test $ac_status = 0; }; }
24853 gcc_cv_as_ix86_fildq
=yes
24855 echo "configure: failed program was" >&5
24858 rm -f conftest.o conftest.s
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24862 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24863 if test $gcc_cv_as_ix86_fildq = yes; then
24865 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24870 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24871 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24872 $as_echo_n "(cached) " >&6
24874 gcc_cv_as_ix86_cmov_sun_syntax
=no
24875 if test x
$gcc_cv_as != x
; then
24876 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24877 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24879 (eval $ac_try) 2>&5
24881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24882 test $ac_status = 0; }; }
24884 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24886 echo "configure: failed program was" >&5
24889 rm -f conftest.o conftest.s
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24893 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24894 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24896 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24901 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24902 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24903 $as_echo_n "(cached) " >&6
24905 gcc_cv_as_ix86_ffreep
=no
24906 if test x
$gcc_cv_as != x
; then
24907 $as_echo 'ffreep %st(1)' > conftest.s
24908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24910 (eval $ac_try) 2>&5
24912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24913 test $ac_status = 0; }; }
24915 gcc_cv_as_ix86_ffreep
=yes
24917 echo "configure: failed program was" >&5
24920 rm -f conftest.o conftest.s
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24924 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24925 if test $gcc_cv_as_ix86_ffreep = yes; then
24927 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24932 $as_echo_n "checking assembler for .quad directive... " >&6; }
24933 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24934 $as_echo_n "(cached) " >&6
24936 gcc_cv_as_ix86_quad
=no
24937 if test x
$gcc_cv_as != x
; then
24938 $as_echo '.quad 0' > conftest.s
24939 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24941 (eval $ac_try) 2>&5
24943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24944 test $ac_status = 0; }; }
24946 gcc_cv_as_ix86_quad
=yes
24948 echo "configure: failed program was" >&5
24951 rm -f conftest.o conftest.s
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24955 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24956 if test $gcc_cv_as_ix86_quad = yes; then
24958 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24963 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24964 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24965 $as_echo_n "(cached) " >&6
24967 gcc_cv_as_ix86_sahf
=no
24968 if test x
$gcc_cv_as != x
; then
24971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }
24978 gcc_cv_as_ix86_sahf
=yes
24980 echo "configure: failed program was" >&5
24983 rm -f conftest.o conftest.s
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24987 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24988 if test $gcc_cv_as_ix86_sahf = yes; then
24990 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24995 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24996 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24997 $as_echo_n "(cached) " >&6
24999 gcc_cv_as_ix86_interunit_movq
=no
25000 if test x
$gcc_cv_as != x
; then
25003 movq %rax, %xmm0' > conftest.s
25004 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25006 (eval $ac_try) 2>&5
25008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25009 test $ac_status = 0; }; }
25011 gcc_cv_as_ix86_interunit_movq
=yes
25013 echo "configure: failed program was" >&5
25016 rm -f conftest.o conftest.s
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25020 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25023 cat >>confdefs.h
<<_ACEOF
25024 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25029 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25030 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25031 $as_echo_n "(cached) " >&6
25033 gcc_cv_as_ix86_hle
=no
25034 if test x
$gcc_cv_as != x
; then
25035 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25036 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25038 (eval $ac_try) 2>&5
25040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25041 test $ac_status = 0; }; }
25043 gcc_cv_as_ix86_hle
=yes
25045 echo "configure: failed program was" >&5
25048 rm -f conftest.o conftest.s
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25052 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25053 if test $gcc_cv_as_ix86_hle = yes; then
25055 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25060 $as_echo_n "checking assembler for swap suffix... " >&6; }
25061 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25062 $as_echo_n "(cached) " >&6
25064 gcc_cv_as_ix86_swap
=no
25065 if test x
$gcc_cv_as != x
; then
25066 $as_echo 'movl.s %esp, %ebp' > conftest.s
25067 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25069 (eval $ac_try) 2>&5
25071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25072 test $ac_status = 0; }; }
25074 gcc_cv_as_ix86_swap
=yes
25076 echo "configure: failed program was" >&5
25079 rm -f conftest.o conftest.s
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25083 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25084 if test $gcc_cv_as_ix86_swap = yes; then
25086 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25091 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25092 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25093 $as_echo_n "(cached) " >&6
25095 gcc_cv_as_ix86_diff_sect_delta
=no
25096 if test x
$gcc_cv_as != x
; then
25097 $as_echo '.section .rodata
25103 .L2: nop' > conftest.s
25104 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25106 (eval $ac_try) 2>&5
25108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25109 test $ac_status = 0; }; }
25111 gcc_cv_as_ix86_diff_sect_delta
=yes
25113 echo "configure: failed program was" >&5
25116 rm -f conftest.o conftest.s
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25120 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25121 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25123 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25127 # These two are used unconditionally by i386.[ch]; it is to be defined
25128 # to 1 if the feature is present, 0 otherwise.
25129 as_ix86_gotoff_in_data_opt
=
25130 if test x
$gas = xyes
; then
25131 as_ix86_gotoff_in_data_opt
="--32"
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25134 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25135 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25136 $as_echo_n "(cached) " >&6
25138 gcc_cv_as_ix86_gotoff_in_data
=no
25139 if test $in_tree_gas = yes; then
25140 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25141 then gcc_cv_as_ix86_gotoff_in_data
=yes
25143 elif test x
$gcc_cv_as != x
; then
25148 .long .L0@GOTOFF' > conftest.s
25149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25151 (eval $ac_try) 2>&5
25153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25154 test $ac_status = 0; }; }
25156 gcc_cv_as_ix86_gotoff_in_data
=yes
25158 echo "configure: failed program was" >&5
25161 rm -f conftest.o conftest.s
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25165 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25168 cat >>confdefs.h
<<_ACEOF
25169 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25174 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25175 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25176 $as_echo_n "(cached) " >&6
25178 gcc_cv_as_ix86_rep_lock_prefix
=no
25179 if test x
$gcc_cv_as != x
; then
25180 $as_echo 'rep movsl
25185 lock addl %edi, (%eax,%esi)
25186 lock orl $0, (%esp)' > conftest.s
25187 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25189 (eval $ac_try) 2>&5
25191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25192 test $ac_status = 0; }; }
25194 gcc_cv_as_ix86_rep_lock_prefix
=yes
25196 echo "configure: failed program was" >&5
25199 rm -f conftest.o conftest.s
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25203 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25204 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25206 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25211 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25212 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25213 $as_echo_n "(cached) " >&6
25215 gcc_cv_as_ix86_ud2
=no
25216 if test x
$gcc_cv_as != x
; then
25217 $as_echo 'ud2' > conftest.s
25218 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25220 (eval $ac_try) 2>&5
25222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25223 test $ac_status = 0; }; }
25225 gcc_cv_as_ix86_ud2
=yes
25227 echo "configure: failed program was" >&5
25230 rm -f conftest.o conftest.s
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25234 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25235 if test $gcc_cv_as_ix86_ud2 = yes; then
25237 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25242 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25243 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25244 $as_echo_n "(cached) " >&6
25246 gcc_cv_as_ix86_tlsgdplt
=no
25247 if test x
$gcc_cv_as != x
; then
25248 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25249 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25251 (eval $ac_try) 2>&5
25253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25254 test $ac_status = 0; }; }
25256 if test x
$gcc_cv_ld != x \
25257 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25258 gcc_cv_as_ix86_tlsgdplt
=yes
25262 echo "configure: failed program was" >&5
25265 rm -f conftest.o conftest.s
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25269 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25270 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25272 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25277 .section .tdata,"aw'$tls_section_flag'",@progbits
25279 .section .text,"ax",@progbits
25280 call tls_ld@tlsldmplt'
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25282 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25283 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25284 $as_echo_n "(cached) " >&6
25286 gcc_cv_as_ix86_tlsldmplt
=no
25287 if test x
$gcc_cv_as != x
; then
25288 $as_echo "$conftest_s" > conftest.s
25289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291 (eval $ac_try) 2>&5
25293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294 test $ac_status = 0; }; }
25296 if test x
$gcc_cv_ld != x \
25297 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25298 gcc_cv_as_ix86_tlsldmplt
=yes
25302 echo "configure: failed program was" >&5
25305 rm -f conftest.o conftest.s
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25309 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25312 cat >>confdefs.h
<<_ACEOF
25313 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25317 # Enforce 32-bit output with gas and gld.
25318 if test x
$gas = xyes
; then
25319 as_ix86_tls_ldm_opt
="--32"
25321 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25322 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25323 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25325 ld_ix86_tls_ldm_opt
="-melf_i386"
25329 .section .text,"ax",@progbits
25331 .type _start, @function
25333 leal value@tlsldm(%ebx), %eax
25334 call ___tls_get_addr@plt
25336 .section .tdata,"aw'$tls_section_flag'",@progbits
25337 .type value, @object
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25340 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25341 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25342 $as_echo_n "(cached) " >&6
25344 gcc_cv_as_ix86_tlsldm
=no
25345 if test x
$gcc_cv_as != x
; then
25346 $as_echo "$conftest_s" > conftest.s
25347 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25349 (eval $ac_try) 2>&5
25351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25352 test $ac_status = 0; }; }
25354 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25355 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25356 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25357 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25358 gcc_cv_as_ix86_tlsldm
=yes
25363 echo "configure: failed program was" >&5
25366 rm -f conftest.o conftest.s
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25370 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25373 cat >>confdefs.h
<<_ACEOF
25374 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25382 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25383 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25384 $as_echo_n "(cached) " >&6
25386 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25387 if test $in_tree_gas = yes; then
25388 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25389 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25391 elif test x
$gcc_cv_as != x
; then
25393 addl r15 = @ltoffx(x#), gp
25395 ld8.mov r16 = [r15], x#' > conftest.s
25396 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; }
25403 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25405 echo "configure: failed program was" >&5
25408 rm -f conftest.o conftest.s
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25412 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25413 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25415 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25423 *-*-aix*) conftest_s
=' .machine "pwr5"
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25428 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25429 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25430 $as_echo_n "(cached) " >&6
25432 gcc_cv_as_machine_directive
=no
25433 if test x
$gcc_cv_as != x
; then
25434 $as_echo ' .machine ppc7400' > conftest.s
25435 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25437 (eval $ac_try) 2>&5
25439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25440 test $ac_status = 0; }; }
25442 gcc_cv_as_machine_directive
=yes
25444 echo "configure: failed program was" >&5
25447 rm -f conftest.o conftest.s
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25451 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25453 if test x
$gcc_cv_as_machine_directive != xyes
; then
25454 echo "*** This target requires an assembler supporting \".machine\"" >&2
25455 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25456 test x
$build = x
$target && exit 1
25460 *) conftest_s
=' .machine power4
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25466 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25467 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25468 $as_echo_n "(cached) " >&6
25470 gcc_cv_as_powerpc_mfcrf
=no
25471 if test $in_tree_gas = yes; then
25472 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25473 then gcc_cv_as_powerpc_mfcrf
=yes
25475 elif test x
$gcc_cv_as != x
; then
25476 $as_echo "$conftest_s" > conftest.s
25477 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25479 (eval $ac_try) 2>&5
25481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25482 test $ac_status = 0; }; }
25484 gcc_cv_as_powerpc_mfcrf
=yes
25486 echo "configure: failed program was" >&5
25489 rm -f conftest.o conftest.s
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25493 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25494 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25496 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25501 *-*-aix*) conftest_s
=' .machine "pwr5"
25504 *) conftest_s
=' .machine power5
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25510 $as_echo_n "checking assembler for popcntb support... " >&6; }
25511 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25512 $as_echo_n "(cached) " >&6
25514 gcc_cv_as_powerpc_popcntb
=no
25515 if test $in_tree_gas = yes; then
25516 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25517 then gcc_cv_as_powerpc_popcntb
=yes
25519 elif test x
$gcc_cv_as != x
; then
25520 $as_echo "$conftest_s" > conftest.s
25521 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25523 (eval $ac_try) 2>&5
25525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25526 test $ac_status = 0; }; }
25528 gcc_cv_as_powerpc_popcntb
=yes
25530 echo "configure: failed program was" >&5
25533 rm -f conftest.o conftest.s
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25537 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25538 if test $gcc_cv_as_powerpc_popcntb = yes; then
25540 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25545 *-*-aix*) conftest_s
=' .machine "pwr5x"
25548 *) conftest_s
=' .machine power5
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25554 $as_echo_n "checking assembler for fp round support... " >&6; }
25555 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25556 $as_echo_n "(cached) " >&6
25558 gcc_cv_as_powerpc_fprnd
=no
25559 if test $in_tree_gas = yes; then
25560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25561 then gcc_cv_as_powerpc_fprnd
=yes
25563 elif test x
$gcc_cv_as != x
; then
25564 $as_echo "$conftest_s" > conftest.s
25565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25567 (eval $ac_try) 2>&5
25569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25570 test $ac_status = 0; }; }
25572 gcc_cv_as_powerpc_fprnd
=yes
25574 echo "configure: failed program was" >&5
25577 rm -f conftest.o conftest.s
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25581 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25582 if test $gcc_cv_as_powerpc_fprnd = yes; then
25584 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25589 *-*-aix*) conftest_s
=' .machine "pwr6"
25592 *) conftest_s
=' .machine power6
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25598 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25599 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25600 $as_echo_n "(cached) " >&6
25602 gcc_cv_as_powerpc_mfpgpr
=no
25603 if test $in_tree_gas = yes; then
25604 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25605 then gcc_cv_as_powerpc_mfpgpr
=yes
25607 elif test x
$gcc_cv_as != x
; then
25608 $as_echo "$conftest_s" > conftest.s
25609 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25611 (eval $ac_try) 2>&5
25613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25614 test $ac_status = 0; }; }
25616 gcc_cv_as_powerpc_mfpgpr
=yes
25618 echo "configure: failed program was" >&5
25621 rm -f conftest.o conftest.s
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25625 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25626 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25628 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25633 *-*-aix*) conftest_s
=' .csect .text[PR]
25635 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25639 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25640 *) conftest_s
=' .text
25642 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25646 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25647 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25648 $as_echo_n "(cached) " >&6
25650 gcc_cv_as_powerpc_rel16
=no
25651 if test $in_tree_gas = yes; then
25652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25653 then gcc_cv_as_powerpc_rel16
=yes
25655 elif test x
$gcc_cv_as != x
; then
25656 $as_echo "$conftest_s" > conftest.s
25657 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25659 (eval $ac_try) 2>&5
25661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25662 test $ac_status = 0; }; }
25664 gcc_cv_as_powerpc_rel16
=yes
25666 echo "configure: failed program was" >&5
25669 rm -f conftest.o conftest.s
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25673 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25674 if test $gcc_cv_as_powerpc_rel16 = yes; then
25676 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25681 *-*-aix*) conftest_s
=' .machine "pwr6"
25684 *) conftest_s
=' .machine power6
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25690 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25691 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25692 $as_echo_n "(cached) " >&6
25694 gcc_cv_as_powerpc_cmpb
=no
25695 if test $in_tree_gas = yes; then
25696 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25697 then gcc_cv_as_powerpc_cmpb
=yes
25699 elif test x
$gcc_cv_as != x
; then
25700 $as_echo "$conftest_s" > conftest.s
25701 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25703 (eval $ac_try) 2>&5
25705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25706 test $ac_status = 0; }; }
25708 gcc_cv_as_powerpc_cmpb
=yes
25710 echo "configure: failed program was" >&5
25713 rm -f conftest.o conftest.s
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25717 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25718 if test $gcc_cv_as_powerpc_cmpb = yes; then
25720 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25725 *-*-aix*) conftest_s
=' .machine "pwr6"
25728 *) conftest_s
=' .machine power6
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25734 $as_echo_n "checking assembler for decimal float support... " >&6; }
25735 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25736 $as_echo_n "(cached) " >&6
25738 gcc_cv_as_powerpc_dfp
=no
25739 if test $in_tree_gas = yes; then
25740 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25741 then gcc_cv_as_powerpc_dfp
=yes
25743 elif test x
$gcc_cv_as != x
; then
25744 $as_echo "$conftest_s" > conftest.s
25745 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25747 (eval $ac_try) 2>&5
25749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25750 test $ac_status = 0; }; }
25752 gcc_cv_as_powerpc_dfp
=yes
25754 echo "configure: failed program was" >&5
25757 rm -f conftest.o conftest.s
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25761 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25762 if test $gcc_cv_as_powerpc_dfp = yes; then
25764 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25769 *-*-aix*) conftest_s
=' .machine "pwr7"
25772 *) conftest_s
=' .machine power7
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25778 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25779 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25780 $as_echo_n "(cached) " >&6
25782 gcc_cv_as_powerpc_vsx
=no
25783 if test $in_tree_gas = yes; then
25784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25785 then gcc_cv_as_powerpc_vsx
=yes
25787 elif test x
$gcc_cv_as != x
; then
25788 $as_echo "$conftest_s" > conftest.s
25789 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25791 (eval $ac_try) 2>&5
25793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25794 test $ac_status = 0; }; }
25796 gcc_cv_as_powerpc_vsx
=yes
25798 echo "configure: failed program was" >&5
25801 rm -f conftest.o conftest.s
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25805 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25806 if test $gcc_cv_as_powerpc_vsx = yes; then
25808 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25813 *-*-aix*) conftest_s
=' .machine "pwr7"
25816 *) conftest_s
=' .machine power7
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25822 $as_echo_n "checking assembler for popcntd support... " >&6; }
25823 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25824 $as_echo_n "(cached) " >&6
25826 gcc_cv_as_powerpc_popcntd
=no
25827 if test $in_tree_gas = yes; then
25828 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25829 then gcc_cv_as_powerpc_popcntd
=yes
25831 elif test x
$gcc_cv_as != x
; then
25832 $as_echo "$conftest_s" > conftest.s
25833 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835 (eval $ac_try) 2>&5
25837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; }
25840 gcc_cv_as_powerpc_popcntd
=yes
25842 echo "configure: failed program was" >&5
25845 rm -f conftest.o conftest.s
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25849 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25850 if test $gcc_cv_as_powerpc_popcntd = yes; then
25852 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25857 *-*-aix*) conftest_s
=' .machine "pwr8"
25858 .csect .text[PR]';;
25859 *) conftest_s
=' .machine power8
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25864 $as_echo_n "checking assembler for power8 support... " >&6; }
25865 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25866 $as_echo_n "(cached) " >&6
25868 gcc_cv_as_powerpc_power8
=no
25869 if test $in_tree_gas = yes; then
25870 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25871 then gcc_cv_as_powerpc_power8
=yes
25873 elif test x
$gcc_cv_as != x
; then
25874 $as_echo "$conftest_s" > conftest.s
25875 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25877 (eval $ac_try) 2>&5
25879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25880 test $ac_status = 0; }; }
25882 gcc_cv_as_powerpc_power8
=yes
25884 echo "configure: failed program was" >&5
25887 rm -f conftest.o conftest.s
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25891 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25892 if test $gcc_cv_as_powerpc_power8 = yes; then
25894 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25899 *-*-aix*) conftest_s
=' .csect .text[PR]
25901 *) conftest_s
=' .text
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25906 $as_echo_n "checking assembler for lwsync support... " >&6; }
25907 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25908 $as_echo_n "(cached) " >&6
25910 gcc_cv_as_powerpc_lwsync
=no
25911 if test $in_tree_gas = yes; then
25912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25913 then gcc_cv_as_powerpc_lwsync
=yes
25915 elif test x
$gcc_cv_as != x
; then
25916 $as_echo "$conftest_s" > conftest.s
25917 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25919 (eval $ac_try) 2>&5
25921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25922 test $ac_status = 0; }; }
25924 gcc_cv_as_powerpc_lwsync
=yes
25926 echo "configure: failed program was" >&5
25929 rm -f conftest.o conftest.s
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25933 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25934 if test $gcc_cv_as_powerpc_lwsync = yes; then
25936 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25941 *-*-aix*) conftest_s
=' .machine "476"
25944 *) conftest_s
=' .machine "476"
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25950 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25951 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25952 $as_echo_n "(cached) " >&6
25954 gcc_cv_as_powerpc_dci
=no
25955 if test $in_tree_gas = yes; then
25956 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25957 then gcc_cv_as_powerpc_dci
=yes
25959 elif test x
$gcc_cv_as != x
; then
25960 $as_echo "$conftest_s" > conftest.s
25961 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25963 (eval $ac_try) 2>&5
25965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25966 test $ac_status = 0; }; }
25968 gcc_cv_as_powerpc_dci
=yes
25970 echo "configure: failed program was" >&5
25973 rm -f conftest.o conftest.s
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25977 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25978 if test $gcc_cv_as_powerpc_dci = yes; then
25980 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25985 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25986 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25987 $as_echo_n "(cached) " >&6
25989 gcc_cv_as_powerpc_gnu_attribute
=no
25990 if test $in_tree_gas = yes; then
25991 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25992 then gcc_cv_as_powerpc_gnu_attribute
=yes
25994 elif test x
$gcc_cv_as != x
; then
25995 $as_echo '.gnu_attribute 4,1' > conftest.s
25996 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25998 (eval $ac_try) 2>&5
26000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26001 test $ac_status = 0; }; }
26003 gcc_cv_as_powerpc_gnu_attribute
=yes
26005 echo "configure: failed program was" >&5
26008 rm -f conftest.o conftest.s
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26012 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26013 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26015 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26020 $as_echo_n "checking assembler for tls marker support... " >&6; }
26021 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26022 $as_echo_n "(cached) " >&6
26024 gcc_cv_as_powerpc_tls_markers
=no
26025 if test $in_tree_gas = yes; then
26026 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26027 then gcc_cv_as_powerpc_tls_markers
=yes
26029 elif test x
$gcc_cv_as != x
; then
26030 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26031 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26033 (eval $ac_try) 2>&5
26035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26036 test $ac_status = 0; }; }
26038 gcc_cv_as_powerpc_tls_markers
=yes
26040 echo "configure: failed program was" >&5
26043 rm -f conftest.o conftest.s
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26047 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26048 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26050 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26057 $as_echo_n "checking assembler for .ref support... " >&6; }
26058 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26059 $as_echo_n "(cached) " >&6
26061 gcc_cv_as_aix_ref
=no
26062 if test $in_tree_gas = yes; then
26063 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26064 then gcc_cv_as_aix_ref
=yes
26066 elif test x
$gcc_cv_as != x
; then
26067 $as_echo ' .csect stuff[rw]
26073 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26075 (eval $ac_try) 2>&5
26077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26078 test $ac_status = 0; }; }
26080 gcc_cv_as_aix_ref
=yes
26082 echo "configure: failed program was" >&5
26085 rm -f conftest.o conftest.s
26088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26089 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26090 if test $gcc_cv_as_aix_ref = yes; then
26092 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26101 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26102 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26103 $as_echo_n "(cached) " >&6
26105 gcc_cv_as_mips_explicit_relocs
=no
26106 if test $in_tree_gas = yes; then
26107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26108 then gcc_cv_as_mips_explicit_relocs
=yes
26110 elif test x
$gcc_cv_as != x
; then
26111 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26112 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26114 (eval $ac_try) 2>&5
26116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26117 test $ac_status = 0; }; }
26119 gcc_cv_as_mips_explicit_relocs
=yes
26121 echo "configure: failed program was" >&5
26124 rm -f conftest.o conftest.s
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26128 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26129 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26130 if test x
$target_cpu_default = x
26131 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26132 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26136 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26137 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26138 $as_echo_n "(cached) " >&6
26140 gcc_cv_as_mips_no_shared
=no
26141 if test $in_tree_gas = yes; then
26142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26143 then gcc_cv_as_mips_no_shared
=yes
26145 elif test x
$gcc_cv_as != x
; then
26146 $as_echo 'nop' > conftest.s
26147 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26149 (eval $ac_try) 2>&5
26151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26152 test $ac_status = 0; }; }
26154 gcc_cv_as_mips_no_shared
=yes
26156 echo "configure: failed program was" >&5
26159 rm -f conftest.o conftest.s
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26163 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26164 if test $gcc_cv_as_mips_no_shared = yes; then
26166 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26171 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26172 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26173 $as_echo_n "(cached) " >&6
26175 gcc_cv_as_mips_gnu_attribute
=no
26176 if test $in_tree_gas = yes; then
26177 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26178 then gcc_cv_as_mips_gnu_attribute
=yes
26180 elif test x
$gcc_cv_as != x
; then
26181 $as_echo '.gnu_attribute 4,1' > conftest.s
26182 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26184 (eval $ac_try) 2>&5
26186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26187 test $ac_status = 0; }; }
26189 gcc_cv_as_mips_gnu_attribute
=yes
26191 echo "configure: failed program was" >&5
26194 rm -f conftest.o conftest.s
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26198 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26199 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26201 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26206 $as_echo_n "checking assembler for .module support... " >&6; }
26207 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26208 $as_echo_n "(cached) " >&6
26210 gcc_cv_as_mips_dot_module
=no
26211 if test x
$gcc_cv_as != x
; then
26212 $as_echo '.module mips2
26213 .module fp=xx' > conftest.s
26214 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26216 (eval $ac_try) 2>&5
26218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26219 test $ac_status = 0; }; }
26221 gcc_cv_as_mips_dot_module
=yes
26223 echo "configure: failed program was" >&5
26226 rm -f conftest.o conftest.s
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26230 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26231 if test $gcc_cv_as_mips_dot_module = yes; then
26233 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26238 $as_echo_n "checking assembler for .micromips support... " >&6; }
26239 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26240 $as_echo_n "(cached) " >&6
26242 gcc_cv_as_micromips_support
=no
26243 if test x
$gcc_cv_as != x
; then
26244 $as_echo '.set micromips' > conftest.s
26245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26247 (eval $ac_try) 2>&5
26249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26250 test $ac_status = 0; }; }
26252 gcc_cv_as_micromips_support
=yes
26254 echo "configure: failed program was" >&5
26257 rm -f conftest.o conftest.s
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26261 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26262 if test $gcc_cv_as_micromips_support = yes; then
26264 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26269 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26270 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26271 $as_echo_n "(cached) " >&6
26273 gcc_cv_as_mips_dtprelword
=no
26274 if test $in_tree_gas = yes; then
26275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26276 then gcc_cv_as_mips_dtprelword
=yes
26278 elif test x
$gcc_cv_as != x
; then
26279 $as_echo '.section .tdata,"awT",@progbits
26283 .dtprelword x+0x8000' > conftest.s
26284 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26286 (eval $ac_try) 2>&5
26288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26289 test $ac_status = 0; }; }
26291 gcc_cv_as_mips_dtprelword
=yes
26293 echo "configure: failed program was" >&5
26296 rm -f conftest.o conftest.s
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26300 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26301 if test $gcc_cv_as_mips_dtprelword = yes; then
26303 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26308 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26309 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26310 $as_echo_n "(cached) " >&6
26312 gcc_cv_as_mips_dspr1_mult
=no
26313 if test x
$gcc_cv_as != x
; then
26314 $as_echo ' .set mips32r2
26322 multu $ac3,$4,$5' > conftest.s
26323 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26325 (eval $ac_try) 2>&5
26327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26328 test $ac_status = 0; }; }
26330 gcc_cv_as_mips_dspr1_mult
=yes
26332 echo "configure: failed program was" >&5
26335 rm -f conftest.o conftest.s
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26339 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26340 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26342 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26347 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26348 gcc_cv_as_ld_jalr_reloc
=no
26349 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26350 if test $in_tree_ld = yes ; then
26351 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 \
26352 && test $in_tree_ld_is_elf = yes; then
26353 gcc_cv_as_ld_jalr_reloc
=yes
26355 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26356 echo ' .ent x' > conftest.s
26357 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26358 echo ' ld $25,%call16(y)($28)' >> conftest.s
26359 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26360 echo '1: jalr $25' >> conftest.s
26361 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26362 echo '1: jalr $25' >> conftest.s
26363 echo ' .end x' >> conftest.s
26364 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26365 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26366 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26367 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26368 gcc_cv_as_ld_jalr_reloc
=yes
26374 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26375 if test x
$target_cpu_default = x
; then
26376 target_cpu_default
=MASK_RELAX_PIC_CALLS
26378 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26382 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26385 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26386 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26387 $as_echo_n "(cached) " >&6
26389 gcc_cv_ld_mips_personality_relaxation
=no
26390 if test $in_tree_ld = yes ; then
26391 if test "$gcc_cv_gld_major_version" -eq 2 \
26392 -a "$gcc_cv_gld_minor_version" -ge 21 \
26393 -o "$gcc_cv_gld_major_version" -gt 2; then
26394 gcc_cv_ld_mips_personality_relaxation
=yes
26396 elif test x
$gcc_cv_as != x \
26397 -a x
$gcc_cv_ld != x \
26398 -a x
$gcc_cv_readelf != x
; then
26399 cat > conftest.s
<<EOF
26401 .cfi_personality 0x80,indirect_ptr
26408 .section .data,"aw",@progbits
26412 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26413 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26414 if $gcc_cv_readelf -d conftest
2>&1 \
26415 |
grep TEXTREL
> /dev
/null
2>&1; then
26417 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26418 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26421 gcc_cv_ld_mips_personality_relaxation
=yes
26425 rm -f conftest.s conftest.o conftest
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26428 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26429 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26431 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26436 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26437 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26438 $as_echo_n "(cached) " >&6
26440 gcc_cv_as_mips_nan
=no
26441 if test x
$gcc_cv_as != x
; then
26442 $as_echo '' > conftest.s
26443 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26445 (eval $ac_try) 2>&5
26447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26448 test $ac_status = 0; }; }
26450 gcc_cv_as_mips_nan
=yes
26452 echo "configure: failed program was" >&5
26455 rm -f conftest.o conftest.s
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26459 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26460 if test $gcc_cv_as_mips_nan = yes; then
26462 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26465 if test x
$gcc_cv_as_mips_nan = xno \
26466 && test x
$with_nan != x
; then
26467 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26472 # Mips and HP-UX need the GNU assembler.
26473 # Linux on IA64 might be able to use the Intel assembler.
26476 mips
*-*-* |
*-*-hpux* )
26477 if test x
$gas_flag = xyes \
26478 ||
test x
"$host" != x
"$build" \
26479 ||
test ! -x "$gcc_cv_as" \
26480 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26483 echo "*** This configuration requires the GNU assembler" >&2
26489 # ??? Not all targets support dwarf2 debug_line, even within a version
26490 # of gas. Moreover, we need to emit a valid instruction to trigger any
26491 # info to the output file. So, as supported targets are added to gas 2.11,
26492 # add some instruction here to (also) show we expect this might work.
26493 # ??? Once 2.11 is released, probably need to add first known working
26494 # version to the per-target configury.
26495 case "$cpu_type" in
26496 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26497 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26498 | xstormy16 | xtensa
)
26508 if test x
"$insn" != x
; then
26510 .file 1 \"conftest.s\"
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26514 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26515 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26516 $as_echo_n "(cached) " >&6
26518 gcc_cv_as_dwarf2_debug_line
=no
26519 if test $in_tree_gas = yes; then
26520 if test $in_tree_gas_is_elf = yes \
26521 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26522 then gcc_cv_as_dwarf2_debug_line
=yes
26524 elif test x
$gcc_cv_as != x
; then
26525 $as_echo "$conftest_s" > conftest.s
26526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26528 (eval $ac_try) 2>&5
26530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26531 test $ac_status = 0; }; }
26533 if test x
$gcc_cv_objdump != x \
26534 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26535 |
grep debug_line
> /dev
/null
2>&1; then
26536 gcc_cv_as_dwarf2_debug_line
=yes
26539 echo "configure: failed program was" >&5
26542 rm -f conftest.o conftest.s
26545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26546 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26549 # The .debug_line file table must be in the exact order that
26550 # we specified the files, since these indices are also used
26551 # by DW_AT_decl_file. Approximate this test by testing if
26552 # the assembler bitches if the same index is assigned twice.
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26554 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26555 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26556 $as_echo_n "(cached) " >&6
26558 gcc_cv_as_dwarf2_file_buggy
=no
26559 if test x
$gcc_cv_as != x
; then
26560 $as_echo ' .file 1 "foo.s"
26561 .file 1 "bar.s"' > conftest.s
26562 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; }
26569 gcc_cv_as_dwarf2_file_buggy
=yes
26571 echo "configure: failed program was" >&5
26574 rm -f conftest.o conftest.s
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26578 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26581 if test $gcc_cv_as_dwarf2_debug_line = yes \
26582 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26584 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26589 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26590 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26591 $as_echo_n "(cached) " >&6
26593 gcc_cv_as_gdwarf2_flag
=no
26594 if test $in_tree_gas = yes; then
26595 if test $in_tree_gas_is_elf = yes \
26596 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26597 then gcc_cv_as_gdwarf2_flag
=yes
26599 elif test x
$gcc_cv_as != x
; then
26600 $as_echo "$insn" > conftest.s
26601 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26603 (eval $ac_try) 2>&5
26605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26606 test $ac_status = 0; }; }
26608 gcc_cv_as_gdwarf2_flag
=yes
26610 echo "configure: failed program was" >&5
26613 rm -f conftest.o conftest.s
26616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26617 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26618 if test $gcc_cv_as_gdwarf2_flag = yes; then
26620 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26625 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26626 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26627 $as_echo_n "(cached) " >&6
26629 gcc_cv_as_gstabs_flag
=no
26630 if test $in_tree_gas = yes; then
26631 if test $in_tree_gas_is_elf = yes \
26632 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26633 then gcc_cv_as_gstabs_flag
=yes
26635 elif test x
$gcc_cv_as != x
; then
26636 $as_echo "$insn" > conftest.s
26637 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26639 (eval $ac_try) 2>&5
26641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26642 test $ac_status = 0; }; }
26644 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26645 # and warns about it, but still exits successfully. So check for
26647 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26649 (eval $ac_try) 2>&5
26651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26652 test $ac_status = 0; }; }
26654 else gcc_cv_as_gstabs_flag
=yes
26657 echo "configure: failed program was" >&5
26660 rm -f conftest.o conftest.s
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26664 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26665 if test $gcc_cv_as_gstabs_flag = yes; then
26667 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26672 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26673 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26674 $as_echo_n "(cached) " >&6
26676 gcc_cv_as_debug_prefix_map_flag
=no
26677 if test $in_tree_gas = yes; then
26678 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26679 then gcc_cv_as_debug_prefix_map_flag
=yes
26681 elif test x
$gcc_cv_as != x
; then
26682 $as_echo "$insn" > conftest.s
26683 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26685 (eval $ac_try) 2>&5
26687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26688 test $ac_status = 0; }; }
26690 gcc_cv_as_debug_prefix_map_flag
=yes
26692 echo "configure: failed program was" >&5
26695 rm -f conftest.o conftest.s
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26699 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26700 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26702 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26708 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26709 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26710 $as_echo_n "(cached) " >&6
26712 gcc_cv_as_lcomm_with_alignment
=no
26713 if test x
$gcc_cv_as != x
; then
26714 $as_echo '.lcomm bar,4,16' > conftest.s
26715 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26717 (eval $ac_try) 2>&5
26719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26720 test $ac_status = 0; }; }
26722 gcc_cv_as_lcomm_with_alignment
=yes
26724 echo "configure: failed program was" >&5
26727 rm -f conftest.o conftest.s
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26731 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26732 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26734 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26738 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26739 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26740 && test "$prefix" != "NONE"; then
26742 cat >>confdefs.h
<<_ACEOF
26743 #define PREFIX_INCLUDE_DIR "$prefix/include"
26748 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26749 if test "x$with_headers" != x
; then
26750 target_header_dir
=$with_headers
26751 elif test "x$with_sysroot" = x
; then
26752 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26753 elif test "x$with_build_sysroot" != "x"; then
26754 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26755 elif test "x$with_sysroot" = xyes
; then
26756 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26758 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26761 target_header_dir
=${native_system_header_dir}
26764 # Determine the version of glibc, if any, used on the target.
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26766 $as_echo_n "checking for target glibc version... " >&6; }
26768 # Check whether --with-glibc-version was given.
26769 if test "${with_glibc_version+set}" = set; then :
26770 withval
=$with_glibc_version;
26771 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26772 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26773 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26775 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
26779 glibc_version_major
=0
26780 glibc_version_minor
=0
26781 if test -f $target_header_dir/features.h \
26782 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26783 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26784 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26785 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26790 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26792 # Check whether --enable-gnu-unique-object was given.
26793 if test "${enable_gnu_unique_object+set}" = set; then :
26794 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26796 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26797 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26801 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26802 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26803 $as_echo_n "(cached) " >&6
26805 gcc_cv_as_gnu_unique_object
=no
26806 if test $in_tree_gas = yes; then
26807 if test $in_tree_gas_is_elf = yes \
26808 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26809 then gcc_cv_as_gnu_unique_object
=yes
26811 elif test x
$gcc_cv_as != x
; then
26812 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26813 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26815 (eval $ac_try) 2>&5
26817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26818 test $ac_status = 0; }; }
26820 gcc_cv_as_gnu_unique_object
=yes
26822 echo "configure: failed program was" >&5
26825 rm -f conftest.o conftest.s
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26829 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26830 if test $gcc_cv_as_gnu_unique_object = yes; then
26831 # We need to unquote above to to use the definition from config.gcc.
26832 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26834 if test $glibc_version_major -gt 2 \
26835 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26836 enable_gnu_unique_object
=yes
26842 if test x
$enable_gnu_unique_object = xyes
; then
26844 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26849 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26850 if test "${gcc_cv_as_line_zero+set}" = set; then :
26851 $as_echo_n "(cached) " >&6
26853 gcc_cv_as_line_zero
=no
26854 if test $in_tree_gas = yes; then
26855 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26856 then gcc_cv_as_line_zero
=yes
26858 elif test "x$gcc_cv_as" != x
; then
26859 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26860 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26862 (eval $ac_try) 2>&5
26864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26865 test $ac_status = 0; }; } &&
26866 test "x`cat conftest.out`" = x
26868 gcc_cv_as_line_zero
=yes
26870 echo "configure: failed program was" >&5
26872 echo "configure: error output was" >&5
26873 cat conftest.out
>&5
26875 rm -f conftest.o conftest.s conftest.out
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26879 $as_echo "$gcc_cv_as_line_zero" >&6; }
26880 if test "x$gcc_cv_as_line_zero" = xyes
; then
26882 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26887 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26888 gcc_cv_ld_eh_frame_hdr
=no
26889 if test $in_tree_ld = yes ; then
26890 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 \
26891 && test $in_tree_ld_is_elf = yes; then
26892 gcc_cv_ld_eh_frame_hdr
=yes
26894 elif test x
$gcc_cv_ld != x
; then
26895 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26896 # Check if linker supports --eh-frame-hdr option
26897 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26898 gcc_cv_ld_eh_frame_hdr
=yes
26903 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26904 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26905 gcc_cv_ld_eh_frame_hdr
=yes
26912 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26914 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26918 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26921 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26922 gcc_cv_ld_eh_frame_ciev3
=no
26923 if test $in_tree_ld = yes ; then
26924 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 \
26925 && test $in_tree_ld_is_elf = yes; then
26926 gcc_cv_ld_eh_frame_ciev3
=yes
26928 elif test x
$gcc_cv_ld != x
; then
26929 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26930 gcc_cv_ld_eh_frame_ciev3
=yes
26931 if test 0"$ld_date" -lt 20040513; then
26932 if test -n "$ld_date"; then
26933 # If there was date string, but was earlier than 2004-05-13, fail
26934 gcc_cv_ld_eh_frame_ciev3
=no
26935 elif test "$ld_vers_major" -lt 2; then
26936 gcc_cv_ld_eh_frame_ciev3
=no
26937 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26938 gcc_cv_ld_eh_frame_ciev3
=no
26944 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26945 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26946 gcc_cv_ld_eh_frame_ciev3
=yes
26953 cat >>confdefs.h
<<_ACEOF
26954 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26958 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26961 $as_echo_n "checking linker position independent executable support... " >&6; }
26963 if test $in_tree_ld = yes ; then
26964 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 \
26965 && test $in_tree_ld_is_elf = yes; then
26968 elif test x
$gcc_cv_ld != x
; then
26969 # Check if linker supports -pie option
26970 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26974 if test x
"$gcc_cv_ld_pie" = xyes
; then
26976 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26980 $as_echo "$gcc_cv_ld_pie" >&6; }
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26983 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26984 gcc_cv_ld_eh_gc_sections
=no
26985 if test $in_tree_ld = yes ; then
26986 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 \
26987 && test $in_tree_ld_is_elf = yes; then
26988 gcc_cv_ld_eh_gc_sections
=yes
26990 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26991 cat > conftest.s
<<EOF
26994 .type _start, @function
26997 .size _start, .-_start
26998 .section .text.foo,"ax",@progbits
26999 .type foo, @function
27003 .section .gcc_except_table.foo,"a",@progbits
27006 .section .eh_frame,"a",@progbits
27009 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27010 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27011 |
grep "gc-sections option ignored" > /dev
/null
; then
27012 gcc_cv_ld_eh_gc_sections
=no
27013 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27014 |
grep gcc_except_table
> /dev
/null
; then
27015 gcc_cv_ld_eh_gc_sections
=yes
27016 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27017 if test x
$gcc_cv_as_comdat_group != xyes
; then
27018 gcc_cv_ld_eh_gc_sections
=no
27019 cat > conftest.s
<<EOF
27022 .type _start, @function
27025 .size _start, .-_start
27026 .section .gnu.linkonce.t.foo,"ax",@progbits
27027 .type foo, @function
27031 .section .gcc_except_table.foo,"a",@progbits
27034 .section .eh_frame,"a",@progbits
27037 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27038 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27039 |
grep "gc-sections option ignored" > /dev
/null
; then
27040 gcc_cv_ld_eh_gc_sections
=no
27041 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27042 |
grep gcc_except_table
> /dev
/null
; then
27043 gcc_cv_ld_eh_gc_sections
=yes
27049 rm -f conftest.s conftest.o conftest
27053 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27054 gcc_cv_ld_eh_gc_sections
=no
27057 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27059 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27063 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27066 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27067 gcc_cv_ld_eh_gc_sections_bug
=no
27068 if test $in_tree_ld = yes ; then
27069 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 \
27070 && test $in_tree_ld_is_elf = yes; then
27071 gcc_cv_ld_eh_gc_sections_bug
=yes
27073 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
27074 gcc_cv_ld_eh_gc_sections_bug
=yes
27075 cat > conftest.s
<<EOF
27078 .type _start, @function
27081 .size _start, .-_start
27082 .section .text.startup.foo,"ax",@progbits
27083 .type foo, @function
27087 .section .gcc_except_table.foo,"a",@progbits
27090 .section .eh_frame,"a",@progbits
27093 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27094 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27095 |
grep "gc-sections option ignored" > /dev
/null
; then
27097 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27098 |
grep gcc_except_table
> /dev
/null
; then
27099 gcc_cv_ld_eh_gc_sections_bug
=no
27102 rm -f conftest.s conftest.o conftest
27104 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27106 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27110 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27117 $as_echo_n "checking linker --as-needed support... " >&6; }
27118 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27119 $as_echo_n "(cached) " >&6
27121 gcc_cv_ld_as_needed
=no
27122 gcc_cv_ld_as_needed_option
='--as-needed'
27123 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27124 if test $in_tree_ld = yes ; then
27125 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 \
27126 && test $in_tree_ld_is_elf = yes; then
27127 gcc_cv_ld_as_needed
=yes
27129 elif test x
$gcc_cv_ld != x
; then
27130 # Check if linker supports --as-needed and --no-as-needed options
27131 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27132 gcc_cv_ld_as_needed
=yes
27135 # Solaris 2 ld always supports -z ignore/-z record.
27137 gcc_cv_ld_as_needed
=yes
27138 gcc_cv_ld_as_needed_option
="-z ignore"
27139 gcc_cv_ld_no_as_needed_option
="-z record"
27144 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27145 # dl_iterate_phdr, i.e. since Solaris 11.
27147 *-*-solaris2.1
[1-9]*)
27149 i?
86-*-* | x86_64-
*-*)
27150 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27151 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27152 gcc_cv_ld_as_needed
=no
27158 gcc_cv_ld_as_needed
=no
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27164 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27165 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27167 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27170 cat >>confdefs.h
<<_ACEOF
27171 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27175 cat >>confdefs.h
<<_ACEOF
27176 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27182 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27183 saved_LDFLAGS
="$LDFLAGS"
27184 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27185 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27187 /* end confdefs.h. */
27188 int main(void) {return 0;}
27190 if ac_fn_c_try_link
"$LINENO"; then :
27191 gcc_cv_ld_clearcap
=yes; break
27193 gcc_cv_ld_clearcap
=no
27195 rm -f core conftest.err conftest.
$ac_objext \
27196 conftest
$ac_exeext conftest.
$ac_ext
27198 LDFLAGS
="$saved_LDFLAGS"
27199 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27201 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27203 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27207 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27209 case "$target:$tm_file" in
27210 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27213 emul_name
="-melf64lppc"
27216 emul_name
="-melf64ppc"
27219 emul_name
="-melf64ppc_fbsd"
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27223 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27224 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27225 $as_echo_n "(cached) " >&6
27227 gcc_cv_ld_no_dot_syms
=no
27228 if test x
"$ld_is_gold" = xyes
; then
27229 gcc_cv_ld_no_dot_syms
=yes
27230 elif test $in_tree_ld = yes ; then
27231 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
27232 gcc_cv_ld_no_dot_syms
=yes
27234 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27235 cat > conftest1.s
<<EOF
27239 cat > conftest2.s
<<EOF
27240 .section ".opd","aw"
27243 .type foo,@function
27245 .quad .LEfoo,.TOC.@tocbase,0
27251 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27252 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27253 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27254 gcc_cv_ld_no_dot_syms
=yes
27256 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27261 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27262 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27264 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27269 $as_echo_n "checking linker large toc support... " >&6; }
27270 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27271 $as_echo_n "(cached) " >&6
27273 gcc_cv_ld_large_toc
=no
27274 if test x
"$ld_is_gold" = xyes
; then
27275 gcc_cv_ld_large_toc
=yes
27276 elif test $in_tree_ld = yes ; then
27277 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
27278 gcc_cv_ld_large_toc
=yes
27280 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27281 cat > conftest.s
<<EOF
27282 .section ".tbss","awT",@nobits
27288 addis 9,13,ie0@got@tprel@ha
27289 ld 9,ie0@got@tprel@l(9)
27291 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27292 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27293 gcc_cv_ld_large_toc
=yes
27295 rm -f conftest conftest.o conftest.s
27299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27300 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27301 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27303 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27312 $as_echo_n "checking linker large toc support... " >&6; }
27313 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27314 $as_echo_n "(cached) " >&6
27316 gcc_cv_ld_large_toc
=no
27317 if test x
$gcc_cv_as != x
; then
27318 cat > conftest.s
<<EOF
27328 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27329 gcc_cv_ld_large_toc
=yes
27331 rm -f conftest conftest.o conftest.s
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27336 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27337 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27339 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27346 $as_echo_n "checking linker --build-id support... " >&6; }
27347 if test "${gcc_cv_ld_buildid+set}" = set; then :
27348 $as_echo_n "(cached) " >&6
27350 gcc_cv_ld_buildid
=no
27351 if test $in_tree_ld = yes ; then
27352 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27353 "$gcc_cv_gld_minor_version" -ge 18 -o \
27354 "$gcc_cv_gld_major_version" -gt 2 \
27355 && test $in_tree_ld_is_elf = yes; then
27356 gcc_cv_ld_buildid
=yes
27358 elif test x
$gcc_cv_ld != x
; then
27359 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27360 gcc_cv_ld_buildid
=yes
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27365 $as_echo "$gcc_cv_ld_buildid" >&6; }
27366 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27368 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27372 # Check whether --enable-linker-build-id was given.
27373 if test "${enable_linker_build_id+set}" = set; then :
27374 enableval
=$enable_linker_build_id;
27376 enable_linker_build_id
=no
27380 if test x
"$enable_linker_build_id" = xyes
; then
27381 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27383 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27387 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27391 # In binutils 2.21, GNU ld gained support for new emulations fully
27392 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27394 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27395 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27396 $as_echo_n "(cached) " >&6
27398 gcc_cv_ld_sol2_emulation
=no
27399 if test $in_tree_ld = yes ; then
27400 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27401 "$gcc_cv_gld_minor_version" -ge 21 -o \
27402 "$gcc_cv_gld_major_version" -gt 2 \
27403 && test $in_tree_ld_is_elf = yes; then
27404 gcc_cv_ld_sol2_emulation
=yes
27406 elif test x
$gcc_cv_ld != x
; then
27407 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27408 grep _sol2
> /dev
/null
; then
27409 gcc_cv_ld_sol2_emulation
=yes
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27414 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27415 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27417 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27422 $as_echo_n "checking linker --sysroot support... " >&6; }
27423 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27424 $as_echo_n "(cached) " >&6
27426 gcc_cv_ld_sysroot
=no
27427 if test $in_tree_ld = yes ; then
27428 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
27429 gcc_cv_ld_sysroot
=yes
27431 elif test x
$gcc_cv_ld != x
; then
27432 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27433 gcc_cv_ld_sysroot
=yes
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27438 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27439 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27441 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27445 # Test for stack protector support in target C library.
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27447 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27448 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27449 $as_echo_n "(cached) " >&6
27451 gcc_cv_libc_provides_ssp
=no
27453 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27454 # glibc 2.4 and later provides __stack_chk_fail and
27455 # either __stack_chk_guard, or TLS access to stack guard canary.
27457 if test $glibc_version_major -gt 2 \
27458 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27459 gcc_cv_libc_provides_ssp
=yes
27462 if test -f $target_header_dir/features.h \
27463 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27464 $target_header_dir/features.h
> /dev
/null
; then
27465 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27466 $target_header_dir/features.h
> /dev
/null
&& \
27467 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27468 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27469 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27470 gcc_cv_libc_provides_ssp
=yes
27472 # all versions of Bionic support stack protector
27473 elif test -f $target_header_dir/sys
/cdefs.h \
27474 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27475 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27476 gcc_cv_libc_provides_ssp
=yes
27481 # Avoid complicated tests (see
27482 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27483 # simply assert that glibc does provide this, which is true for all
27484 # realistically usable GNU/Hurd configurations.
27485 gcc_cv_libc_provides_ssp
=yes;;
27486 *-*-darwin* |
*-*-freebsd*)
27487 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27488 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27489 gcc_cv_libc_provides_ssp
=yes
27491 echo "no __stack_chk_fail on this target"
27495 *) gcc_cv_libc_provides_ssp
=no
;;
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27499 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27501 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27503 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27507 # Test for <sys/sdt.h> on the target.
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27510 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27512 if test -f $target_header_dir/sys
/sdt.h
; then
27515 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27519 $as_echo "$have_sys_sdt_h" >&6; }
27521 # Check if TFmode long double should be used by default or not.
27522 # Some glibc targets used DFmode long double, but with glibc 2.4
27523 # and later they can use TFmode.
27525 powerpc
*-*-linux* | \
27526 sparc
*-*-linux* | \
27530 # Check whether --with-long-double-128 was given.
27531 if test "${with_long_double_128+set}" = set; then :
27532 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27535 if test $glibc_version_major -gt 2 \
27536 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27537 gcc_cv_target_ldbl128
=yes
27540 gcc_cv_target_ldbl128
=no
27541 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27542 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27543 && gcc_cv_target_ldbl128
=yes
27550 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27552 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27557 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27558 gcc_cv_target_dl_iterate_phdr
=unknown
27560 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27561 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27562 # libdl there, both complicating its use and breaking compatibility
27563 # between Solaris 10 updates.
27564 *-*-solaris2.1
[1-9]*)
27565 # <link.h> needs both a dl_iterate_phdr declaration and support for
27566 # compilation with largefile support.
27567 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27568 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27569 gcc_cv_target_dl_iterate_phdr
=yes
27571 gcc_cv_target_dl_iterate_phdr
=no
27576 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27578 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27582 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27584 # We no longer support different GC mechanisms. Emit an error if
27585 # the user configures with --with-gc.
27587 # Check whether --with-gc was given.
27588 if test "${with_gc+set}" = set; then :
27589 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27593 # Libraries to use on the host. This will normally be set by the top
27594 # level Makefile. Here we simply capture the value for our Makefile.
27595 if test -z "${HOST_LIBS+set}"; then
27600 # Use the system's zlib library.
27602 zlibinc
="-I\$(srcdir)/../zlib"
27604 # Check whether --with-system-zlib was given.
27605 if test "${with_system_zlib+set}" = set; then :
27606 withval
=$with_system_zlib; zlibdir
=
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27616 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27617 # Check whether --enable-maintainer-mode was given.
27618 if test "${enable_maintainer_mode+set}" = set; then :
27619 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27626 $as_echo "$maintainer_mode" >&6; }
27628 if test "$maintainer_mode" = "yes"; then
27635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27636 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27637 # Check whether --enable-link-mutex was given.
27638 if test "${enable_link_mutex+set}" = set; then :
27639 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27645 $as_echo "$do_link_mutex" >&6; }
27647 if test "$do_link_mutex" = "yes"; then
27650 DO_LINK_MUTEX
=false
27658 # Make empty files to contain the specs and options for each language.
27659 # Then add #include lines to for a compiler that has specs and/or options.
27665 # These (without "all_") are set in each config-lang.in.
27666 # `language' must be a single word so is spelled singularly.
27669 all_outputs
='Makefile'
27670 # List of language makefile fragments.
27671 all_lang_makefrags
=
27672 # Additional files for gengtype
27673 all_gtfiles
="$target_gtfiles"
27675 # These are the languages that are set in --enable-languages,
27676 # and are available in the GCC tree.
27677 all_selected_languages
=
27679 # Add the language fragments.
27680 # Languages are added via two mechanisms. Some information must be
27681 # recorded in makefile variables, these are defined in config-lang.in.
27682 # We accumulate them and plug them into the main Makefile.
27683 # The other mechanism is a set of hooks for each of the main targets
27684 # like `clean', `install', etc.
27686 language_hooks
="Make-hooks"
27688 for lang
in ${srcdir}/*/config-lang.
in
27690 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27692 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27693 if test "x$lang_alias" = x
27695 echo "$lang doesn't set \$language." 1>&2
27698 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27699 subdirs
="$subdirs $subdir"
27701 # $gcc_subdir is where the gcc integration files are to be found
27702 # for a language, both for internal compiler purposes (compiler
27703 # sources implementing front-end to GCC tree converters), and for
27704 # build infrastructure purposes (Make-lang.in, etc.)
27706 # This will be <subdir> (relative to $srcdir) if a line like
27707 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27708 # is found in <langdir>/config-lang.in, and will remain <langdir>
27711 # Except for the language alias (fetched above), the regular
27712 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27713 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27714 # only this and the language alias.
27716 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27717 if [ "$gcc_subdir" = "" ]; then
27718 gcc_subdir
="$subdir"
27721 case ",$enable_languages," in
27723 all_selected_languages
="$all_selected_languages $lang_alias"
27724 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27725 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27736 .
${srcdir}/$gcc_subdir/config-lang.
in
27737 if test "x$language" = x
27739 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27744 case ",$enable_languages," in
27745 *,$lang_alias,*) ;;
27747 for i
in $subdir_requires; do
27748 test -f "${srcdir}/$i/config-lang.in" && continue
27756 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27757 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27758 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27759 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27761 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27762 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27764 all_languages
="$all_languages $language"
27765 all_compilers
="$all_compilers $compilers"
27766 all_outputs
="$all_outputs $outputs"
27767 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27768 case ",$enable_languages," in
27771 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27781 for language
in $all_selected_languages
27783 check_languages
="$check_languages check-$language"
27786 # We link each language in with a set of hooks, reached indirectly via
27787 # lang.${target}. Only do so for selected languages.
27791 target_list
="all.cross start.encap rest.encap tags \
27792 install-common install-man install-info install-pdf install-html dvi \
27793 pdf html uninstall info man srcextra srcman srcinfo \
27794 mostlyclean clean distclean maintainer-clean install-plugin"
27796 for t
in $target_list
27799 for lang
in $all_selected_languages
27803 echo "lang.$t: $x" >> Make-hooks
27807 # Option include files
27810 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27811 option_includes
="option-includes.mk"
27820 echo "dir ." > .gdbinit
27821 echo "dir ${srcdir}" >> .gdbinit
27822 if test x
$gdb_needs_out_file_path = xyes
27824 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27826 if test "x$subdirs" != x
; then
27829 echo "dir ${srcdir}/$s" >> .gdbinit
27832 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27833 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27835 # Put a breakpoint on __asan_report_error to help with debugging buffer
27838 *-fsanitize=address
*)
27839 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27843 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27847 # Find a directory in which to install a shared libgcc.
27849 # Check whether --enable-version-specific-runtime-libs was given.
27850 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27851 enableval
=$enable_version_specific_runtime_libs;
27855 # Substitute configuration variables
27919 if test x
${build} = x
${host} ; then
27920 if test x
${host} = x
${target} ; then
27921 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27923 echo "Links are now set up to build a cross-compiler" 1>&2
27924 echo " from ${host} to ${target}." 1>&2
27927 if test x
${host} = x
${target} ; then
27928 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27929 echo " for ${target}." 1>&2
27931 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27932 echo " from ${host} to ${target}." 1>&2
27944 if test "x${CLOOGLIBS}" != "x" ; then
27946 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27949 # Check whether isl_schedule_constraints_compute_schedule is available;
27950 # it's new in ISL-0.13.
27951 saved_CFLAGS
="$CFLAGS"
27952 CFLAGS
="$CFLAGS $ISLINC"
27954 LIBS
="$LIBS $CLOOGLIBS $ISLLIBS $GMPLIBS"
27956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
27957 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
27958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27959 /* end confdefs.h. */
27960 #include <isl/schedule.h>
27964 isl_schedule_constraints_compute_schedule (NULL);
27969 if ac_fn_c_try_link
"$LINENO"; then :
27970 ac_has_isl_schedule_constraints_compute_schedule
=yes
27972 ac_has_isl_schedule_constraints_compute_schedule
=no
27974 rm -f core conftest.err conftest.
$ac_objext \
27975 conftest
$ac_exeext conftest.
$ac_ext
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
27977 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
27980 CFLAGS
="$saved_CFLAGS"
27982 if test x
"$ac_has_isl_schedule_constraints_compute_schedule" = x
"yes"; then
27984 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
27990 # Check for plugin support
27991 # Check whether --enable-plugin was given.
27992 if test "${enable_plugin+set}" = set; then :
27993 enableval
=$enable_plugin; enable_plugin
=$enableval
27995 enable_plugin
=yes; default_plugin
=yes
28003 if test x
$build = x
$host; then
28004 export_sym_check
="nm${exeext} -g"
28005 elif test x
$host = x
$target; then
28006 export_sym_check
="$gcc_cv_nm -g"
28012 if test x
$build = x
$host; then
28013 export_sym_check
="objdump${exeext} -T"
28014 elif test x
$host = x
$target; then
28015 export_sym_check
="$gcc_cv_objdump -T"
28022 if test x
"$enable_plugin" = x
"yes"; then
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28025 $as_echo_n "checking for exported symbols... " >&6; }
28026 if test "x$export_sym_check" != x
; then
28027 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28028 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28029 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28030 : # No need to use a flag
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28032 $as_echo "yes" >&6; }
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28035 $as_echo "yes" >&6; }
28036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28037 $as_echo_n "checking for -rdynamic... " >&6; }
28038 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28039 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28040 plugin_rdynamic
=yes
28041 pluginlibs
="-rdynamic"
28046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28047 $as_echo "$plugin_rdynamic" >&6; }
28050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28051 $as_echo "unable to check" >&6; }
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28057 $as_echo_n "checking for library containing dlopen... " >&6; }
28058 if test "${ac_cv_search_dlopen+set}" = set; then :
28059 $as_echo_n "(cached) " >&6
28061 ac_func_search_save_LIBS
=$LIBS
28062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28063 /* end confdefs.h. */
28065 /* Override any GCC internal prototype to avoid an error.
28066 Use char because int might match the return type of a GCC
28067 builtin and then its argument prototype would still apply. */
28080 for ac_lib
in '' dl
; do
28081 if test -z "$ac_lib"; then
28082 ac_res
="none required"
28085 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28087 if ac_fn_c_try_link
"$LINENO"; then :
28088 ac_cv_search_dlopen
=$ac_res
28090 rm -f core conftest.err conftest.
$ac_objext \
28092 if test "${ac_cv_search_dlopen+set}" = set; then :
28096 if test "${ac_cv_search_dlopen+set}" = set; then :
28099 ac_cv_search_dlopen
=no
28101 rm conftest.
$ac_ext
28102 LIBS
=$ac_func_search_save_LIBS
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28105 $as_echo "$ac_cv_search_dlopen" >&6; }
28106 ac_res
=$ac_cv_search_dlopen
28107 if test "$ac_res" != no
; then :
28108 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28112 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28113 pluginlibs
="$pluginlibs -ldl"
28117 # Check that we can build shared objects with -fPIC -shared
28118 saved_LDFLAGS
="$LDFLAGS"
28119 saved_CFLAGS
="$CFLAGS"
28122 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28123 CFLAGS
="$CFLAGS -fPIC"
28124 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28127 CFLAGS
="$CFLAGS -fPIC"
28128 LDFLAGS
="$LDFLAGS -fPIC -shared"
28131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28132 $as_echo_n "checking for -fPIC -shared... " >&6; }
28133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28134 /* end confdefs.h. */
28144 if ac_fn_c_try_link
"$LINENO"; then :
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28146 $as_echo "yes" >&6; }; have_pic_shared
=yes
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28149 $as_echo "no" >&6; }; have_pic_shared
=no
28151 rm -f core conftest.err conftest.
$ac_objext \
28152 conftest
$ac_exeext conftest.
$ac_ext
28153 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28157 LDFLAGS
="$saved_LDFLAGS"
28158 CFLAGS
="$saved_CFLAGS"
28160 # If plugin support had been requested but not available, fail.
28161 if test x
"$enable_plugin" = x
"no" ; then
28162 if test x
"$default_plugin" != x
"yes"; then
28164 Building GCC with plugin support requires a host that supports
28165 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28172 if test x
"$enable_plugin" = x
"yes"; then
28174 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28179 # Enable --enable-host-shared
28180 # Check whether --enable-host-shared was given.
28181 if test "${enable_host_shared+set}" = set; then :
28182 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28191 # Check whether --enable-libquadmath-support was given.
28192 if test "${enable_libquadmath_support+set}" = set; then :
28193 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28195 ENABLE_LIBQUADMATH_SUPPORT
=yes
28198 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28200 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28205 # Specify what hash style to use by default.
28207 # Check whether --with-linker-hash-style was given.
28208 if test "${with_linker_hash_style+set}" = set; then :
28209 withval
=$with_linker_hash_style; case x
"$withval" in
28211 LINKER_HASH_STYLE
=sysv
28214 LINKER_HASH_STYLE
=gnu
28217 LINKER_HASH_STYLE
=both
28220 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28224 LINKER_HASH_STYLE
=''
28227 if test x
"${LINKER_HASH_STYLE}" != x
; then
28229 cat >>confdefs.h
<<_ACEOF
28230 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28235 # Configure the subdirectories
28236 # AC_CONFIG_SUBDIRS($subdirs)
28238 # Create the Makefile
28239 # and configure language subdirectories
28240 ac_config_files
="$ac_config_files $all_outputs"
28243 ac_config_commands
="$ac_config_commands default"
28245 cat >confcache
<<\_ACEOF
28246 # This file is a shell script that caches the results of configure
28247 # tests run on this system so they can be shared between configure
28248 # scripts and configure runs, see configure's option --config-cache.
28249 # It is not useful on other systems. If it contains results you don't
28250 # want to keep, you may remove or edit it.
28252 # config.status only pays attention to the cache file if you give it
28253 # the --recheck option to rerun configure.
28255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28257 # following values.
28261 # The following way of writing the cache mishandles newlines in values,
28262 # but we know of no workaround that is simple, portable, and efficient.
28263 # So, we kill variables containing newlines.
28264 # Ultrix sh set writes to stderr and can't be redirected directly,
28265 # and sets the high bit in the cache file unless we assign to the vars.
28267 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28268 eval ac_val
=\$
$ac_var
28272 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28273 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28276 _ | IFS | as_nl
) ;; #(
28277 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28278 *) { eval $ac_var=; unset $ac_var;} ;;
28284 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28285 *${as_nl}ac_space
=\
*)
28286 # `set' does not quote correctly, so add quotes: double-quote
28287 # substitution turns \\\\ into \\, and sed turns \\ into \.
28290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28293 # `set' quotes correctly as required by POSIX, so do not add quotes.
28294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28303 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28305 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28307 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28308 if test -w "$cache_file"; then
28309 test "x$cache_file" != "x/dev/null" &&
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28311 $as_echo "$as_me: updating cache $cache_file" >&6;}
28312 cat confcache
>$cache_file
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28315 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28320 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28321 # Let make expand exec_prefix.
28322 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28324 DEFS
=-DHAVE_CONFIG_H
28328 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28329 # 1. Remove the extension, and $U if already installed.
28330 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28331 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28332 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28333 # will be set to the directory where LIBOBJS objects are built.
28334 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28335 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28337 LIBOBJS
=$ac_libobjs
28339 LTLIBOBJS
=$ac_ltlibobjs
28344 : ${CONFIG_STATUS=./config.status}
28346 ac_clean_files_save
=$ac_clean_files
28347 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28349 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28351 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28353 # Generated by $as_me.
28354 # Run this file to recreate the current configuration.
28355 # Compiler output produced by configure, useful for debugging
28356 # configure, is in config.log if it exists.
28359 ac_cs_recheck=false
28362 SHELL=\${CONFIG_SHELL-$SHELL}
28365 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28366 ## -------------------- ##
28367 ## M4sh Initialization. ##
28368 ## -------------------- ##
28370 # Be more Bourne compatible
28371 DUALCASE
=1; export DUALCASE
# for MKS sh
28372 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28375 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28376 # is contrary to our usage. Disable this feature.
28377 alias -g '${1+"$@"}'='"$@"'
28378 setopt NO_GLOB_SUBST
28380 case `(set -o) 2>/dev/null` in #(
28392 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28393 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28394 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28396 # Prefer a ksh shell builtin over an external printf program on Solaris,
28397 # but without wasting forks for bash or zsh.
28398 if test -z "$BASH_VERSION$ZSH_VERSION" \
28399 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28400 as_echo='print
-r --'
28401 as_echo_n='print
-rn --'
28402 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28403 as_echo='printf %s
\n'
28404 as_echo_n='printf %s
'
28406 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28407 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28408 as_echo_n='/usr
/ucb
/echo -n'
28410 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28411 as_echo_n_body='eval
28415 expr "X$arg" : "X\\(.*\\)$as_nl";
28416 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28418 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28420 export as_echo_n_body
28421 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28423 export as_echo_body
28424 as_echo='sh
-c $as_echo_body as_echo
'
28427 # The user is always right.
28428 if test "${PATH_SEPARATOR+set}" != set; then
28430 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28431 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28438 # We need space, tab and new line, in precisely that order. Quoting is
28439 # there to prevent editors from complaining about space-tab.
28440 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28441 # splitting by setting IFS to empty value.)
28444 # Find who we are. Look in the path if we contain no directory separator.
28446 *[\\/]* ) as_myself=$0 ;;
28447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28448 for as_dir in $PATH
28451 test -z "$as_dir" && as_dir=.
28452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28458 # We did not find ourselves, most probably we were run as `sh COMMAND'
28459 # in which case we are not to be found in the path.
28460 if test "x$as_myself" = x
; then
28463 if test ! -f "$as_myself"; then
28464 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28468 # Unset variables that we do not need and which cause bugs (e.g. in
28469 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28470 # suppresses any "Segmentation fault" message there. '((' could
28471 # trigger a bug in pdksh 5.2.14.
28472 for as_var
in BASH_ENV ENV MAIL MAILPATH
28473 do eval test x\
${$as_var+set} = xset \
28474 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28487 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28490 # as_fn_error ERROR [LINENO LOG_FD]
28491 # ---------------------------------
28492 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28493 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28494 # script with status $?, using 1 if that was 0.
28497 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28499 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28500 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28502 $as_echo "$as_me: error: $1" >&2
28503 as_fn_exit
$as_status
28507 # as_fn_set_status STATUS
28508 # -----------------------
28509 # Set $? to STATUS, without forking.
28510 as_fn_set_status
()
28513 } # as_fn_set_status
28515 # as_fn_exit STATUS
28516 # -----------------
28517 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28521 as_fn_set_status
$1
28527 # Portably unset VAR.
28530 { eval $1=; unset $1;}
28532 as_unset
=as_fn_unset
28533 # as_fn_append VAR VALUE
28534 # ----------------------
28535 # Append the text in VALUE to the end of the definition contained in VAR. Take
28536 # advantage of any shell optimizations that allow amortized linear growth over
28537 # repeated appends, instead of the typical quadratic growth present in naive
28539 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28540 eval 'as_fn_append ()
28551 # as_fn_arith ARG...
28552 # ------------------
28553 # Perform arithmetic evaluation on the ARGs, and store the result in the
28554 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28555 # must be portable across $(()) and expr.
28556 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28557 eval 'as_fn_arith ()
28564 as_val
=`expr "$@" || test $? -eq 1`
28569 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28570 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28576 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28577 as_basename
=basename
28582 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28588 as_me
=`$as_basename -- "$0" ||
28589 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28590 X"$0" : 'X\(//\)$' \| \
28591 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28593 sed '/^.*\/\([^/][^/]*\)\/*$/{
28607 # Avoid depending upon Character Ranges.
28608 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28609 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28610 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28611 as_cr_digits
='0123456789'
28612 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28614 ECHO_C
= ECHO_N
= ECHO_T
=
28615 case `echo -n x` in #(((((
28617 case `echo 'xy\c'` in
28618 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28620 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28627 rm -f conf$$ conf$$.exe conf$$.
file
28628 if test -d conf$$.dir
; then
28629 rm -f conf$$.dir
/conf$$.
file
28632 mkdir conf$$.dir
2>/dev
/null
28634 if (echo >conf$$.
file) 2>/dev
/null
; then
28635 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28637 # ... but there are two gotchas:
28638 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28639 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28640 # In both cases, we have to default to `cp -p'.
28641 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28643 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28651 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28652 rmdir conf$$.dir
2>/dev
/null
28657 # Create "$as_dir" as a directory, including parents if necessary.
28662 -*) as_dir
=.
/$as_dir;;
28664 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28668 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28669 *) as_qdir
=$as_dir;;
28671 as_dirs
="'$as_qdir' $as_dirs"
28672 as_dir
=`$as_dirname -- "$as_dir" ||
28673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28674 X"$as_dir" : 'X\(//\)[^/]' \| \
28675 X"$as_dir" : 'X\(//\)$' \| \
28676 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28677 $as_echo X"$as_dir" |
28678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28682 /^X\(\/\/\)[^/].*/{
28695 test -d "$as_dir" && break
28697 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28698 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28702 if mkdir
-p .
2>/dev
/null
; then
28703 as_mkdir_p
='mkdir -p "$as_dir"'
28705 test -d .
/-p && rmdir .
/-p
28709 if test -x / >/dev
/null
2>&1; then
28710 as_test_x
='test -x'
28712 if ls -dL / >/dev
/null
2>&1; then
28719 if test -d "$1"; then
28725 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28726 ???[sx]*):;;*)false;;esac;fi
28730 as_executable_p
=$as_test_x
28732 # Sed expression to map a string onto a valid CPP name.
28733 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28735 # Sed expression to map a string onto a valid variable name.
28736 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28740 ## ----------------------------------- ##
28741 ## Main body of $CONFIG_STATUS script. ##
28742 ## ----------------------------------- ##
28744 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28747 # Save the log message, to keep $0 and so on meaningful, and to
28748 # report actual input values of CONFIG_FILES etc. instead of their
28749 # values after options handling.
28751 This file was extended by $as_me, which was
28752 generated by GNU Autoconf 2.64. Invocation command line was
28754 CONFIG_FILES = $CONFIG_FILES
28755 CONFIG_HEADERS = $CONFIG_HEADERS
28756 CONFIG_LINKS = $CONFIG_LINKS
28757 CONFIG_COMMANDS = $CONFIG_COMMANDS
28760 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28765 case $ac_config_files in *"
28766 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28769 case $ac_config_headers in *"
28770 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28775 # Files that config.status was made for.
28776 config_files="$ac_config_files"
28777 config_headers="$ac_config_headers"
28778 config_links="$ac_config_links"
28779 config_commands="$ac_config_commands"
28783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28785 \`$as_me' instantiates files and other configuration actions
28786 from templates according to the current configuration. Unless the files
28787 and actions are specified as TAGs, all are instantiated by default.
28789 Usage: $0 [OPTION]... [TAG]...
28791 -h, --help print this help, then exit
28792 -V, --version print version number and configuration settings, then exit
28793 -q, --quiet, --silent
28794 do not print progress messages
28795 -d, --debug don't remove temporary files
28796 --recheck update $as_me by reconfiguring in the same conditions
28797 --file=FILE[:TEMPLATE]
28798 instantiate the configuration file FILE
28799 --header=FILE[:TEMPLATE]
28800 instantiate the configuration header FILE
28802 Configuration files:
28805 Configuration headers:
28808 Configuration links:
28811 Configuration commands:
28814 Report bugs to the package provider."
28817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28820 configured by $0, generated by GNU Autoconf 2.64,
28821 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28823 Copyright (C) 2009 Free Software Foundation, Inc.
28824 This config.status script is free software; the Free Software Foundation
28825 gives unlimited permission to copy, distribute and modify it."
28830 test -n "\$AWK" || AWK=awk
28833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28834 # The default lists apply if the user does not specify any file.
28840 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28841 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28852 # Handling of the options.
28853 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28855 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28856 $as_echo "$ac_cs_version"; exit ;;
28857 --debug |
--debu |
--deb |
--de |
--d |
-d )
28859 --file |
--fil |
--fi |
--f )
28862 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28864 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28865 ac_need_defaults
=false
;;
28866 --header |
--heade |
--head |
--hea )
28869 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28871 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28872 ac_need_defaults
=false
;;
28874 # Conflict between --help and --header
28875 as_fn_error
"ambiguous option: \`$1'
28876 Try \`$0 --help' for more information.";;
28877 --help |
--hel |
-h )
28878 $as_echo "$ac_cs_usage"; exit ;;
28879 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28880 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28883 # This is an error.
28884 -*) as_fn_error
"unrecognized option: \`$1'
28885 Try \`$0 --help' for more information." ;;
28887 *) as_fn_append ac_config_targets
" $1"
28888 ac_need_defaults
=false
;;
28894 ac_configure_extra_args
=
28896 if $ac_cs_silent; then
28898 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28903 if \$ac_cs_recheck; then
28904 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28906 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28907 CONFIG_SHELL='$SHELL'
28908 export CONFIG_SHELL
28913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28917 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28918 ## Running $as_me. ##
28924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28928 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28929 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28936 # Handling of arguments.
28937 for ac_config_target
in $ac_config_targets
28939 case $ac_config_target in
28940 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28941 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
28942 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
28943 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28944 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28945 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28946 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
28947 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28948 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28950 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28955 # If the user did not use the arguments to specify the items to instantiate,
28956 # then the envvar interface is used. Set only those that are not.
28957 # We use the long form for the default assignment because of an extremely
28958 # bizarre bug on SunOS 4.1.3.
28959 if $ac_need_defaults; then
28960 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28961 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28962 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
28963 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28966 # Have a temporary directory for convenience. Make it in the build tree
28967 # simply because there is no reason against having it here, and in addition,
28968 # creating and moving files from /tmp can sometimes cause problems.
28969 # Hook for its removal unless debugging.
28970 # Note that there is a small window in which the directory will not be cleaned:
28971 # after its creation but before its name has been assigned to `$tmp'.
28975 trap 'exit_status=$?
28976 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28978 trap 'as_fn_exit 1' 1 2 13 15
28980 # Create a (secure) tmp directory for tmp files.
28983 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28984 test -n "$tmp" && test -d "$tmp"
28987 tmp
=.
/conf$$
-$RANDOM
28988 (umask 077 && mkdir
"$tmp")
28989 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28991 # Set up the scripts for CONFIG_FILES section.
28992 # No need to generate them if there are no CONFIG_FILES.
28993 # This happens for instance with `./config.status config.h'.
28994 if test -n "$CONFIG_FILES"; then
28996 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28997 ac_cs_awk_getline
=:
28998 ac_cs_awk_pipe_init
=
28999 ac_cs_awk_read_file
='
29000 while ((getline aline < (F[key])) > 0)
29003 ac_cs_awk_pipe_fini
=
29005 ac_cs_awk_getline
=false
29006 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29007 ac_cs_awk_read_file
='
29009 print "cat " F[key] " &&"
29010 '$ac_cs_awk_pipe_init
29011 # The final `:' finishes the AND list.
29012 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29014 ac_cr
=`echo X | tr X '\015'`
29015 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29016 # But we know of no other shell where ac_cr would be empty at this
29017 # point, so we can use a bashism as a fallback.
29018 if test "x$ac_cr" = x
; then
29019 eval ac_cr
=\$
\'\\r
\'
29021 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29022 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29025 ac_cs_awk_cr
=$ac_cr
29028 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29031 # Create commands to substitute file output variables.
29033 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29034 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29035 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29038 } >conf$
$files.sh
&&
29039 . .
/conf$
$files.sh ||
29040 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29041 rm -f conf$
$files.sh
29044 echo "cat >conf$$subs.awk <<_ACEOF" &&
29045 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29047 } >conf$$subs.sh ||
29048 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29049 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29051 for ac_last_try in false false false false false :; do
29052 . ./conf$$subs.sh ||
29053 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29055 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29056 if test $ac_delim_n = $ac_delim_num; then
29058 elif $ac_last_try; then
29059 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29061 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29064 rm -f conf$$subs.sh
29066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29067 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29071 s/^/S["/; s
/!.
*/"]=/
29081 s/\(.\{148\}\).*/\1/
29083 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29088 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29095 s/\(.\{148\}\).*/\1/
29097 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29101 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29106 ' <conf$$subs.awk | sed '
29111 ' >>$CONFIG_STATUS || ac_write_fail=1
29112 rm -f conf$$subs.awk
29113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29115 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29116 for (key in S) S_is_set[key] = 1
29118 \$ac_cs_awk_pipe_init
29122 nfields = split(line, field, "@
")
29124 len = length(field[1])
29125 for (i = 2; i < nfields; i++) {
29127 keylen = length(key)
29128 if (S_is_set[key]) {
29130 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29131 len += length(value) + length(field[++i])
29136 if (nfields == 3 && !substed) {
29138 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29139 \$ac_cs_awk_read_file
29145 \$ac_cs_awk_pipe_fini
29148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29149 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29150 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29153 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29154 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29157 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29158 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29159 # trailing colons and then remove the whole line if VPATH becomes empty
29160 # (actually we leave an empty line to preserve line numbers).
29161 if test "x
$srcdir" = x.; then
29162 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29163 s/:*\$(srcdir):*/:/
29164 s/:*\${srcdir}:*/:/
29166 s/^\([^=]*=[ ]*\):*/\1/
29172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29173 fi # test -n "$CONFIG_FILES"
29175 # Set up the scripts for CONFIG_HEADERS section.
29176 # No need to generate them if there are no CONFIG_HEADERS.
29177 # This happens for instance with `./config.status Makefile'.
29178 if test -n "$CONFIG_HEADERS"; then
29179 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29183 # Transform confdefs.h into an awk script `defines.awk', embedded as
29184 # here-document in config.status, that substitutes the proper values into
29185 # config.h.in to produce config.h.
29187 # Create a delimiter string that does not exist in confdefs.h, to ease
29188 # handling of long lines.
29190 for ac_last_try in false false :; do
29191 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29192 if test -z "$ac_t"; then
29194 elif $ac_last_try; then
29195 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29197 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29201 # For the awk script, D is an array of macro values keyed by name,
29202 # likewise P contains macro parameters if any. Preserve backslash
29203 # newline sequences.
29205 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29207 s/.\{148\}/&'"$ac_delim"'/g
29210 s/^[ ]*#[ ]*define[ ][ ]*/ /
29217 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29219 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29223 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29224 D["\
1"]=" \
3\\\\\\n
"\\/p
29226 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29231 s/.\{148\}/&'"$ac_delim"'/g
29236 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29239 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29241 ' <confdefs.h | sed '
29242 s/'"$ac_delim"'/"\\\
29243 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29246 for (key in D) D_is_set[key] = 1
29249 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29251 split(line, arg, " ")
29252 if (arg[1] == "#") {
29256 defundef
= substr
(arg
[1], 2)
29259 split(mac1
, mac2
, "(") #)
29261 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29262 if (D_is_set
[macro
]) {
29263 # Preserve the white space surrounding the "#".
29264 print prefix
"define", macro P
[macro
] D
[macro
]
29267 # Replace #undef with comments. This is necessary, for example,
29268 # in the case of _POSIX_SOURCE, which is predefined and required
29269 # on some systems where configure will not decide to define it.
29270 if (defundef
== "undef") {
29271 print
"/*", prefix defundef
, macro
, "*/"
29279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29280 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29281 fi # test -n "$CONFIG_HEADERS"
29284 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29289 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29291 case $ac_mode$ac_tag in
29293 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29294 :[FH
]-) ac_tag
=-:-;;
29295 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29312 -) ac_f
="$tmp/stdin";;
29313 *) # Look for the file first in the build tree, then in the source tree
29314 # (if the path is not absolute). The absolute path cannot be DOS-style,
29315 # because $ac_f cannot contain `:'.
29319 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29321 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
29323 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29324 as_fn_append ac_file_inputs
" '$ac_f'"
29327 # Let's still pretend it is `configure' which instantiates (i.e., don't
29328 # use $as_me), people would be surprised to read:
29329 # /* config.h. Generated by config.status. */
29330 configure_input
='Generated from '`
29331 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29333 if test x
"$ac_file" != x-
; then
29334 configure_input
="$ac_file. $configure_input"
29335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29336 $as_echo "$as_me: creating $ac_file" >&6;}
29338 # Neutralize special characters interpreted by sed in replacement strings.
29339 case $configure_input in #(
29340 *\
&* |
*\|
* |
*\\* )
29341 ac_sed_conf_input
=`$as_echo "$configure_input" |
29342 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29343 *) ac_sed_conf_input
=$configure_input;;
29347 *:-:* |
*:-) cat >"$tmp/stdin" \
29348 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29353 ac_dir
=`$as_dirname -- "$ac_file" ||
29354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29355 X"$ac_file" : 'X\(//\)[^/]' \| \
29356 X"$ac_file" : 'X\(//\)$' \| \
29357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29358 $as_echo X"$ac_file" |
29359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29363 /^X\(\/\/\)[^/].*/{
29376 as_dir
="$ac_dir"; as_fn_mkdir_p
29380 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29382 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29383 # A ".." for each directory in $ac_dir_suffix.
29384 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29385 case $ac_top_builddir_sub in
29386 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29387 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29390 ac_abs_top_builddir
=$ac_pwd
29391 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29392 # for backward compatibility:
29393 ac_top_builddir
=$ac_top_build_prefix
29396 .
) # We are building in place.
29398 ac_top_srcdir
=$ac_top_builddir_sub
29399 ac_abs_top_srcdir
=$ac_pwd ;;
29400 [\\/]* | ?
:[\\/]* ) # Absolute name.
29401 ac_srcdir
=$srcdir$ac_dir_suffix;
29402 ac_top_srcdir
=$srcdir
29403 ac_abs_top_srcdir
=$srcdir ;;
29404 *) # Relative name.
29405 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29406 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29407 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29409 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29421 # If the template does not know about datarootdir, expand it.
29422 # FIXME: This hack should be removed a few years after 2.60.
29423 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29434 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29435 *datarootdir
*) ac_datarootdir_seen
=yes;;
29436 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29438 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29441 ac_datarootdir_hack='
29442 s&@datadir@&$datadir&g
29443 s&@docdir@&$docdir&g
29444 s&@infodir@&$infodir&g
29445 s&@localedir@&$localedir&g
29446 s&@mandir@&$mandir&g
29447 s&\\\${datarootdir}&$datarootdir&g' ;;
29451 # Neutralize VPATH when `$srcdir' = `.'.
29452 # Shell code in configure.ac might set extrasub.
29453 # FIXME: do we really want to maintain this feature?
29454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29455 ac_sed_extra="$ac_vpsub
29458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29460 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29461 s|@configure_input@|
$ac_sed_conf_input|
;t t
29462 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29463 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29464 s
&@srcdir@
&$ac_srcdir&;t t
29465 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29466 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29467 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29468 s
&@builddir@
&$ac_builddir&;t t
29469 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29470 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29471 $ac_datarootdir_hack
29473 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29474 if $ac_cs_awk_getline; then
29475 $AWK -f "$tmp/subs.
awk"
29477 $AWK -f "$tmp/subs.
awk" | $SHELL
29479 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29481 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29482 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29483 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29485 which seems to be undefined. Please make sure it is defined." >&5
29486 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29487 which seems to be undefined. Please make sure it is defined." >&2;}
29491 -) cat "$tmp/out" && rm -f "$tmp/out";;
29492 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29494 || as_fn_error "could not create $ac_file" "$LINENO" 5
29500 if test x"$ac_file" != x-; then
29502 $as_echo "/* $configure_input */" \
29503 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29504 } >"$tmp/config.h" \
29505 || as_fn_error "could not create $ac_file" "$LINENO" 5
29506 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29508 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29511 mv "$tmp/config.h" "$ac_file" \
29512 || as_fn_error "could not create $ac_file" "$LINENO" 5
29515 $as_echo "/* $configure_input */" \
29516 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29517 || as_fn_error "could not create -" "$LINENO" 5
29525 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
29528 # Prefer the file from the source tree if names are identical.
29529 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29530 ac_source=$srcdir/$ac_source
29533 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29534 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29536 if test ! -r "$ac_source"; then
29537 as_fn_error "$ac_source: file not found" "$LINENO" 5
29541 # Try a relative symlink, then a hard link, then a copy.
29543 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29544 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29546 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29547 ln "$ac_source" "$ac_file" 2>/dev/null ||
29548 cp -p "$ac_source" "$ac_file" ||
29549 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29552 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29553 $as_echo "$as_me: executing $ac_file commands" >&6;}
29558 case $ac_file$ac_mode in
29559 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29561 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29562 for lang in $subdirs c-family common
29564 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29566 "as":F) chmod +x as ;;
29567 "collect-ld":F) chmod +x collect-ld ;;
29568 "nm":F) chmod +x nm ;;
29570 case ${CONFIG_HEADERS} in
29571 *auto-host.h:config.in*)
29574 # Make sure all the subdirs exist.
29575 for d in $subdirs doc build common c-family
29577 test -d $d || mkdir $d
29587 ac_clean_files=$ac_clean_files_save
29589 test $ac_write_fail = 0 ||
29590 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29593 # configure is writing to config.log, and then calls config.status.
29594 # config.status does its own redirection, appending to config.log.
29595 # Unfortunately, on DOS this fails, as config.log is still kept open
29596 # by configure, so config.status won't be able to
write to it
; its
29597 # output is simply discarded. So we exec the FD to /dev/null,
29598 # effectively closing config.log, so it can be properly (re)opened and
29599 # appended to by config.status. When coming back to configure, we
29600 # need to make the FD available again.
29601 if test "$no_create" != yes; then
29603 ac_config_status_args
=
29604 test "$silent" = yes &&
29605 ac_config_status_args
="$ac_config_status_args --quiet"
29607 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29609 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29610 # would make configure fail if this is the last instruction.
29611 $ac_cs_success || as_fn_exit $?
29613 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29615 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}