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
621 libgcc_tm_include_list
627 common_out_object_file
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
653 TM_MULTILIB_EXCEPTIONS_CONFIG
662 build_xm_include_list
664 build_install_headers_dir
666 all_selected_languages
684 ORIGINAL_NM_FOR_TARGET
686 ORIGINAL_LD_FOR_TARGET
687 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 ORIGINAL_AS_FOR_TARGET
730 NATIVE_SYSTEM_HEADER_DIR
763 CROSS_SYSTEM_HEADER_DIR
764 TARGET_SYSTEM_ROOT_DEFINE
766 SYSROOT_CFLAGS_FOR_TARGET
771 ENABLE_BUILD_WITH_CXX
774 valgrind_path_defines
847 program_transform_name
858 ac_subst_files
='option_includes
861 enable_option_checking
866 enable_generated_files_in_srcdir
876 enable_gather_detailed_mem_stats
877 enable_build_with_cxx
888 with_native_system_header_dir
898 enable_initfini_array
899 enable_sjlj_exceptions
901 enable_leading_mingw64_underscores
904 enable_win32_registry
910 enable_gnu_indirect_function
912 enable_gnu_unique_object
913 enable_linker_build_id
917 enable_maintainer_mode
918 enable_version_specific_runtime_libs
920 enable_libquadmath_support
921 with_linker_hash_style
923 ac_precious_vars
='build_alias
944 # Initialize some variables set by options.
946 ac_init_version
=false
947 ac_unrecognized_opts
=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
958 program_transform_name
=s
,x
,x
,
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir
='${exec_prefix}/bin'
973 sbindir
='${exec_prefix}/sbin'
974 libexecdir
='${exec_prefix}/libexec'
975 datarootdir
='${prefix}/share'
976 datadir
='${datarootdir}'
977 sysconfdir
='${prefix}/etc'
978 sharedstatedir
='${prefix}/com'
979 localstatedir
='${prefix}/var'
980 includedir
='${prefix}/include'
981 oldincludedir
='/usr/include'
982 docdir
='${datarootdir}/doc/${PACKAGE}'
983 infodir
='${datarootdir}/info'
988 libdir
='${exec_prefix}/lib'
989 localedir
='${datarootdir}/locale'
990 mandir
='${datarootdir}/man'
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\
$ac_option
1004 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1010 case $ac_dashdash$ac_option in
1014 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1016 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1017 bindir
=$ac_optarg ;;
1019 -build |
--build |
--buil |
--bui |
--bu)
1020 ac_prev
=build_alias
;;
1021 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1022 build_alias
=$ac_optarg ;;
1024 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1025 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1026 ac_prev
=cache_file
;;
1027 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1028 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1029 cache_file
=$ac_optarg ;;
1031 --config-cache |
-C)
1032 cache_file
=config.cache
;;
1034 -datadir |
--datadir |
--datadi |
--datad)
1036 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1037 datadir
=$ac_optarg ;;
1039 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1040 |
--dataroo |
--dataro |
--datar)
1041 ac_prev
=datarootdir
;;
1042 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1043 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1044 datarootdir
=$ac_optarg ;;
1046 -disable-* |
--disable-*)
1047 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1050 as_fn_error
"invalid feature name: $ac_useropt"
1051 ac_useropt_orig
=$ac_useropt
1052 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_
$ac_useropt"
1057 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep
=', ';;
1060 eval enable_
$ac_useropt=no
;;
1062 -docdir |
--docdir |
--docdi |
--doc |
--do)
1064 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1065 docdir
=$ac_optarg ;;
1067 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1069 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1070 dvidir
=$ac_optarg ;;
1072 -enable-* |
--enable-*)
1073 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1076 as_fn_error
"invalid feature name: $ac_useropt"
1077 ac_useropt_orig
=$ac_useropt
1078 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_
$ac_useropt"
1083 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep
=', ';;
1086 eval enable_
$ac_useropt=\
$ac_optarg ;;
1088 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1089 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1090 |
--exec |
--exe |
--ex)
1091 ac_prev
=exec_prefix
;;
1092 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1093 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1094 |
--exec=* |
--exe=* |
--ex=*)
1095 exec_prefix
=$ac_optarg ;;
1097 -gas |
--gas |
--ga |
--g)
1098 # Obsolete; use --with-gas.
1101 -help |
--help |
--hel |
--he |
-h)
1102 ac_init_help
=long
;;
1103 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1104 ac_init_help
=recursive
;;
1105 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1106 ac_init_help
=short
;;
1108 -host |
--host |
--hos |
--ho)
1109 ac_prev
=host_alias
;;
1110 -host=* |
--host=* |
--hos=* |
--ho=*)
1111 host_alias
=$ac_optarg ;;
1113 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1115 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1117 htmldir
=$ac_optarg ;;
1119 -includedir |
--includedir |
--includedi |
--included |
--include \
1120 |
--includ |
--inclu |
--incl |
--inc)
1121 ac_prev
=includedir
;;
1122 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1123 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1124 includedir
=$ac_optarg ;;
1126 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1128 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1129 infodir
=$ac_optarg ;;
1131 -libdir |
--libdir |
--libdi |
--libd)
1133 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1134 libdir
=$ac_optarg ;;
1136 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1137 |
--libexe |
--libex |
--libe)
1138 ac_prev
=libexecdir
;;
1139 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1140 |
--libexe=* |
--libex=* |
--libe=*)
1141 libexecdir
=$ac_optarg ;;
1143 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1144 ac_prev
=localedir
;;
1145 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1146 localedir
=$ac_optarg ;;
1148 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1149 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1150 ac_prev
=localstatedir
;;
1151 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1152 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1153 localstatedir
=$ac_optarg ;;
1155 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1157 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1158 mandir
=$ac_optarg ;;
1160 -nfp |
--nfp |
--nf)
1161 # Obsolete; use --without-fp.
1164 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1165 |
--no-cr |
--no-c |
-n)
1168 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1169 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1172 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1173 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1174 |
--oldin |
--oldi |
--old |
--ol |
--o)
1175 ac_prev
=oldincludedir
;;
1176 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1177 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1178 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1179 oldincludedir
=$ac_optarg ;;
1181 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1183 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1184 prefix
=$ac_optarg ;;
1186 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1187 |
--program-pre |
--program-pr |
--program-p)
1188 ac_prev
=program_prefix
;;
1189 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1190 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1191 program_prefix
=$ac_optarg ;;
1193 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1194 |
--program-suf |
--program-su |
--program-s)
1195 ac_prev
=program_suffix
;;
1196 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1197 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1198 program_suffix
=$ac_optarg ;;
1200 -program-transform-name |
--program-transform-name \
1201 |
--program-transform-nam |
--program-transform-na \
1202 |
--program-transform-n |
--program-transform- \
1203 |
--program-transform |
--program-transfor \
1204 |
--program-transfo |
--program-transf \
1205 |
--program-trans |
--program-tran \
1206 |
--progr-tra |
--program-tr |
--program-t)
1207 ac_prev
=program_transform_name
;;
1208 -program-transform-name=* |
--program-transform-name=* \
1209 |
--program-transform-nam=* |
--program-transform-na=* \
1210 |
--program-transform-n=* |
--program-transform-=* \
1211 |
--program-transform=* |
--program-transfor=* \
1212 |
--program-transfo=* |
--program-transf=* \
1213 |
--program-trans=* |
--program-tran=* \
1214 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1215 program_transform_name
=$ac_optarg ;;
1217 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1219 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1220 pdfdir
=$ac_optarg ;;
1222 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1224 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1227 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1228 |
-silent |
--silent |
--silen |
--sile |
--sil)
1231 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1233 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1235 sbindir
=$ac_optarg ;;
1237 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1238 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1239 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1241 ac_prev
=sharedstatedir
;;
1242 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1243 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1244 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1246 sharedstatedir
=$ac_optarg ;;
1248 -site |
--site |
--sit)
1250 -site=* |
--site=* |
--sit=*)
1253 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1255 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1256 srcdir
=$ac_optarg ;;
1258 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1259 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1260 ac_prev
=sysconfdir
;;
1261 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1262 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1263 sysconfdir
=$ac_optarg ;;
1265 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1266 ac_prev
=target_alias
;;
1267 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1268 target_alias
=$ac_optarg ;;
1270 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1273 -version |
--version |
--versio |
--versi |
--vers |
-V)
1274 ac_init_version
=: ;;
1277 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1280 as_fn_error
"invalid package name: $ac_useropt"
1281 ac_useropt_orig
=$ac_useropt
1282 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1287 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep
=', ';;
1290 eval with_
$ac_useropt=\
$ac_optarg ;;
1292 -without-* |
--without-*)
1293 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1296 as_fn_error
"invalid package name: $ac_useropt"
1297 ac_useropt_orig
=$ac_useropt
1298 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1303 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep
=', ';;
1306 eval with_
$ac_useropt=no
;;
1309 # Obsolete; use --with-x.
1312 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1313 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1314 ac_prev
=x_includes
;;
1315 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1316 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1317 x_includes
=$ac_optarg ;;
1319 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1320 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1321 ac_prev
=x_libraries
;;
1322 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1323 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1324 x_libraries
=$ac_optarg ;;
1326 -*) as_fn_error
"unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information."
1331 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1335 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1337 eval $ac_envvar=\
$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 if test -n "$ac_prev"; then
1352 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error
"missing argument to $ac_option"
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1359 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 # Check all directory arguments for consistency.
1365 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1370 eval ac_val
=\$
$ac_var
1371 # Remove trailing slashes.
1374 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\
$ac_val;;
1377 # Be sure to have absolute directory names.
1379 [\\/$
]* | ?
:[\\/]* ) continue;;
1380 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1382 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1390 target
=$target_alias
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x
; then
1394 if test "x$build_alias" = x
; then
1395 cross_compiling
=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1404 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1406 test "$silent" = yes && exec 6>/dev
/null
1409 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di
=`ls -di .` &&
1411 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error
"working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error
"pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted
=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir
=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1449 ac_srcdir_defaulted
=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1453 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1467 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 for ac_var
in $ac_precious_vars; do
1470 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1472 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1483 \`configure' configures this package to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1546 --build=BUILD configure
for building on BUILD
[guessed
]
1547 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1548 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1552 if test -n "$ac_init_help"; then
1557 --disable-option-checking ignore unrecognized
--enable/--with options
1558 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1559 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1560 --enable-generated-files-in-srcdir
1561 put copies of generated files
in source dir intended
1562 for creating
source tarballs
for users without
1563 texinfo bison or flex
1564 --disable-largefile omit support
for large files
1565 --enable-werror-always enable -Werror despite compiler version
1566 --enable-checking[=LIST
]
1567 enable expensive run-time checks. With LIST
, enable
1568 only specific categories of checks. Categories are
:
1569 yes,no
,all
,none
,release. Flags are
:
1570 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1571 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1572 --enable-coverage[=LEVEL
]
1573 enable compiler
's code coverage collection. Use to
1574 measure compiler performance and locate unused parts
1575 of the compiler. With LEVEL, specify optimization.
1576 Values are opt, noopt, default is noopt
1577 --enable-gather-detailed-mem-stats
1578 enable detailed memory allocation stats gathering
1579 --enable-build-with-cxx build with C++ compiler instead of C compiler
1580 --enable-multilib enable library support for multiple ABIs
1581 --enable-__cxa_atexit enable __cxa_atexit for C++
1582 --enable-decimal-float={no,yes,bid,dpd}
1583 enable decimal float extension to C. Selecting 'bid
'
1584 or 'dpd
' choses which decimal floating point format
1586 --enable-fixed-point enable fixed-point arithmetic extension to C
1587 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1589 --enable-tls enable or disable generation of tls code overriding
1590 the assembler check for tls support
1591 --enable-objc-gc enable the use of Boehm's garbage collector with the
1592 GNU Objective-C runtime
1593 --disable-shared don
't provide a shared libgcc
1594 --enable-languages=LIST specify which front-ends to build
1595 --disable-rpath do not hardcode runtime library paths
1596 --enable-initfini-array use .init_array/.fini_array sections
1597 --enable-sjlj-exceptions
1598 arrange to use setjmp/longjmp exception handling
1599 --enable-secureplt enable -msecure-plt by default for PowerPC
1600 --enable-leading-mingw64-underscores
1601 enable leading underscores on 64 bit mingw targets
1602 --enable-cld enable -mcld by default for 32bit x86
1603 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1605 --disable-win32-registry
1606 disable lookup of installation paths in the Registry
1608 --enable-win32-registry enable registry lookup (default)
1609 --enable-win32-registry=KEY
1610 use KEY instead of GCC version as the last portion
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-gnu-indirect-function
1618 enable the use of the @gnu_indirect_function to
1620 --enable-comdat enable COMDAT group support
1621 --enable-gnu-unique-object
1622 enable the use of the @gnu_unique_object ELF
1623 extension on glibc systems
1624 --enable-linker-build-id
1625 compiler will always pass --build-id to linker
1626 --enable-maintainer-mode
1627 enable make rules and dependencies not useful (and
1628 sometimes confusing) to the casual installer
1629 --enable-version-specific-runtime-libs
1630 specify that runtime libraries should be installed
1631 in a compiler-specific directory
1632 --enable-plugin enable plugin support
1633 --disable-libquadmath-support
1634 disable libquadmath support for Fortran
1637 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1638 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1639 --with-build-libsubdir=DIR Directory where to find libraries for build system
1640 --with-local-prefix=DIR specifies directory to put local include
1641 --with-gxx-include-dir=DIR
1642 specifies directory to put g++ header files
1643 --with-cpp-install-dir=DIR
1644 install the user visible C preprocessor in DIR
1645 (relative to PREFIX) as well as PREFIX/bin
1646 --with-gnu-ld arrange to work with GNU ld
1647 --with-ld arrange to use the specified ld (full pathname)
1648 --with-demangler-in-ld try to use demangler in GNU ld
1649 --with-gnu-as arrange to work with GNU as
1650 --with-as arrange to use the specified as (full pathname)
1651 --with-stabs arrange to use stabs instead of host debug format
1652 --with-dwarf2 force the default debug format to be DWARF 2
1653 --with-native-system-header-dir=dir
1654 use dir as the directory to look for standard
1655 system header files in. Defaults to /usr/include.
1656 --with-build-sysroot=sysroot
1657 use sysroot as the system root during the build
1658 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1659 --with-specs=SPECS add SPECS to driver command-line processing
1660 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1661 --with-bugurl=URL Direct users to URL to report a bug
1662 --with-multilib-list select multilibs (SH and x86-64 only)
1663 --with-gnu-ld assume the C compiler uses GNU ld default=no
1664 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1665 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1666 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1668 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1669 --with-plugin-ld=[ARG
] specify the plugin linker
1670 --with-long-double-128 use
128-bit long double by default
1671 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1673 --with-system-zlib use installed libz
1674 --with-linker-hash-style={sysv
,gnu
,both
}
1675 specify the linker
hash style
1677 Some influential environment variables
:
1678 CC C compiler
command
1679 CFLAGS C compiler flags
1680 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1681 nonstandard directory
<lib dir
>
1682 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1683 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1684 you have headers
in a nonstandard directory
<include dir
>
1685 CXX C
++ compiler
command
1686 CXXFLAGS C
++ compiler flags
1688 CXXCPP C
++ preprocessor
1689 GMPLIBS How to link GMP
1690 GMPINC How to
find GMP include files
1691 PPLLIBS How to link PPL
1692 PPLINC How to
find PPL include files
1693 CLOOGLIBS How to link CLOOG
1694 CLOOGINC How to
find CLOOG include files
1696 Use these variables to override the choices made by
`configure' or to help
1697 it to find libraries and programs with nonstandard names/locations.
1699 Report bugs to the package provider.
1704 if test "$ac_init_help" = "recursive"; then
1705 # If there are subdirs, report their specific --help.
1706 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1707 test -d "$ac_dir" ||
1708 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1716 # A ".." for each directory in $ac_dir_suffix.
1717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1718 case $ac_top_builddir_sub in
1719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1723 ac_abs_top_builddir=$ac_pwd
1724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1725 # for backward compatibility:
1726 ac_top_builddir=$ac_top_build_prefix
1729 .) # We are building in place.
1731 ac_top_srcdir=$ac_top_builddir_sub
1732 ac_abs_top_srcdir=$ac_pwd ;;
1733 [\\/]* | ?:[\\/]* ) # Absolute name.
1734 ac_srcdir=$srcdir$ac_dir_suffix;
1735 ac_top_srcdir=$srcdir
1736 ac_abs_top_srcdir=$srcdir ;;
1738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1739 ac_top_srcdir=$ac_top_build_prefix$srcdir
1740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1744 cd "$ac_dir" || { ac_status=$?; continue; }
1745 # Check for guested configure.
1746 if test -f "$ac_srcdir/configure.gnu"; then
1748 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1749 elif test -f "$ac_srcdir/configure"; then
1751 $SHELL "$ac_srcdir/configure" --help=recursive
1753 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1755 cd "$ac_pwd" || { ac_status=$?; break; }
1759 test -n "$ac_init_help" && exit $ac_status
1760 if $ac_init_version; then
1763 generated by GNU Autoconf 2.64
1765 Copyright (C) 2009 Free Software Foundation, Inc.
1766 This configure script is free software; the Free Software Foundation
1767 gives unlimited permission to copy, distribute and modify it.
1772 ## ------------------------ ##
1773 ## Autoconf initialization. ##
1774 ## ------------------------ ##
1776 # ac_fn_c_try_compile LINENO
1777 # --------------------------
1778 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_compile ()
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 rm -f conftest.$ac_objext
1783 if { { ac_try="$ac_compile"
1785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1786 *) ac_try_echo
=$ac_try;;
1788 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_compile") 2>conftest.err
1792 if test -s conftest.err
; then
1793 grep -v '^ *+' conftest.err
>conftest.er1
1794 cat conftest.er1
>&5
1795 mv -f conftest.er1 conftest.err
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && {
1799 test -z "$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 } && test -s conftest.
$ac_objext; then :
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.
$ac_ext >&5
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1812 } # ac_fn_c_try_compile
1814 # ac_fn_cxx_try_compile LINENO
1815 # ----------------------------
1816 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_cxx_try_compile
()
1819 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1820 rm -f conftest.
$ac_objext
1821 if { { ac_try
="$ac_compile"
1823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_compile") 2>conftest.err
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_cxx_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest.$ac_objext; then :
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 } # ac_fn_cxx_try_compile
1852 # ac_fn_c_try_cpp LINENO
1853 # ----------------------
1854 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_cpp conftest.$ac_ext"
1860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1861 *) ac_try_echo
=$ac_try;;
1863 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1867 if test -s conftest.err
; then
1868 grep -v '^ *+' conftest.err
>conftest.er1
1869 cat conftest.er1
>&5
1870 mv -f conftest.er1 conftest.err
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } >/dev
/null
&& {
1874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1875 test ! -s conftest.err
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.
$ac_ext >&5
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1889 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1890 # -------------------------------------------------------
1891 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1892 # the include files in INCLUDES and setting the cache variable VAR
1894 ac_fn_c_check_header_mongrel
()
1896 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1897 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1907 # Is the header compilable?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1909 $as_echo_n "checking $2 usability... " >&6; }
1910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1915 if ac_fn_c_try_compile
"$LINENO"; then :
1916 ac_header_compiler
=yes
1918 ac_header_compiler
=no
1920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1922 $as_echo "$ac_header_compiler" >&6; }
1924 # Is the header present?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1926 $as_echo_n "checking $2 presence... " >&6; }
1927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1931 if ac_fn_c_try_cpp
"$LINENO"; then :
1932 ac_header_preproc
=yes
1934 ac_header_preproc
=no
1936 rm -f conftest.err conftest.
$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1938 $as_echo "$ac_header_preproc" >&6; }
1940 # So? What about this header?
1941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1944 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1950 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1952 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1954 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1956 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1966 eval "$3=\$ac_header_compiler"
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1974 } # ac_fn_c_check_header_mongrel
1976 # ac_fn_c_try_run LINENO
1977 # ----------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1979 # that executables *can* be run.
1982 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1983 if { { ac_try
="$ac_link"
1985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>&5
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1994 { { case "(($ac_try" in
1995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1996 *) ac_try_echo
=$ac_try;;
1998 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_try") 2>&5
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; }; }; then :
2006 $as_echo "$as_me: program exited with status $ac_status" >&5
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.
$ac_ext >&5
2010 ac_retval
=$ac_status
2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2018 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2019 # -------------------------------------------------------
2020 # Tests whether HEADER exists and can be compiled using the include files in
2021 # INCLUDES, setting the cache variable VAR accordingly.
2022 ac_fn_c_check_header_compile
()
2024 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2035 if ac_fn_c_try_compile
"$LINENO"; then :
2040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2047 } # ac_fn_c_check_header_compile
2049 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2050 # --------------------------------------------
2051 # Tries to find the compile-time value of EXPR in a program that includes
2052 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2054 ac_fn_c_compute_int
()
2056 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2057 if test "$cross_compiling" = yes; then
2058 # Depending upon the size, compute the lo and hi bounds.
2059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2065 static int test_array [1 - 2 * !(($2) >= 0)];
2072 if ac_fn_c_try_compile
"$LINENO"; then :
2075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088 if ac_fn_c_try_compile
"$LINENO"; then :
2089 ac_hi
=$ac_mid; break
2091 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2092 if test $ac_lo -le $ac_mid; then
2096 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
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_lo
=$ac_mid; break
2133 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2134 if test $ac_mid -le $ac_hi; then
2138 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2148 # Binary search between lo and hi bounds.
2149 while test "x$ac_lo" != "x$ac_hi"; do
2150 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2157 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 if ac_fn_c_try_compile
"$LINENO"; then :
2167 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2172 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2179 static long int longval () { return $2; }
2180 static unsigned long int ulongval () { return $2; }
2187 FILE *f = fopen ("conftest.val", "w");
2192 long int i = longval ();
2195 fprintf (f, "%ld", i);
2199 unsigned long int i = ulongval ();
2202 fprintf (f, "%lu", i);
2204 /* Do not output a trailing newline, as this causes \r\n confusion
2205 on some platforms. */
2206 return ferror (f) || fclose (f) != 0;
2212 if ac_fn_c_try_run
"$LINENO"; then :
2213 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2217 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2218 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2225 } # ac_fn_c_compute_int
2227 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2228 # -------------------------------------------
2229 # Tests whether TYPE exists after having included INCLUDES, setting cache
2230 # variable VAR accordingly.
2231 ac_fn_c_check_type
()
2233 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235 $as_echo_n "checking for $2... " >&6; }
2236 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2237 $as_echo_n "(cached) " >&6
2240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2252 if ac_fn_c_try_compile
"$LINENO"; then :
2253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2265 if ac_fn_c_try_compile
"$LINENO"; then :
2270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2279 } # ac_fn_c_check_type
2281 # ac_fn_c_find_intX_t LINENO BITS VAR
2282 # -----------------------------------
2283 # Finds a signed integer type with width BITS, setting cache variable VAR
2285 ac_fn_c_find_intX_t
()
2287 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2289 $as_echo_n "checking for int$2_t... " >&6; }
2290 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2291 $as_echo_n "(cached) " >&6
2294 for ac_type
in int
$2_t 'int' 'long int' \
2295 'long long int' 'short int' 'signed char'; do
2296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $ac_includes_default
2302 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2309 if ac_fn_c_try_compile
"$LINENO"; then :
2310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $ac_includes_default
2316 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2317 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2324 if ac_fn_c_try_compile
"$LINENO"; then :
2331 eval "$3=\$ac_type" ;;
2334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2338 if test "x$as_val" = x
""no
; then :
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2348 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2350 } # ac_fn_c_find_intX_t
2352 # ac_fn_c_try_link LINENO
2353 # -----------------------
2354 # Try to link conftest.$ac_ext, and return whether this succeeded.
2357 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2358 rm -f conftest.
$ac_objext conftest
$ac_exeext
2359 if { { ac_try
="$ac_link"
2361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365 $as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_link") 2>conftest.err
2368 if test -s conftest.err; then
2369 grep -v '^ *+' conftest.err >conftest.er1
2370 cat conftest.er1 >&5
2371 mv -f conftest.er1 conftest.err
2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374 test $ac_status = 0; } && {
2375 test -z "$ac_c_werror_flag" ||
2376 test ! -s conftest.err
2377 } && test -s conftest$ac_exeext && {
2378 test "$cross_compiling" = yes ||
2379 $as_test_x conftest$ac_exeext
2383 $as_echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2388 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2389 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2390 # interfere with the next link command; also delete a directory that is
2391 # left behind by Apple's compiler. We do this before executing the actions.
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2396 } # ac_fn_c_try_link
2398 # ac_fn_c_find_uintX_t LINENO BITS VAR
2399 # ------------------------------------
2400 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2402 ac_fn_c_find_uintX_t ()
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2406 $as_echo_n "checking for uint$2_t... " >&6; }
2407 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408 $as_echo_n "(cached) " >&6
2411 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2412 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $ac_includes_default
2419 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2426 if ac_fn_c_try_compile "$LINENO"; then :
2431 eval "$3=\$ac_type" ;;
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 if test "x$as_val" = x""no; then :
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2448 } # ac_fn_c_find_uintX_t
2450 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2451 # ----------------------------------------------
2452 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2453 ac_fn_c_check_header_preproc ()
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 $as_echo_n "(cached) " >&6
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2465 if ac_fn_c_try_cpp "$LINENO"; then :
2470 rm -f conftest.err conftest.$ac_ext
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2477 } # ac_fn_c_check_header_preproc
2479 # ac_fn_cxx_try_cpp LINENO
2480 # ------------------------
2481 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2482 ac_fn_cxx_try_cpp ()
2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485 if { { ac_try="$ac_cpp conftest.$ac_ext"
2487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2488 *) ac_try_echo
=$ac_try;;
2490 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2491 $as_echo "$ac_try_echo"; } >&5
2492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2494 if test -s conftest.err
; then
2495 grep -v '^ *+' conftest.err
>conftest.er1
2496 cat conftest.er1
>&5
2497 mv -f conftest.er1 conftest.err
2499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2500 test $ac_status = 0; } >/dev
/null
&& {
2501 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2502 test ! -s conftest.err
2506 $as_echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.
$ac_ext >&5
2511 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2514 } # ac_fn_cxx_try_cpp
2516 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2517 # ------------------------------------------------
2518 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2519 ac_fn_cxx_check_header_preproc
()
2521 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2523 $as_echo_n "checking for $2... " >&6; }
2524 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2525 $as_echo_n "(cached) " >&6
2527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2531 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2536 rm -f conftest.err conftest.
$ac_ext
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2540 $as_echo "$ac_res" >&6; }
2541 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2543 } # ac_fn_cxx_check_header_preproc
2545 # ac_fn_c_check_func LINENO FUNC VAR
2546 # ----------------------------------
2547 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2548 ac_fn_c_check_func
()
2550 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2552 $as_echo_n "checking for $2... " >&6; }
2553 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2554 $as_echo_n "(cached) " >&6
2556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h. */
2558 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2560 #define $2 innocuous_$2
2562 /* System header to define __stub macros and hopefully few prototypes,
2563 which can conflict with char $2 (); below.
2564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2565 <limits.h> exists even on freestanding compilers. */
2568 # include <limits.h>
2570 # include <assert.h>
2575 /* Override any GCC internal prototype to avoid an error.
2576 Use char because int might match the return type of a GCC
2577 builtin and then its argument prototype would still apply. */
2582 /* The GNU C library defines this for functions which it implements
2583 to always fail with ENOSYS. Some functions are actually named
2584 something starting with __ and the normal name is an alias. */
2585 #if defined __stub_$2 || defined __stub___$2
2597 if ac_fn_c_try_link
"$LINENO"; then :
2602 rm -f core conftest.err conftest.
$ac_objext \
2603 conftest
$ac_exeext conftest.
$ac_ext
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607 $as_echo "$ac_res" >&6; }
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2610 } # ac_fn_c_check_func
2612 # ac_fn_cxx_try_link LINENO
2613 # -------------------------
2614 # Try to link conftest.$ac_ext, and return whether this succeeded.
2615 ac_fn_cxx_try_link
()
2617 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2618 rm -f conftest.
$ac_objext conftest
$ac_exeext
2619 if { { ac_try
="$ac_link"
2621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2625 $as_echo "$ac_try_echo"; } >&5
2626 (eval "$ac_link") 2>conftest.err
2628 if test -s conftest.err; then
2629 grep -v '^ *+' conftest.err >conftest.er1
2630 cat conftest.er1 >&5
2631 mv -f conftest.er1 conftest.err
2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634 test $ac_status = 0; } && {
2635 test -z "$ac_cxx_werror_flag" ||
2636 test ! -s conftest.err
2637 } && test -s conftest$ac_exeext && {
2638 test "$cross_compiling" = yes ||
2639 $as_test_x conftest$ac_exeext
2643 $as_echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2650 # interfere with the next link command; also delete a directory that is
2651 # left behind by Apple's compiler. We do this before executing the actions.
2652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2656 } # ac_fn_cxx_try_link
2657 cat >config.log <<_ACEOF
2658 This file contains any messages produced by compilers while
2659 running configure, to aid debugging if configure makes a mistake.
2661 It was created by $as_me, which was
2662 generated by GNU Autoconf 2.64. Invocation command line was
2674 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2675 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2676 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2677 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2678 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2680 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2681 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2683 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2684 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2685 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2686 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2687 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2688 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2689 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 test -z "$as_dir" && as_dir=.
2698 $as_echo "PATH: $as_dir"
2714 # Keep a trace of the command line.
2715 # Strip out --no-create and --no-recursion so they do not pile up.
2716 # Strip out --silent because we don't want to record it for future runs.
2717 # Also quote any args containing shell meta-characters.
2718 # Make two passes to allow for proper duplicate-argument suppression.
2722 ac_must_keep_next=false
2728 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2730 | -silent | --silent | --silen | --sile | --sil)
2733 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2736 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2738 as_fn_append ac_configure_args1 " '$ac_arg'"
2739 if test $ac_must_keep_next = true; then
2740 ac_must_keep_next=false # Got value, back to normal.
2743 *=* | --config-cache | -C | -disable-* | --disable-* \
2744 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2745 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2746 | -with-* | --with-* | -without-* | --without-* | --x)
2747 case "$ac_configure_args0 " in
2748 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2751 -* ) ac_must_keep_next=true ;;
2754 as_fn_append ac_configure_args " '$ac_arg'"
2759 { ac_configure_args0=; unset ac_configure_args0;}
2760 { ac_configure_args1=; unset ac_configure_args1;}
2762 # When interrupted or exit'd, cleanup temporary files, and complete
2763 # config.log. We remove comments because anyway the quotes in there
2764 # would cause problems or look ugly.
2765 # WARNING: Use '\'' to represent an apostrophe within the trap.
2766 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2767 trap 'exit_status=$?
2768 # Save into config.log some information that might help in debugging.
2773 ## ---------------- ##
2774 ## Cache variables. ##
2775 ## ---------------- ##
2778 # The following way of writing the cache mishandles newlines in values,
2780 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2781 eval ac_val=\$$ac_var
2785 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2786 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2789 _ | IFS | as_nl) ;; #(
2790 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2791 *) { eval $ac_var=; unset $ac_var;} ;;
2796 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2797 *${as_nl}ac_space=\ *)
2799 "s/'\''/'\''\\\\'\'''\''/g;
2800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2811 ## ----------------- ##
2812 ## Output variables. ##
2813 ## ----------------- ##
2816 for ac_var in $ac_subst_vars
2818 eval ac_val=\$$ac_var
2820 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2822 $as_echo "$ac_var='\''$ac_val'\''"
2826 if test -n "$ac_subst_files"; then
2828 ## ------------------- ##
2829 ## File substitutions. ##
2830 ## ------------------- ##
2833 for ac_var in $ac_subst_files
2835 eval ac_val=\$$ac_var
2837 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2839 $as_echo "$ac_var='\''$ac_val'\''"
2844 if test -s confdefs.h; then
2854 test "$ac_signal" != 0 &&
2855 $as_echo "$as_me: caught signal $ac_signal"
2856 $as_echo "$as_me: exit $exit_status"
2858 rm -f core *.core core.conftest.* &&
2859 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2862 for ac_signal in 1 2 13 15; do
2863 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2867 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2868 rm -f -r conftest* confdefs.h
2870 $as_echo "/* confdefs.h */" > confdefs.h
2872 # Predefined preprocessor variables.
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_NAME "$PACKAGE_NAME"
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_STRING "$PACKAGE_STRING"
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2894 cat >>confdefs.h <<_ACEOF
2895 #define PACKAGE_URL "$PACKAGE_URL"
2899 # Let the site file select an alternate cache file if it wants to.
2900 # Prefer an explicitly selected file to automatically selected ones.
2903 if test -n "$CONFIG_SITE"; then
2904 ac_site_file1=$CONFIG_SITE
2905 elif test "x$prefix" != xNONE; then
2906 ac_site_file1=$prefix/share/config.site
2907 ac_site_file2=$prefix/etc/config.site
2909 ac_site_file1=$ac_default_prefix/share/config.site
2910 ac_site_file2=$ac_default_prefix/etc/config.site
2912 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2914 test "x$ac_site_file" = xNONE && continue
2915 if test -r "$ac_site_file"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2917 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2918 sed 's/^/| /' "$ac_site_file" >&5
2923 if test -r "$cache_file"; then
2924 # Some versions of bash will fail to source /dev/null (special
2925 # files actually), so we avoid doing that.
2926 if test -f "$cache_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2928 $as_echo "$as_me: loading cache $cache_file" >&6;}
2930 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2931 *) . "./$cache_file";;
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2936 $as_echo "$as_me: creating cache $cache_file" >&6;}
2940 # Check that the precious variables saved in the cache have kept the same
2942 ac_cache_corrupted=false
2943 for ac_var in $ac_precious_vars; do
2944 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2945 eval ac_new_set=\$ac_env_${ac_var}_set
2946 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2947 eval ac_new_val=\$ac_env_${ac_var}_value
2948 case $ac_old_set,$ac_new_set in
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2951 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2955 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2956 ac_cache_corrupted=: ;;
2959 if test "x$ac_old_val" != "x$ac_new_val"; then
2960 # differences in whitespace do not lead to failure.
2961 ac_old_val_w=`echo x
$ac_old_val`
2962 ac_new_val_w=`echo x
$ac_new_val`
2963 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2965 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2966 ac_cache_corrupted=:
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2969 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2970 eval $ac_var=\$ac_old_val
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2973 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2975 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2978 # Pass precious variables to config.status.
2979 if test "$ac_new_set" = set; then
2981 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2982 *) ac_arg=$ac_var=$ac_new_val ;;
2984 case " $ac_configure_args " in
2985 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2986 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2990 if $ac_cache_corrupted; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2994 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2995 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2997 ## -------------------- ##
2998 ## Main body of script. ##
2999 ## -------------------- ##
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3015 gcc_version=`cat $srcdir/BASE-VER
`
3017 # Determine the host, build, and target systems
3019 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3020 for ac_t in install-sh install.sh shtool; do
3021 if test -f "$ac_dir/$ac_t"; then
3023 ac_install_sh="$ac_aux_dir/$ac_t -c"
3028 if test -z "$ac_aux_dir"; then
3029 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3032 # These three variables are undocumented and unsupported,
3033 # and are intended to be withdrawn in a future Autoconf release.
3034 # They can cause serious problems if a builder's source tree is in a directory
3035 # whose full name contains unusual characters.
3036 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3037 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3038 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3041 # Make sure we can run config.sub.
3042 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3043 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3046 $as_echo_n "checking build system type... " >&6; }
3047 if test "${ac_cv_build+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3050 ac_build_alias=$build_alias
3051 test "x$ac_build_alias" = x &&
3052 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3053 test "x$ac_build_alias" = x &&
3054 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3055 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3056 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3060 $as_echo "$ac_cv_build" >&6; }
3061 case $ac_cv_build in
3063 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3066 ac_save_IFS=$IFS; IFS='-'
3072 # Remember, the first character of IFS is used to create $*,
3073 # except with old shells:
3076 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3080 $as_echo_n "checking host system type... " >&6; }
3081 if test "${ac_cv_host+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
3084 if test "x$host_alias" = x; then
3085 ac_cv_host=$ac_cv_build
3087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3088 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3093 $as_echo "$ac_cv_host" >&6; }
3096 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3099 ac_save_IFS=$IFS; IFS='-'
3105 # Remember, the first character of IFS is used to create $*,
3106 # except with old shells:
3109 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3113 $as_echo_n "checking target system type... " >&6; }
3114 if test "${ac_cv_target+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3117 if test "x$target_alias" = x; then
3118 ac_cv_target=$ac_cv_host
3120 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3121 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3126 $as_echo "$ac_cv_target" >&6; }
3127 case $ac_cv_target in
3129 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3131 target=$ac_cv_target
3132 ac_save_IFS=$IFS; IFS='-'
3138 # Remember, the first character of IFS is used to create $*,
3139 # except with old shells:
3142 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3145 # The aliases save the names the user supplied, while $host etc.
3146 # will get canonicalized.
3147 test -n "$target_alias" &&
3148 test "$program_prefix$program_suffix$program_transform_name" = \
3150 program_prefix=${target_alias}-
3152 # Determine the noncanonical target name, for directory use.
3153 case ${build_alias} in
3154 "") build_noncanonical=${build} ;;
3155 *) build_noncanonical=${build_alias} ;;
3158 case ${host_alias} in
3159 "") host_noncanonical=${build_noncanonical} ;;
3160 *) host_noncanonical=${host_alias} ;;
3163 case ${target_alias} in
3164 "") target_noncanonical=${host_noncanonical} ;;
3165 *) target_noncanonical=${target_alias} ;;
3171 # Determine the target- and build-specific subdirectories
3173 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3174 # have matching libraries, they should use host libraries: Makefile.tpl
3175 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3176 # However, they still use the build modules, because the corresponding
3177 # host modules (e.g. bison) are only built for the host when bootstrap
3179 # - build_subdir is where we find build modules, and never changes.
3180 # - build_libsubdir is where we find build libraries, and can be overridden.
3182 # Prefix 'build-' so this never conflicts with target_subdir.
3183 build_subdir="build-${build_noncanonical}"
3185 # Check whether --with-build-libsubdir was given.
3186 if test "${with_build_libsubdir+set}" = set; then :
3187 withval=$with_build_libsubdir; build_libsubdir="$withval"
3189 build_libsubdir="$build_subdir"
3192 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3193 if ( test $srcdir = . && test -d gcc ) \
3194 || test -d $srcdir/../host-${host_noncanonical}; then
3195 host_subdir="host-${host_noncanonical}"
3200 target_subdir=${target_noncanonical}
3203 # Set program_transform_name
3204 test "$program_prefix" != NONE &&
3205 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3206 # Use a double $ so make ignores it.
3207 test "$program_suffix" != NONE &&
3208 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3209 # Double any \ or $.
3210 # By default was `s
,x
,x
', remove it if useless.
3211 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3212 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3215 # Check for bogus environment variables.
3216 # Test if LIBRARY_PATH contains the notation for the current directory
3217 # since this would lead to problems installing/building glibc.
3218 # LIBRARY_PATH contains the current directory if one of the following
3220 # - one of the terminals (":" and ";") is the first or last sign
3221 # - two terminals occur directly after each other
3222 # - the path contains an element with a dot in it
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3224 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3225 case ${LIBRARY_PATH} in
3226 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3227 library_path_setting="contains current directory"
3230 library_path_setting="ok"
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3234 $as_echo "$library_path_setting" >&6; }
3235 if test "$library_path_setting" != "ok"; then
3237 *** LIBRARY_PATH shouldn't contain the current directory when
3238 *** building gcc. Please change the environment variable
3239 *** and run configure again.
" "$LINENO" 5
3242 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3243 # since this would lead to problems installing/building glibc.
3244 # GCC_EXEC_PREFIX contains the current directory if one of the following
3246 # - one of the terminals (":" and ";") is the first or last sign
3247 # - two terminals occur directly after each other
3248 # - the path contains an element with a dot in it
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3250 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3251 case ${GCC_EXEC_PREFIX} in
3252 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3253 gcc_exec_prefix_setting="contains current directory
"
3256 gcc_exec_prefix_setting="ok
"
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3260 $as_echo "$gcc_exec_prefix_setting" >&6; }
3261 if test "$gcc_exec_prefix_setting" != "ok
"; then
3263 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3264 *** building gcc. Please change the environment variable
3265 *** and run configure again." "$LINENO" 5
3272 # Specify the local prefix
3275 # Check whether --with-local-prefix was given.
3276 if test "${with_local_prefix+set}" = set; then :
3277 withval=$with_local_prefix; case "${withval}" in
3278 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3280 *) local_prefix=$with_local_prefix ;;
3285 # Default local prefix if it is empty
3286 if test x$local_prefix = x; then
3287 local_prefix=/usr/local
3290 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3291 # passed in by the toplevel make and thus we'd get different behavior
3292 # depending on where we built the sources.
3293 gcc_gxx_include_dir
=
3294 # Specify the g++ header file directory
3296 # Check whether --with-gxx-include-dir was given.
3297 if test "${with_gxx_include_dir+set}" = set; then :
3298 withval
=$with_gxx_include_dir; case "${withval}" in
3299 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3301 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3306 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3307 if test x
${gcc_gxx_include_dir} = x
; then
3308 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3309 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3311 libstdcxx_incdir
='include/c++/$(version)'
3312 if test x
$host != x
$target; then
3313 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3315 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3320 # Check whether --with-cpp_install_dir was given.
3321 if test "${with_cpp_install_dir+set}" = set; then :
3322 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3323 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3324 elif test x
$withval != xno
; then
3325 cpp_install_dir
=$withval
3330 # We would like to our source tree to be readonly. However when releases or
3331 # pre-releases are generated, the flex/bison generated files as well as the
3332 # various formats of manuals need to be included along with the rest of the
3333 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3337 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3338 # Check whether --enable-generated-files-in-srcdir was given.
3339 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3340 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3342 generated_files_in_srcdir
=no
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3347 $as_echo "$generated_files_in_srcdir" >&6; }
3349 if test "$generated_files_in_srcdir" = "yes"; then
3356 # -------------------
3357 # Find default linker
3358 # -------------------
3362 # Check whether --with-gnu-ld was given.
3363 if test "${with_gnu_ld+set}" = set; then :
3364 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3370 # With pre-defined ld
3372 # Check whether --with-ld was given.
3373 if test "${with_ld+set}" = set; then :
3374 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3377 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3378 if test ! -x "$DEFAULT_LINKER"; then
3379 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3380 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3384 cat >>confdefs.h
<<_ACEOF
3385 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3390 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3392 cat >>confdefs.h
<<_ACEOF
3393 #define HAVE_GNU_LD $gnu_ld
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3398 $as_echo_n "checking whether a default linker was specified... " >&6; }
3399 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3400 if test x
"$gnu_ld_flag" = x
"no"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3402 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3405 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3412 # With demangler in GNU ld
3414 # Check whether --with-demangler-in-ld was given.
3415 if test "${with_demangler_in_ld+set}" = set; then :
3416 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3422 # ----------------------
3423 # Find default assembler
3424 # ----------------------
3428 # Check whether --with-gnu-as was given.
3429 if test "${with_gnu_as+set}" = set; then :
3430 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3437 # Check whether --with-as was given.
3438 if test "${with_as+set}" = set; then :
3439 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3442 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3443 if test ! -x "$DEFAULT_ASSEMBLER"; then
3444 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3445 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3449 cat >>confdefs.h
<<_ACEOF
3450 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3455 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3457 cat >>confdefs.h
<<_ACEOF
3458 #define HAVE_GNU_AS $gnu_as
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3463 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3464 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3465 if test x
"$gas_flag" = x
"no"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3467 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3470 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3481 # If a non-executable a.out is present (e.g. created by GNU as above even if
3482 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3483 # file, even when creating an executable, so an execution test fails.
3484 # Remove possible default executable files to avoid this.
3486 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3487 # Autoconf includes it.
3488 rm -f a.out a.exe b.out
3490 # Find the native compiler
3492 ac_cpp
='$CPP $CPPFLAGS'
3493 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3496 if test -n "$ac_tool_prefix"; then
3497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3498 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if test "${ac_cv_prog_CC+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3504 if test -n "$CC"; then
3505 ac_cv_prog_CC
="$CC" # Let the user override the test.
3507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3511 test -z "$as_dir" && as_dir
=.
3512 for ac_exec_ext
in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 if test -n "$CC"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3527 $as_echo "$CC" >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3535 if test -z "$ac_cv_prog_CC"; then
3537 # Extract the first word of "gcc", so it can be a program name with args.
3538 set dummy gcc
; ac_word
=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3544 if test -n "$ac_ct_CC"; then
3545 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir
=.
3552 for ac_exec_ext
in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 ac_cv_prog_ac_ct_CC
="gcc"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3565 if test -n "$ac_ct_CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3567 $as_echo "$ac_ct_CC" >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3573 if test "x$ac_ct_CC" = x
; then
3576 case $cross_compiling:$ac_tool_warned in
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3580 ac_tool_warned
=yes ;;
3588 if test -z "$CC"; then
3589 if test -n "$ac_tool_prefix"; then
3590 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3591 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if test "${ac_cv_prog_CC+set}" = set; then :
3595 $as_echo_n "(cached) " >&6
3597 if test -n "$CC"; then
3598 ac_cv_prog_CC
="$CC" # Let the user override the test.
3600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir
=.
3605 for ac_exec_ext
in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 if test -n "$CC"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 $as_echo "$CC" >&6; }
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3629 if test -z "$CC"; then
3630 # Extract the first word of "cc", so it can be a program name with args.
3631 set dummy cc
; ac_word
=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 $as_echo_n "checking for $ac_word... " >&6; }
3634 if test "${ac_cv_prog_CC+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC
="$CC" # Let the user override the test.
3641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir
=.
3646 for ac_exec_ext
in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3649 ac_prog_rejected
=yes
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 if test $ac_prog_rejected = yes; then
3661 # We found a bogon in the path, so make sure we never use it.
3662 set dummy
$ac_cv_prog_CC
3664 if test $# != 0; then
3665 # We chose a different compiler from the bogus one.
3666 # However, it has the same basename, so the bogon will be chosen
3667 # first if we set CC to just the basename; use the full file name.
3669 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3675 if test -n "$CC"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677 $as_echo "$CC" >&6; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3685 if test -z "$CC"; then
3686 if test -n "$ac_tool_prefix"; then
3687 for ac_prog
in cl.exe
3689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3690 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if test "${ac_cv_prog_CC+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3696 if test -n "$CC"; then
3697 ac_cv_prog_CC
="$CC" # Let the user override the test.
3699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3703 test -z "$as_dir" && as_dir
=.
3704 for ac_exec_ext
in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 if test -n "$CC"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3719 $as_echo "$CC" >&6; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3726 test -n "$CC" && break
3729 if test -z "$CC"; then
3731 for ac_prog
in cl.exe
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy
$ac_prog; ac_word
=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3740 if test -n "$ac_ct_CC"; then
3741 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3747 test -z "$as_dir" && as_dir
=.
3748 for ac_exec_ext
in '' $ac_executable_extensions; do
3749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3750 ac_cv_prog_ac_ct_CC
="$ac_prog"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3761 if test -n "$ac_ct_CC"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3763 $as_echo "$ac_ct_CC" >&6; }
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3770 test -n "$ac_ct_CC" && break
3773 if test "x$ac_ct_CC" = x
; then
3776 case $cross_compiling:$ac_tool_warned in
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3780 ac_tool_warned
=yes ;;
3789 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3791 as_fn_error
"no acceptable C compiler found in \$PATH
3792 See \`config.log' for more details." "$LINENO" 5; }
3794 # Provide some information about the compiler.
3795 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3798 for ac_option
in --version -v -V -qversion; do
3799 { { ac_try
="$ac_compiler $ac_option >&5"
3801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3808 if test -s conftest.err; then
3810 ... rest of stderr output deleted ...
3811 10q' conftest.err >conftest.er1
3812 cat conftest.er1 >&5
3813 rm -f conftest.er1 conftest.err
3815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816 test $ac_status = 0; }
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3830 ac_clean_files_save=$ac_clean_files
3831 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3832 # Try to create an executable without -o first, disregard a.out.
3833 # It will help us diagnose broken compilers, and finding out an intuition
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3836 $as_echo_n "checking for C compiler default output file name... " >&6; }
3837 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3839 # The possible output files:
3840 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3843 for ac_file in $ac_files
3846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3847 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3852 if { { ac_try="$ac_link_default"
3854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3855 *) ac_try_echo
=$ac_try;;
3857 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 $as_echo "$ac_try_echo"; } >&5
3859 (eval "$ac_link_default") 2>&5
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }; then :
3863 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3864 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3865 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3866 # so that the user can short-circuit this test for compilers unknown to
3868 for ac_file
in $ac_files ''
3870 test -f "$ac_file" ||
continue
3872 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3875 # We found the default executable, but exeext='' is most
3879 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3881 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3883 # We set ac_cv_exeext here because the later test for it is not
3884 # safe: cross compilers may not add the suffix if given an `-o'
3885 # argument, so we may need to know it at that point already.
3886 # Even if this section looks crufty: it has the advantage of
3893 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3899 $as_echo "$ac_file" >&6; }
3900 if test -z "$ac_file"; then :
3901 $as_echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.
$ac_ext >&5
3904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906 { as_fn_set_status
77
3907 as_fn_error
"C compiler cannot create executables
3908 See \`config.log' for more details." "$LINENO" 5; }; }
3910 ac_exeext
=$ac_cv_exeext
3912 # Check that the compiler produces executables we can run. If not, either
3913 # the compiler is broken, or we cross compile.
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3915 $as_echo_n "checking whether the C compiler works... " >&6; }
3916 # If not cross compiling, check that we can run a simple program.
3917 if test "$cross_compiling" != yes; then
3918 if { ac_try
='./$ac_file'
3919 { { case "(($ac_try" in
3920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_try") 2>&5
3927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3928 test $ac_status = 0; }; }; then
3931 if test "$cross_compiling" = maybe; then
3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error "cannot run C compiled programs.
3937 If you meant to cross compile
, use \
`--host'.
3938 See \`config.log
' for more details." "$LINENO" 5; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3943 $as_echo "yes" >&6; }
3945 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3946 ac_clean_files=$ac_clean_files_save
3947 # Check that the compiler produces executables we can run. If not, either
3948 # the compiler is broken, or we cross compile.
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3950 $as_echo_n "checking whether we are cross compiling... " >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3952 $as_echo "$cross_compiling" >&6; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3955 $as_echo_n "checking for suffix of executables... " >&6; }
3956 if { { ac_try="$ac_link"
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_link") 2>&5
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; then :
3967 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3968 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3969 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3971 for ac_file
in conftest.exe conftest conftest.
*; do
3972 test -f "$ac_file" ||
continue
3974 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3975 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3984 See \`config.log' for more details." "$LINENO" 5; }
3986 rm -f conftest
$ac_cv_exeext
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3988 $as_echo "$ac_cv_exeext" >&6; }
3990 rm -f conftest.
$ac_ext
3991 EXEEXT
=$ac_cv_exeext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3994 $as_echo_n "checking for suffix of object files... " >&6; }
3995 if test "${ac_cv_objext+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4009 rm -f conftest.o conftest.obj
4010 if { { ac_try
="$ac_compile"
4012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017 (eval "$ac_compile") 2>&5
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }; then :
4021 for ac_file in conftest.o conftest.obj conftest.*; do
4022 test -f "$ac_file" || continue;
4024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4030 $as_echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4035 as_fn_error "cannot compute suffix of object files
: cannot compile
4036 See \
`config.log' for more details." "$LINENO" 5; }
4038 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4041 $as_echo "$ac_cv_objext" >&6; }
4042 OBJEXT=$ac_cv_objext
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4045 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4046 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4063 if ac_fn_c_try_compile "$LINENO"; then :
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4073 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4074 if test $ac_compiler_gnu = yes; then
4079 ac_test_CFLAGS=${CFLAGS+set}
4080 ac_save_CFLAGS=$CFLAGS
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4082 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4083 if test "${ac_cv_prog_cc_g+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4086 ac_save_c_werror_flag=$ac_c_werror_flag
4087 ac_c_werror_flag=yes
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4101 if ac_fn_c_try_compile "$LINENO"; then :
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4116 if ac_fn_c_try_compile "$LINENO"; then :
4119 ac_c_werror_flag=$ac_save_c_werror_flag
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4132 if ac_fn_c_try_compile "$LINENO"; then :
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4143 $as_echo "$ac_cv_prog_cc_g" >&6; }
4144 if test "$ac_test_CFLAGS" = set; then
4145 CFLAGS=$ac_save_CFLAGS
4146 elif test $ac_cv_prog_cc_g = yes; then
4147 if test "$GCC" = yes; then
4153 if test "$GCC" = yes; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4160 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4161 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4162 $as_echo_n "(cached) " >&6
4164 ac_cv_prog_cc_c89=no
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4170 #include <sys/types.h>
4171 #include <sys/stat.h>
4172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4173 struct buf { int x; };
4174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4175 static char *e (p, i)
4181 static char *f (char * (*g) (char **, int), char **p, ...)
4186 s = g (p, va_arg (v,int));
4191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4192 function prototypes and stuff, but not '\xHH' hex character constants.
4193 These don't provoke an error unfortunately, instead are silently treated
4194 as 'x'. The following induces an error, until -std is added to get
4195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4196 array size at least. It's necessary to write '\x00'==0 to get something
4197 that's true only with -std. */
4198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4201 inside strings and character constants. */
4203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4205 int test (int i, double x);
4206 struct s1 {int (*f) (int a);};
4207 struct s2 {int (*f) (double a);};
4208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4220 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4222 CC="$ac_save_CC $ac_arg"
4223 if ac_fn_c_try_compile "$LINENO"; then :
4224 ac_cv_prog_cc_c89=$ac_arg
4226 rm -f core conftest.err conftest.$ac_objext
4227 test "x$ac_cv_prog_cc_c89" != "xno" && break
4229 rm -f conftest.$ac_ext
4234 case "x$ac_cv_prog_cc_c89" in
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4237 $as_echo "none needed" >&6; } ;;
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4240 $as_echo "unsupported" >&6; } ;;
4242 CC="$CC $ac_cv_prog_cc_c89"
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4244 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4246 if test "x$ac_cv_prog_cc_c89" != xno; then :
4251 ac_cpp='$CPP $CPPFLAGS'
4252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256 if test "x$CC" != xcc; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4258 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4261 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4263 set dummy $CC; ac_cc=`$as_echo "$2" |
4264 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4265 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4266 $as_echo_n "(cached) " >&6
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4279 # Make sure it works both with $CC and with simple cc.
4280 # We do the test twice because some compilers refuse to overwrite an
4281 # existing .o file with -o, though they will create one.
4282 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4284 if { { case "(($ac_try" in
4285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4286 *) ac_try_echo
=$ac_try;;
4288 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_try") 2>&5
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; } &&
4294 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_try") 2>&5
4302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; };
4305 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4306 if test "x$CC" != xcc; then
4307 # Test first that cc exists at all.
4308 if { ac_try='cc -c conftest.$ac_ext >&5'
4309 { { case "(($ac_try" in
4310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4311 *) ac_try_echo
=$ac_try;;
4313 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314 $as_echo "$ac_try_echo"; } >&5
4315 (eval "$ac_try") 2>&5
4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4318 test $ac_status = 0; }; }; then
4319 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4321 if { { case "(($ac_try" in
4322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 $as_echo "$ac_try_echo"; } >&5
4327 (eval "$ac_try") 2>&5
4329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; } &&
4331 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4333 *) ac_try_echo
=$ac_try;;
4335 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 $as_echo "$ac_try_echo"; } >&5
4337 (eval "$ac_try") 2>&5
4339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4340 test $ac_status = 0; };
4345 # cc exists but doesn't like -o.
4346 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4351 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4353 rm -f core conftest
*
4356 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4358 $as_echo "yes" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4363 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4367 # expand $ac_aux_dir to an absolute path
4368 am_aux_dir
=`cd $ac_aux_dir && pwd`
4370 # FIXME: we rely on the cache variable name because
4371 # there is no other way.
4373 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4374 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4375 if test "$am_t" != yes; then
4376 # Losing compiler, so override with the script.
4377 # FIXME: It is wrong to rewrite CC.
4378 # But if we don't then we get into trouble of one sort or another.
4379 # A longer-term fix would be to have automake use am__CC in this case,
4380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4381 CC
="$am_aux_dir/compile $CC"
4386 ac_cpp
='$CXXCPP $CPPFLAGS'
4387 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4390 if test -z "$CXX"; then
4391 if test -n "$CCC"; then
4394 if test -n "$ac_tool_prefix"; then
4395 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4398 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if test "${ac_cv_prog_CXX+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4404 if test -n "$CXX"; then
4405 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4411 test -z "$as_dir" && as_dir
=.
4412 for ac_exec_ext
in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 if test -n "$CXX"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4427 $as_echo "$CXX" >&6; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4434 test -n "$CXX" && break
4437 if test -z "$CXX"; then
4439 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4441 # Extract the first word of "$ac_prog", so it can be a program name with args.
4442 set dummy
$ac_prog; ac_word
=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4448 if test -n "$ac_ct_CXX"; then
4449 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4455 test -z "$as_dir" && as_dir
=.
4456 for ac_exec_ext
in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4469 if test -n "$ac_ct_CXX"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4471 $as_echo "$ac_ct_CXX" >&6; }
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4478 test -n "$ac_ct_CXX" && break
4481 if test "x$ac_ct_CXX" = x
; then
4484 case $cross_compiling:$ac_tool_warned in
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4488 ac_tool_warned
=yes ;;
4496 # Provide some information about the compiler.
4497 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4500 for ac_option
in --version -v -V -qversion; do
4501 { { ac_try
="$ac_compiler $ac_option >&5"
4503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507 $as_echo "$ac_try_echo"; } >&5
4508 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4510 if test -s conftest.err; then
4512 ... rest of stderr output deleted ...
4513 10q' conftest.err >conftest.er1
4514 cat conftest.er1 >&5
4515 rm -f conftest.er1 conftest.err
4517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4518 test $ac_status = 0; }
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4522 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4523 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4540 if ac_fn_cxx_try_compile "$LINENO"; then :
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4550 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4551 if test $ac_compiler_gnu = yes; then
4556 ac_test_CXXFLAGS=${CXXFLAGS+set}
4557 ac_save_CXXFLAGS=$CXXFLAGS
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4559 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4560 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
4563 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4564 ac_cxx_werror_flag=yes
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4578 if ac_fn_cxx_try_compile "$LINENO"; then :
4579 ac_cv_prog_cxx_g=yes
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4593 if ac_fn_cxx_try_compile "$LINENO"; then :
4596 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4609 if ac_fn_cxx_try_compile "$LINENO"; then :
4610 ac_cv_prog_cxx_g=yes
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4620 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4621 if test "$ac_test_CXXFLAGS" = set; then
4622 CXXFLAGS=$ac_save_CXXFLAGS
4623 elif test $ac_cv_prog_cxx_g = yes; then
4624 if test "$GXX" = yes; then
4630 if test "$GXX" = yes; then
4637 ac_cpp='$CPP $CPPFLAGS'
4638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4645 if test -n "$ac_tool_prefix"; then
4646 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4647 set dummy ${ac_tool_prefix}gnatbind; 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_GNATBIND+set}" = set; then :
4651 $as_echo_n "(cached) " >&6
4653 if test -n "$GNATBIND"; then
4654 ac_cv_prog_GNATBIND="$GNATBIND" # 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_GNATBIND="${ac_tool_prefix}gnatbind"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 GNATBIND=$ac_cv_prog_GNATBIND
4674 if test -n "$GNATBIND"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4676 $as_echo "$GNATBIND" >&6; }
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4684 if test -z "$ac_cv_prog_GNATBIND"; then
4685 ac_ct_GNATBIND=$GNATBIND
4686 # Extract the first word of "gnatbind", so it can be a program name with args.
4687 set dummy gnatbind; 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_GNATBIND+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4693 if test -n "$ac_ct_GNATBIND"; then
4694 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # 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_GNATBIND="gnatbind"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4714 if test -n "$ac_ct_GNATBIND"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4716 $as_echo "$ac_ct_GNATBIND" >&6; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4722 if test "x$ac_ct_GNATBIND" = 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 GNATBIND=$ac_ct_GNATBIND
4734 GNATBIND="$ac_cv_prog_GNATBIND"
4737 if test -n "$ac_tool_prefix"; then
4738 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4739 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
4745 if test -n "$GNATMAKE"; then
4746 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 GNATMAKE=$ac_cv_prog_GNATMAKE
4766 if test -n "$GNATMAKE"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4768 $as_echo "$GNATMAKE" >&6; }
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771 $as_echo "no" >&6; }
4776 if test -z "$ac_cv_prog_GNATMAKE"; then
4777 ac_ct_GNATMAKE=$GNATMAKE
4778 # Extract the first word of "gnatmake", so it can be a program name with args.
4779 set dummy gnatmake; ac_word=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4785 if test -n "$ac_ct_GNATMAKE"; then
4786 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4806 if test -n "$ac_ct_GNATMAKE"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4808 $as_echo "$ac_ct_GNATMAKE" >&6; }
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4814 if test "x$ac_ct_GNATMAKE" = x; then
4817 case $cross_compiling:$ac_tool_warned in
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4821 ac_tool_warned=yes ;;
4823 GNATMAKE=$ac_ct_GNATMAKE
4826 GNATMAKE="$ac_cv_prog_GNATMAKE"
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4830 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4831 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4834 cat >conftest.adb <<EOF
4835 procedure conftest is begin null; end conftest;
4837 acx_cv_cc_gcc_supports_ada=no
4838 # There is a bug in old released versions of GCC which causes the
4839 # driver to exit successfully when the appropriate language module
4840 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4841 # Therefore we must check for the error message as well as an
4842 # unsuccessful exit.
4843 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4844 # given a .adb file, but produce no object file. So we must check
4845 # if an object file was really produced to guard against this.
4846 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4847 if test x"$errors" = x && test -f conftest.$ac_objext; then
4848 acx_cv_cc_gcc_supports_ada=yes
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4853 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4855 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4862 # autoconf is lame and doesn't give us any substitution variable for this.
4863 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4864 NO_MINUS_C_MINUS_O=yes
4866 OUTPUT_OPTION='-o $@'
4871 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4872 # optimizations to be activated explicitly by the toplevel.
4874 */prev-gcc/xgcc*) ;;
4875 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4879 # Determine PICFLAG for target gnatlib.
4885 # PIC is the default on some targets or must not be used.
4887 # PIC is the default on this platform
4888 # Common symbols not allowed in MH_DYLIB files
4889 PICFLAG_FOR_TARGET=-fno-common
4892 # PIC is the default.
4895 # PIC is the default for 64-bit PA HP-UX.
4897 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4899 i[34567]86-*-interix3*)
4900 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4901 # Instead, we relocate shared libraries at runtime.
4903 i[34567]86-*-nto-qnx*)
4904 # QNX uses GNU C++, but need to define -shared option too, otherwise
4906 PICFLAG_FOR_TARGET='-fPIC -shared'
4908 i[34567]86-pc-msdosdjgpp*)
4909 # DJGPP does not support shared libraries at all.
4912 # On IA64 HP-UX, PIC is the default but the pic flag
4913 # sets the default TLS model and affects inlining.
4914 PICFLAG_FOR_TARGET=-fPIC
4917 # PIC is the default.
4919 rs6000-ibm-aix* | powerpc-ibm-aix*)
4920 # All AIX code is PIC.
4923 # Some targets support both -fPIC and -fpic, but prefer the latter.
4925 i[34567]86-*-* | x86_64-*-*)
4926 PICFLAG_FOR_TARGET=-fpic
4929 PICFLAG_FOR_TARGET=-fpic
4932 PICFLAG_FOR_TARGET=-fpic
4934 # FIXME: Override -fPIC default in libgcc only?
4935 sh-*-linux* | sh[2346lbe]*-*-linux*)
4936 PICFLAG_FOR_TARGET=-fpic
4938 # FIXME: Simplify to sh*-*-netbsd*?
4939 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4940 sh64-*-netbsd* | sh64l*-*-netbsd*)
4941 PICFLAG_FOR_TARGET=-fpic
4943 # Default to -fPIC unless specified otherwise.
4945 PICFLAG_FOR_TARGET=-fPIC
4949 # If the user explicitly uses -fpic/-fPIC, keep that.
4950 case "${CFLAGS_FOR_TARGET}" in
4952 PICFLAG_FOR_TARGET=-fpic
4955 PICFLAG_FOR_TARGET=-fPIC
4961 # -------------------------
4962 # Check C compiler features
4963 # -------------------------
4967 ac_cpp='$CPP $CPPFLAGS'
4968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4972 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4973 # On Suns, sometimes $CPP names a directory.
4974 if test -n "$CPP" && test -d "$CPP"; then
4977 if test -z "$CPP"; then
4978 if test "${ac_cv_prog_CPP+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4981 # Double quotes because CPP needs to be expanded
4982 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4985 for ac_c_preproc_warn_flag in '' yes
4987 # Use a header file that comes with gcc, so configuring glibc
4988 # with a fresh cross-compiler works.
4989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4990 # <limits.h> exists even on freestanding compilers.
4991 # On the NeXT, cc -E runs the code through the compiler's parser,
4992 # not just through cpp. "Syntax error" is here to catch this case.
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4996 # include <limits.h>
4998 # include <assert.h>
5002 if ac_fn_c_try_cpp "$LINENO"; then :
5005 # Broken: fails on valid input.
5008 rm -f conftest.err conftest.$ac_ext
5010 # OK, works on sane cases. Now check whether nonexistent headers
5011 # can be detected and how.
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5014 #include <ac_nonexistent.h>
5016 if ac_fn_c_try_cpp "$LINENO"; then :
5017 # Broken: success on invalid input.
5020 # Passes both tests.
5024 rm -f conftest.err conftest.$ac_ext
5027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5028 rm -f conftest.err conftest.
$ac_ext
5029 if $ac_preproc_ok; then :
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5042 $as_echo "$CPP" >&6; }
5044 for ac_c_preproc_warn_flag
in '' yes
5046 # Use a header file that comes with gcc, so configuring glibc
5047 # with a fresh cross-compiler works.
5048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5049 # <limits.h> exists even on freestanding compilers.
5050 # On the NeXT, cc -E runs the code through the compiler's parser,
5051 # not just through cpp. "Syntax error" is here to catch this case.
5052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5055 # include <limits.h>
5057 # include <assert.h>
5061 if ac_fn_c_try_cpp
"$LINENO"; then :
5064 # Broken: fails on valid input.
5067 rm -f conftest.err conftest.
$ac_ext
5069 # OK, works on sane cases. Now check whether nonexistent headers
5070 # can be detected and how.
5071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5073 #include <ac_nonexistent.h>
5075 if ac_fn_c_try_cpp
"$LINENO"; then :
5076 # Broken: success on invalid input.
5079 # Passes both tests.
5083 rm -f conftest.err conftest.
$ac_ext
5086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5087 rm -f conftest.err conftest.
$ac_ext
5088 if $ac_preproc_ok; then :
5091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5093 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5094 See \`config.log' for more details." "$LINENO" 5; }
5098 ac_cpp
='$CPP $CPPFLAGS'
5099 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5100 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5105 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5106 if test "${ac_cv_path_GREP+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5109 if test -z "$GREP"; then
5110 ac_path_GREP_found
=false
5111 # Loop through the user's path and test for each of PROGNAME-LIST
5112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5113 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5116 test -z "$as_dir" && as_dir
=.
5117 for ac_prog
in grep ggrep
; do
5118 for ac_exec_ext
in '' $ac_executable_extensions; do
5119 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5120 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5121 # Check for GNU ac_path_GREP and select it if it is found.
5122 # Check for GNU $ac_path_GREP
5123 case `"$ac_path_GREP" --version 2>&1` in
5125 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5128 $as_echo_n 0123456789 >"conftest.in"
5131 cat "conftest.in" "conftest.in" >"conftest.tmp"
5132 mv "conftest.tmp" "conftest.in"
5133 cp "conftest.in" "conftest.nl"
5134 $as_echo 'GREP' >> "conftest.nl"
5135 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5136 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5137 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5138 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5139 # Best one so far, save it but keep looking for a better one
5140 ac_cv_path_GREP
="$ac_path_GREP"
5141 ac_path_GREP_max
=$ac_count
5143 # 10*(2^10) chars as input seems more than enough
5144 test $ac_count -gt 10 && break
5146 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5149 $ac_path_GREP_found && break 3
5154 if test -z "$ac_cv_path_GREP"; then
5155 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5158 ac_cv_path_GREP
=$GREP
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5163 $as_echo "$ac_cv_path_GREP" >&6; }
5164 GREP
="$ac_cv_path_GREP"
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5168 $as_echo_n "checking for egrep... " >&6; }
5169 if test "${ac_cv_path_EGREP+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5172 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5173 then ac_cv_path_EGREP
="$GREP -E"
5175 if test -z "$EGREP"; then
5176 ac_path_EGREP_found
=false
5177 # Loop through the user's path and test for each of PROGNAME-LIST
5178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5179 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5182 test -z "$as_dir" && as_dir
=.
5183 for ac_prog
in egrep; do
5184 for ac_exec_ext
in '' $ac_executable_extensions; do
5185 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5186 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5187 # Check for GNU ac_path_EGREP and select it if it is found.
5188 # Check for GNU $ac_path_EGREP
5189 case `"$ac_path_EGREP" --version 2>&1` in
5191 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5194 $as_echo_n 0123456789 >"conftest.in"
5197 cat "conftest.in" "conftest.in" >"conftest.tmp"
5198 mv "conftest.tmp" "conftest.in"
5199 cp "conftest.in" "conftest.nl"
5200 $as_echo 'EGREP' >> "conftest.nl"
5201 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5202 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5203 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5205 # Best one so far, save it but keep looking for a better one
5206 ac_cv_path_EGREP
="$ac_path_EGREP"
5207 ac_path_EGREP_max
=$ac_count
5209 # 10*(2^10) chars as input seems more than enough
5210 test $ac_count -gt 10 && break
5212 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5215 $ac_path_EGREP_found && break 3
5220 if test -z "$ac_cv_path_EGREP"; then
5221 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5224 ac_cv_path_EGREP
=$EGREP
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5230 $as_echo "$ac_cv_path_EGREP" >&6; }
5231 EGREP
="$ac_cv_path_EGREP"
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5235 $as_echo_n "checking for ANSI C header files... " >&6; }
5236 if test "${ac_cv_header_stdc+set}" = set; then :
5237 $as_echo_n "(cached) " >&6
5239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5254 if ac_fn_c_try_compile
"$LINENO"; then :
5255 ac_cv_header_stdc
=yes
5257 ac_cv_header_stdc
=no
5259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5261 if test $ac_cv_header_stdc = yes; then
5262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5269 $EGREP "memchr" >/dev
/null
2>&1; then :
5272 ac_cv_header_stdc
=no
5278 if test $ac_cv_header_stdc = yes; then
5279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5286 $EGREP "free" >/dev
/null
2>&1; then :
5289 ac_cv_header_stdc
=no
5295 if test $ac_cv_header_stdc = yes; then
5296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5297 if test "$cross_compiling" = yes; then :
5300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5304 #if ((' ' & 0x0FF) == 0x020)
5305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5308 # define ISLOWER(c) \
5309 (('a' <= (c) && (c) <= 'i') \
5310 || ('j' <= (c) && (c) <= 'r') \
5311 || ('s' <= (c) && (c) <= 'z'))
5312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5320 for (i = 0; i < 256; i++)
5321 if (XOR (islower (i), ISLOWER (i))
5322 || toupper (i) != TOUPPER (i))
5327 if ac_fn_c_try_run
"$LINENO"; then :
5330 ac_cv_header_stdc
=no
5332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5339 $as_echo "$ac_cv_header_stdc" >&6; }
5340 if test $ac_cv_header_stdc = yes; then
5342 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5346 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5347 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5348 inttypes.h stdint.h unistd.h
5350 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5351 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5353 eval as_val
=\$
$as_ac_Header
5354 if test "x$as_val" = x
""yes; then :
5355 cat >>confdefs.h
<<_ACEOF
5356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5365 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5366 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5373 if test "$MINIX" = yes; then
5375 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5378 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5381 $as_echo "#define _MINIX 1" >>confdefs.h
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5387 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5388 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5394 # define __EXTENSIONS__ 1
5395 $ac_includes_default
5404 if ac_fn_c_try_compile
"$LINENO"; then :
5405 ac_cv_safe_to_define___extensions__
=yes
5407 ac_cv_safe_to_define___extensions__
=no
5409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5412 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5413 test $ac_cv_safe_to_define___extensions__ = yes &&
5414 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5416 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5418 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5420 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5422 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5426 ac_cpp
='$CPP $CPPFLAGS'
5427 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5431 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5432 # On Suns, sometimes $CPP names a directory.
5433 if test -n "$CPP" && test -d "$CPP"; then
5436 if test -z "$CPP"; then
5437 if test "${ac_cv_prog_CPP+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5440 # Double quotes because CPP needs to be expanded
5441 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5444 for ac_c_preproc_warn_flag
in '' yes
5446 # Use a header file that comes with gcc, so configuring glibc
5447 # with a fresh cross-compiler works.
5448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5449 # <limits.h> exists even on freestanding compilers.
5450 # On the NeXT, cc -E runs the code through the compiler's parser,
5451 # not just through cpp. "Syntax error" is here to catch this case.
5452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5455 # include <limits.h>
5457 # include <assert.h>
5461 if ac_fn_c_try_cpp
"$LINENO"; then :
5464 # Broken: fails on valid input.
5467 rm -f conftest.err conftest.
$ac_ext
5469 # OK, works on sane cases. Now check whether nonexistent headers
5470 # can be detected and how.
5471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5473 #include <ac_nonexistent.h>
5475 if ac_fn_c_try_cpp
"$LINENO"; then :
5476 # Broken: success on invalid input.
5479 # Passes both tests.
5483 rm -f conftest.err conftest.
$ac_ext
5486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5487 rm -f conftest.err conftest.
$ac_ext
5488 if $ac_preproc_ok; then :
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5501 $as_echo "$CPP" >&6; }
5503 for ac_c_preproc_warn_flag
in '' yes
5505 # Use a header file that comes with gcc, so configuring glibc
5506 # with a fresh cross-compiler works.
5507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5508 # <limits.h> exists even on freestanding compilers.
5509 # On the NeXT, cc -E runs the code through the compiler's parser,
5510 # not just through cpp. "Syntax error" is here to catch this case.
5511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5514 # include <limits.h>
5516 # include <assert.h>
5520 if ac_fn_c_try_cpp
"$LINENO"; then :
5523 # Broken: fails on valid input.
5526 rm -f conftest.err conftest.
$ac_ext
5528 # OK, works on sane cases. Now check whether nonexistent headers
5529 # can be detected and how.
5530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 #include <ac_nonexistent.h>
5534 if ac_fn_c_try_cpp
"$LINENO"; then :
5535 # Broken: success on invalid input.
5538 # Passes both tests.
5542 rm -f conftest.err conftest.
$ac_ext
5545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5546 rm -f conftest.err conftest.
$ac_ext
5547 if $ac_preproc_ok; then :
5550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5552 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5553 See \`config.log' for more details." "$LINENO" 5; }
5557 ac_cpp
='$CPP $CPPFLAGS'
5558 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5563 $as_echo_n "checking for inline... " >&6; }
5564 if test "${ac_cv_c_inline+set}" = set; then :
5565 $as_echo_n "(cached) " >&6
5568 for ac_kw
in inline __inline__ __inline
; do
5569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5573 static $ac_kw foo_t static_foo () {return 0; }
5574 $ac_kw foo_t foo () {return 0; }
5578 if ac_fn_c_try_compile
"$LINENO"; then :
5579 ac_cv_c_inline
=$ac_kw
5581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5582 test "$ac_cv_c_inline" != no
&& break
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5587 $as_echo "$ac_cv_c_inline" >&6; }
5589 case $ac_cv_c_inline in
5592 case $ac_cv_c_inline in
5594 *) ac_val
=$ac_cv_c_inline;;
5596 cat >>confdefs.h
<<_ACEOF
5598 #define inline $ac_val
5605 # Check whether --enable-largefile was given.
5606 if test "${enable_largefile+set}" = set; then :
5607 enableval
=$enable_largefile;
5610 if test "$enable_largefile" != no
; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5613 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5614 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5615 $as_echo_n "(cached) " >&6
5617 ac_cv_sys_largefile_CC
=no
5618 if test "$GCC" != yes; then
5621 # IRIX 6.2 and later do not support large files by default,
5622 # so use the C compiler's -n32 option if that helps.
5623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 #include <sys/types.h>
5626 /* Check that off_t can represent 2**63 - 1 correctly.
5627 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5628 since some C++ compilers masquerading as C compilers
5629 incorrectly reject 9223372036854775807. */
5630 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5631 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5632 && LARGE_OFF_T % 2147483647 == 1)
5642 if ac_fn_c_try_compile
"$LINENO"; then :
5645 rm -f core conftest.err conftest.
$ac_objext
5647 if ac_fn_c_try_compile
"$LINENO"; then :
5648 ac_cv_sys_largefile_CC
=' -n32'; break
5650 rm -f core conftest.err conftest.
$ac_objext
5654 rm -f conftest.
$ac_ext
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5658 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5659 if test "$ac_cv_sys_largefile_CC" != no
; then
5660 CC
=$CC$ac_cv_sys_largefile_CC
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5664 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5665 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5666 $as_echo_n "(cached) " >&6
5669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #include <sys/types.h>
5672 /* Check that off_t can represent 2**63 - 1 correctly.
5673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5674 since some C++ compilers masquerading as C compilers
5675 incorrectly reject 9223372036854775807. */
5676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5678 && LARGE_OFF_T % 2147483647 == 1)
5688 if ac_fn_c_try_compile
"$LINENO"; then :
5689 ac_cv_sys_file_offset_bits
=no
; break
5691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #define _FILE_OFFSET_BITS 64
5695 #include <sys/types.h>
5696 /* Check that off_t can represent 2**63 - 1 correctly.
5697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5698 since some C++ compilers masquerading as C compilers
5699 incorrectly reject 9223372036854775807. */
5700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5702 && LARGE_OFF_T % 2147483647 == 1)
5712 if ac_fn_c_try_compile
"$LINENO"; then :
5713 ac_cv_sys_file_offset_bits
=64; break
5715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5716 ac_cv_sys_file_offset_bits
=unknown
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5721 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5722 case $ac_cv_sys_file_offset_bits in #(
5725 cat >>confdefs.h
<<_ACEOF
5726 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5731 if test $ac_cv_sys_file_offset_bits = unknown
; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5733 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5734 if test "${ac_cv_sys_large_files+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5741 /* Check that off_t can represent 2**63 - 1 correctly.
5742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5743 since some C++ compilers masquerading as C compilers
5744 incorrectly reject 9223372036854775807. */
5745 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5747 && LARGE_OFF_T % 2147483647 == 1)
5757 if ac_fn_c_try_compile
"$LINENO"; then :
5758 ac_cv_sys_large_files
=no
; break
5760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #define _LARGE_FILES 1
5764 #include <sys/types.h>
5765 /* Check that off_t can represent 2**63 - 1 correctly.
5766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5767 since some C++ compilers masquerading as C compilers
5768 incorrectly reject 9223372036854775807. */
5769 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5771 && LARGE_OFF_T % 2147483647 == 1)
5781 if ac_fn_c_try_compile
"$LINENO"; then :
5782 ac_cv_sys_large_files
=1; break
5784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5785 ac_cv_sys_large_files
=unknown
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5790 $as_echo "$ac_cv_sys_large_files" >&6; }
5791 case $ac_cv_sys_large_files in #(
5794 cat >>confdefs.h
<<_ACEOF
5795 #define _LARGE_FILES $ac_cv_sys_large_files
5804 # sizeof(char) is 1 by definition.
5805 # The cast to long int works around a bug in the HP C Compiler
5806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5808 # This bug is HP SR number 8606223364.
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5810 $as_echo_n "checking size of void *... " >&6; }
5811 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5814 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5817 if test "$ac_cv_type_void_p" = yes; then
5818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5820 { as_fn_set_status
77
5821 as_fn_error
"cannot compute sizeof (void *)
5822 See \`config.log' for more details." "$LINENO" 5; }; }
5824 ac_cv_sizeof_void_p
=0
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5830 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5834 cat >>confdefs.h
<<_ACEOF
5835 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5839 # The cast to long int works around a bug in the HP C Compiler
5840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5842 # This bug is HP SR number 8606223364.
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5844 $as_echo_n "checking size of short... " >&6; }
5845 if test "${ac_cv_sizeof_short+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5848 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5851 if test "$ac_cv_type_short" = yes; then
5852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5854 { as_fn_set_status
77
5855 as_fn_error
"cannot compute sizeof (short)
5856 See \`config.log' for more details." "$LINENO" 5; }; }
5858 ac_cv_sizeof_short
=0
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5864 $as_echo "$ac_cv_sizeof_short" >&6; }
5868 cat >>confdefs.h
<<_ACEOF
5869 #define SIZEOF_SHORT $ac_cv_sizeof_short
5873 # The cast to long int works around a bug in the HP C Compiler
5874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5876 # This bug is HP SR number 8606223364.
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5878 $as_echo_n "checking size of int... " >&6; }
5879 if test "${ac_cv_sizeof_int+set}" = set; then :
5880 $as_echo_n "(cached) " >&6
5882 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5885 if test "$ac_cv_type_int" = yes; then
5886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5888 { as_fn_set_status
77
5889 as_fn_error
"cannot compute sizeof (int)
5890 See \`config.log' for more details." "$LINENO" 5; }; }
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5898 $as_echo "$ac_cv_sizeof_int" >&6; }
5902 cat >>confdefs.h
<<_ACEOF
5903 #define SIZEOF_INT $ac_cv_sizeof_int
5907 # The cast to long int works around a bug in the HP C Compiler
5908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5910 # This bug is HP SR number 8606223364.
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5912 $as_echo_n "checking size of long... " >&6; }
5913 if test "${ac_cv_sizeof_long+set}" = set; then :
5914 $as_echo_n "(cached) " >&6
5916 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5919 if test "$ac_cv_type_long" = yes; then
5920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5922 { as_fn_set_status
77
5923 as_fn_error
"cannot compute sizeof (long)
5924 See \`config.log' for more details." "$LINENO" 5; }; }
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5932 $as_echo "$ac_cv_sizeof_long" >&6; }
5936 cat >>confdefs.h
<<_ACEOF
5937 #define SIZEOF_LONG $ac_cv_sizeof_long
5941 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5942 if test "x$ac_cv_type_long_long" = x
""yes; then :
5944 cat >>confdefs.h
<<_ACEOF
5945 #define HAVE_LONG_LONG 1
5948 # The cast to long int works around a bug in the HP C Compiler
5949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5951 # This bug is HP SR number 8606223364.
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5953 $as_echo_n "checking size of long long... " >&6; }
5954 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5957 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5960 if test "$ac_cv_type_long_long" = yes; then
5961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5963 { as_fn_set_status
77
5964 as_fn_error
"cannot compute sizeof (long long)
5965 See \`config.log' for more details." "$LINENO" 5; }; }
5967 ac_cv_sizeof_long_long
=0
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5973 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5977 cat >>confdefs.h
<<_ACEOF
5978 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5984 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5985 if test "x$ac_cv_type___int64" = x
""yes; then :
5987 cat >>confdefs.h
<<_ACEOF
5988 #define HAVE___INT64 1
5991 # The cast to long int works around a bug in the HP C Compiler
5992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5994 # This bug is HP SR number 8606223364.
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5996 $as_echo_n "checking size of __int64... " >&6; }
5997 if test "${ac_cv_sizeof___int64+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
6000 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6003 if test "$ac_cv_type___int64" = yes; then
6004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6006 { as_fn_set_status
77
6007 as_fn_error
"cannot compute sizeof (__int64)
6008 See \`config.log' for more details." "$LINENO" 5; }; }
6010 ac_cv_sizeof___int64
=0
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6016 $as_echo "$ac_cv_sizeof___int64" >&6; }
6020 cat >>confdefs.h
<<_ACEOF
6021 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6027 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6028 case $ac_cv_c_int8_t in #(
6032 cat >>confdefs.h
<<_ACEOF
6033 #define int8_t $ac_cv_c_int8_t
6038 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6039 case $ac_cv_c_int16_t in #(
6043 cat >>confdefs.h
<<_ACEOF
6044 #define int16_t $ac_cv_c_int16_t
6049 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6050 case $ac_cv_c_int32_t in #(
6054 cat >>confdefs.h
<<_ACEOF
6055 #define int32_t $ac_cv_c_int32_t
6060 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6061 case $ac_cv_c_int64_t in #(
6065 cat >>confdefs.h
<<_ACEOF
6066 #define int64_t $ac_cv_c_int64_t
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6073 $as_echo_n "checking for long long int... " >&6; }
6074 if test "${ac_cv_type_long_long_int+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6080 /* For now, do not test the preprocessor; as of 2007 there are too many
6081 implementations with broken preprocessors. Perhaps this can
6082 be revisited in 2012. In the meantime, code should not expect
6083 #if to work with literals wider than 32 bits. */
6084 /* Test literals. */
6085 long long int ll = 9223372036854775807ll;
6086 long long int nll = -9223372036854775807LL;
6087 unsigned long long int ull = 18446744073709551615ULL;
6088 /* Test constant expressions. */
6089 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6091 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6097 /* Test availability of runtime routines for shift and division. */
6098 long long int llmax = 9223372036854775807ll;
6099 unsigned long long int ullmax = 18446744073709551615ull;
6100 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6101 | (llmax / ll) | (llmax % ll)
6102 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6103 | (ullmax / ull) | (ullmax % ull));
6109 if ac_fn_c_try_link
"$LINENO"; then :
6110 if test "$cross_compiling" = yes; then :
6111 ac_cv_type_long_long_int
=yes
6113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6118 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6119 # define LLONG_MAX (HALF - 1 + HALF)
6124 long long int n = 1;
6128 long long int m = n << i;
6131 if (LLONG_MAX / 2 < m)
6139 if ac_fn_c_try_run
"$LINENO"; then :
6140 ac_cv_type_long_long_int
=yes
6142 ac_cv_type_long_long_int
=no
6144 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6145 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6149 ac_cv_type_long_long_int
=no
6151 rm -f core conftest.err conftest.
$ac_objext \
6152 conftest
$ac_exeext conftest.
$ac_ext
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6155 $as_echo "$ac_cv_type_long_long_int" >&6; }
6156 if test $ac_cv_type_long_long_int = yes; then
6158 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6164 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6165 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6167 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6170 test $ac_cv_type_long_long_int = yes \
6171 && ac_type
='long long int' \
6172 || ac_type
='long int'
6174 cat >>confdefs.h
<<_ACEOF
6175 #define intmax_t $ac_type
6182 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6183 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6185 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6188 for ac_type
in 'int' 'long int' 'long long int'; do
6189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 $ac_includes_default
6195 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6202 if ac_fn_c_try_compile
"$LINENO"; then :
6204 cat >>confdefs.h
<<_ACEOF
6205 #define intptr_t $ac_type
6210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6211 test -z "$ac_type" && break
6216 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6217 case $ac_cv_c_uint8_t in #(
6221 $as_echo "#define _UINT8_T 1" >>confdefs.h
6224 cat >>confdefs.h
<<_ACEOF
6225 #define uint8_t $ac_cv_c_uint8_t
6230 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6231 case $ac_cv_c_uint16_t in #(
6236 cat >>confdefs.h
<<_ACEOF
6237 #define uint16_t $ac_cv_c_uint16_t
6242 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6243 case $ac_cv_c_uint32_t in #(
6247 $as_echo "#define _UINT32_T 1" >>confdefs.h
6250 cat >>confdefs.h
<<_ACEOF
6251 #define uint32_t $ac_cv_c_uint32_t
6256 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6257 case $ac_cv_c_uint64_t in #(
6261 $as_echo "#define _UINT64_T 1" >>confdefs.h
6264 cat >>confdefs.h
<<_ACEOF
6265 #define uint64_t $ac_cv_c_uint64_t
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6272 $as_echo_n "checking for unsigned long long int... " >&6; }
6273 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6274 $as_echo_n "(cached) " >&6
6276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6279 /* For now, do not test the preprocessor; as of 2007 there are too many
6280 implementations with broken preprocessors. Perhaps this can
6281 be revisited in 2012. In the meantime, code should not expect
6282 #if to work with literals wider than 32 bits. */
6283 /* Test literals. */
6284 long long int ll = 9223372036854775807ll;
6285 long long int nll = -9223372036854775807LL;
6286 unsigned long long int ull = 18446744073709551615ULL;
6287 /* Test constant expressions. */
6288 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6290 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6296 /* Test availability of runtime routines for shift and division. */
6297 long long int llmax = 9223372036854775807ll;
6298 unsigned long long int ullmax = 18446744073709551615ull;
6299 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6300 | (llmax / ll) | (llmax % ll)
6301 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6302 | (ullmax / ull) | (ullmax % ull));
6308 if ac_fn_c_try_link
"$LINENO"; then :
6309 ac_cv_type_unsigned_long_long_int
=yes
6311 ac_cv_type_unsigned_long_long_int
=no
6313 rm -f core conftest.err conftest.
$ac_objext \
6314 conftest
$ac_exeext conftest.
$ac_ext
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6317 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6318 if test $ac_cv_type_unsigned_long_long_int = yes; then
6320 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6326 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6327 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6329 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6332 test $ac_cv_type_unsigned_long_long_int = yes \
6333 && ac_type
='unsigned long long int' \
6334 || ac_type
='unsigned long int'
6336 cat >>confdefs.h
<<_ACEOF
6337 #define uintmax_t $ac_type
6344 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6345 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6347 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6350 for ac_type
in 'unsigned int' 'unsigned long int' \
6351 'unsigned long long int'; do
6352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354 $ac_includes_default
6358 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6365 if ac_fn_c_try_compile
"$LINENO"; then :
6367 cat >>confdefs.h
<<_ACEOF
6368 #define uintptr_t $ac_type
6373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6374 test -z "$ac_type" && break
6392 # ---------------------
6393 # Warnings and checking
6394 # ---------------------
6396 # Check $CC warning features (if it's GCC).
6397 # We want to use -pedantic, but we don't want warnings about
6400 # * overlong strings
6401 # So, we only use -pedantic if we can disable those warnings.
6404 save_CFLAGS
="$CFLAGS"
6405 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6406 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6409 $as_echo_n "checking whether $CC supports $option... " >&6; }
6410 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6411 $as_echo_n "(cached) " >&6
6414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6425 if ac_fn_c_try_compile
"$LINENO"; then :
6426 eval "$as_acx_Woption=yes"
6428 eval "$as_acx_Woption=no"
6430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6433 eval ac_res
=\$
$as_acx_Woption
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6435 $as_echo "$ac_res" >&6; }
6436 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6437 loose_warn
="$loose_warn${loose_warn:+ }$option"
6440 CFLAGS
="$save_CFLAGS"
6443 save_CFLAGS
="$CFLAGS"
6444 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6445 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6448 $as_echo_n "checking whether $CC supports $option... " >&6; }
6449 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6450 $as_echo_n "(cached) " >&6
6453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6464 if ac_fn_c_try_compile
"$LINENO"; then :
6465 eval "$as_acx_Woption=yes"
6467 eval "$as_acx_Woption=no"
6469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6472 eval ac_res
=\$
$as_acx_Woption
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6474 $as_echo "$ac_res" >&6; }
6475 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6476 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6479 CFLAGS
="$save_CFLAGS"
6482 save_CFLAGS
="$CFLAGS"
6483 for option
in -Wmissing-format-attribute; do
6484 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6487 $as_echo_n "checking whether $CC supports $option... " >&6; }
6488 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6489 $as_echo_n "(cached) " >&6
6492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6503 if ac_fn_c_try_compile
"$LINENO"; then :
6504 eval "$as_acx_Woption=yes"
6506 eval "$as_acx_Woption=no"
6508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6511 eval ac_res
=\$
$as_acx_Woption
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6513 $as_echo "$ac_res" >&6; }
6514 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6515 strict_warn
="$strict_warn${strict_warn:+ }$option"
6518 CFLAGS
="$save_CFLAGS"
6521 save_CFLAGS
="$CFLAGS"
6522 for option
in -Wold-style-definition -Wc++-compat; do
6523 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6526 $as_echo_n "checking whether $CC supports $option... " >&6; }
6527 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6528 $as_echo_n "(cached) " >&6
6531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6542 if ac_fn_c_try_compile
"$LINENO"; then :
6543 eval "$as_acx_Woption=yes"
6545 eval "$as_acx_Woption=no"
6547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6550 eval ac_res
=\$
$as_acx_Woption
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6552 $as_echo "$ac_res" >&6; }
6553 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6554 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6557 CFLAGS
="$save_CFLAGS"
6559 if test "$GCC" = yes; then :
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6561 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6562 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6565 save_CFLAGS
="$CFLAGS"
6566 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6578 if ac_fn_c_try_compile
"$LINENO"; then :
6579 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6581 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6584 CFLAGS
="$save_CFLAGS"
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6587 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6588 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6589 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6594 # Check whether --enable-werror-always was given.
6595 if test "${enable_werror_always+set}" = set; then :
6596 enableval
=$enable_werror_always;
6598 enable_werror_always
=no
6601 if test $enable_werror_always = yes; then :
6602 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6607 # The above macros do nothing if the compiler is not GCC. However, the
6608 # Makefile has more goo to add other flags, so these variables are used
6609 # to enable warnings only for GCC.
6612 if test "x$GCC" = "xyes"; then
6613 warn_cflags
='$(GCC_WARN_CFLAGS)'
6614 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6619 # Enable expensive internal checks
6621 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6625 # Check whether --enable-checking was given.
6626 if test "${enable_checking+set}" = set; then :
6627 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6630 # Determine the default checks.
6631 if test x
$is_release = x
; then
6632 ac_checking_flags
=yes
6634 ac_checking_flags
=release
6638 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6639 for check
in release
$ac_checking_flags
6642 # these set all the flags to specific states
6643 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6644 ac_fold_checking
= ; ac_gc_checking
=1 ;
6645 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6646 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6647 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6648 ac_types_checking
=1 ;;
6649 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6650 ac_fold_checking
= ; ac_gc_checking
= ;
6651 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6652 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6653 ac_tree_checking
= ; ac_valgrind_checking
= ;
6654 ac_types_checking
= ;;
6655 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6656 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6657 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6658 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6659 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6660 ac_types_checking
=1 ;;
6661 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6662 ac_fold_checking
= ; ac_gc_checking
= ;
6663 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6664 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6665 ac_tree_checking
= ; ac_valgrind_checking
= ;
6666 ac_types_checking
= ;;
6667 # these enable particular checks
6668 assert
) ac_assert_checking
=1 ;;
6669 df
) ac_df_checking
=1 ;;
6670 fold) ac_fold_checking
=1 ;;
6671 gc
) ac_gc_checking
=1 ;;
6672 gcac
) ac_gc_always_collect
=1 ;;
6673 gimple
) ac_gimple_checking
=1 ;;
6674 misc
) ac_checking
=1 ;;
6675 rtl
) ac_rtl_checking
=1 ;;
6676 rtlflag
) ac_rtlflag_checking
=1 ;;
6677 runtime
) ac_runtime_checking
=1 ;;
6678 tree
) ac_tree_checking
=1 ;;
6679 types
) ac_types_checking
=1 ;;
6680 valgrind
) ac_valgrind_checking
=1 ;;
6681 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6687 if test x
$ac_checking != x
; then
6689 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6691 nocommon_flag
=-fno-common
6694 if test x
$ac_df_checking != x
; then
6696 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6699 if test x
$ac_assert_checking != x
; then
6701 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6704 if test x
$ac_gimple_checking != x
; then
6706 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6710 if test x
$ac_runtime_checking != x
; then
6712 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6715 if test x
$ac_tree_checking != x
; then
6717 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6719 TREEBROWSER
=tree-browser.o
6721 if test x
$ac_types_checking != x
; then
6723 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6727 if test x
$ac_rtl_checking != x
; then
6729 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6732 if test x
$ac_rtlflag_checking != x
; then
6734 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6737 if test x
$ac_gc_checking != x
; then
6739 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6742 if test x
$ac_gc_always_collect != x
; then
6744 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6747 if test x
$ac_fold_checking != x
; then
6749 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6752 valgrind_path_defines
=
6755 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6756 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6764 if test x
$ac_valgrind_checking != x
; then
6765 # It is certainly possible that there's valgrind but no valgrind.h.
6766 # GCC relies on making annotations so we must have both.
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6768 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 #include <valgrind/memcheck.h>
6772 #ifndef VALGRIND_DISCARD
6773 #error VALGRIND_DISCARD not defined
6776 if ac_fn_c_try_cpp
"$LINENO"; then :
6777 gcc_cv_header_valgrind_memcheck_h
=yes
6779 gcc_cv_header_valgrind_memcheck_h
=no
6781 rm -f conftest.err conftest.
$ac_ext
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6783 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6785 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 #include <memcheck.h>
6789 #ifndef VALGRIND_DISCARD
6790 #error VALGRIND_DISCARD not defined
6793 if ac_fn_c_try_cpp
"$LINENO"; then :
6794 gcc_cv_header_memcheck_h
=yes
6796 gcc_cv_header_memcheck_h
=no
6798 rm -f conftest.err conftest.
$ac_ext
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6800 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6802 # Prepare PATH_SEPARATOR.
6803 # The user is always right.
6804 if test "${PATH_SEPARATOR+set}" != set; then
6805 echo "#! /bin/sh" >conf$$.sh
6806 echo "exit 0" >>conf$$.sh
6808 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6816 # Find out how to test for executable files. Don't use a zero-byte file,
6817 # as systems may use methods other than mode bits to determine executability.
6818 cat >conf$$.
file <<_ASEOF
6822 chmod +x conf$$.
file
6823 if test -x conf$$.
file >/dev
/null
2>&1; then
6824 ac_executable_p
="test -x"
6826 ac_executable_p
="test -f"
6830 # Extract the first word of "valgrind", so it can be a program name with args.
6831 set dummy valgrind
; ac_word
=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6835 $as_echo_n "(cached) " >&6
6837 case "$valgrind_path" in
6839 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6842 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6843 for ac_dir
in $PATH; do
6845 test -z "$ac_dir" && ac_dir
=.
6846 for ac_exec_ext
in '' $ac_executable_extensions; do
6847 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6848 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6849 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6859 valgrind_path
="$ac_cv_path_valgrind_path"
6860 if test -n "$valgrind_path"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6862 $as_echo "$valgrind_path" >&6; }
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6868 if test "x$valgrind_path" = "x" \
6869 ||
(test $have_valgrind_h = no \
6870 && test $gcc_cv_header_memcheck_h = no \
6871 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6872 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6874 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6875 valgrind_command
="$valgrind_path -q"
6877 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6879 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6881 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6884 if test $gcc_cv_header_memcheck_h = yes; then
6886 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6893 # Enable code coverage collection
6894 # Check whether --enable-coverage was given.
6895 if test "${enable_coverage+set}" = set; then :
6896 enableval
=$enable_coverage; case "${enableval}" in
6898 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6901 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6904 # a.k.a. --disable-coverage
6908 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6917 # Check whether --enable-gather-detailed-mem-stats was given.
6918 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6919 enableval
=$enable_gather_detailed_mem_stats;
6921 enable_gather_detailed_mem_stats
=no
6924 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6926 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6930 # -------------------------------
6931 # Miscenalleous configure options
6932 # -------------------------------
6934 # See if we are building gcc with C++.
6935 # Check whether --enable-build-with-cxx was given.
6936 if test "${enable_build_with_cxx+set}" = set; then :
6937 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6939 ENABLE_BUILD_WITH_CXX
=no
6943 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6945 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6951 # Check whether --with-stabs was given.
6952 if test "${with_stabs+set}" = set; then :
6953 withval
=$with_stabs; stabs
="$with_stabs"
6959 # Determine whether or not multilibs are enabled.
6960 # Check whether --enable-multilib was given.
6961 if test "${enable_multilib+set}" = set; then :
6962 enableval
=$enable_multilib;
6969 # Enable __cxa_atexit for C++.
6970 # Check whether --enable-__cxa_atexit was given.
6971 if test "${enable___cxa_atexit+set}" = set; then :
6972 enableval
=$enable___cxa_atexit;
6976 # Enable C extension for decimal float if target supports it.
6978 # Check whether --enable-decimal-float was given.
6979 if test "${enable_decimal_float+set}" = set; then :
6980 enableval
=$enable_decimal_float;
6981 case $enable_decimal_float in
6982 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6983 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6984 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6990 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6991 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6993 enable_decimal_float
=yes
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6997 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6998 enable_decimal_float
=no
7005 # x86's use BID format instead of DPD
7006 case x
$enable_decimal_float in
7009 i?
86*-*-* | x86_64
*-*-*)
7010 enable_decimal_float
=bid
7013 enable_decimal_float
=dpd
7016 default_decimal_float
=$enable_decimal_float
7019 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7020 # dependency on libdecnumber.
7021 default_decimal_float
=dpd
7028 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7030 cat >>confdefs.h
<<_ACEOF
7031 #define ENABLE_DECIMAL_FLOAT $dfp
7035 # Use default_decimal_float for dependency.
7036 enable_decimal_float
=$default_decimal_float
7038 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7040 cat >>confdefs.h
<<_ACEOF
7041 #define ENABLE_DECIMAL_BID_FORMAT $bid
7045 # Enable C extension for fixed-point arithmetic.
7046 # Check whether --enable-fixed-point was given.
7047 if test "${enable_fixed_point+set}" = set; then :
7048 enableval
=$enable_fixed_point;
7053 enable_fixed_point
=yes
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7060 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7061 enable_fixed_point
=no
7064 enable_fixed_point
=yes
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7070 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7071 enable_fixed_point
=no
7079 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7081 cat >>confdefs.h
<<_ACEOF
7082 #define ENABLE_FIXED_POINT $fixedpoint
7087 # Pass with no value to take the default
7088 # Pass with a value to specify a thread package
7089 # Check whether --enable-threads was given.
7090 if test "${enable_threads+set}" = set; then :
7091 enableval
=$enable_threads;
7097 # Check whether --enable-tls was given.
7098 if test "${enable_tls+set}" = set; then :
7099 enableval
=$enable_tls;
7102 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7103 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7111 # Check whether --enable-objc-gc was given.
7112 if test "${enable_objc_gc+set}" = set; then :
7113 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7124 # Check whether --with-dwarf2 was given.
7125 if test "${with_dwarf2+set}" = set; then :
7126 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7132 # Check whether --enable-shared was given.
7133 if test "${enable_shared+set}" = set; then :
7134 enableval
=$enable_shared;
7135 case $enable_shared in
7139 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7140 for pkg
in $enableval; do
7141 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7156 # Check whether --with-native-system-header-dir was given.
7157 if test "${with_native_system_header_dir+set}" = set; then :
7158 withval
=$with_native_system_header_dir;
7159 case ${with_native_system_header_dir} in
7160 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7161 /* |
[A-Za-z
]:[\\/]*) ;;
7162 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7164 configured_native_system_header_dir
="${withval}"
7167 configured_native_system_header_dir
=
7172 # Check whether --with-build-sysroot was given.
7173 if test "${with_build_sysroot+set}" = set; then :
7174 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7175 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7178 SYSROOT_CFLAGS_FOR_TARGET
=
7184 # Check whether --with-sysroot was given.
7185 if test "${with_sysroot+set}" = set; then :
7186 withval
=$with_sysroot;
7187 case ${with_sysroot} in
7188 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7189 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7192 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7193 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7195 if test "x$prefix" = xNONE
; then
7196 test_prefix
=/usr
/local
7200 if test "x$exec_prefix" = xNONE
; then
7201 test_exec_prefix
=$test_prefix
7203 test_exec_prefix
=$exec_prefix
7205 case ${TARGET_SYSTEM_ROOT} in
7206 "${test_prefix}"|
"${test_prefix}/"*|\
7207 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7208 '${prefix}'|
'${prefix}/'*|\
7209 '${exec_prefix}'|
'${exec_prefix}/'*)
7210 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7211 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7218 TARGET_SYSTEM_ROOT_DEFINE
=
7219 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7228 # Check whether --with-specs was given.
7229 if test "${with_specs+set}" = set; then :
7230 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7240 # Check whether --with-pkgversion was given.
7241 if test "${with_pkgversion+set}" = set; then :
7242 withval
=$with_pkgversion; case "$withval" in
7243 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7245 *) PKGVERSION
="($withval) " ;;
7256 # Check whether --with-bugurl was given.
7257 if test "${with_bugurl+set}" = set; then :
7258 withval
=$with_bugurl; case "$withval" in
7259 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7262 *) BUGURL
="$withval"
7266 BUGURL
="http://gcc.gnu.org/bugs.html"
7276 REPORT_BUGS_TO
="<$BUGURL>"
7277 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7284 # Sanity check enable_languages in case someone does not run the toplevel
7285 # configure # script.
7286 # Check whether --enable-languages was given.
7287 if test "${enable_languages+set}" = set; then :
7288 enableval
=$enable_languages; case ,${enable_languages}, in
7290 # go safe -- we cannot be much sure without the toplevel
7292 # analysis of which target libs are present and usable
7296 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7301 enable_languages
=c
,${enable_languages}
7310 # Check whether --with-multilib-list was given.
7311 if test "${with_multilib_list+set}" = set; then :
7312 withval
=$with_multilib_list; :
7314 with_multilib_list
=default
7318 # -------------------------
7319 # Checks for other programs
7320 # -------------------------
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7323 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7325 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7326 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7327 $as_echo_n "(cached) " >&6
7329 cat >conftest.
make <<\_ACEOF
7332 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7334 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7335 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7337 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7339 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7343 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7345 $as_echo "yes" >&6; }
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7350 SET_MAKE
="MAKE=${MAKE-make}"
7354 # Find some useful tools
7355 for ac_prog
in gawk mawk nawk
awk
7357 # Extract the first word of "$ac_prog", so it can be a program name with args.
7358 set dummy
$ac_prog; ac_word
=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if test "${ac_cv_prog_AWK+set}" = set; then :
7362 $as_echo_n "(cached) " >&6
7364 if test -n "$AWK"; then
7365 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7371 test -z "$as_dir" && as_dir
=.
7372 for ac_exec_ext
in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_prog_AWK
="$ac_prog"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 if test -n "$AWK"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7387 $as_echo "$AWK" >&6; }
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7394 test -n "$AWK" && break
7397 # We need awk to create options.c and options.h.
7398 # Bail out if it's missing.
7400 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7404 $as_echo_n "checking whether ln -s works... " >&6; }
7405 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7408 rm -f conftestdata_t
7409 echo >conftestdata_f
7410 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7412 gcc_cv_prog_LN_S
="ln -s"
7414 if ln conftestdata_f conftestdata_t
2>/dev
/null
7418 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7420 gcc_cv_prog_LN_S
="cp -p"
7426 rm -f conftestdata_f conftestdata_t
7429 LN_S
="$gcc_cv_prog_LN_S"
7430 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7432 $as_echo "yes" >&6; }
7434 if test "$gcc_cv_prog_LN_S" = "ln"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7436 $as_echo "no, using ln" >&6; }
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7439 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7444 $as_echo_n "checking whether ln works... " >&6; }
7445 if test "${acx_cv_prog_LN+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7448 rm -f conftestdata_t
7449 echo >conftestdata_f
7450 if ln conftestdata_f conftestdata_t
2>/dev
/null
7456 rm -f conftestdata_f conftestdata_t
7459 if test $acx_cv_prog_LN = no
; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7462 $as_echo "no, using $LN" >&6; }
7464 LN
="$acx_cv_prog_LN"
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7466 $as_echo "yes" >&6; }
7469 if test -n "$ac_tool_prefix"; then
7470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7471 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7477 if test -n "$RANLIB"; then
7478 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir
=.
7485 for ac_exec_ext
in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 RANLIB
=$ac_cv_prog_RANLIB
7498 if test -n "$RANLIB"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7500 $as_echo "$RANLIB" >&6; }
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7508 if test -z "$ac_cv_prog_RANLIB"; then
7509 ac_ct_RANLIB
=$RANLIB
7510 # Extract the first word of "ranlib", so it can be a program name with args.
7511 set dummy ranlib
; ac_word
=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7515 $as_echo_n "(cached) " >&6
7517 if test -n "$ac_ct_RANLIB"; then
7518 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir
=.
7525 for ac_exec_ext
in '' $ac_executable_extensions; do
7526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7527 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7538 if test -n "$ac_ct_RANLIB"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7540 $as_echo "$ac_ct_RANLIB" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7546 if test "x$ac_ct_RANLIB" = x
; then
7549 case $cross_compiling:$ac_tool_warned in
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553 ac_tool_warned
=yes ;;
7555 RANLIB
=$ac_ct_RANLIB
7558 RANLIB
="$ac_cv_prog_RANLIB"
7563 # By default, the Darwin ranlib will not treat common symbols as
7564 # definitions when building the archive table of contents. Other
7565 # ranlibs do that; pass an option to the Darwin ranlib that makes
7566 # it behave similarly.
7574 # Find a good install program. We prefer a C program (faster),
7575 # so one script is as good as another. But avoid the broken or
7576 # incompatible versions:
7577 # SysV /etc/install, /usr/sbin/install
7578 # SunOS /usr/etc/install
7579 # IRIX /sbin/install
7581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7583 # ./install, which can be erroneously created by make from ./install.sh.
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7585 $as_echo_n "checking for a BSD compatible install... " >&6; }
7586 if test -z "$INSTALL"; then
7587 if test "${ac_cv_path_install+set}" = set; then :
7588 $as_echo_n "(cached) " >&6
7590 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7591 for ac_dir
in $PATH; do
7592 # Account for people who put trailing slashes in PATH elements.
7594 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7596 # OSF1 and SCO ODT 3.0 have their own names for install.
7597 for ac_prog
in ginstall scoinst
install; do
7598 if test -f $ac_dir/$ac_prog; then
7599 if test $ac_prog = install &&
7600 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7601 # AIX install. It has an incompatible calling convention.
7602 # OSF/1 installbsd also uses dspmsg, but is usable.
7605 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7616 if test "${ac_cv_path_install+set}" = set; then
7617 INSTALL
="$ac_cv_path_install"
7619 # As a last resort, use the slow shell script. We don't cache a
7620 # path for INSTALL within a source directory, because that will
7621 # break other packages using the cache if that directory is
7622 # removed, or if the path is relative.
7623 INSTALL
="$ac_install_sh"
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7627 $as_echo "$INSTALL" >&6; }
7629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7630 # It thinks the first close brace ends the variable substitution.
7631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7633 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7636 # See if cmp has --ignore-initial.
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7638 $as_echo_n "checking for cmp's capabilities... " >&6; }
7639 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7644 gcc_cv_prog_cmp_skip
=slowcompare
7645 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7646 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7649 gcc_cv_prog_cmp_skip
=gnucompare
7652 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7653 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7654 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7657 gcc_cv_prog_cmp_skip
=fastcompare
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7665 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7666 make_compare_target
=$gcc_cv_prog_cmp_skip
7670 # See if we have the mktemp command.
7671 # Extract the first word of "mktemp", so it can be a program name with args.
7672 set dummy mktemp
; ac_word
=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7676 $as_echo_n "(cached) " >&6
7678 if test -n "$have_mktemp_command"; then
7679 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir
=.
7686 for ac_exec_ext
in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_prog_have_mktemp_command
="yes"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7699 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7700 if test -n "$have_mktemp_command"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7702 $as_echo "$have_mktemp_command" >&6; }
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7710 # See if makeinfo has been installed and is modern enough
7711 # that we can use it.
7713 # Extract the first word of "makeinfo", so it can be a program name with args.
7714 set dummy makeinfo
; ac_word
=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
7720 if test -n "$MAKEINFO"; then
7721 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7727 test -z "$as_dir" && as_dir
=.
7728 for ac_exec_ext
in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 ac_cv_prog_MAKEINFO
="makeinfo"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 MAKEINFO
=$ac_cv_prog_MAKEINFO
7741 if test -n "$MAKEINFO"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7743 $as_echo "$MAKEINFO" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7750 if test -n "$MAKEINFO"; then
7751 # Found it, now check the version.
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7753 $as_echo_n "checking for modern makeinfo... " >&6; }
7754 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7757 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7758 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7760 case $ac_prog_version in
7761 '') gcc_cv_prog_makeinfo_modern
=no
;;
7762 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7763 *) gcc_cv_prog_makeinfo_modern
=no
;;
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7768 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7770 gcc_cv_prog_makeinfo_modern
=no
7772 if test $gcc_cv_prog_makeinfo_modern = no
; then
7773 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7776 if test $gcc_cv_prog_makeinfo_modern = no
; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7778 *** Makeinfo is missing or too old.
7779 *** Info documentation will not be built." >&5
7780 $as_echo "$as_me: WARNING:
7781 *** Makeinfo is missing or too old.
7782 *** Info documentation will not be built." >&2;}
7789 # Is pod2man recent enough to regenerate manpages?
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7791 $as_echo_n "checking for recent Pod::Man... " >&6; }
7792 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7794 $as_echo "yes" >&6; }
7795 GENERATED_MANPAGES
=generated-manpages
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7803 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7808 # Extract the first word of "$ac_prog", so it can be a program name with args.
7809 set dummy
$ac_prog; ac_word
=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if test "${ac_cv_prog_FLEX+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7815 if test -n "$FLEX"; then
7816 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7822 test -z "$as_dir" && as_dir
=.
7823 for ac_exec_ext
in '' $ac_executable_extensions; do
7824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7825 ac_cv_prog_FLEX
="$ac_prog"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 FLEX
=$ac_cv_prog_FLEX
7836 if test -n "$FLEX"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7838 $as_echo "$FLEX" >&6; }
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7845 test -n "$FLEX" && break
7847 test -n "$FLEX" || FLEX
="$MISSING flex"
7851 for ac_prog
in bison
7853 # Extract the first word of "$ac_prog", so it can be a program name with args.
7854 set dummy
$ac_prog; ac_word
=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if test "${ac_cv_prog_BISON+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7860 if test -n "$BISON"; then
7861 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7867 test -z "$as_dir" && as_dir
=.
7868 for ac_exec_ext
in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_prog_BISON
="$ac_prog"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 BISON
=$ac_cv_prog_BISON
7881 if test -n "$BISON"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7883 $as_echo "$BISON" >&6; }
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7890 test -n "$BISON" && break
7892 test -n "$BISON" || BISON
="$MISSING bison"
7895 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7896 # check for build == host before using them.
7899 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7900 && test -d ..
/binutils
; then
7901 NM
='${objdir}/../binutils/nm-new'
7903 # Extract the first word of "nm", so it can be a program name with args.
7904 set dummy nm
; ac_word
=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if test "${ac_cv_prog_NM+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7910 if test -n "$NM"; then
7911 ac_cv_prog_NM
="$NM" # Let the user override the test.
7913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7917 test -z "$as_dir" && as_dir
=.
7918 for ac_exec_ext
in '' $ac_executable_extensions; do
7919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7932 if test -n "$NM"; then
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7934 $as_echo "$NM" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7944 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7945 && test -d ..
/binutils
; then
7946 AR
='${objdir}/../binutils/ar'
7948 # Extract the first word of "ar", so it can be a program name with args.
7949 set dummy
ar; ac_word
=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if test "${ac_cv_prog_AR+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7955 if test -n "$AR"; then
7956 ac_cv_prog_AR
="$AR" # Let the user override the test.
7958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7962 test -z "$as_dir" && as_dir
=.
7963 for ac_exec_ext
in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7977 if test -n "$AR"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7979 $as_echo "$AR" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7989 # --------------------
7990 # Checks for C headers
7991 # --------------------
7993 # Need to reject headers which give warnings, so that the -Werror bootstrap
7994 # works later. *sigh* This needs to come before all header checks.
7996 ac_c_preproc_warn_flag
=yes
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7999 $as_echo_n "checking for ANSI C header files... " >&6; }
8000 if test "${ac_cv_header_stdc+set}" = set; then :
8001 $as_echo_n "(cached) " >&6
8003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8018 if ac_fn_c_try_compile
"$LINENO"; then :
8019 ac_cv_header_stdc
=yes
8021 ac_cv_header_stdc
=no
8023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8025 if test $ac_cv_header_stdc = yes; then
8026 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8033 $EGREP "memchr" >/dev
/null
2>&1; then :
8036 ac_cv_header_stdc
=no
8042 if test $ac_cv_header_stdc = yes; then
8043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8050 $EGREP "free" >/dev
/null
2>&1; then :
8053 ac_cv_header_stdc
=no
8059 if test $ac_cv_header_stdc = yes; then
8060 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8061 if test "$cross_compiling" = yes; then :
8064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8068 #if ((' ' & 0x0FF) == 0x020)
8069 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8070 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8072 # define ISLOWER(c) \
8073 (('a' <= (c) && (c) <= 'i') \
8074 || ('j' <= (c) && (c) <= 'r') \
8075 || ('s' <= (c) && (c) <= 'z'))
8076 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8079 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8084 for (i = 0; i < 256; i++)
8085 if (XOR (islower (i), ISLOWER (i))
8086 || toupper (i) != TOUPPER (i))
8091 if ac_fn_c_try_run
"$LINENO"; then :
8094 ac_cv_header_stdc
=no
8096 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8097 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8103 $as_echo "$ac_cv_header_stdc" >&6; }
8104 if test $ac_cv_header_stdc = yes; then
8106 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8111 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8112 if test "${ac_cv_header_time+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h. */
8117 #include <sys/types.h>
8118 #include <sys/time.h>
8124 if ((struct tm *) 0)
8130 if ac_fn_c_try_compile
"$LINENO"; then :
8131 ac_cv_header_time
=yes
8133 ac_cv_header_time
=no
8135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8138 $as_echo "$ac_cv_header_time" >&6; }
8139 if test $ac_cv_header_time = yes; then
8141 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8146 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8147 if test "${gcc_cv_header_string+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8153 #include <strings.h>
8162 if ac_fn_c_try_compile
"$LINENO"; then :
8163 gcc_cv_header_string
=yes
8165 gcc_cv_header_string
=no
8167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8170 $as_echo "$gcc_cv_header_string" >&6; }
8171 if test $gcc_cv_header_string = yes; then
8173 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8178 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8179 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 #include <sys/types.h>
8185 #include <sys/wait.h>
8187 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8190 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8198 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8203 if ac_fn_c_try_compile
"$LINENO"; then :
8204 ac_cv_header_sys_wait_h
=yes
8206 ac_cv_header_sys_wait_h
=no
8208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8211 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8212 if test $ac_cv_header_sys_wait_h = yes; then
8214 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8218 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8219 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8220 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8221 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8223 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8224 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8225 eval as_val
=\$
$as_ac_Header
8226 if test "x$as_val" = x
""yes; then :
8227 cat >>confdefs.h
<<_ACEOF
8228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8235 # Check for thread headers.
8236 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8237 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8243 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8244 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8251 # These tests can't be done till we know if we have limits.h.
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8253 $as_echo_n "checking for CHAR_BIT... " >&6; }
8254 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 #ifdef HAVE_LIMITS_H
8266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8267 $EGREP "found" >/dev
/null
2>&1; then :
8268 gcc_cv_decl_char_bit
=yes
8270 gcc_cv_decl_char_bit
=no
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8277 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8278 if test $gcc_cv_decl_char_bit = no
; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8280 $as_echo_n "checking number of bits in a byte... " >&6; }
8281 if test "${gcc_cv_c_nbby+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
8286 while test $i -lt 65; do
8287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8294 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8295 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8301 if ac_fn_c_try_compile
"$LINENO"; then :
8302 gcc_cv_c_nbby
=$i; break
8304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8307 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8311 $as_echo "$gcc_cv_c_nbby" >&6; }
8312 if test $gcc_cv_c_nbby = failed
; then
8313 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8316 cat >>confdefs.h
<<_ACEOF
8317 #define CHAR_BIT $gcc_cv_c_nbby
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8323 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8324 if test "${ac_cv_c_bigendian+set}" = set; then :
8325 $as_echo_n "(cached) " >&6
8327 ac_cv_c_bigendian
=unknown
8328 # See if we're dealing with a universal compiler.
8329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8331 #ifndef __APPLE_CC__
8332 not a universal capable compiler
8337 if ac_fn_c_try_compile
"$LINENO"; then :
8339 # Check for potential -arch flags. It is not universal unless
8340 # there are at least two -arch flags with different values.
8343 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8344 if test -n "$ac_prev"; then
8346 i?
86 | x86_64 | ppc | ppc64
)
8347 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8350 ac_cv_c_bigendian
=universal
8356 elif test "x$ac_word" = "x-arch"; then
8361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8362 if test $ac_cv_c_bigendian = unknown
; then
8363 # See if sys/param.h defines the BYTE_ORDER macro.
8364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 #include <sys/types.h>
8367 #include <sys/param.h>
8372 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8373 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8382 if ac_fn_c_try_compile
"$LINENO"; then :
8383 # It does; now see whether it defined to BIG_ENDIAN or not.
8384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 #include <sys/types.h>
8387 #include <sys/param.h>
8392 #if BYTE_ORDER != BIG_ENDIAN
8400 if ac_fn_c_try_compile
"$LINENO"; then :
8401 ac_cv_c_bigendian
=yes
8403 ac_cv_c_bigendian
=no
8405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8409 if test $ac_cv_c_bigendian = unknown
; then
8410 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8418 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8426 if ac_fn_c_try_compile
"$LINENO"; then :
8427 # It does; now see whether it defined to _BIG_ENDIAN or not.
8428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8443 if ac_fn_c_try_compile
"$LINENO"; then :
8444 ac_cv_c_bigendian
=yes
8446 ac_cv_c_bigendian
=no
8448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8452 if test $ac_cv_c_bigendian = unknown
; then
8453 # Compile a test program.
8454 if test "$cross_compiling" = yes; then :
8455 # Try to guess by grepping values from an object file.
8456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8458 short int ascii_mm[] =
8459 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8460 short int ascii_ii[] =
8461 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8462 int use_ascii (int i) {
8463 return ascii_mm[i] + ascii_ii[i];
8465 short int ebcdic_ii[] =
8466 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8467 short int ebcdic_mm[] =
8468 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8469 int use_ebcdic (int i) {
8470 return ebcdic_mm[i] + ebcdic_ii[i];
8477 return use_ascii (foo) == use_ebcdic (foo);
8482 if ac_fn_c_try_compile
"$LINENO"; then :
8483 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8484 ac_cv_c_bigendian
=yes
8486 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8487 if test "$ac_cv_c_bigendian" = unknown
; then
8488 ac_cv_c_bigendian
=no
8490 # finding both strings is unlikely to happen, but who knows?
8491 ac_cv_c_bigendian
=unknown
8495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 $ac_includes_default
8504 /* Are we little or big endian? From Harbison&Steele. */
8508 char c[sizeof (long int)];
8511 return u.c[sizeof (long int) - 1] == 1;
8517 if ac_fn_c_try_run
"$LINENO"; then :
8518 ac_cv_c_bigendian
=no
8520 ac_cv_c_bigendian
=yes
8522 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8523 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8529 $as_echo "$ac_cv_c_bigendian" >&6; }
8530 case $ac_cv_c_bigendian in #(
8532 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8538 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8542 as_fn_error
"unknown endianness
8543 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8547 # ----------------------
8548 # Checks for C++ headers
8549 # ----------------------
8552 ac_cpp
='$CXXCPP $CPPFLAGS'
8553 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8554 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8555 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8557 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8558 if test -z "$CXXCPP"; then
8559 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8562 # Double quotes because CXXCPP needs to be expanded
8563 for CXXCPP
in "$CXX -E" "/lib/cpp"
8566 for ac_cxx_preproc_warn_flag
in '' yes
8568 # Use a header file that comes with gcc, so configuring glibc
8569 # with a fresh cross-compiler works.
8570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8571 # <limits.h> exists even on freestanding compilers.
8572 # On the NeXT, cc -E runs the code through the compiler's parser,
8573 # not just through cpp. "Syntax error" is here to catch this case.
8574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8577 # include <limits.h>
8579 # include <assert.h>
8583 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8586 # Broken: fails on valid input.
8589 rm -f conftest.err conftest.
$ac_ext
8591 # OK, works on sane cases. Now check whether nonexistent headers
8592 # can be detected and how.
8593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595 #include <ac_nonexistent.h>
8597 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8598 # Broken: success on invalid input.
8601 # Passes both tests.
8605 rm -f conftest.err conftest.
$ac_ext
8608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8609 rm -f conftest.err conftest.
$ac_ext
8610 if $ac_preproc_ok; then :
8615 ac_cv_prog_CXXCPP
=$CXXCPP
8618 CXXCPP
=$ac_cv_prog_CXXCPP
8620 ac_cv_prog_CXXCPP
=$CXXCPP
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8623 $as_echo "$CXXCPP" >&6; }
8625 for ac_cxx_preproc_warn_flag
in '' yes
8627 # Use a header file that comes with gcc, so configuring glibc
8628 # with a fresh cross-compiler works.
8629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8630 # <limits.h> exists even on freestanding compilers.
8631 # On the NeXT, cc -E runs the code through the compiler's parser,
8632 # not just through cpp. "Syntax error" is here to catch this case.
8633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8636 # include <limits.h>
8638 # include <assert.h>
8642 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8645 # Broken: fails on valid input.
8648 rm -f conftest.err conftest.
$ac_ext
8650 # OK, works on sane cases. Now check whether nonexistent headers
8651 # can be detected and how.
8652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8654 #include <ac_nonexistent.h>
8656 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8657 # Broken: success on invalid input.
8660 # Passes both tests.
8664 rm -f conftest.err conftest.
$ac_ext
8667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8668 rm -f conftest.err conftest.
$ac_ext
8669 if $ac_preproc_ok; then :
8672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8675 See \`config.log' for more details." >&5
8676 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8677 See \`config.log' for more details." >&2;}; }
8681 ac_cpp
='$CPP $CPPFLAGS'
8682 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8683 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8684 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8688 ac_cpp
='$CXXCPP $CPPFLAGS'
8689 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8690 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8691 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8696 for ac_header
in unordered_map
8698 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8699 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8700 cat >>confdefs.h
<<_ACEOF
8701 #define HAVE_UNORDERED_MAP 1
8707 for ac_header
in tr1/unordered_map
8709 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8710 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8711 cat >>confdefs.h
<<_ACEOF
8712 #define HAVE_TR1_UNORDERED_MAP 1
8718 for ac_header
in ext
/hash_map
8720 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8721 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8722 cat >>confdefs.h
<<_ACEOF
8723 #define HAVE_EXT_HASH_MAP 1
8731 ac_cpp
='$CPP $CPPFLAGS'
8732 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8733 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8734 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8742 # These libraries may be used by collect2.
8743 # We may need a special search path to get them linked.
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8745 $as_echo_n "checking for collect2 libraries... " >&6; }
8746 if test "${gcc_cv_collect2_libs+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8750 for libs
in '' -lld -lmld \
8751 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8752 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8758 /* Override any GCC internal prototype to avoid an error.
8759 Use char because int might match the return type of a GCC
8760 builtin and then its argument prototype would still apply. */
8773 if ac_fn_c_try_link
"$LINENO"; then :
8774 gcc_cv_collect2_libs
="$libs"; break
8776 rm -f core conftest.err conftest.
$ac_objext \
8777 conftest
$ac_exeext conftest.
$ac_ext
8780 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8783 $as_echo "$gcc_cv_collect2_libs" >&6; }
8784 case $gcc_cv_collect2_libs in
8786 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8790 # When building Ada code on Alpha, we need exc_resume which is usually in
8791 # -lexc. So test for it.
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8795 $as_echo_n "checking for library containing exc_resume... " >&6; }
8796 if test "${ac_cv_search_exc_resume+set}" = set; then :
8797 $as_echo_n "(cached) " >&6
8799 ac_func_search_save_LIBS
=$LIBS
8800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8803 /* Override any GCC internal prototype to avoid an error.
8804 Use char because int might match the return type of a GCC
8805 builtin and then its argument prototype would still apply. */
8813 return exc_resume ();
8818 for ac_lib
in '' exc
; do
8819 if test -z "$ac_lib"; then
8820 ac_res
="none required"
8823 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8825 if ac_fn_c_try_link
"$LINENO"; then :
8826 ac_cv_search_exc_resume
=$ac_res
8828 rm -f core conftest.err conftest.
$ac_objext \
8830 if test "${ac_cv_search_exc_resume+set}" = set; then :
8834 if test "${ac_cv_search_exc_resume+set}" = set; then :
8837 ac_cv_search_exc_resume
=no
8840 LIBS
=$ac_func_search_save_LIBS
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8843 $as_echo "$ac_cv_search_exc_resume" >&6; }
8844 ac_res
=$ac_cv_search_exc_resume
8845 if test "$ac_res" != no
; then :
8846 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8854 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8858 $as_echo_n "checking for library containing kstat_open... " >&6; }
8859 if test "${ac_cv_search_kstat_open+set}" = set; then :
8860 $as_echo_n "(cached) " >&6
8862 ac_func_search_save_LIBS
=$LIBS
8863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8866 /* Override any GCC internal prototype to avoid an error.
8867 Use char because int might match the return type of a GCC
8868 builtin and then its argument prototype would still apply. */
8876 return kstat_open ();
8881 for ac_lib
in '' kstat
; do
8882 if test -z "$ac_lib"; then
8883 ac_res
="none required"
8886 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8888 if ac_fn_c_try_link
"$LINENO"; then :
8889 ac_cv_search_kstat_open
=$ac_res
8891 rm -f core conftest.err conftest.
$ac_objext \
8893 if test "${ac_cv_search_kstat_open+set}" = set; then :
8897 if test "${ac_cv_search_kstat_open+set}" = set; then :
8900 ac_cv_search_kstat_open
=no
8903 LIBS
=$ac_func_search_save_LIBS
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8906 $as_echo "$ac_cv_search_kstat_open" >&6; }
8907 ac_res
=$ac_cv_search_kstat_open
8908 if test "$ac_res" != no
; then :
8909 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8913 EXTRA_GCC_LIBS
="$LIBS"
8917 # Some systems put ldexp and frexp in libm instead of libc; assume
8918 # they're both in the same place. jcf-dump needs them.
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8922 $as_echo_n "checking for library containing ldexp... " >&6; }
8923 if test "${ac_cv_search_ldexp+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8926 ac_func_search_save_LIBS
=$LIBS
8927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8930 /* Override any GCC internal prototype to avoid an error.
8931 Use char because int might match the return type of a GCC
8932 builtin and then its argument prototype would still apply. */
8945 for ac_lib
in '' m
; do
8946 if test -z "$ac_lib"; then
8947 ac_res
="none required"
8950 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8952 if ac_fn_c_try_link
"$LINENO"; then :
8953 ac_cv_search_ldexp
=$ac_res
8955 rm -f core conftest.err conftest.
$ac_objext \
8957 if test "${ac_cv_search_ldexp+set}" = set; then :
8961 if test "${ac_cv_search_ldexp+set}" = set; then :
8964 ac_cv_search_ldexp
=no
8967 LIBS
=$ac_func_search_save_LIBS
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8970 $as_echo "$ac_cv_search_ldexp" >&6; }
8971 ac_res
=$ac_cv_search_ldexp
8972 if test "$ac_res" != no
; then :
8973 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8981 # Use <inttypes.h> only if it exists,
8982 # doesn't clash with <sys/types.h>, and declares intmax_t.
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8984 $as_echo_n "checking for inttypes.h... " >&6; }
8985 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8986 $as_echo_n "(cached) " >&6
8988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8990 #include <sys/types.h>
8991 #include <inttypes.h>
9000 if ac_fn_c_try_compile
"$LINENO"; then :
9001 gcc_cv_header_inttypes_h
=yes
9003 gcc_cv_header_inttypes_h
=no
9005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9009 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9010 if test $gcc_cv_header_inttypes_h = yes; then
9012 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9018 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9019 sysconf strsignal getrusage nl_langinfo \
9020 gettimeofday mbstowcs wcswidth mmap setlocale \
9021 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
9023 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9024 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9025 eval as_val
=\$
$as_ac_var
9026 if test "x$as_val" = x
""yes; then :
9027 cat >>confdefs.h
<<_ACEOF
9028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9035 if test x
$ac_cv_func_mbstowcs = xyes
; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9037 $as_echo_n "checking whether mbstowcs works... " >&6; }
9038 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9039 $as_echo_n "(cached) " >&6
9041 if test "$cross_compiling" = yes; then :
9042 gcc_cv_func_mbstowcs_works
=yes
9044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9053 if ac_fn_c_try_run
"$LINENO"; then :
9054 gcc_cv_func_mbstowcs_works
=yes
9056 gcc_cv_func_mbstowcs_works
=no
9058 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9059 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9064 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9065 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9067 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9072 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9073 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9077 cat >>confdefs.h
<<_ACEOF
9083 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9084 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9088 cat >>confdefs.h
<<_ACEOF
9089 #define caddr_t char *
9096 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9097 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9098 gcc_header_sys_mman_h
=yes
9100 gcc_header_sys_mman_h
=no
9103 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9104 if test "x$ac_cv_func_mmap" = x
""yes; then :
9110 if test "$gcc_header_sys_mman_h" != yes \
9111 ||
test "$gcc_func_mmap" != yes; then
9112 gcc_cv_func_mmap_file
=no
9113 gcc_cv_func_mmap_dev_zero
=no
9114 gcc_cv_func_mmap_anon
=no
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9117 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9118 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9119 $as_echo_n "(cached) " >&6
9121 # Add a system to this blacklist if
9122 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9123 # memory area containing the same data that you'd get if you applied
9124 # read() to the same fd. The only system known to have a problem here
9125 # is VMS, where text files have record structure.
9128 gcc_cv_func_mmap_file
=no
;;
9130 gcc_cv_func_mmap_file
=yes;;
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9134 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9136 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9137 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9138 $as_echo_n "(cached) " >&6
9140 # Add a system to this blacklist if it has mmap() but /dev/zero
9141 # does not exist, or if mmapping /dev/zero does not give anonymous
9142 # zeroed pages with both the following properties:
9143 # 1. If you map N consecutive pages in with one call, and then
9144 # unmap any subset of those pages, the pages that were not
9145 # explicitly unmapped remain accessible.
9146 # 2. If you map two adjacent blocks of memory and then unmap them
9147 # both at once, they must both go away.
9148 # Systems known to be in this category are Windows (all variants),
9151 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9152 gcc_cv_func_mmap_dev_zero
=no
;;
9154 gcc_cv_func_mmap_dev_zero
=yes;;
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9158 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9160 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9162 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9163 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168 #include <sys/types.h>
9169 #include <sys/mman.h>
9172 #ifndef MAP_ANONYMOUS
9173 #define MAP_ANONYMOUS MAP_ANON
9179 int n = MAP_ANONYMOUS;
9184 if ac_fn_c_try_compile
"$LINENO"; then :
9185 gcc_cv_decl_map_anon
=yes
9187 gcc_cv_decl_map_anon
=no
9189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9192 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9194 if test $gcc_cv_decl_map_anon = no
; then
9195 gcc_cv_func_mmap_anon
=no
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9198 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9199 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9202 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9203 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9204 # doesn't give anonymous zeroed pages with the same properties listed
9205 # above for use of /dev/zero.
9206 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9208 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9209 gcc_cv_func_mmap_anon
=no
;;
9211 gcc_cv_func_mmap_anon
=yes;;
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9215 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9219 if test $gcc_cv_func_mmap_file = yes; then
9221 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9224 if test $gcc_cv_func_mmap_dev_zero = yes; then
9226 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9229 if test $gcc_cv_func_mmap_anon = yes; then
9231 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9238 # Under VMS, vfork works very differently than on Unix. The standard test
9239 # won't work, and it isn't easily adaptable. It makes more sense to
9241 ac_cv_func_vfork_works
=yes
9244 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9245 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9249 cat >>confdefs.h
<<_ACEOF
9255 for ac_header
in vfork.h
9257 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9258 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9259 cat >>confdefs.h
<<_ACEOF
9260 #define HAVE_VFORK_H 1
9266 for ac_func
in fork vfork
9268 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9269 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9270 eval as_val
=\$
$as_ac_var
9271 if test "x$as_val" = x
""yes; then :
9272 cat >>confdefs.h
<<_ACEOF
9273 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9279 if test "x$ac_cv_func_fork" = xyes
; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9281 $as_echo_n "checking for working fork... " >&6; }
9282 if test "${ac_cv_func_fork_works+set}" = set; then :
9283 $as_echo_n "(cached) " >&6
9285 if test "$cross_compiling" = yes; then :
9286 ac_cv_func_fork_works
=cross
9288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 $ac_includes_default
9295 /* By Ruediger Kuhlmann. */
9302 if ac_fn_c_try_run
"$LINENO"; then :
9303 ac_cv_func_fork_works
=yes
9305 ac_cv_func_fork_works
=no
9307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9313 $as_echo "$ac_cv_func_fork_works" >&6; }
9316 ac_cv_func_fork_works
=$ac_cv_func_fork
9318 if test "x$ac_cv_func_fork_works" = xcross
; then
9320 *-*-amigaos* |
*-*-msdosdjgpp*)
9321 # Override, as these systems have only a dummy fork() stub
9322 ac_cv_func_fork_works
=no
9325 ac_cv_func_fork_works
=yes
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9329 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9331 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9332 if test "x$ac_cv_func_vfork" = xyes
; then
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9334 $as_echo_n "checking for working vfork... " >&6; }
9335 if test "${ac_cv_func_vfork_works+set}" = set; then :
9336 $as_echo_n "(cached) " >&6
9338 if test "$cross_compiling" = yes; then :
9339 ac_cv_func_vfork_works
=cross
9341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9343 /* Thanks to Paul Eggert for this test. */
9344 $ac_includes_default
9345 #include <sys/wait.h>
9349 /* On some sparc systems, changes by the child to local and incoming
9350 argument registers are propagated back to the parent. The compiler
9351 is told about this with #include <vfork.h>, but some compilers
9352 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9353 static variable whose address is put into a register that is
9354 clobbered by the vfork. */
9357 sparc_address_test (int arg)
9359 sparc_address_test (arg) int arg;
9380 pid_t parent = getpid ();
9383 sparc_address_test (0);
9388 /* Here is another test for sparc vfork register problems. This
9389 test uses lots of local variables, at least as many local
9390 variables as main has allocated so far including compiler
9391 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9392 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9393 reuse the register of parent for one of the local variables,
9394 since it will think that parent can't possibly be used any more
9395 in this routine. Assigning to the local variable will thus
9396 munge parent in the parent process. */
9398 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9399 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9400 /* Convince the compiler that p..p7 are live; otherwise, it might
9401 use the same hardware register for all 8 local variables. */
9402 if (p != p1 || p != p2 || p != p3 || p != p4
9403 || p != p5 || p != p6 || p != p7)
9406 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9407 from child file descriptors. If the child closes a descriptor
9408 before it execs or exits, this munges the parent's descriptor
9409 as well. Test for this by closing stdout in the child. */
9410 _exit(close(fileno(stdout)) != 0);
9415 while (wait(&status) != child)
9418 /* Was there some problem with vforking? */
9421 /* Did the child fail? (This shouldn't happen.) */
9424 /* Did the vfork/compiler bug occur? */
9425 || parent != getpid()
9427 /* Did the file descriptor bug occur? */
9428 || fstat(fileno(stdout), &st) != 0
9433 if ac_fn_c_try_run
"$LINENO"; then :
9434 ac_cv_func_vfork_works
=yes
9436 ac_cv_func_vfork_works
=no
9438 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9439 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9444 $as_echo "$ac_cv_func_vfork_works" >&6; }
9447 if test "x$ac_cv_func_fork_works" = xcross
; then
9448 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9450 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9453 if test "x$ac_cv_func_vfork_works" = xyes
; then
9455 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9459 $as_echo "#define vfork fork" >>confdefs.h
9462 if test "x$ac_cv_func_fork_works" = xyes
; then
9464 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9469 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9470 # iconv() prototype.
9472 if test "X$prefix" = "XNONE"; then
9473 acl_final_prefix
="$ac_default_prefix"
9475 acl_final_prefix
="$prefix"
9477 if test "X$exec_prefix" = "XNONE"; then
9478 acl_final_exec_prefix
='${prefix}'
9480 acl_final_exec_prefix
="$exec_prefix"
9482 acl_save_prefix
="$prefix"
9483 prefix
="$acl_final_prefix"
9484 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9485 prefix
="$acl_save_prefix"
9488 # Check whether --with-gnu-ld was given.
9489 if test "${with_gnu_ld+set}" = set; then :
9490 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9495 # Prepare PATH_SEPARATOR.
9496 # The user is always right.
9497 if test "${PATH_SEPARATOR+set}" != set; then
9498 echo "#! /bin/sh" >conf$$.sh
9499 echo "exit 0" >>conf$$.sh
9501 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9509 if test "$GCC" = yes; then
9510 # Check if gcc -print-prog-name=ld gives a path.
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9512 $as_echo_n "checking for ld used by GCC... " >&6; }
9515 # gcc leaves a trailing carriage return which upsets mingw
9516 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9518 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9521 # Accept absolute paths.
9522 [\\/]* |
[A-Za-z
]:[\\/]*)
9523 re_direlt
='/[^/][^/]*/\.\./'
9524 # Canonicalize the path of ld
9525 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9526 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9527 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9529 test -z "$LD" && LD
="$ac_prog"
9532 # If it fails, then pretend we aren't using GCC.
9536 # If it is relative, then search for the first ld in PATH.
9540 elif test "$with_gnu_ld" = yes; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9542 $as_echo_n "checking for GNU ld... " >&6; }
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9545 $as_echo_n "checking for non-GNU ld... " >&6; }
9547 if test "${acl_cv_path_LD+set}" = set; then :
9548 $as_echo_n "(cached) " >&6
9550 if test -z "$LD"; then
9551 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9552 for ac_dir
in $PATH; do
9553 test -z "$ac_dir" && ac_dir
=.
9554 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9555 acl_cv_path_LD
="$ac_dir/$ac_prog"
9556 # Check to see if the program is GNU ld. I'd rather use --version,
9557 # but apparently some GNU ld's only accept -v.
9558 # Break only if it was the GNU/non-GNU ld that we prefer.
9559 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9560 test "$with_gnu_ld" != no
&& break
9562 test "$with_gnu_ld" != yes && break
9568 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9572 LD
="$acl_cv_path_LD"
9573 if test -n "$LD"; then
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9575 $as_echo "$LD" >&6; }
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9580 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9582 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9583 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9586 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9587 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9588 acl_cv_prog_gnu_ld
=yes
9590 acl_cv_prog_gnu_ld
=no
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9594 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9595 with_gnu_ld
=$acl_cv_prog_gnu_ld
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9600 $as_echo_n "checking for shared library run path origin... " >&6; }
9601 if test "${acl_cv_rpath+set}" = set; then :
9602 $as_echo_n "(cached) " >&6
9605 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9606 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9613 $as_echo "$acl_cv_rpath" >&6; }
9615 libext
="$acl_cv_libext"
9616 shlibext
="$acl_cv_shlibext"
9617 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9618 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9619 hardcode_direct
="$acl_cv_hardcode_direct"
9620 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9621 # Check whether --enable-rpath was given.
9622 if test "${enable_rpath+set}" = set; then :
9623 enableval
=$enable_rpath; :
9637 acl_save_prefix
="$prefix"
9638 prefix
="$acl_final_prefix"
9639 acl_save_exec_prefix
="$exec_prefix"
9640 exec_prefix
="$acl_final_exec_prefix"
9642 eval additional_includedir
=\"$includedir\"
9643 eval additional_libdir
=\"$libdir\"
9645 exec_prefix
="$acl_save_exec_prefix"
9646 prefix
="$acl_save_prefix"
9649 # Check whether --with-libiconv-prefix was given.
9650 if test "${with_libiconv_prefix+set}" = set; then :
9651 withval
=$with_libiconv_prefix;
9652 if test "X$withval" = "Xno"; then
9655 if test "X$withval" = "X"; then
9657 acl_save_prefix
="$prefix"
9658 prefix
="$acl_final_prefix"
9659 acl_save_exec_prefix
="$exec_prefix"
9660 exec_prefix
="$acl_final_exec_prefix"
9662 eval additional_includedir
=\"$includedir\"
9663 eval additional_libdir
=\"$libdir\"
9665 exec_prefix
="$acl_save_exec_prefix"
9666 prefix
="$acl_save_prefix"
9669 additional_includedir
="$withval/include"
9670 additional_libdir
="$withval/lib"
9681 names_already_handled
=
9682 names_next_round
='iconv '
9683 while test -n "$names_next_round"; do
9684 names_this_round
="$names_next_round"
9686 for name
in $names_this_round; do
9688 for n
in $names_already_handled; do
9689 if test "$n" = "$name"; then
9694 if test -z "$already_handled"; then
9695 names_already_handled
="$names_already_handled $name"
9696 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9697 eval value
=\"\
$HAVE_LIB$uppername\"
9698 if test -n "$value"; then
9699 if test "$value" = yes; then
9700 eval value
=\"\
$LIB$uppername\"
9701 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9702 eval value
=\"\
$LTLIB$uppername\"
9703 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9712 if test $use_additional = yes; then
9713 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9714 found_dir
="$additional_libdir"
9715 found_so
="$additional_libdir/lib$name.$shlibext"
9716 if test -f "$additional_libdir/lib$name.la"; then
9717 found_la
="$additional_libdir/lib$name.la"
9720 if test -f "$additional_libdir/lib$name.$libext"; then
9721 found_dir
="$additional_libdir"
9722 found_a
="$additional_libdir/lib$name.$libext"
9723 if test -f "$additional_libdir/lib$name.la"; then
9724 found_la
="$additional_libdir/lib$name.la"
9729 if test "X$found_dir" = "X"; then
9730 for x
in $LDFLAGS $LTLIBICONV; do
9732 acl_save_prefix
="$prefix"
9733 prefix
="$acl_final_prefix"
9734 acl_save_exec_prefix
="$exec_prefix"
9735 exec_prefix
="$acl_final_exec_prefix"
9737 exec_prefix
="$acl_save_exec_prefix"
9738 prefix
="$acl_save_prefix"
9742 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9743 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9745 found_so
="$dir/lib$name.$shlibext"
9746 if test -f "$dir/lib$name.la"; then
9747 found_la
="$dir/lib$name.la"
9750 if test -f "$dir/lib$name.$libext"; then
9752 found_a
="$dir/lib$name.$libext"
9753 if test -f "$dir/lib$name.la"; then
9754 found_la
="$dir/lib$name.la"
9760 if test "X$found_dir" != "X"; then
9765 if test "X$found_dir" != "X"; then
9766 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9767 if test "X$found_so" != "X"; then
9768 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9769 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9772 for x
in $ltrpathdirs; do
9773 if test "X$x" = "X$found_dir"; then
9778 if test -z "$haveit"; then
9779 ltrpathdirs
="$ltrpathdirs $found_dir"
9781 if test "$hardcode_direct" = yes; then
9782 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9784 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9785 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9787 for x
in $rpathdirs; do
9788 if test "X$x" = "X$found_dir"; then
9793 if test -z "$haveit"; then
9794 rpathdirs
="$rpathdirs $found_dir"
9798 for x
in $LDFLAGS $LIBICONV; do
9800 acl_save_prefix
="$prefix"
9801 prefix
="$acl_final_prefix"
9802 acl_save_exec_prefix
="$exec_prefix"
9803 exec_prefix
="$acl_final_exec_prefix"
9805 exec_prefix
="$acl_save_exec_prefix"
9806 prefix
="$acl_save_prefix"
9808 if test "X$x" = "X-L$found_dir"; then
9813 if test -z "$haveit"; then
9814 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9816 if test "$hardcode_minus_L" != no
; then
9817 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9819 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9825 if test "X$found_a" != "X"; then
9826 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9828 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9831 additional_includedir
=
9832 case "$found_dir" in
9834 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9835 additional_includedir
="$basedir/include"
9838 if test "X$additional_includedir" != "X"; then
9839 if test "X$additional_includedir" != "X/usr/include"; then
9841 if test "X$additional_includedir" = "X/usr/local/include"; then
9842 if test -n "$GCC"; then
9844 linux
*) haveit
=yes;;
9848 if test -z "$haveit"; then
9849 for x
in $CPPFLAGS $INCICONV; do
9851 acl_save_prefix
="$prefix"
9852 prefix
="$acl_final_prefix"
9853 acl_save_exec_prefix
="$exec_prefix"
9854 exec_prefix
="$acl_final_exec_prefix"
9856 exec_prefix
="$acl_save_exec_prefix"
9857 prefix
="$acl_save_prefix"
9859 if test "X$x" = "X-I$additional_includedir"; then
9864 if test -z "$haveit"; then
9865 if test -d "$additional_includedir"; then
9866 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9872 if test -n "$found_la"; then
9873 save_libdir
="$libdir"
9875 */* |
*\\*) .
"$found_la" ;;
9876 *) .
"./$found_la" ;;
9878 libdir
="$save_libdir"
9879 for dep
in $dependency_libs; do
9882 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9883 if test "X$additional_libdir" != "X/usr/lib"; then
9885 if test "X$additional_libdir" = "X/usr/local/lib"; then
9886 if test -n "$GCC"; then
9888 linux
*) haveit
=yes;;
9892 if test -z "$haveit"; then
9894 for x
in $LDFLAGS $LIBICONV; do
9896 acl_save_prefix
="$prefix"
9897 prefix
="$acl_final_prefix"
9898 acl_save_exec_prefix
="$exec_prefix"
9899 exec_prefix
="$acl_final_exec_prefix"
9901 exec_prefix
="$acl_save_exec_prefix"
9902 prefix
="$acl_save_prefix"
9904 if test "X$x" = "X-L$additional_libdir"; then
9909 if test -z "$haveit"; then
9910 if test -d "$additional_libdir"; then
9911 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9915 for x
in $LDFLAGS $LTLIBICONV; do
9917 acl_save_prefix
="$prefix"
9918 prefix
="$acl_final_prefix"
9919 acl_save_exec_prefix
="$exec_prefix"
9920 exec_prefix
="$acl_final_exec_prefix"
9922 exec_prefix
="$acl_save_exec_prefix"
9923 prefix
="$acl_save_prefix"
9925 if test "X$x" = "X-L$additional_libdir"; then
9930 if test -z "$haveit"; then
9931 if test -d "$additional_libdir"; then
9932 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9939 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9940 if test "$enable_rpath" != no
; then
9942 for x
in $rpathdirs; do
9943 if test "X$x" = "X$dir"; then
9948 if test -z "$haveit"; then
9949 rpathdirs
="$rpathdirs $dir"
9952 for x
in $ltrpathdirs; do
9953 if test "X$x" = "X$dir"; then
9958 if test -z "$haveit"; then
9959 ltrpathdirs
="$ltrpathdirs $dir"
9964 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9967 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9970 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9971 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9977 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9978 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9984 if test "X$rpathdirs" != "X"; then
9985 if test -n "$hardcode_libdir_separator"; then
9987 for found_dir
in $rpathdirs; do
9988 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9990 acl_save_libdir
="$libdir"
9992 eval flag
=\"$hardcode_libdir_flag_spec\"
9993 libdir
="$acl_save_libdir"
9994 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9996 for found_dir
in $rpathdirs; do
9997 acl_save_libdir
="$libdir"
9999 eval flag
=\"$hardcode_libdir_flag_spec\"
10000 libdir
="$acl_save_libdir"
10001 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10005 if test "X$ltrpathdirs" != "X"; then
10006 for found_dir
in $ltrpathdirs; do
10007 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10012 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10014 ac_cpp
='$CXXCPP $CPPFLAGS'
10015 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10016 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10017 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10024 am_save_CPPFLAGS
="$CPPFLAGS"
10026 for element
in $INCICONV; do
10028 for x
in $CPPFLAGS; do
10030 acl_save_prefix
="$prefix"
10031 prefix
="$acl_final_prefix"
10032 acl_save_exec_prefix
="$exec_prefix"
10033 exec_prefix
="$acl_final_exec_prefix"
10035 exec_prefix
="$acl_save_exec_prefix"
10036 prefix
="$acl_save_prefix"
10038 if test "X$x" = "X$element"; then
10043 if test -z "$haveit"; then
10044 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10050 $as_echo_n "checking for iconv... " >&6; }
10051 if test "${am_cv_func_iconv+set}" = set; then :
10052 $as_echo_n "(cached) " >&6
10055 am_cv_func_iconv
="no, consider installing GNU libiconv"
10057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10059 #include <stdlib.h>
10064 iconv_t cd = iconv_open("","");
10065 iconv(cd,NULL,NULL,NULL,NULL);
10071 if ac_fn_cxx_try_link
"$LINENO"; then :
10072 am_cv_func_iconv
=yes
10074 rm -f core conftest.err conftest.
$ac_objext \
10075 conftest
$ac_exeext conftest.
$ac_ext
10076 if test "$am_cv_func_iconv" != yes; then
10077 am_save_LIBS
="$LIBS"
10078 LIBS
="$LIBS $LIBICONV"
10079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081 #include <stdlib.h>
10086 iconv_t cd = iconv_open("","");
10087 iconv(cd,NULL,NULL,NULL,NULL);
10093 if ac_fn_cxx_try_link
"$LINENO"; then :
10094 am_cv_lib_iconv
=yes
10095 am_cv_func_iconv
=yes
10097 rm -f core conftest.err conftest.
$ac_objext \
10098 conftest
$ac_exeext conftest.
$ac_ext
10099 LIBS
="$am_save_LIBS"
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10104 $as_echo "$am_cv_func_iconv" >&6; }
10105 if test "$am_cv_func_iconv" = yes; then
10107 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10110 if test "$am_cv_lib_iconv" = yes; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10112 $as_echo_n "checking how to link with libiconv... " >&6; }
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10114 $as_echo "$LIBICONV" >&6; }
10116 CPPFLAGS
="$am_save_CPPFLAGS"
10123 if test "$am_cv_func_iconv" = yes; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10125 $as_echo_n "checking for iconv declaration... " >&6; }
10126 if test "${am_cv_proto_iconv+set}" = set; then :
10127 $as_echo_n "(cached) " >&6
10130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10131 /* end confdefs.h. */
10133 #include <stdlib.h>
10139 #if defined(__STDC__) || defined(__cplusplus)
10140 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10153 if ac_fn_cxx_try_compile
"$LINENO"; then :
10154 am_cv_proto_iconv_arg1
=""
10156 am_cv_proto_iconv_arg1
="const"
10158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10159 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);"
10162 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10164 }$am_cv_proto_iconv" >&5
10166 }$am_cv_proto_iconv" >&6; }
10168 cat >>confdefs.h
<<_ACEOF
10169 #define ICONV_CONST $am_cv_proto_iconv_arg1
10175 ac_cpp
='$CPP $CPPFLAGS'
10176 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10177 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10178 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10186 am_save_CPPFLAGS
="$CPPFLAGS"
10188 for element
in $INCICONV; do
10190 for x
in $CPPFLAGS; do
10192 acl_save_prefix
="$prefix"
10193 prefix
="$acl_final_prefix"
10194 acl_save_exec_prefix
="$exec_prefix"
10195 exec_prefix
="$acl_final_exec_prefix"
10197 exec_prefix
="$acl_save_exec_prefix"
10198 prefix
="$acl_save_prefix"
10200 if test "X$x" = "X$element"; then
10205 if test -z "$haveit"; then
10206 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10212 $as_echo_n "checking for iconv... " >&6; }
10213 if test "${am_cv_func_iconv+set}" = set; then :
10214 $as_echo_n "(cached) " >&6
10217 am_cv_func_iconv
="no, consider installing GNU libiconv"
10219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10221 #include <stdlib.h>
10226 iconv_t cd = iconv_open("","");
10227 iconv(cd,NULL,NULL,NULL,NULL);
10233 if ac_fn_c_try_link
"$LINENO"; then :
10234 am_cv_func_iconv
=yes
10236 rm -f core conftest.err conftest.
$ac_objext \
10237 conftest
$ac_exeext conftest.
$ac_ext
10238 if test "$am_cv_func_iconv" != yes; then
10239 am_save_LIBS
="$LIBS"
10240 LIBS
="$LIBS $LIBICONV"
10241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10243 #include <stdlib.h>
10248 iconv_t cd = iconv_open("","");
10249 iconv(cd,NULL,NULL,NULL,NULL);
10255 if ac_fn_c_try_link
"$LINENO"; then :
10256 am_cv_lib_iconv
=yes
10257 am_cv_func_iconv
=yes
10259 rm -f core conftest.err conftest.
$ac_objext \
10260 conftest
$ac_exeext conftest.
$ac_ext
10261 LIBS
="$am_save_LIBS"
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10266 $as_echo "$am_cv_func_iconv" >&6; }
10267 if test "$am_cv_func_iconv" = yes; then
10269 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10272 if test "$am_cv_lib_iconv" = yes; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10274 $as_echo_n "checking how to link with libiconv... " >&6; }
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10276 $as_echo "$LIBICONV" >&6; }
10278 CPPFLAGS
="$am_save_CPPFLAGS"
10285 if test "$am_cv_func_iconv" = yes; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10287 $as_echo_n "checking for iconv declaration... " >&6; }
10288 if test "${am_cv_proto_iconv+set}" = set; then :
10289 $as_echo_n "(cached) " >&6
10292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10295 #include <stdlib.h>
10301 #if defined(__STDC__) || defined(__cplusplus)
10302 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10315 if ac_fn_c_try_compile
"$LINENO"; then :
10316 am_cv_proto_iconv_arg1
=""
10318 am_cv_proto_iconv_arg1
="const"
10320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10321 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);"
10324 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10326 }$am_cv_proto_iconv" >&5
10328 }$am_cv_proto_iconv" >&6; }
10330 cat >>confdefs.h
<<_ACEOF
10331 #define ICONV_CONST $am_cv_proto_iconv_arg1
10338 # Until we have in-tree GNU iconv:
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10344 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10345 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10350 #include <locale.h>
10359 if ac_fn_c_try_link
"$LINENO"; then :
10360 am_cv_val_LC_MESSAGES
=yes
10362 am_cv_val_LC_MESSAGES
=no
10364 rm -f core conftest.err conftest.
$ac_objext \
10365 conftest
$ac_exeext conftest.
$ac_ext
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10368 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10369 if test $am_cv_val_LC_MESSAGES = yes; then
10371 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10378 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10379 if test "${am_cv_langinfo_codeset+set}" = set; then :
10380 $as_echo_n "(cached) " >&6
10382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10384 #include <langinfo.h>
10388 char* cs = nl_langinfo(CODESET);
10393 if ac_fn_c_try_link
"$LINENO"; then :
10394 am_cv_langinfo_codeset
=yes
10396 am_cv_langinfo_codeset
=no
10398 rm -f core conftest.err conftest.
$ac_objext \
10399 conftest
$ac_exeext conftest.
$ac_ext
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10403 $as_echo "$am_cv_langinfo_codeset" >&6; }
10404 if test $am_cv_langinfo_codeset = yes; then
10406 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10411 # We will need to find libiberty.h and ansidecl.h
10412 saved_CFLAGS
="$CFLAGS"
10413 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10414 saved_CXXFLAGS
="$CXXFLAGS"
10415 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10416 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10417 strsignal strstr strverscmp \
10418 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10419 free
basename getopt
clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10421 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10423 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10424 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10425 $as_echo_n "(cached) " >&6
10427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10430 #define $ac_tr_decl 1
10432 #include "ansidecl.h"
10433 #include "system.h"
10439 char *(*pfn) = (char *(*)) $ac_func ;
10445 if ac_fn_c_try_compile
"$LINENO"; then :
10446 eval "gcc_cv_have_decl_$ac_func=yes"
10448 eval "gcc_cv_have_decl_$ac_func=no"
10450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10453 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10455 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10456 #define $ac_tr_decl 1
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10462 #define $ac_tr_decl 0
10470 for ac_func
in getrlimit setrlimit getrusage
10472 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10474 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10475 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10476 $as_echo_n "(cached) " >&6
10478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h. */
10481 #define $ac_tr_decl 1
10483 #include "ansidecl.h"
10484 #include "system.h"
10485 #ifdef HAVE_SYS_RESOURCE_H
10486 #include <sys/resource.h>
10494 char *(*pfn) = (char *(*)) $ac_func ;
10500 if ac_fn_c_try_compile
"$LINENO"; then :
10501 eval "gcc_cv_have_decl_$ac_func=yes"
10503 eval "gcc_cv_have_decl_$ac_func=no"
10505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10508 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10510 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10511 #define $ac_tr_decl 1
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10517 #define $ac_tr_decl 0
10525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10528 #include "ansidecl.h"
10529 #include "system.h"
10530 #ifdef HAVE_SYS_RESOURCE_H
10531 #include <sys/resource.h>
10542 if ac_fn_c_try_compile
"$LINENO"; then :
10546 $as_echo "#define rlim_t long" >>confdefs.h
10549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10551 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10552 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10553 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10554 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10555 for ac_func
in ldgetname
10557 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10559 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10560 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10561 $as_echo_n "(cached) " >&6
10563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10566 #define $ac_tr_decl 1
10568 #include "ansidecl.h"
10569 #include "system.h"
10570 #ifdef HAVE_LDFCN_H
10581 char *(*pfn) = (char *(*)) $ac_func ;
10587 if ac_fn_c_try_compile
"$LINENO"; then :
10588 eval "gcc_cv_have_decl_$ac_func=yes"
10590 eval "gcc_cv_have_decl_$ac_func=no"
10592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10595 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10597 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10598 #define $ac_tr_decl 1
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10604 #define $ac_tr_decl 0
10612 for ac_func
in times
10614 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10616 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10617 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10618 $as_echo_n "(cached) " >&6
10620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10623 #define $ac_tr_decl 1
10625 #include "ansidecl.h"
10626 #include "system.h"
10627 #ifdef HAVE_SYS_TIMES_H
10628 #include <sys/times.h>
10636 char *(*pfn) = (char *(*)) $ac_func ;
10642 if ac_fn_c_try_compile
"$LINENO"; then :
10643 eval "gcc_cv_have_decl_$ac_func=yes"
10645 eval "gcc_cv_have_decl_$ac_func=no"
10647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10650 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10652 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10653 #define $ac_tr_decl 1
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10659 #define $ac_tr_decl 0
10667 for ac_func
in sigaltstack
10669 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10671 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10672 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10673 $as_echo_n "(cached) " >&6
10675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10678 #define $ac_tr_decl 1
10680 #include "ansidecl.h"
10681 #include "system.h"
10682 #include <signal.h>
10689 char *(*pfn) = (char *(*)) $ac_func ;
10695 if ac_fn_c_try_compile
"$LINENO"; then :
10696 eval "gcc_cv_have_decl_$ac_func=yes"
10698 eval "gcc_cv_have_decl_$ac_func=no"
10700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10703 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10705 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10706 #define $ac_tr_decl 1
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10712 #define $ac_tr_decl 0
10720 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10722 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10724 ac_cpp
='$CXXCPP $CPPFLAGS'
10725 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10726 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10727 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10729 for ac_func
in madvise
10731 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10733 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10734 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10735 $as_echo_n "(cached) " >&6
10737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10740 #define $ac_tr_decl 1
10742 #include "ansidecl.h"
10743 #include "system.h"
10750 char *(*pfn) = (char *(*)) $ac_func ;
10756 if ac_fn_cxx_try_compile
"$LINENO"; then :
10757 eval "gcc_cv_have_decl_$ac_func=yes"
10759 eval "gcc_cv_have_decl_$ac_func=no"
10761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10764 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10766 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10767 #define $ac_tr_decl 1
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10773 #define $ac_tr_decl 0
10781 ac_cpp
='$CPP $CPPFLAGS'
10782 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10783 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10784 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10787 for ac_func
in madvise
10789 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10791 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10792 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10793 $as_echo_n "(cached) " >&6
10795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10798 #define $ac_tr_decl 1
10800 #include "ansidecl.h"
10801 #include "system.h"
10808 char *(*pfn) = (char *(*)) $ac_func ;
10814 if ac_fn_c_try_compile
"$LINENO"; then :
10815 eval "gcc_cv_have_decl_$ac_func=yes"
10817 eval "gcc_cv_have_decl_$ac_func=no"
10819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10822 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10824 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10825 #define $ac_tr_decl 1
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10831 #define $ac_tr_decl 0
10841 # More time-related stuff.
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10843 $as_echo_n "checking for struct tms... " >&6; }
10844 if test "${ac_cv_struct_tms+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10851 #include "ansidecl.h"
10852 #include "system.h"
10853 #ifdef HAVE_SYS_TIMES_H
10854 #include <sys/times.h>
10865 if ac_fn_c_try_compile
"$LINENO"; then :
10866 ac_cv_struct_tms
=yes
10868 ac_cv_struct_tms
=no
10870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10873 $as_echo "$ac_cv_struct_tms" >&6; }
10874 if test $ac_cv_struct_tms = yes; then
10876 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10880 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10881 # revisit after autoconf 2.50.
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10883 $as_echo_n "checking for clock_t... " >&6; }
10884 if test "${gcc_cv_type_clock_t+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
10888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10891 #include "ansidecl.h"
10892 #include "system.h"
10902 if ac_fn_c_try_compile
"$LINENO"; then :
10903 gcc_cv_type_clock_t
=yes
10905 gcc_cv_type_clock_t
=no
10907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10910 $as_echo "$gcc_cv_type_clock_t" >&6; }
10911 if test $gcc_cv_type_clock_t = yes; then
10913 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10917 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10918 CFLAGS
="$saved_CFLAGS"
10919 CXXFLAGS
="$saved_CXXFLAGS"
10921 # Check whether --enable-initfini-array was given.
10922 if test "${enable_initfini_array+set}" = set; then :
10923 enableval
=$enable_initfini_array;
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10927 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10928 if test "${gcc_cv_initfini_array+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
10931 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10932 if test "$cross_compiling" = yes; then :
10933 gcc_cv_initfini_array
=no
10935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10939 #error Not an ELF OS
10942 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10943 if it can be used. */
10945 int main (void) { return x; }
10946 int foo (void) { x = 0; }
10947 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10949 extern void abort ();
10959 void (*const init_array1005) ()
10960 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10968 void (*const fini_array1005) ()
10969 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10979 void (*const ctors1007) ()
10980 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10989 void (*const dtors1007) ()
10990 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
11000 void (*const init_array65530) ()
11001 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11006 if (count != 65530)
11010 void (*const fini_array65530) ()
11011 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11017 if (count != 65530)
11021 void (*const ctors65535) ()
11022 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11027 if (count != 65535)
11031 void (*const dtors65535) ()
11032 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11038 if (count != 65535)
11045 if ac_fn_c_try_run
"$LINENO"; then :
11046 gcc_cv_initfini_array
=yes
11048 gcc_cv_initfini_array
=no
11050 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11051 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11056 $as_echo_n "checking cross compile... guessing... " >&6; }
11057 gcc_cv_initfini_array
=no
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11061 $as_echo "$gcc_cv_initfini_array" >&6; }
11062 enable_initfini_array
=$gcc_cv_initfini_array
11066 if test $enable_initfini_array = yes; then
11068 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11072 # mkdir takes a single argument on some systems.
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11074 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11075 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11076 $as_echo_n "(cached) " >&6
11078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11081 #include <sys/types.h>
11082 #ifdef HAVE_SYS_STAT_H
11083 # include <sys/stat.h>
11085 #ifdef HAVE_UNISTD_H
11086 # include <unistd.h>
11088 #ifdef HAVE_DIRECT_H
11089 # include <direct.h>
11099 if ac_fn_c_try_compile
"$LINENO"; then :
11100 gcc_cv_mkdir_takes_one_arg
=no
11102 gcc_cv_mkdir_takes_one_arg
=yes
11104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11107 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11108 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11110 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11121 # With Setjmp/Longjmp based exception handling.
11122 # Check whether --enable-sjlj-exceptions was given.
11123 if test "${enable_sjlj_exceptions+set}" = set; then :
11124 enableval
=$enable_sjlj_exceptions; case $target in
11126 if test $enableval != yes; then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11128 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11133 force_sjlj_exceptions
=yes
11137 force_sjlj_exceptions
=yes
11141 force_sjlj_exceptions
=no
11146 if test $force_sjlj_exceptions = yes; then
11147 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11149 cat >>confdefs.h
<<_ACEOF
11150 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11155 # --------------------------------------------------------
11156 # Build, host, and target specific configuration fragments
11157 # --------------------------------------------------------
11159 # Collect build-machine-specific information.
11160 .
${srcdir}/config.build
11162 # Collect host-machine-specific information.
11163 .
${srcdir}/config.
host
11167 # Collect target-machine-specific information.
11168 .
${srcdir}/config.gcc
11170 extra_objs
="${host_extra_objs} ${extra_objs}"
11171 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11173 # Default the target-machine variables that were not explicitly set.
11174 if test x
"$tm_file" = x
11175 then tm_file
=$cpu_type/$cpu_type.h
; fi
11177 if test x
"$extra_headers" = x
11178 then extra_headers
=; fi
11180 if test x
$md_file = x
11181 then md_file
=$cpu_type/$cpu_type.md
; fi
11183 if test x
$out_file = x
11184 then out_file
=$cpu_type/$cpu_type.c
; fi
11186 if test x
"$tmake_file" = x
11187 then tmake_file
=$cpu_type/t-
$cpu_type
11190 if test x
"$dwarf2" = xyes
11191 then tm_file
="$tm_file tm-dwarf2.h"
11194 # Say what files are being used for the output code and MD file.
11195 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11196 echo "Using \`$srcdir/config/$md_file' as machine description file."
11198 # If any of the xm_file variables contain nonexistent files, warn
11199 # about them and drop them.
11202 for x
in $build_xm_file; do
11203 if test -f $srcdir/config
/$x
11205 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11206 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11209 build_xm_file
="$bx"
11212 for x
in $host_xm_file; do
11213 if test -f $srcdir/config
/$x
11215 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11216 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11222 for x
in $xm_file; do
11223 if test -f $srcdir/config
/$x
11225 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11226 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11232 for f
in $tm_file; do
11235 if test $count = ax
; then
11236 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11238 echo "Using the following target machine macro files:"
11239 for f
in $tm_file; do
11240 echo " $srcdir/config/$f"
11244 if test x
$need_64bit_hwint = xyes
; then
11246 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11250 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11252 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11257 for f
in $host_xm_file; do
11260 if test $count = a
; then
11262 elif test $count = ax
; then
11263 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11265 echo "Using the following host machine macro files:"
11266 for f
in $host_xm_file; do
11267 echo " $srcdir/config/$f"
11270 echo "Using ${out_host_hook_obj} for host machine hooks."
11272 if test "$host_xm_file" != "$build_xm_file"; then
11274 for f
in $build_xm_file; do
11277 if test $count = a
; then
11279 elif test $count = ax
; then
11280 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11282 echo "Using the following build machine macro files:"
11283 for f
in $build_xm_file; do
11284 echo " $srcdir/config/$f"
11289 if test -n "$configured_native_system_header_dir"; then
11290 native_system_header_dir
=$configured_native_system_header_dir
11292 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11296 powerpc
*-*-darwin*)
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11298 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11299 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11300 $as_echo_n "(cached) " >&6
11302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11305 #include <sys/cdefs.h>
11306 #include <sys/signal.h>
11307 #include <ucontext.h>
11308 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11311 if ac_fn_c_try_compile
"$LINENO"; then :
11312 gcc_cv_mcontext_underscores
=no
11314 gcc_cv_mcontext_underscores
=yes
11316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11319 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11320 if test $gcc_cv_mcontext_underscores = yes; then
11322 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11332 # Check if a valid thread package
11333 case ${enable_threads} in
11336 target_thread_file
='single'
11340 target_thread_file
='single'
11342 aix | dce | lynx | mipssde | posix | rtems | \
11343 single | tpf | vxworks | win32
)
11344 target_thread_file
=${enable_threads}
11347 echo "${enable_threads} is an unknown thread package" 1>&2
11352 if test x
${thread_file} = x
; then
11353 # No thread file set by target-specific clauses in config.gcc,
11354 # so use file chosen by default logic above
11355 thread_file
=${target_thread_file}
11358 # Make gthr-default.h if we have a thread file.
11360 if test $thread_file != single
; then
11361 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11362 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
11363 rm -f gthr-default.h-t
11365 mv -f gthr-default.h-t gthr-default.h
11367 gthread_flags
=-DHAVE_GTHR_DEFAULT
11376 if test x
$enable___cxa_atexit = xyes || \
11377 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11378 if test x
$host = x
$target; then
11380 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11381 # keyed to flag_use_cxa_atexit
11386 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11387 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11390 echo "__cxa_atexit can't be enabled on this target"
11396 # We can't check for __cxa_atexit when building a cross, so assume
11400 if test x
$use_cxa_atexit = xyes
; then
11402 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11407 # Look for a file containing extra machine modes.
11408 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11409 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11412 cat >>confdefs.h
<<_ACEOF
11413 #define EXTRA_MODES_FILE "config/$extra_modes"
11418 # Convert extra_options into a form suitable for Makefile use.
11421 for f
in $extra_options; do
11422 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11423 all_opt_files
="$all_opt_files $srcdir/config/$f"
11427 # auto-host.h is the file containing items generated by autoconf and is
11428 # the first file included by config.h.
11429 # If host=build, it is correct to have bconfig include auto-host.h
11430 # as well. If host!=build, we are in error and need to do more
11431 # work to find out the build config parameters.
11432 if test x
$host = x
$build
11434 build_auto
=auto-host.h
11436 # We create a subdir, then run autoconf in the subdir.
11437 # To prevent recursion we set host and build for the new
11438 # invocation of configure to the build for this invocation
11445 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11446 *) realsrcdir
=..
/${srcdir};;
11448 saved_CFLAGS
="${CFLAGS}"
11449 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11450 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11451 ${realsrcdir}/configure \
11452 --enable-languages=${enable_languages-all} \
11453 --target=$target_alias --host=$build_alias --build=$build_alias
11454 CFLAGS
="${saved_CFLAGS}"
11456 # We just finished tests for the build machine, so rename
11457 # the file auto-build.h in the gcc directory.
11458 mv auto-host.h ..
/auto-build.h
11461 build_auto
=auto-build.h
11465 tm_file
="${tm_file} defaults.h"
11466 tm_p_file
="${tm_p_file} tm-preds.h"
11467 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11468 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11469 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11470 # put this back in temporarily.
11471 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11477 # Compile in configure arguments.
11478 if test -f configargs.h
; then
11479 # Being re-configured.
11480 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11481 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11483 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11486 # Double all backslashes and backslash all quotes to turn
11487 # gcc_config_arguments into a C string.
11488 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11489 $gcc_config_arguments
11491 gcc_config_arguments_str
=`cat conftest.out`
11494 cat > configargs.h
<<EOF
11495 /* Generated automatically. */
11496 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11497 static const char thread_model[] = "$thread_file";
11499 static const struct {
11500 const char *name, *value;
11501 } configure_default_options[] = $configure_default_options;
11504 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11505 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11506 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11507 if test -f $srcdir/REVISION
; then
11508 gcc_REVISION
=`cat $srcdir/REVISION`
11512 cat > plugin-version.h
<<EOF
11513 #include "configargs.h"
11515 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11516 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11517 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11518 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11520 static char basever[] = "$gcc_BASEVER";
11521 static char datestamp[] = "$gcc_DATESTAMP";
11522 static char devphase[] = "$gcc_DEVPHASE";
11523 static char revision[] = "$gcc_REVISION";
11525 /* FIXME plugins: We should make the version information more precise.
11526 One way to do is to add a checksum. */
11528 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11529 devphase, revision,
11530 configuration_arguments};
11533 # Internationalization
11534 # If we haven't got the data from the intl directory,
11535 # assume NLS is disabled.
11544 if test -f ..
/intl
/config.intl
; then
11545 . ..
/intl
/config.intl
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11548 $as_echo_n "checking whether NLS is requested... " >&6; }
11549 if test x
"$USE_NLS" != xyes
; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11554 $as_echo "yes" >&6; }
11556 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11560 $as_echo_n "checking for catalogs to be installed... " >&6; }
11561 # Look for .po and .gmo files in the source directory.
11564 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11565 # If there aren't any .gmo files the shell will give us the
11566 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11568 case "$cat" in *\
**)
11571 # The quadruple backslash is collapsed to a double backslash
11572 # by the backticks, then collapsed again by the double quotes,
11573 # leaving us with one backslash in the sed expression (right
11574 # before the dot that mustn't act as a wildcard).
11575 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11576 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11577 # The user is allowed to set LINGUAS to a list of languages to
11578 # install catalogs for. If it's empty that means "all of them."
11579 if test "x$LINGUAS" = x
; then
11580 CATALOGS
="$CATALOGS $cat"
11581 XLINGUAS
="$XLINGUAS $lang"
11583 case "$LINGUAS" in *$lang*)
11584 CATALOGS
="$CATALOGS $cat"
11585 XLINGUAS
="$XLINGUAS $lang"
11590 LINGUAS
="$XLINGUAS"
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11592 $as_echo "$LINGUAS" >&6; }
11605 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11606 # -liconv on the link line twice.
11607 case "$LIBINTL" in *$LIBICONV*)
11611 # Check whether --enable-secureplt was given.
11612 if test "${enable_secureplt+set}" = set; then :
11613 enableval
=$enable_secureplt;
11617 # Check whether --enable-leading-mingw64-underscores was given.
11618 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11619 enableval
=$enable_leading_mingw64_underscores;
11622 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11624 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11628 # Check whether --enable-cld was given.
11629 if test "${enable_cld+set}" = set; then :
11630 enableval
=$enable_cld;
11636 # Check whether --enable-frame-pointer was given.
11637 if test "${enable_frame_pointer+set}" = set; then :
11638 enableval
=$enable_frame_pointer;
11642 linux
* | darwin
[8912]*)
11643 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11645 enable_frame_pointer
=no
11648 enable_frame_pointer
=yes
11655 # Windows32 Registry support for specifying GCC installation paths.
11656 # Check whether --enable-win32-registry was given.
11657 if test "${enable_win32_registry+set}" = set; then :
11658 enableval
=$enable_win32_registry;
11663 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11664 if test "x$enable_win32_registry" != xno
; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11666 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11667 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11670 ac_func_search_save_LIBS
=$LIBS
11671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11674 /* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11680 char RegOpenKeyExA ();
11684 return RegOpenKeyExA ();
11689 for ac_lib
in '' advapi32
; do
11690 if test -z "$ac_lib"; then
11691 ac_res
="none required"
11694 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11696 if ac_fn_c_try_link
"$LINENO"; then :
11697 ac_cv_search_RegOpenKeyExA
=$ac_res
11699 rm -f core conftest.err conftest.
$ac_objext \
11701 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11705 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11708 ac_cv_search_RegOpenKeyExA
=no
11710 rm conftest.
$ac_ext
11711 LIBS
=$ac_func_search_save_LIBS
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11714 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11715 ac_res
=$ac_cv_search_RegOpenKeyExA
11716 if test "$ac_res" != no
; then :
11717 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11720 enable_win32_registry
=no
11725 if test "x$enable_win32_registry" != xno
; then
11727 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11730 if test "x$enable_win32_registry" != xyes \
11731 && test "x$enable_win32_registry" != x
; then
11733 cat >>confdefs.h
<<_ACEOF
11734 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11742 # Get an absolute path to the GCC top-level source directory
11743 holddir
=`${PWDCMD-pwd}`
11745 topdir
=`${PWDCMD-pwd}`
11748 # Conditionalize the makefile for this host machine.
11750 for f
in ${host_xmake_file}
11752 if test -f ${srcdir}/config
/$f
11754 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11758 # Conditionalize the makefile for this target machine.
11760 for f
in ${tmake_file}
11762 if test -f ${srcdir}/config
/$f
11764 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11767 tmake_file
="${tmake_file_}"
11769 out_object_file
=`basename $out_file .c`.o
11770 common_out_object_file
=`basename $common_out_file .c`.o
11772 tm_file_list
="options.h"
11773 tm_include_list
="options.h insn-constants.h"
11774 for f
in $tm_file; do
11777 f
=`echo $f | sed 's/^..//'`
11778 tm_file_list
="${tm_file_list} $f"
11779 tm_include_list
="${tm_include_list} $f"
11782 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11783 tm_include_list
="${tm_include_list} $f"
11786 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11787 tm_include_list
="${tm_include_list} config/$f"
11792 libgcc_tm_file_list
=
11793 libgcc_tm_include_list
=
11794 for f
in $libgcc_tm_file; do
11795 libgcc_tm_file_list
="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11796 libgcc_tm_include_list
="${libgcc_tm_include_list} ../libgcc/config/$f"
11801 for f
in $tm_p_file; do
11804 tm_p_file_list
="${tm_p_file_list} $f"
11805 tm_p_include_list
="${tm_p_include_list} $f"
11808 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11809 tm_p_include_list
="${tm_p_include_list} config/$f"
11815 for f
in $xm_file; do
11818 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11819 xm_include_list
="${xm_include_list} $f"
11822 xm_file_list
="${xm_file_list} $f"
11823 xm_include_list
="${xm_include_list} $f"
11826 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11827 xm_include_list
="${xm_include_list} config/$f"
11833 host_xm_include_list
=
11834 for f
in $host_xm_file; do
11837 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11838 host_xm_include_list
="${host_xm_include_list} $f"
11841 host_xm_file_list
="${host_xm_file_list} $f"
11842 host_xm_include_list
="${host_xm_include_list} $f"
11845 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11846 host_xm_include_list
="${host_xm_include_list} config/$f"
11851 build_xm_file_list
=
11852 for f
in $build_xm_file; do
11855 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11856 build_xm_include_list
="${build_xm_include_list} $f"
11858 auto-build.h | auto-host.h
)
11859 build_xm_file_list
="${build_xm_file_list} $f"
11860 build_xm_include_list
="${build_xm_include_list} $f"
11863 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11864 build_xm_include_list
="${build_xm_include_list} config/$f"
11869 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11870 # cross-compiler which does not use the native headers and libraries.
11871 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11874 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11876 if test "x$with_build_sysroot" != x
; then
11877 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11879 # This value is used, even on a native system, because
11880 # CROSS_SYSTEM_HEADER_DIR is just
11881 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11882 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11885 if test x
$host != x
$target
11887 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11889 SYSTEM_HEADER_DIR
=$build_system_header_dir
11890 case "$host","$target" in
11891 # Darwin crosses can use the host system's libraries and headers,
11892 # because of the fat library support. Of course, it must be the
11893 # same version of Darwin on both sides. Allow the user to
11894 # just say --target=foo-darwin without a version number to mean
11895 # "the version on this system".
11896 *-*-darwin*,*-*-darwin*)
11897 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11898 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11899 if test $hostos = $targetos -o $targetos = darwin
; then
11901 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11906 i?
86-*-*,x86_64-
*-* \
11907 | powerpc
*-*-*,powerpc64
*-*-*)
11908 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11913 if test "x$with_headers" = x
; then
11920 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11921 SYSTEM_HEADER_DIR
=$build_system_header_dir
11924 # If this is a cross-compiler that does not
11925 # have its own set of headers then define
11928 # If this is using newlib, without having the headers available now,
11929 # then define inhibit_libc in LIBGCC2_CFLAGS.
11930 # This prevents libgcc2 from containing any code which requires libc
11932 : ${inhibit_libc=false}
11933 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11934 test x
$with_newlib = xyes
; } &&
11935 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11940 # When building gcc with a cross-compiler, we need to adjust things so
11941 # that the generator programs are still built with the native compiler.
11942 # Also, we cannot run fixincludes.
11944 # These are the normal (build=host) settings:
11945 CC_FOR_BUILD
='$(CC)'
11946 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11947 BUILD_LDFLAGS
='$(LDFLAGS)'
11948 STMP_FIXINC
=stmp-fixinc
11950 # And these apply if build != host, or we are generating coverage data
11951 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11953 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11954 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11957 # Expand extra_headers to include complete path.
11958 # This substitutes for lots of t-* files.
11959 extra_headers_list
=
11960 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11961 for file in ${extra_headers} ; do
11962 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11965 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11966 if test x
"$use_gcc_tgmath" = xyes
11967 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11970 # Define collect2 in Makefile.
11971 case $host_can_use_collect2 in
11973 *) collect2
='collect2$(exeext)' ;;
11977 # Add a definition of USE_COLLECT2 if system wants one.
11978 case $use_collect2 in
11979 no
) use_collect2
= ;;
11982 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11983 xm_defines
="${xm_defines} USE_COLLECT2"
11984 case $host_can_use_collect2 in
11986 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11993 cat >>confdefs.h
<<_ACEOF
11994 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11998 # ---------------------------
11999 # Assembler & linker features
12000 # ---------------------------
12002 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12003 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12004 # However when ld-new is first executed from the build tree, libtool will
12005 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12006 # to the build tree. While doing this we need to use the previous-stage
12007 # linker, or we have an infinite loop. The presence of a shell script as
12008 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12009 # the gcc/collect-ld script. So we need to know how libtool works, or
12010 # exec-tool will fail.
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12016 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12021 macro_version
='2.2.7a'
12022 macro_revision
='1.3134'
12036 ltmain
="$ac_aux_dir/ltmain.sh"
12038 # Backslashify metacharacters that are still active within
12039 # double-quoted strings.
12040 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12042 # Same as above, but do not quote variable references.
12043 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12045 # Sed substitution to delay expansion of an escaped shell variable in a
12046 # double_quote_subst'ed string.
12047 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12049 # Sed substitution to delay expansion of an escaped single quote.
12050 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12052 # Sed substitution to avoid accidental globbing in evaled expressions
12053 no_glob_subst
='s/\*/\\\*/g'
12055 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12056 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12057 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12060 $as_echo_n "checking how to print strings... " >&6; }
12061 # Test print first, because it will be a builtin if present.
12062 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12063 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12065 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12068 # Use this function as a fallback that always works.
12069 func_fallback_echo ()
12071 eval 'cat <<_LTECHO_EOF
12075 ECHO='func_fallback_echo
'
12078 # func_echo_all arg...
12079 # Invoke $ECHO with all args, space-separated.
12086 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12087 $as_echo "printf" >&6; } ;;
12088 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12089 $as_echo "print -r" >&6; } ;;
12090 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12091 $as_echo "cat" >&6; } ;;
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12108 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12109 if test "${ac_cv_path_SED+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12112 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12113 for ac_i in 1 2 3 4 5 6 7; do
12114 ac_script="$ac_script$as_nl$ac_script"
12116 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12117 { ac_script=; unset ac_script;}
12118 if test -z "$SED"; then
12119 ac_path_SED_found=false
12120 # Loop through the user's path and
test for each of PROGNAME-LIST
12121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12122 for as_dir
in $PATH
12125 test -z "$as_dir" && as_dir
=.
12126 for ac_prog
in sed gsed
; do
12127 for ac_exec_ext
in '' $ac_executable_extensions; do
12128 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12129 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12130 # Check for GNU ac_path_SED and select it if it is found.
12131 # Check for GNU $ac_path_SED
12132 case `"$ac_path_SED" --version 2>&1` in
12134 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12137 $as_echo_n 0123456789 >"conftest.in"
12140 cat "conftest.in" "conftest.in" >"conftest.tmp"
12141 mv "conftest.tmp" "conftest.in"
12142 cp "conftest.in" "conftest.nl"
12143 $as_echo '' >> "conftest.nl"
12144 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12145 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12146 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12147 if test $ac_count -gt ${ac_path_SED_max-0}; then
12148 # Best one so far, save it but keep looking for a better one
12149 ac_cv_path_SED
="$ac_path_SED"
12150 ac_path_SED_max
=$ac_count
12152 # 10*(2^10) chars as input seems more than enough
12153 test $ac_count -gt 10 && break
12155 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12158 $ac_path_SED_found && break 3
12163 if test -z "$ac_cv_path_SED"; then
12164 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12167 ac_cv_path_SED
=$SED
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12172 $as_echo "$ac_cv_path_SED" >&6; }
12173 SED
="$ac_cv_path_SED"
12176 test -z "$SED" && SED
=sed
12177 Xsed
="$SED -e 1s/^X//"
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12190 $as_echo_n "checking for fgrep... " >&6; }
12191 if test "${ac_cv_path_FGREP+set}" = set; then :
12192 $as_echo_n "(cached) " >&6
12194 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12195 then ac_cv_path_FGREP
="$GREP -F"
12197 if test -z "$FGREP"; then
12198 ac_path_FGREP_found
=false
12199 # Loop through the user's path and test for each of PROGNAME-LIST
12200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12201 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12204 test -z "$as_dir" && as_dir
=.
12205 for ac_prog
in fgrep
; do
12206 for ac_exec_ext
in '' $ac_executable_extensions; do
12207 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12208 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12209 # Check for GNU ac_path_FGREP and select it if it is found.
12210 # Check for GNU $ac_path_FGREP
12211 case `"$ac_path_FGREP" --version 2>&1` in
12213 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12216 $as_echo_n 0123456789 >"conftest.in"
12219 cat "conftest.in" "conftest.in" >"conftest.tmp"
12220 mv "conftest.tmp" "conftest.in"
12221 cp "conftest.in" "conftest.nl"
12222 $as_echo 'FGREP' >> "conftest.nl"
12223 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12224 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12225 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12226 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12227 # Best one so far, save it but keep looking for a better one
12228 ac_cv_path_FGREP
="$ac_path_FGREP"
12229 ac_path_FGREP_max
=$ac_count
12231 # 10*(2^10) chars as input seems more than enough
12232 test $ac_count -gt 10 && break
12234 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12237 $ac_path_FGREP_found && break 3
12242 if test -z "$ac_cv_path_FGREP"; then
12243 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12246 ac_cv_path_FGREP
=$FGREP
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12252 $as_echo "$ac_cv_path_FGREP" >&6; }
12253 FGREP
="$ac_cv_path_FGREP"
12256 test -z "$GREP" && GREP
=grep
12276 # Check whether --with-gnu-ld was given.
12277 if test "${with_gnu_ld+set}" = set; then :
12278 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12284 if test "$GCC" = yes; then
12285 # Check if gcc -print-prog-name=ld gives a path.
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12287 $as_echo_n "checking for ld used by $CC... " >&6; }
12290 # gcc leaves a trailing carriage return which upsets mingw
12291 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12293 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12296 # Accept absolute paths.
12298 re_direlt
='/[^/][^/]*/\.\./'
12299 # Canonicalize the pathname of ld
12300 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12301 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12302 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12304 test -z "$LD" && LD
="$ac_prog"
12307 # If it fails, then pretend we aren't using GCC.
12311 # If it is relative, then search for the first ld in PATH.
12312 with_gnu_ld
=unknown
12315 elif test "$with_gnu_ld" = yes; then
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12317 $as_echo_n "checking for GNU ld... " >&6; }
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12320 $as_echo_n "checking for non-GNU ld... " >&6; }
12322 if test "${lt_cv_path_LD+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12325 if test -z "$LD"; then
12326 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12327 for ac_dir
in $PATH; do
12329 test -z "$ac_dir" && ac_dir
=.
12330 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12331 lt_cv_path_LD
="$ac_dir/$ac_prog"
12332 # Check to see if the program is GNU ld. I'd rather use --version,
12333 # but apparently some variants of GNU ld only accept -v.
12334 # Break only if it was the GNU/non-GNU ld that we prefer.
12335 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12336 *GNU
* |
*'with BFD'*)
12337 test "$with_gnu_ld" != no
&& break
12340 test "$with_gnu_ld" != yes && break
12347 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12351 LD
="$lt_cv_path_LD"
12352 if test -n "$LD"; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12354 $as_echo "$LD" >&6; }
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12359 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12361 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12362 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12365 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12366 case `$LD -v 2>&1 </dev/null` in
12367 *GNU
* |
*'with BFD'*)
12368 lt_cv_prog_gnu_ld
=yes
12371 lt_cv_prog_gnu_ld
=no
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12376 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12377 with_gnu_ld
=$lt_cv_prog_gnu_ld
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12388 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12389 if test "${lt_cv_path_NM+set}" = set; then :
12390 $as_echo_n "(cached) " >&6
12392 if test -n "$NM"; then
12393 # Let the user override the test.
12394 lt_cv_path_NM
="$NM"
12396 lt_nm_to_check
="${ac_tool_prefix}nm"
12397 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12398 lt_nm_to_check
="$lt_nm_to_check nm"
12400 for lt_tmp_nm
in $lt_nm_to_check; do
12401 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12402 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12404 test -z "$ac_dir" && ac_dir
=.
12405 tmp_nm
="$ac_dir/$lt_tmp_nm"
12406 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12407 # Check to see if the nm accepts a BSD-compat flag.
12408 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12409 # nm: unknown option "B" ignored
12410 # Tru64's nm complains that /dev/null is an invalid object file
12411 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12412 */dev
/null
* |
*'Invalid file or object type'*)
12413 lt_cv_path_NM
="$tmp_nm -B"
12417 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12419 lt_cv_path_NM
="$tmp_nm -p"
12423 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12424 continue # so that we can try to find one that supports BSD flags
12433 : ${lt_cv_path_NM=no}
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12437 $as_echo "$lt_cv_path_NM" >&6; }
12438 if test "$lt_cv_path_NM" != "no"; then
12439 NM
="$lt_cv_path_NM"
12441 # Didn't find any BSD compatible name lister, look for dumpbin.
12442 if test -n "$DUMPBIN"; then :
12443 # Let the user override the test.
12445 if test -n "$ac_tool_prefix"; then
12446 for ac_prog
in dumpbin
"link -dump"
12448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12449 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451 $as_echo_n "checking for $ac_word... " >&6; }
12452 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12453 $as_echo_n "(cached) " >&6
12455 if test -n "$DUMPBIN"; then
12456 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12459 for as_dir
in $PATH
12462 test -z "$as_dir" && as_dir
=.
12463 for ac_exec_ext
in '' $ac_executable_extensions; do
12464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12465 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12475 DUMPBIN
=$ac_cv_prog_DUMPBIN
12476 if test -n "$DUMPBIN"; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12478 $as_echo "$DUMPBIN" >&6; }
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12485 test -n "$DUMPBIN" && break
12488 if test -z "$DUMPBIN"; then
12489 ac_ct_DUMPBIN
=$DUMPBIN
12490 for ac_prog
in dumpbin
"link -dump"
12492 # Extract the first word of "$ac_prog", so it can be a program name with args.
12493 set dummy
$ac_prog; ac_word
=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
12499 if test -n "$ac_ct_DUMPBIN"; then
12500 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12503 for as_dir
in $PATH
12506 test -z "$as_dir" && as_dir
=.
12507 for ac_exec_ext
in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12509 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12520 if test -n "$ac_ct_DUMPBIN"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12522 $as_echo "$ac_ct_DUMPBIN" >&6; }
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12529 test -n "$ac_ct_DUMPBIN" && break
12532 if test "x$ac_ct_DUMPBIN" = x
; then
12535 case $cross_compiling:$ac_tool_warned in
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12539 ac_tool_warned
=yes ;;
12541 DUMPBIN
=$ac_ct_DUMPBIN
12545 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12547 DUMPBIN
="$DUMPBIN -symbols"
12555 if test "$DUMPBIN" != ":"; then
12559 test -z "$NM" && NM
=nm
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12567 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12568 if test "${lt_cv_nm_interface+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
12571 lt_cv_nm_interface
="BSD nm"
12572 echo "int some_variable = 0;" > conftest.
$ac_ext
12573 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12574 (eval "$ac_compile" 2>conftest.err
)
12575 cat conftest.err
>&5
12576 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12577 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12578 cat conftest.err
>&5
12579 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12580 cat conftest.out
>&5
12581 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12582 lt_cv_nm_interface
="MS dumpbin"
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12587 $as_echo "$lt_cv_nm_interface" >&6; }
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12590 $as_echo_n "checking whether ln -s works... " >&6; }
12592 if test "$LN_S" = "ln -s"; then
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12594 $as_echo "yes" >&6; }
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12597 $as_echo "no, using $LN_S" >&6; }
12600 # find the maximum length of command line arguments
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12602 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12603 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
12611 # On DJGPP, this test can blow up pretty badly due to problems in libc
12612 # (any single argument exceeding 2000 bytes causes a buffer overrun
12613 # during glob expansion). Even if it were fixed, the result of this
12614 # check would be larger than it should be.
12615 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12619 # Under GNU Hurd, this test is not required because there is
12620 # no limit to the length of command line arguments.
12621 # Libtool will interpret -1 as no limit whatsoever
12622 lt_cv_sys_max_cmd_len
=-1;
12625 cygwin
* | mingw
* | cegcc
*)
12626 # On Win9x/ME, this test blows up -- it succeeds, but takes
12627 # about 5 minutes as the teststring grows exponentially.
12628 # Worse, since 9x/ME are not pre-emptively multitasking,
12629 # you end up with a "frozen" computer, even though with patience
12630 # the test eventually succeeds (with a max line length of 256k).
12631 # Instead, let's just punt: use the minimum linelength reported by
12632 # all of the supported platforms: 8192 (on NT/2K/XP).
12633 lt_cv_sys_max_cmd_len
=8192;
12637 # On MiNT this can take a long time and run out of memory.
12638 lt_cv_sys_max_cmd_len
=8192;
12642 # On AmigaOS with pdksh, this test takes hours, literally.
12643 # So we just punt and use a minimum line length of 8192.
12644 lt_cv_sys_max_cmd_len
=8192;
12647 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12648 # This has been around since 386BSD, at least. Likely further.
12649 if test -x /sbin
/sysctl
; then
12650 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12651 elif test -x /usr
/sbin
/sysctl
; then
12652 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12654 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12656 # And add a safety zone
12657 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12658 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12662 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12663 lt_cv_sys_max_cmd_len
=196608
12667 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12668 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12669 # nice to cause kernel panics so lets avoid the loop below.
12670 # First set a reasonable default.
12671 lt_cv_sys_max_cmd_len
=16384
12673 if test -x /sbin
/sysconfig
; then
12674 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12675 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12680 lt_cv_sys_max_cmd_len
=102400
12682 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12683 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12684 if test -n "$kargmax"; then
12685 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12687 lt_cv_sys_max_cmd_len
=32768
12691 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12692 if test -n "$lt_cv_sys_max_cmd_len"; then
12693 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12694 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12696 # Make teststring a little bigger before we do anything with it.
12697 # a 1K string should be a reasonable start.
12698 for i
in 1 2 3 4 5 6 7 8 ; do
12699 teststring
=$teststring$teststring
12701 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12702 # If test is not a shell built-in, we'll probably end up computing a
12703 # maximum length that is only half of the actual maximum length, but
12705 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12706 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12707 test $i != 17 # 1/2 MB should be enough
12710 teststring
=$teststring$teststring
12712 # Only check the string length outside the loop.
12713 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12715 # Add a significant safety factor because C++ compilers can tack on
12716 # massive amounts of additional arguments before passing them to the
12717 # linker. It appears as though 1/2 is a usable value.
12718 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12725 if test -n $lt_cv_sys_max_cmd_len ; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12727 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12730 $as_echo "none" >&6; }
12732 max_cmd_len
=$lt_cv_sys_max_cmd_len
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12744 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12745 # Try some XSI features
12747 ( _lt_dummy
="a/b/c"
12748 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12750 && eval 'test $(( 1 + 1 )) -eq 2 \
12751 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12754 $as_echo "$xsi_shell" >&6; }
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12758 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12760 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12762 && lt_shell_append=yes
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12764 $as_echo "$lt_shell_append" >&6; }
12767 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12777 # test EBCDIC or ASCII
12778 case `echo X|tr X '\101'` in
12779 A) # ASCII based system
12780 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12781 lt_SP2NL='tr \040 \012'
12782 lt_NL2SP='tr \015\012 \040\040'
12784 *) # EBCDIC based system
12785 lt_SP2NL='tr \100 \n'
12786 lt_NL2SP='tr \r\n \100\100'
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12799 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12800 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12801 $as_echo_n "(cached
) " >&6
12803 lt_cv_ld_reload_flag='-r'
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12806 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12807 reload_flag=$lt_cv_ld_reload_flag
12808 case $reload_flag in
12810 *) reload_flag=" $reload_flag" ;;
12812 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12815 if test "$GCC" = yes; then
12816 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12831 if test -n "$ac_tool_prefix"; then
12832 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12833 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12835 $as_echo_n "checking
for $ac_word...
" >&6; }
12836 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12837 $as_echo_n "(cached
) " >&6
12839 if test -n "$OBJDUMP"; then
12840 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12849 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12859 OBJDUMP=$ac_cv_prog_OBJDUMP
12860 if test -n "$OBJDUMP"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12862 $as_echo "$OBJDUMP" >&6; }
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12865 $as_echo "no
" >&6; }
12870 if test -z "$ac_cv_prog_OBJDUMP"; then
12871 ac_ct_OBJDUMP=$OBJDUMP
12872 # Extract the first word of "objdump
", so it can be a program name with args.
12873 set dummy objdump; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12875 $as_echo_n "checking
for $ac_word...
" >&6; }
12876 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12877 $as_echo_n "(cached
) " >&6
12879 if test -n "$ac_ct_OBJDUMP"; then
12880 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in $PATH
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12889 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12899 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12900 if test -n "$ac_ct_OBJDUMP"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12902 $as_echo "$ac_ct_OBJDUMP" >&6; }
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12905 $as_echo "no
" >&6; }
12908 if test "x
$ac_ct_OBJDUMP" = x; then
12911 case $cross_compiling:$ac_tool_warned in
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12914 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12915 ac_tool_warned=yes ;;
12917 OBJDUMP=$ac_ct_OBJDUMP
12920 OBJDUMP="$ac_cv_prog_OBJDUMP"
12923 test -z "$OBJDUMP" && OBJDUMP=objdump
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12934 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12935 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12936 $as_echo_n "(cached
) " >&6
12938 lt_cv_file_magic_cmd='$MAGIC_CMD'
12939 lt_cv_file_magic_test_file=
12940 lt_cv_deplibs_check_method='unknown'
12941 # Need to set the preceding variable on all platforms that support
12942 # interlibrary dependencies.
12943 # 'none' -- dependencies not supported.
12944 # `unknown' -- same as none, but documents that we really don't know.
12945 # 'pass_all' -- all dependencies passed with no checks.
12946 # 'test_compile' -- check by making test program.
12947 # 'file_magic [[regex]]' -- check by looking for files in library path
12948 # which responds to the $file_magic_cmd with a given extended regex.
12949 # If you have `file' or equivalent on your system and you're not sure
12950 # whether `pass_all' will *always* work, you probably want this one.
12954 lt_cv_deplibs_check_method=pass_all
12958 lt_cv_deplibs_check_method=pass_all
12962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12963 lt_cv_file_magic_cmd='/usr/bin/file -L'
12964 lt_cv_file_magic_test_file=/shlib/libc.so
12968 # func_win32_libid is a shell function defined in ltmain.sh
12969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12970 lt_cv_file_magic_cmd='func_win32_libid'
12974 # Base MSYS/MinGW do not provide the 'file' command needed by
12975 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12976 # unless we find 'file', for example because we are cross-compiling.
12977 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12978 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12979 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12980 lt_cv_file_magic_cmd='func_win32_libid'
12982 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12983 lt_cv_file_magic_cmd='$OBJDUMP -f'
12988 # use the weaker test based on 'objdump'. See mingw*.
12989 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12990 lt_cv_file_magic_cmd='$OBJDUMP -f'
12993 darwin* | rhapsody*)
12994 lt_cv_deplibs_check_method=pass_all
12997 freebsd* | dragonfly*)
12998 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13001 # Not sure whether the presence of OpenBSD here was a mistake.
13002 # Let's accept both of them until this is cleared up.
13003 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13004 lt_cv_file_magic_cmd=/usr/bin/file
13005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13009 lt_cv_deplibs_check_method=pass_all
13014 lt_cv_deplibs_check_method=pass_all
13018 lt_cv_deplibs_check_method=pass_all
13021 hpux10.20* | hpux11*)
13022 lt_cv_file_magic_cmd=/usr/bin/file
13025 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13026 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13029 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]'
13030 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13033 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13034 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13040 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13044 irix5* | irix6* | nonstopux*)
13046 *-32|*"-32 ") libmagic=32-bit;;
13047 *-n32|*"-n32 ") libmagic=N32;;
13048 *-64|*"-64 ") libmagic=64-bit;;
13049 *) libmagic=never-match;;
13051 lt_cv_deplibs_check_method=pass_all
13054 # This must be Linux ELF.
13055 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13056 lt_cv_deplibs_check_method=pass_all
13060 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13068 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13069 lt_cv_file_magic_cmd=/usr/bin/file
13070 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13074 lt_cv_deplibs_check_method=pass_all
13078 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13085 osf3* | osf4* | osf5*)
13086 lt_cv_deplibs_check_method=pass_all
13090 lt_cv_deplibs_check_method=pass_all
13094 lt_cv_deplibs_check_method=pass_all
13097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13098 lt_cv_deplibs_check_method=pass_all
13102 case $host_vendor in
13104 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]'
13105 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13108 lt_cv_deplibs_check_method=pass_all
13111 lt_cv_file_magic_cmd='/bin/file'
13112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13115 lt_cv_file_magic_cmd='/bin/file'
13116 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13117 lt_cv_file_magic_test_file=/lib/libc.so
13120 lt_cv_deplibs_check_method=pass_all
13123 lt_cv_deplibs_check_method=pass_all
13129 lt_cv_deplibs_check_method=pass_all
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13135 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13136 file_magic_cmd=$lt_cv_file_magic_cmd
13137 deplibs_check_method=$lt_cv_deplibs_check_method
13138 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13151 if test -n "$ac_tool_prefix"; then
13152 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13153 set dummy ${ac_tool_prefix}ar; ac_word=$2
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13155 $as_echo_n "checking
for $ac_word...
" >&6; }
13156 if test "${ac_cv_prog_AR+set}" = set; then :
13157 $as_echo_n "(cached
) " >&6
13159 if test -n "$AR"; then
13160 ac_cv_prog_AR="$AR" # Let the user override the test.
13162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163 for as_dir in $PATH
13166 test -z "$as_dir" && as_dir=.
13167 for ac_exec_ext in '' $ac_executable_extensions; do
13168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13169 ac_cv_prog_AR="${ac_tool_prefix}ar"
13170 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13180 if test -n "$AR"; then
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13182 $as_echo "$AR" >&6; }
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13185 $as_echo "no
" >&6; }
13190 if test -z "$ac_cv_prog_AR"; then
13192 # Extract the first word of "ar", so it can be a program name with args.
13193 set dummy ar; ac_word=$2
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13195 $as_echo_n "checking
for $ac_word...
" >&6; }
13196 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13197 $as_echo_n "(cached
) " >&6
13199 if test -n "$ac_ct_AR"; then
13200 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13206 test -z "$as_dir" && as_dir=.
13207 for ac_exec_ext in '' $ac_executable_extensions; do
13208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13209 ac_cv_prog_ac_ct_AR="ar"
13210 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13219 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13220 if test -n "$ac_ct_AR"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13222 $as_echo "$ac_ct_AR" >&6; }
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13225 $as_echo "no
" >&6; }
13228 if test "x
$ac_ct_AR" = x; then
13231 case $cross_compiling:$ac_tool_warned in
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13234 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13235 ac_tool_warned=yes ;;
13240 AR="$ac_cv_prog_AR"
13243 test -z "$AR" && AR=ar
13244 test -z "$AR_FLAGS" && AR_FLAGS=cru
13256 if test -n "$ac_tool_prefix"; then
13257 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13258 set dummy ${ac_tool_prefix}strip; ac_word=$2
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13260 $as_echo_n "checking
for $ac_word...
" >&6; }
13261 if test "${ac_cv_prog_STRIP+set}" = set; then :
13262 $as_echo_n "(cached
) " >&6
13264 if test -n "$STRIP"; then
13265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13274 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13275 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13284 STRIP=$ac_cv_prog_STRIP
13285 if test -n "$STRIP"; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13287 $as_echo "$STRIP" >&6; }
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13290 $as_echo "no
" >&6; }
13295 if test -z "$ac_cv_prog_STRIP"; then
13297 # Extract the first word of "strip
", so it can be a program name with args.
13298 set dummy strip; ac_word=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13300 $as_echo_n "checking
for $ac_word...
" >&6; }
13301 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13302 $as_echo_n "(cached
) " >&6
13304 if test -n "$ac_ct_STRIP"; then
13305 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308 for as_dir in $PATH
13311 test -z "$as_dir" && as_dir=.
13312 for ac_exec_ext in '' $ac_executable_extensions; do
13313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13314 ac_cv_prog_ac_ct_STRIP="strip
"
13315 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13324 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13325 if test -n "$ac_ct_STRIP"; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13327 $as_echo "$ac_ct_STRIP" >&6; }
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13330 $as_echo "no
" >&6; }
13333 if test "x
$ac_ct_STRIP" = x; then
13336 case $cross_compiling:$ac_tool_warned in
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13339 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13340 ac_tool_warned=yes ;;
13345 STRIP="$ac_cv_prog_STRIP"
13348 test -z "$STRIP" && STRIP=:
13355 if test -n "$ac_tool_prefix"; then
13356 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13359 $as_echo_n "checking
for $ac_word...
" >&6; }
13360 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13361 $as_echo_n "(cached
) " >&6
13363 if test -n "$RANLIB"; then
13364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367 for as_dir in $PATH
13370 test -z "$as_dir" && as_dir=.
13371 for ac_exec_ext in '' $ac_executable_extensions; do
13372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13374 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13383 RANLIB=$ac_cv_prog_RANLIB
13384 if test -n "$RANLIB"; then
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13386 $as_echo "$RANLIB" >&6; }
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13389 $as_echo "no
" >&6; }
13394 if test -z "$ac_cv_prog_RANLIB"; then
13395 ac_ct_RANLIB=$RANLIB
13396 # Extract the first word of "ranlib
", so it can be a program name with args.
13397 set dummy ranlib; ac_word=$2
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13399 $as_echo_n "checking
for $ac_word...
" >&6; }
13400 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13401 $as_echo_n "(cached
) " >&6
13403 if test -n "$ac_ct_RANLIB"; then
13404 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407 for as_dir in $PATH
13410 test -z "$as_dir" && as_dir=.
13411 for ac_exec_ext in '' $ac_executable_extensions; do
13412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13413 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13414 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13423 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13424 if test -n "$ac_ct_RANLIB"; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13426 $as_echo "$ac_ct_RANLIB" >&6; }
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13429 $as_echo "no
" >&6; }
13432 if test "x
$ac_ct_RANLIB" = x; then
13435 case $cross_compiling:$ac_tool_warned in
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13438 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13439 ac_tool_warned=yes ;;
13441 RANLIB=$ac_ct_RANLIB
13444 RANLIB="$ac_cv_prog_RANLIB"
13447 test -z "$RANLIB" && RANLIB=:
13454 # Determine commands to create old-style static archives.
13455 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13456 old_postinstall_cmds='chmod 644 $oldlib'
13457 old_postuninstall_cmds=
13459 if test -n "$RANLIB"; then
13462 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13465 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13468 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13473 lock_old_archive_extraction=yes ;;
13475 lock_old_archive_extraction=no ;;
13516 # If no C compiler was specified, use CC.
13519 # If no C compiler flags were specified, use CFLAGS.
13520 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13522 # Allow CC to be a program name with arguments.
13526 # Check for command to grab the raw symbol name followed by C symbol from nm.
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13528 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13529 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13530 $as_echo_n "(cached
) " >&6
13533 # These are sane defaults that work on at least a few old systems.
13534 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13536 # Character class describing NM global symbol codes.
13537 symcode='[BCDEGRST]'
13539 # Regexp to match symbols that can be accessed directly from C.
13540 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13542 # Define system-specific variables.
13547 cygwin* | mingw* | pw32* | cegcc*)
13548 symcode='[ABCDGISTW]'
13551 if test "$host_cpu" = ia64; then
13552 symcode='[ABCDEGRST]'
13555 irix* | nonstopux*)
13556 symcode='[BCDEGRST]'
13559 symcode='[BCDEGQRST]'
13570 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13578 # If we're using GNU nm, then use its standard symbol codes.
13579 case `$NM -V 2>&1` in
13580 *GNU* | *'with BFD'*)
13581 symcode='[ABCDGIRSTW]' ;;
13584 # Transform an extracted symbol line into a proper C declaration.
13585 # Some systems (esp. on ia64) link data and code symbols differently,
13586 # so use this general approach.
13587 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13589 # Transform an extracted symbol line into symbol name and symbol address
13590 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13591 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'"
13593 # Handle CRLF in mingw tool chain
13597 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13601 # Try without a prefix underscore, then with it.
13602 for ac_symprfx in "" "_
"; do
13604 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13605 symxfrm="\\1 $ac_symprfx\\2 \\2"
13607 # Write the raw and C identifiers.
13608 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13609 # Fake it for dumpbin and say T for any non-static function
13610 # and D for any global variable.
13611 # Also find C++ and __fastcall symbols from MSVC++,
13612 # which start with @ or ?.
13613 lt_cv_sys_global_symbol_pipe="$AWK '"\
13614 " {last_section=section; section=\$ 3};"\
13615 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13616 " \$ 0!~/External *\|/{next};"\
13617 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13618 " {if(hide[section]) next};"\
13619 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13620 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13621 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13622 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13623 " ' prfx
=^
$ac_symprfx"
13625 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13628 # Check to see that the pipe works correctly.
13632 cat > conftest.$ac_ext <<_LT_EOF
13637 void nm_test_func(void);
13638 void nm_test_func(void){}
13642 int main(){nm_test_var='a';nm_test_func();return(0);}
13645 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13646 (eval $ac_compile) 2>&5
13648 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13649 test $ac_status = 0; }; then
13650 # Now try to grab the symbols.
13652 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13653 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13655 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13656 test $ac_status = 0; } && test -s "$nlist"; then
13657 # Try sorting and uniquifying the output.
13658 if sort "$nlist" | uniq > "$nlist"T; then
13659 mv -f "$nlist"T "$nlist"
13664 # Make sure that we snagged all the symbols we need.
13665 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13666 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13667 cat <<_LT_EOF > conftest.$ac_ext
13673 # Now generate the symbol file.
13674 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13676 cat <<_LT_EOF >> conftest.$ac_ext
13678 /* The mapping between symbol names and symbols. */
13683 lt__PROGRAM__LTX_preloaded_symbols[] =
13685 { "@PROGRAM@
", (void *) 0 },
13687 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13688 cat <<\_LT_EOF >> conftest.$ac_ext
13692 /* This works around a problem in FreeBSD linker */
13693 #ifdef FREEBSD_WORKAROUND
13694 static const void *lt_preloaded_setup() {
13695 return lt__PROGRAM__LTX_preloaded_symbols;
13703 # Now try linking the two files.
13704 mv conftest.$ac_objext conftstm.$ac_objext
13705 lt_save_LIBS="$LIBS"
13706 lt_save_CFLAGS="$CFLAGS"
13707 LIBS="conftstm.
$ac_objext"
13708 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13709 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13710 (eval $ac_link) 2>&5
13712 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13713 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13716 LIBS="$lt_save_LIBS"
13717 CFLAGS="$lt_save_CFLAGS"
13719 echo "cannot
find nm_test_func
in $nlist" >&5
13722 echo "cannot
find nm_test_var
in $nlist" >&5
13725 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13728 echo "$progname: failed program was
:" >&5
13729 cat conftest.$ac_ext >&5
13731 rm -rf conftest* conftst*
13733 # Do not use the global_symbol_pipe unless it works.
13734 if test "$pipe_works" = yes; then
13737 lt_cv_sys_global_symbol_pipe=
13743 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13744 lt_cv_sys_global_symbol_to_cdecl=
13746 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13748 $as_echo "failed
" >&6; }
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13751 $as_echo "ok
" >&6; }
13775 # Check whether --enable-libtool-lock was given.
13776 if test "${enable_libtool_lock+set}" = set; then :
13777 enableval=$enable_libtool_lock;
13780 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13782 # Some flags need to be propagated to the compiler or linker for good
13786 # Find out which ABI we are using.
13787 echo 'int i;' > conftest.$ac_ext
13788 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13789 (eval $ac_compile) 2>&5
13791 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13792 test $ac_status = 0; }; then
13793 case `/usr/bin/file conftest.$ac_objext` in
13795 HPUX_IA64_MODE="32"
13798 HPUX_IA64_MODE="64"
13805 # Find out which ABI we are using.
13806 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13807 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13808 (eval $ac_compile) 2>&5
13810 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13811 test $ac_status = 0; }; then
13812 if test "$lt_cv_prog_gnu_ld" = yes; then
13813 case `/usr/bin/file conftest.$ac_objext` in
13815 LD="${LD-ld} -melf32bsmip"
13818 LD="${LD-ld} -melf32bmipn32"
13821 LD="${LD-ld} -melf64bmip"
13825 case `/usr/bin/file conftest.$ac_objext` in
13841 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13842 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13843 # Find out which ABI we are using.
13844 echo 'int i;' > conftest.$ac_ext
13845 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13846 (eval $ac_compile) 2>&5
13848 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13849 test $ac_status = 0; }; then
13850 case `/usr/bin/file conftest.o` in
13853 x86_64-*kfreebsd*-gnu)
13854 LD="${LD-ld} -m elf_i386_fbsd
"
13857 LD="${LD-ld} -m elf_i386
"
13859 ppc64-*linux*|powerpc64-*linux*)
13860 LD="${LD-ld} -m elf32ppclinux
"
13863 LD="${LD-ld} -m elf_s390
"
13866 LD="${LD-ld} -m elf32_sparc
"
13872 x86_64-*kfreebsd*-gnu)
13873 LD="${LD-ld} -m elf_x86_64_fbsd
"
13876 LD="${LD-ld} -m elf_x86_64
"
13878 ppc*-*linux*|powerpc*-*linux*)
13879 LD="${LD-ld} -m elf64ppc
"
13881 s390*-*linux*|s390*-*tpf*)
13882 LD="${LD-ld} -m elf64_s390
"
13885 LD="${LD-ld} -m elf64_sparc
"
13895 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13896 SAVE_CFLAGS="$CFLAGS"
13897 CFLAGS="$CFLAGS -belf"
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13899 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13900 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13901 $as_echo_n "(cached
) " >&6
13904 ac_cpp='$CPP $CPPFLAGS'
13905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13920 if ac_fn_c_try_link "$LINENO"; then :
13921 lt_cv_cc_needs_belf=yes
13923 lt_cv_cc_needs_belf=no
13925 rm -f core conftest.err conftest.$ac_objext \
13926 conftest$ac_exeext conftest.$ac_ext
13928 ac_cpp='$CPP $CPPFLAGS'
13929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13935 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13936 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13937 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13938 CFLAGS="$SAVE_CFLAGS"
13942 # Find out which ABI we are using.
13943 echo 'int i;' > conftest.$ac_ext
13944 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13945 (eval $ac_compile) 2>&5
13947 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13948 test $ac_status = 0; }; then
13949 case `/usr/bin/file conftest.o` in
13951 case $lt_cv_prog_gnu_ld in
13952 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13954 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13966 need_locks="$enable_libtool_lock"
13970 rhapsody* | darwin*)
13971 if test -n "$ac_tool_prefix"; then
13972 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13973 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13975 $as_echo_n "checking
for $ac_word...
" >&6; }
13976 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13977 $as_echo_n "(cached
) " >&6
13979 if test -n "$DSYMUTIL"; then
13980 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13983 for as_dir in $PATH
13986 test -z "$as_dir" && as_dir=.
13987 for ac_exec_ext in '' $ac_executable_extensions; do
13988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13989 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13990 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13999 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14000 if test -n "$DSYMUTIL"; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14002 $as_echo "$DSYMUTIL" >&6; }
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14005 $as_echo "no
" >&6; }
14010 if test -z "$ac_cv_prog_DSYMUTIL"; then
14011 ac_ct_DSYMUTIL=$DSYMUTIL
14012 # Extract the first word of "dsymutil
", so it can be a program name with args.
14013 set dummy dsymutil; ac_word=$2
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14015 $as_echo_n "checking
for $ac_word...
" >&6; }
14016 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14017 $as_echo_n "(cached
) " >&6
14019 if test -n "$ac_ct_DSYMUTIL"; then
14020 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14023 for as_dir in $PATH
14026 test -z "$as_dir" && as_dir=.
14027 for ac_exec_ext in '' $ac_executable_extensions; do
14028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14029 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14030 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14039 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14040 if test -n "$ac_ct_DSYMUTIL"; then
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14042 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14045 $as_echo "no
" >&6; }
14048 if test "x
$ac_ct_DSYMUTIL" = x; then
14051 case $cross_compiling:$ac_tool_warned in
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14054 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14055 ac_tool_warned=yes ;;
14057 DSYMUTIL=$ac_ct_DSYMUTIL
14060 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14063 if test -n "$ac_tool_prefix"; then
14064 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14065 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14067 $as_echo_n "checking
for $ac_word...
" >&6; }
14068 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14069 $as_echo_n "(cached
) " >&6
14071 if test -n "$NMEDIT"; then
14072 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14075 for as_dir in $PATH
14078 test -z "$as_dir" && as_dir=.
14079 for ac_exec_ext in '' $ac_executable_extensions; do
14080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14081 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14082 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14091 NMEDIT=$ac_cv_prog_NMEDIT
14092 if test -n "$NMEDIT"; then
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14094 $as_echo "$NMEDIT" >&6; }
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14097 $as_echo "no
" >&6; }
14102 if test -z "$ac_cv_prog_NMEDIT"; then
14103 ac_ct_NMEDIT=$NMEDIT
14104 # Extract the first word of "nmedit
", so it can be a program name with args.
14105 set dummy nmedit; ac_word=$2
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14107 $as_echo_n "checking
for $ac_word...
" >&6; }
14108 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14109 $as_echo_n "(cached
) " >&6
14111 if test -n "$ac_ct_NMEDIT"; then
14112 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14115 for as_dir in $PATH
14118 test -z "$as_dir" && as_dir=.
14119 for ac_exec_ext in '' $ac_executable_extensions; do
14120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14121 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14122 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14131 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14132 if test -n "$ac_ct_NMEDIT"; then
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14134 $as_echo "$ac_ct_NMEDIT" >&6; }
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14137 $as_echo "no
" >&6; }
14140 if test "x
$ac_ct_NMEDIT" = x; then
14143 case $cross_compiling:$ac_tool_warned in
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14146 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14147 ac_tool_warned=yes ;;
14149 NMEDIT=$ac_ct_NMEDIT
14152 NMEDIT="$ac_cv_prog_NMEDIT"
14155 if test -n "$ac_tool_prefix"; then
14156 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14157 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14159 $as_echo_n "checking
for $ac_word...
" >&6; }
14160 if test "${ac_cv_prog_LIPO+set}" = set; then :
14161 $as_echo_n "(cached
) " >&6
14163 if test -n "$LIPO"; then
14164 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14167 for as_dir in $PATH
14170 test -z "$as_dir" && as_dir=.
14171 for ac_exec_ext in '' $ac_executable_extensions; do
14172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14173 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14174 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14183 LIPO=$ac_cv_prog_LIPO
14184 if test -n "$LIPO"; then
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14186 $as_echo "$LIPO" >&6; }
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14189 $as_echo "no
" >&6; }
14194 if test -z "$ac_cv_prog_LIPO"; then
14196 # Extract the first word of "lipo
", so it can be a program name with args.
14197 set dummy lipo; ac_word=$2
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14199 $as_echo_n "checking
for $ac_word...
" >&6; }
14200 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14201 $as_echo_n "(cached
) " >&6
14203 if test -n "$ac_ct_LIPO"; then
14204 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14207 for as_dir in $PATH
14210 test -z "$as_dir" && as_dir=.
14211 for ac_exec_ext in '' $ac_executable_extensions; do
14212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14213 ac_cv_prog_ac_ct_LIPO="lipo
"
14214 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14223 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14224 if test -n "$ac_ct_LIPO"; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14226 $as_echo "$ac_ct_LIPO" >&6; }
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14229 $as_echo "no
" >&6; }
14232 if test "x
$ac_ct_LIPO" = x; then
14235 case $cross_compiling:$ac_tool_warned in
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14238 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14239 ac_tool_warned=yes ;;
14244 LIPO="$ac_cv_prog_LIPO"
14247 if test -n "$ac_tool_prefix"; then
14248 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14249 set dummy ${ac_tool_prefix}otool; ac_word=$2
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14251 $as_echo_n "checking
for $ac_word...
" >&6; }
14252 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14253 $as_echo_n "(cached
) " >&6
14255 if test -n "$OTOOL"; then
14256 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14259 for as_dir in $PATH
14262 test -z "$as_dir" && as_dir=.
14263 for ac_exec_ext in '' $ac_executable_extensions; do
14264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14265 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14266 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14275 OTOOL=$ac_cv_prog_OTOOL
14276 if test -n "$OTOOL"; then
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14278 $as_echo "$OTOOL" >&6; }
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14281 $as_echo "no
" >&6; }
14286 if test -z "$ac_cv_prog_OTOOL"; then
14288 # Extract the first word of "otool
", so it can be a program name with args.
14289 set dummy otool; ac_word=$2
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14291 $as_echo_n "checking
for $ac_word...
" >&6; }
14292 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14293 $as_echo_n "(cached
) " >&6
14295 if test -n "$ac_ct_OTOOL"; then
14296 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299 for as_dir in $PATH
14302 test -z "$as_dir" && as_dir=.
14303 for ac_exec_ext in '' $ac_executable_extensions; do
14304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14305 ac_cv_prog_ac_ct_OTOOL="otool
"
14306 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14315 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14316 if test -n "$ac_ct_OTOOL"; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14318 $as_echo "$ac_ct_OTOOL" >&6; }
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14321 $as_echo "no
" >&6; }
14324 if test "x
$ac_ct_OTOOL" = x; then
14327 case $cross_compiling:$ac_tool_warned in
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14330 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14331 ac_tool_warned=yes ;;
14336 OTOOL="$ac_cv_prog_OTOOL"
14339 if test -n "$ac_tool_prefix"; then
14340 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14341 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14343 $as_echo_n "checking
for $ac_word...
" >&6; }
14344 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14345 $as_echo_n "(cached
) " >&6
14347 if test -n "$OTOOL64"; then
14348 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14354 test -z "$as_dir" && as_dir=.
14355 for ac_exec_ext in '' $ac_executable_extensions; do
14356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14357 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14358 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14367 OTOOL64=$ac_cv_prog_OTOOL64
14368 if test -n "$OTOOL64"; then
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14370 $as_echo "$OTOOL64" >&6; }
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14373 $as_echo "no
" >&6; }
14378 if test -z "$ac_cv_prog_OTOOL64"; then
14379 ac_ct_OTOOL64=$OTOOL64
14380 # Extract the first word of "otool64
", so it can be a program name with args.
14381 set dummy otool64; ac_word=$2
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14383 $as_echo_n "checking
for $ac_word...
" >&6; }
14384 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14385 $as_echo_n "(cached
) " >&6
14387 if test -n "$ac_ct_OTOOL64"; then
14388 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14391 for as_dir in $PATH
14394 test -z "$as_dir" && as_dir=.
14395 for ac_exec_ext in '' $ac_executable_extensions; do
14396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14397 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14398 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14407 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14408 if test -n "$ac_ct_OTOOL64"; then
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14410 $as_echo "$ac_ct_OTOOL64" >&6; }
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14413 $as_echo "no
" >&6; }
14416 if test "x
$ac_ct_OTOOL64" = x; then
14419 case $cross_compiling:$ac_tool_warned in
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14422 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14423 ac_tool_warned=yes ;;
14425 OTOOL64=$ac_ct_OTOOL64
14428 OTOOL64="$ac_cv_prog_OTOOL64"
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14458 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14459 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14460 $as_echo_n "(cached
) " >&6
14462 lt_cv_apple_cc_single_mod=no
14463 if test -z "${LT_MULTI_MODULE}"; then
14464 # By default we will add the -single_module flag. You can override
14465 # by either setting the environment variable LT_MULTI_MODULE
14466 # non-empty at configure time, or by adding -multi_module to the
14468 rm -rf libconftest.dylib*
14469 echo "int foo
(void
){return 1;}" > conftest.c
14470 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14471 -dynamiclib -Wl,-single_module conftest.c
" >&5
14472 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14473 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14475 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14476 lt_cv_apple_cc_single_mod=yes
14478 cat conftest.err >&5
14480 rm -rf libconftest.dylib*
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14485 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14487 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14488 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14489 $as_echo_n "(cached
) " >&6
14491 lt_cv_ld_exported_symbols_list=no
14492 save_LDFLAGS=$LDFLAGS
14493 echo "_main
" > conftest.sym
14494 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14506 if ac_fn_c_try_link "$LINENO"; then :
14507 lt_cv_ld_exported_symbols_list=yes
14509 lt_cv_ld_exported_symbols_list=no
14511 rm -f core conftest.err conftest.$ac_objext \
14512 conftest$ac_exeext conftest.$ac_ext
14513 LDFLAGS="$save_LDFLAGS"
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14517 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14519 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14520 if test "${lt_cv_ld_force_load+set}" = set; then :
14521 $as_echo_n "(cached
) " >&6
14523 lt_cv_ld_force_load=no
14524 cat > conftest.c << _LT_EOF
14525 int forced_loaded() { return 2;}
14527 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14528 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14529 echo "$AR cru libconftest.a conftest.o
" >&5
14530 $AR cru libconftest.a conftest.o 2>&5
14531 cat > conftest.c << _LT_EOF
14532 int main() { return 0;}
14534 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14535 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14537 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14538 lt_cv_ld_force_load=yes
14540 cat conftest.err >&5
14542 rm -f conftest.err libconftest.a conftest conftest.c
14543 rm -rf conftest.dSYM
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14547 $as_echo "$lt_cv_ld_force_load" >&6; }
14549 rhapsody* | darwin1.[012])
14550 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14552 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14553 darwin*) # darwin 5.x on
14554 # if running on 10.5 or later, the deployment target defaults
14555 # to the OS version, if on x86, and 10.4, the deployment
14556 # target defaults to 10.4. Don't you love it?
14557 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14558 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14559 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14561 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14563 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14567 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14568 _lt_dar_single_mod='$single_module'
14570 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14571 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14573 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14575 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14576 _lt_dsymutil='~$DSYMUTIL $lib || :'
14583 for ac_header in dlfcn.h
14585 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14586 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14587 cat >>confdefs.h <<_ACEOF
14588 #define HAVE_DLFCN_H 1
14605 enable_win32_dll=no
14608 # Check whether --enable-shared was given.
14609 if test "${enable_shared+set}" = set; then :
14610 enableval=$enable_shared; p=${PACKAGE-default}
14612 yes) enable_shared=yes ;;
14613 no) enable_shared=no ;;
14616 # Look at the argument we got. We use all the common list separators.
14617 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14618 for pkg in $enableval; do
14620 if test "X
$pkg" = "X
$p"; then
14639 # Check whether --enable-static was given.
14640 if test "${enable_static+set}" = set; then :
14641 enableval=$enable_static; p=${PACKAGE-default}
14643 yes) enable_static=yes ;;
14644 no) enable_static=no ;;
14647 # Look at the argument we got. We use all the common list separators.
14648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14649 for pkg in $enableval; do
14651 if test "X
$pkg" = "X
$p"; then
14671 # Check whether --with-pic was given.
14672 if test "${with_pic+set}" = set; then :
14673 withval=$with_pic; pic_mode="$withval"
14679 test -z "$pic_mode" && pic_mode=default
14687 # Check whether --enable-fast-install was given.
14688 if test "${enable_fast_install+set}" = set; then :
14689 enableval=$enable_fast_install; p=${PACKAGE-default}
14691 yes) enable_fast_install=yes ;;
14692 no) enable_fast_install=no ;;
14694 enable_fast_install=no
14695 # Look at the argument we got. We use all the common list separators.
14696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14697 for pkg in $enableval; do
14699 if test "X
$pkg" = "X
$p"; then
14700 enable_fast_install=yes
14707 enable_fast_install=yes
14720 # This can be used to rebuild libtool when needed
14721 LIBTOOL_DEPS="$ltmain"
14723 # Always use our own libtool.
14724 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14751 test -z "$LN_S" && LN_S="ln -s"
14766 if test -n "${ZSH_VERSION+set}" ; then
14767 setopt NO_GLOB_SUBST
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14771 $as_echo_n "checking
for objdir...
" >&6; }
14772 if test "${lt_cv_objdir+set}" = set; then :
14773 $as_echo_n "(cached
) " >&6
14775 rm -f .libs 2>/dev/null
14776 mkdir .libs 2>/dev/null
14777 if test -d .libs; then
14780 # MS-DOS does not allow filenames that begin with a dot.
14783 rmdir .libs 2>/dev/null
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14786 $as_echo "$lt_cv_objdir" >&6; }
14787 objdir=$lt_cv_objdir
14793 cat >>confdefs.h <<_ACEOF
14794 #define LT_OBJDIR "$lt_cv_objdir/"
14802 # AIX sometimes has problems with the GCC collect2 program. For some
14803 # reason, if we set the COLLECT_NAMES environment variable, the problems
14804 # vanish in a puff of smoke.
14805 if test "X
${COLLECT_NAMES+set}" != Xset; then
14807 export COLLECT_NAMES
14812 # Global variables:
14814 can_build_shared=yes
14816 # All known linkers require a `.a' archive for static linking (except MSVC,
14817 # which needs '.lib').
14820 with_gnu_ld="$lt_cv_prog_gnu_ld"
14823 old_CFLAGS="$CFLAGS"
14825 # Set sane defaults for various variables
14826 test -z "$CC" && CC=cc
14827 test -z "$LTCC" && LTCC=$CC
14828 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14829 test -z "$LD" && LD=ld
14830 test -z "$ac_objext" && ac_objext=o
14832 for cc_temp in $compiler""; do
14834 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14835 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14840 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14843 # Only perform the check for file, if the check method requires it
14844 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14845 case $deplibs_check_method in
14847 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14849 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14850 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14851 $as_echo_n "(cached
) " >&6
14855 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14858 lt_save_MAGIC_CMD="$MAGIC_CMD"
14859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14860 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14861 for ac_dir in $ac_dummy; do
14863 test -z "$ac_dir" && ac_dir=.
14864 if test -f $ac_dir/${ac_tool_prefix}file; then
14865 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14866 if test -n "$file_magic_test_file"; then
14867 case $deplibs_check_method in
14869 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14871 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14872 $EGREP "$file_magic_regex" > /dev/null; then
14877 *** Warning: the command libtool uses to detect shared libraries,
14878 *** $file_magic_cmd, produces output that libtool cannot recognize.
14879 *** The result is that libtool may fail to recognize shared libraries
14880 *** as such. This will affect the creation of libtool libraries that
14881 *** depend on shared libraries, but programs linked with such libtool
14882 *** libraries will work regardless of this problem. Nevertheless, you
14883 *** may want to report the problem to your system manager and/or to
14884 *** bug-libtool@gnu.org
14894 MAGIC_CMD="$lt_save_MAGIC_CMD"
14899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14900 if test -n "$MAGIC_CMD"; then
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14902 $as_echo "$MAGIC_CMD" >&6; }
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14905 $as_echo "no
" >&6; }
14912 if test -z "$lt_cv_path_MAGIC_CMD"; then
14913 if test -n "$ac_tool_prefix"; then
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14915 $as_echo_n "checking
for file...
" >&6; }
14916 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14917 $as_echo_n "(cached
) " >&6
14921 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14924 lt_save_MAGIC_CMD="$MAGIC_CMD"
14925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14926 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14927 for ac_dir in $ac_dummy; do
14929 test -z "$ac_dir" && ac_dir=.
14930 if test -f $ac_dir/file; then
14931 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14932 if test -n "$file_magic_test_file"; then
14933 case $deplibs_check_method in
14935 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14937 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14938 $EGREP "$file_magic_regex" > /dev/null; then
14943 *** Warning: the command libtool uses to detect shared libraries,
14944 *** $file_magic_cmd, produces output that libtool cannot recognize.
14945 *** The result is that libtool may fail to recognize shared libraries
14946 *** as such. This will affect the creation of libtool libraries that
14947 *** depend on shared libraries, but programs linked with such libtool
14948 *** libraries will work regardless of this problem. Nevertheless, you
14949 *** may want to report the problem to your system manager and/or to
14950 *** bug-libtool@gnu.org
14960 MAGIC_CMD="$lt_save_MAGIC_CMD"
14965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14966 if test -n "$MAGIC_CMD"; then
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14968 $as_echo "$MAGIC_CMD" >&6; }
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14971 $as_echo "no
" >&6; }
14984 # Use C for the default configuration in the libtool script
14988 ac_cpp='$CPP $CPPFLAGS'
14989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14994 # Source file extension for C test sources.
14997 # Object file extension for compiled C test sources.
15001 # Code to be used in simple compile tests
15002 lt_simple_compile_test_code="int some_variable
= 0;"
15004 # Code to be used in simple link tests
15005 lt_simple_link_test_code='int main(){return(0);}'
15013 # If no C compiler was specified, use CC.
15016 # If no C compiler flags were specified, use CFLAGS.
15017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15019 # Allow CC to be a program name with arguments.
15022 # Save the default compiler, since it gets overwritten when the other
15023 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15024 compiler_DEFAULT=$CC
15026 # save warnings/boilerplate of simple test code
15027 ac_outfile=conftest.$ac_objext
15028 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15029 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15030 _lt_compiler_boilerplate=`cat conftest.err`
15033 ac_outfile=conftest.$ac_objext
15034 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15035 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15036 _lt_linker_boilerplate=`cat conftest.err`
15041 ## There is no encapsulation within the following macros, do not change
15042 ## the running order or otherwise move them around unless you know exactly
15043 ## what you are doing...
15044 if test -n "$compiler"; then
15046 lt_prog_compiler_no_builtin_flag=
15048 if test "$GCC" = yes; then
15049 case $cc_basename in
15051 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15053 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15057 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15058 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15059 $as_echo_n "(cached
) " >&6
15061 lt_cv_prog_compiler_rtti_exceptions=no
15062 ac_outfile=conftest.$ac_objext
15063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15064 lt_compiler_flag="-fno-rtti -fno-exceptions"
15065 # Insert the option either (1) after the last *FLAGS variable, or
15066 # (2) before a word containing "conftest.
", or (3) at the end.
15067 # Note that $ac_compile itself does not contain backslashes and begins
15068 # with a dollar sign (not a hyphen), so the echo should work correctly.
15069 # The option is referenced via a variable to avoid confusing sed.
15070 lt_compile=`echo "$ac_compile" | $SED \
15071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15073 -e 's:$: $lt_compiler_flag:'`
15074 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15075 (eval "$lt_compile" 2>conftest.err)
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15079 if (exit $ac_status) && test -s "$ac_outfile"; then
15080 # The compiler can only warn and ignore the option if not recognized
15081 # So say no if there are warnings other than the usual output.
15082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15085 lt_cv_prog_compiler_rtti_exceptions=yes
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15092 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15094 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15095 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15107 lt_prog_compiler_wl=
15108 lt_prog_compiler_pic=
15109 lt_prog_compiler_static=
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15112 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15114 if test "$GCC" = yes; then
15115 lt_prog_compiler_wl='-Wl,'
15116 lt_prog_compiler_static='-static'
15120 # All AIX code is PIC.
15121 if test "$host_cpu" = ia64; then
15122 # AIX 5 now supports IA64 processor
15123 lt_prog_compiler_static='-Bstatic'
15130 # see comment about AmigaOS4 .so support
15131 lt_prog_compiler_pic='-fPIC'
15134 # FIXME: we need at least 68020 code to build shared libraries, but
15135 # adding the `-m68020' flag to GCC prevents building anything better,
15137 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15142 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15143 # PIC is the default for these OSes.
15146 mingw* | cygwin* | pw32* | os2* | cegcc*)
15147 # This hack is so that the source file can tell whether it is being
15148 # built for inclusion in a dll (and should export symbols for example).
15149 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15150 # (--disable-auto-import) libraries
15151 lt_prog_compiler_pic='-DDLL_EXPORT'
15154 darwin* | rhapsody*)
15155 # PIC is the default on this platform
15156 # Common symbols not allowed in MH_DYLIB files
15157 lt_prog_compiler_pic='-fno-common'
15161 # PIC is the default for Haiku.
15162 # The "-static" flag exists, but is broken.
15163 lt_prog_compiler_static=
15167 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15168 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15169 # sets the default TLS model and affects inlining.
15175 lt_prog_compiler_pic='-fPIC'
15181 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15182 # Instead, we relocate shared libraries at runtime.
15186 # Just because we use GCC doesn't mean we suddenly get shared libraries
15187 # on systems that don't support them.
15188 lt_prog_compiler_can_build_shared=no
15193 # QNX uses GNU C++, but need to define -shared option too, otherwise
15194 # it will coredump.
15195 lt_prog_compiler_pic='-fPIC -shared'
15199 if test -d /usr/nec; then
15200 lt_prog_compiler_pic=-Kconform_pic
15205 lt_prog_compiler_pic='-fPIC'
15209 case $cc_basename in
15210 nvcc*) # Cuda Compiler Driver 2.2
15211 lt_prog_compiler_wl='-Xlinker '
15212 lt_prog_compiler_pic='-Xcompiler -fPIC'
15216 # PORTME Check for flag to pass linker flags through the system compiler.
15219 lt_prog_compiler_wl='-Wl,'
15220 if test "$host_cpu" = ia64; then
15221 # AIX 5 now supports IA64 processor
15222 lt_prog_compiler_static='-Bstatic'
15224 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15228 mingw* | cygwin* | pw32* | os2* | cegcc*)
15229 # This hack is so that the source file can tell whether it is being
15230 # built for inclusion in a dll (and should export symbols for example).
15231 lt_prog_compiler_pic='-DDLL_EXPORT'
15234 hpux9* | hpux10* | hpux11*)
15235 lt_prog_compiler_wl='-Wl,'
15236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15237 # not for PA HP-UX.
15243 lt_prog_compiler_pic='+Z'
15246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15247 lt_prog_compiler_static='${wl}-a ${wl}archive'
15250 irix5* | irix6* | nonstopux*)
15251 lt_prog_compiler_wl='-Wl,'
15252 # PIC (with -KPIC) is the default.
15253 lt_prog_compiler_static='-non_shared'
15256 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15257 case $cc_basename in
15258 # old Intel for x86_64 which still supported -KPIC.
15260 lt_prog_compiler_wl='-Wl,'
15261 lt_prog_compiler_pic='-KPIC'
15262 lt_prog_compiler_static='-static'
15264 # icc used to be incompatible with GCC.
15265 # ICC 10 doesn't accept -KPIC any more.
15267 lt_prog_compiler_wl='-Wl,'
15268 lt_prog_compiler_pic='-fPIC'
15269 lt_prog_compiler_static='-static'
15271 # Lahey Fortran 8.1.
15273 lt_prog_compiler_wl='-Wl,'
15274 lt_prog_compiler_pic='--shared'
15275 lt_prog_compiler_static='--static'
15277 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15278 # Portland Group compilers (*not* the Pentium gcc compiler,
15279 # which looks to be a dead project)
15280 lt_prog_compiler_wl='-Wl,'
15281 lt_prog_compiler_pic='-fpic'
15282 lt_prog_compiler_static='-Bstatic'
15285 lt_prog_compiler_wl='-Wl,'
15286 # All Alpha code is PIC.
15287 lt_prog_compiler_static='-non_shared'
15289 xl* | bgxl* | bgf* | mpixl*)
15290 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15291 lt_prog_compiler_wl='-Wl,'
15292 lt_prog_compiler_pic='-qpic'
15293 lt_prog_compiler_static='-qstaticlink'
15296 case `$CC -V 2>&1 | sed 5q` in
15297 *Sun\ F* | *Sun*Fortran*)
15298 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15299 lt_prog_compiler_pic='-KPIC'
15300 lt_prog_compiler_static='-Bstatic'
15301 lt_prog_compiler_wl=''
15305 lt_prog_compiler_pic='-KPIC'
15306 lt_prog_compiler_static='-Bstatic'
15307 lt_prog_compiler_wl='-Wl,'
15315 lt_prog_compiler_pic='-KPIC'
15316 lt_prog_compiler_static='-Bstatic'
15320 # QNX uses GNU C++, but need to define -shared option too, otherwise
15321 # it will coredump.
15322 lt_prog_compiler_pic='-fPIC -shared'
15325 osf3* | osf4* | osf5*)
15326 lt_prog_compiler_wl='-Wl,'
15327 # All OSF/1 code is PIC.
15328 lt_prog_compiler_static='-non_shared'
15332 lt_prog_compiler_static='-non_shared'
15336 lt_prog_compiler_pic='-KPIC'
15337 lt_prog_compiler_static='-Bstatic'
15338 case $cc_basename in
15339 f77* | f90* | f95*)
15340 lt_prog_compiler_wl='-Qoption ld ';;
15342 lt_prog_compiler_wl='-Wl,';;
15347 lt_prog_compiler_wl='-Qoption ld '
15348 lt_prog_compiler_pic='-PIC'
15349 lt_prog_compiler_static='-Bstatic'
15352 sysv4 | sysv4.2uw2* | sysv4.3*)
15353 lt_prog_compiler_wl='-Wl,'
15354 lt_prog_compiler_pic='-KPIC'
15355 lt_prog_compiler_static='-Bstatic'
15359 if test -d /usr/nec ;then
15360 lt_prog_compiler_pic='-Kconform_pic'
15361 lt_prog_compiler_static='-Bstatic'
15365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15366 lt_prog_compiler_wl='-Wl,'
15367 lt_prog_compiler_pic='-KPIC'
15368 lt_prog_compiler_static='-Bstatic'
15372 lt_prog_compiler_wl='-Wl,'
15373 lt_prog_compiler_can_build_shared=no
15377 lt_prog_compiler_pic='-pic'
15378 lt_prog_compiler_static='-Bstatic'
15382 lt_prog_compiler_can_build_shared=no
15388 # For platforms which do not support PIC, -DPIC is meaningless:
15390 lt_prog_compiler_pic=
15393 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15397 $as_echo "$lt_prog_compiler_pic" >&6; }
15405 # Check to make sure the PIC flag actually works.
15407 if test -n "$lt_prog_compiler_pic"; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15409 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15410 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15411 $as_echo_n "(cached
) " >&6
15413 lt_cv_prog_compiler_pic_works=no
15414 ac_outfile=conftest.$ac_objext
15415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15416 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15417 # Insert the option either (1) after the last *FLAGS variable, or
15418 # (2) before a word containing "conftest.
", or (3) at the end.
15419 # Note that $ac_compile itself does not contain backslashes and begins
15420 # with a dollar sign (not a hyphen), so the echo should work correctly.
15421 # The option is referenced via a variable to avoid confusing sed.
15422 lt_compile=`echo "$ac_compile" | $SED \
15423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15425 -e 's:$: $lt_compiler_flag:'`
15426 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15427 (eval "$lt_compile" 2>conftest.err)
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15431 if (exit $ac_status) && test -s "$ac_outfile"; then
15432 # The compiler can only warn and ignore the option if not recognized
15433 # So say no if there are warnings other than the usual output.
15434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15437 lt_cv_prog_compiler_pic_works=yes
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15444 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15446 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15447 case $lt_prog_compiler_pic in
15449 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15452 lt_prog_compiler_pic=
15453 lt_prog_compiler_can_build_shared=no
15464 # Check to make sure the static flag actually works.
15466 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15468 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15469 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15470 $as_echo_n "(cached
) " >&6
15472 lt_cv_prog_compiler_static_works=no
15473 save_LDFLAGS="$LDFLAGS"
15474 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15475 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15476 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15477 # The linker can only warn and ignore the option if not recognized
15478 # So say no if there are warnings
15479 if test -s conftest.err; then
15480 # Append any errors to the config.log.
15481 cat conftest.err 1>&5
15482 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15484 if diff conftest.exp conftest.er2 >/dev/null; then
15485 lt_cv_prog_compiler_static_works=yes
15488 lt_cv_prog_compiler_static_works=yes
15492 LDFLAGS="$save_LDFLAGS"
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15496 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15498 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15501 lt_prog_compiler_static=
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15511 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15512 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15513 $as_echo_n "(cached
) " >&6
15515 lt_cv_prog_compiler_c_o=no
15516 $RM -r conftest 2>/dev/null
15520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15522 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15523 # Insert the option either (1) after the last *FLAGS variable, or
15524 # (2) before a word containing "conftest.
", or (3) at the end.
15525 # Note that $ac_compile itself does not contain backslashes and begins
15526 # with a dollar sign (not a hyphen), so the echo should work correctly.
15527 lt_compile=`echo "$ac_compile" | $SED \
15528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15530 -e 's:$: $lt_compiler_flag:'`
15531 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15532 (eval "$lt_compile" 2>out/conftest.err)
15534 cat out/conftest.err >&5
15535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15538 # The compiler can only warn and ignore the option if not recognized
15539 # So say no if there are warnings
15540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15543 lt_cv_prog_compiler_c_o=yes
15548 # SGI C++ compiler will create directory out/ii_files/ for
15549 # template instantiation
15550 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15551 $RM out/* && rmdir out
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15566 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15567 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15568 $as_echo_n "(cached
) " >&6
15570 lt_cv_prog_compiler_c_o=no
15571 $RM -r conftest 2>/dev/null
15575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15577 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15578 # Insert the option either (1) after the last *FLAGS variable, or
15579 # (2) before a word containing "conftest.
", or (3) at the end.
15580 # Note that $ac_compile itself does not contain backslashes and begins
15581 # with a dollar sign (not a hyphen), so the echo should work correctly.
15582 lt_compile=`echo "$ac_compile" | $SED \
15583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15585 -e 's:$: $lt_compiler_flag:'`
15586 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15587 (eval "$lt_compile" 2>out/conftest.err)
15589 cat out/conftest.err >&5
15590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15593 # The compiler can only warn and ignore the option if not recognized
15594 # So say no if there are warnings
15595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15598 lt_cv_prog_compiler_c_o=yes
15603 # SGI C++ compiler will create directory out/ii_files/ for
15604 # template instantiation
15605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15606 $RM out/* && rmdir out
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15613 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15618 hard_links="nottested
"
15619 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15620 # do not overwrite the value of need_locks provided by the user
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15622 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15627 ln conftest.a conftest.b 2>&5 || hard_links=no
15628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15630 $as_echo "$hard_links" >&6; }
15631 if test "$hard_links" = no; then
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15633 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15646 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15649 allow_undefined_flag=
15650 always_export_symbols=no
15652 archive_expsym_cmds=
15653 compiler_needs_object=no
15654 enable_shared_with_static_runtimes=no
15655 export_dynamic_flag_spec=
15656 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15657 hardcode_automatic=no
15659 hardcode_direct_absolute=no
15660 hardcode_libdir_flag_spec=
15661 hardcode_libdir_flag_spec_ld=
15662 hardcode_libdir_separator=
15663 hardcode_minus_L=no
15664 hardcode_shlibpath_var=unsupported
15666 link_all_deplibs=unknown
15668 module_expsym_cmds=
15669 old_archive_from_new_cmds=
15670 old_archive_from_expsyms_cmds=
15671 thread_safe_flag_spec=
15672 whole_archive_flag_spec=
15673 # include_expsyms should be a list of space-separated symbols to be *always*
15674 # included in the symbol list
15676 # exclude_expsyms can be an extended regexp of symbols to exclude
15677 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15678 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15679 # as well as any symbol that contains `d'.
15680 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15681 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15682 # platforms (ab)use it in PIC code, but their linkers get confused if
15683 # the symbol is explicitly referenced. Since portable code cannot
15684 # rely on this symbol name, it's probably fine to never include it in
15685 # preloaded symbol tables.
15686 # Exclude shared library initialization/finalization symbols.
15687 extract_expsyms_cmds=
15690 cygwin* | mingw* | pw32* | cegcc*)
15691 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15692 # When not using gcc, we currently assume that we are using
15693 # Microsoft Visual C++.
15694 if test "$GCC" != yes; then
15699 # we just hope/assume this is gcc and not c89 (= MSVC++)
15709 # On some targets, GNU ld is compatible enough with the native linker
15710 # that we're better off using the native interface for both.
15711 lt_use_gnu_ld_interface=no
15712 if test "$with_gnu_ld" = yes; then
15715 # The AIX port of GNU ld has always aspired to compatibility
15716 # with the native linker. However, as the warning in the GNU ld
15717 # block says, versions before 2.19.5* couldn't really create working
15718 # shared libraries, regardless of the interface used.
15719 case `$LD -v 2>&1` in
15720 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15721 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15722 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15724 lt_use_gnu_ld_interface=yes
15729 lt_use_gnu_ld_interface=yes
15734 if test "$lt_use_gnu_ld_interface" = yes; then
15735 # If archive_cmds runs LD, not CC, wlarc should be empty
15738 # Set some defaults for GNU ld with shared library support. These
15739 # are reset later if shared libraries are not supported. Putting them
15740 # here allows them to be overridden if necessary.
15741 runpath_var=LD_RUN_PATH
15742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15743 export_dynamic_flag_spec='${wl}--export-dynamic'
15744 # ancient GNU ld didn't support --whole-archive et. al.
15745 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15746 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15748 whole_archive_flag_spec=
15750 supports_anon_versioning=no
15751 case `$LD -v 2>&1` in
15752 *GNU\ gold*) supports_anon_versioning=yes ;;
15753 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15754 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15755 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15756 *\ 2.11.*) ;; # other 2.11 versions
15757 *) supports_anon_versioning=yes ;;
15760 # See if GNU ld supports shared libraries.
15763 # On AIX/PPC, the GNU linker is very broken
15764 if test "$host_cpu" != ia64; then
15768 *** Warning: the GNU linker, at least up to release 2.19, is reported
15769 *** to be unable to reliably create shared libraries on AIX.
15770 *** Therefore, libtool is disabling shared libraries support. If you
15771 *** really care for shared libraries, you may want to install binutils
15772 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15773 *** You will then need to restart the configuration process.
15782 # see comment about AmigaOS4 .so support
15783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15784 archive_expsym_cmds=''
15787 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)'
15788 hardcode_libdir_flag_spec
='-L$libdir'
15789 hardcode_minus_L
=yes
15795 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15796 allow_undefined_flag
=unsupported
15797 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15798 # support --undefined. This deserves some investigation. FIXME
15799 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15805 cygwin
* | mingw
* | pw32
* | cegcc
*)
15806 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15807 # as there is no search path for DLLs.
15808 hardcode_libdir_flag_spec
='-L$libdir'
15809 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15810 allow_undefined_flag
=unsupported
15811 always_export_symbols
=no
15812 enable_shared_with_static_runtimes
=yes
15813 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15815 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15816 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15817 # If the export-symbols file already is a .def file (1st line
15818 # is EXPORTS), use it as is; otherwise, prepend...
15819 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15820 cp $export_symbols $output_objdir/$soname.def;
15822 echo EXPORTS > $output_objdir/$soname.def;
15823 cat $export_symbols >> $output_objdir/$soname.def;
15825 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15832 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15833 link_all_deplibs
=yes
15838 hardcode_shlibpath_var
=no
15839 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15840 export_dynamic_flag_spec
='${wl}-E'
15841 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15842 # Instead, shared libraries are loaded at an image base (0x10000000 by
15843 # default) and relocated if they conflict, which is a slow very memory
15844 # consuming and fragmenting process. To avoid this, we pick a random,
15845 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15846 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15847 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15848 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'
15851 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15853 if test "$host_os" = linux-dietlibc
; then
15854 case $cc_basename in
15855 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15858 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15859 && test "$tmp_diet" = no
15862 tmp_sharedflag
='-shared'
15863 case $cc_basename,$host_cpu in
15864 pgcc
*) # Portland Group C compiler
15865 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'
15866 tmp_addflag
=' $pic_flag'
15868 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15869 # Portland Group f77 and f90 compilers
15870 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'
15871 tmp_addflag
=' $pic_flag -Mnomain' ;;
15872 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15873 tmp_addflag
=' -i_dynamic' ;;
15874 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15875 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15876 ifc
* | ifort
*) # Intel Fortran compiler
15877 tmp_addflag
=' -nofor_main' ;;
15878 lf95
*) # Lahey Fortran 8.1
15879 whole_archive_flag_spec
=
15880 tmp_sharedflag
='--shared' ;;
15881 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15882 tmp_sharedflag
='-qmkshrobj'
15884 nvcc
*) # Cuda Compiler Driver 2.2
15885 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'
15886 compiler_needs_object
=yes
15889 case `$CC -V 2>&1 | sed 5q` in
15890 *Sun\ C
*) # Sun C 5.9
15891 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'
15892 compiler_needs_object
=yes
15893 tmp_sharedflag
='-G' ;;
15894 *Sun\ F
*) # Sun Fortran 8.3
15895 tmp_sharedflag
='-G' ;;
15897 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15899 if test "x$supports_anon_versioning" = xyes
; then
15900 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15901 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15902 echo "local: *; };" >> $output_objdir/$libname.ver~
15903 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15906 case $cc_basename in
15907 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15908 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15909 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15910 hardcode_libdir_flag_spec
=
15911 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15912 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15913 if test "x$supports_anon_versioning" = xyes
; then
15914 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15915 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15916 echo "local: *; };" >> $output_objdir/$libname.ver~
15917 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15927 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15928 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15931 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15932 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15937 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15941 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15942 *** create shared libraries on Solaris systems. Therefore, libtool
15943 *** is disabling shared libraries support. We urge you to upgrade GNU
15944 *** binutils to release 2.9.1 or newer. Another option is to modify
15945 *** your PATH or compiler configuration so that the native linker is
15946 *** used, and then restart.
15949 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15950 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15951 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15957 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15958 case `$LD -v 2>&1` in
15959 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15963 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15964 *** reliably create shared libraries on SCO systems. Therefore, libtool
15965 *** is disabling shared libraries support. We urge you to upgrade GNU
15966 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15967 *** your PATH or compiler configuration so that the native linker is
15968 *** used, and then restart.
15973 # For security reasons, it is highly recommended that you always
15974 # use absolute paths for naming shared libraries, and exclude the
15975 # DT_RUNPATH tag from executables and libraries. But doing so
15976 # requires that you compile everything twice, which is a pain.
15977 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15978 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15979 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15980 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15989 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15991 hardcode_direct
=yes
15992 hardcode_shlibpath_var
=no
15996 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15997 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15998 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16005 if test "$ld_shlibs" = no
; then
16007 hardcode_libdir_flag_spec
=
16008 export_dynamic_flag_spec
=
16009 whole_archive_flag_spec
=
16012 # PORTME fill in a description of your system's linker (not GNU ld)
16015 allow_undefined_flag
=unsupported
16016 always_export_symbols
=yes
16017 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'
16018 # Note: this linker hardcodes the directories in LIBPATH if there
16019 # are no directories specified by -L.
16020 hardcode_minus_L
=yes
16021 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16022 # Neither direct hardcoding nor static linking is supported with a
16024 hardcode_direct
=unsupported
16029 if test "$host_cpu" = ia64
; then
16030 # On IA64, the linker does run time linking by default, so we don't
16031 # have to do anything special.
16032 aix_use_runtimelinking
=no
16033 exp_sym_flag
='-Bexport'
16036 # If we're using GNU nm, then we don't want the "-C" option.
16037 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16038 # Also, AIX nm treats weak defined symbols like other global
16039 # defined symbols, whereas GNU nm marks them as "W".
16040 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16041 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'
16043 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'
16045 aix_use_runtimelinking
=no
16047 # Test if we are trying to use run time linking or normal
16048 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16049 # need to do runtime linking.
16050 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16051 for ld_flag
in $LDFLAGS; do
16052 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16053 aix_use_runtimelinking
=yes
16060 exp_sym_flag
='-bexport'
16061 no_entry_flag
='-bnoentry'
16064 # When large executables or shared objects are built, AIX ld can
16065 # have problems creating the table of contents. If linking a library
16066 # or program results in "error TOC overflow" add -mminimal-toc to
16067 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16068 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16071 hardcode_direct
=yes
16072 hardcode_direct_absolute
=yes
16073 hardcode_libdir_separator
=':'
16074 link_all_deplibs
=yes
16075 file_list_spec
='${wl}-f,'
16077 if test "$GCC" = yes; then
16078 case $host_os in aix4.
[012]|aix4.
[012].
*)
16079 # We only want to do this on AIX 4.2 and lower, the check
16080 # below for broken collect2 doesn't work under 4.3+
16081 collect2name
=`${CC} -print-prog-name=collect2`
16082 if test -f "$collect2name" &&
16083 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16085 # We have reworked collect2
16088 # We have old collect2
16089 hardcode_direct
=unsupported
16090 # It fails to find uninstalled libraries when the uninstalled
16091 # path is not listed in the libpath. Setting hardcode_minus_L
16092 # to unsupported forces relinking
16093 hardcode_minus_L
=yes
16094 hardcode_libdir_flag_spec
='-L$libdir'
16095 hardcode_libdir_separator
=
16099 shared_flag
='-shared'
16100 if test "$aix_use_runtimelinking" = yes; then
16101 shared_flag
="$shared_flag "'${wl}-G'
16105 if test "$host_cpu" = ia64
; then
16106 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16107 # chokes on -Wl,-G. The following line is correct:
16110 if test "$aix_use_runtimelinking" = yes; then
16111 shared_flag
='${wl}-G'
16113 shared_flag
='${wl}-bM:SRE'
16118 export_dynamic_flag_spec
='${wl}-bexpall'
16119 # It seems that -bexpall does not export symbols beginning with
16120 # underscore (_), so it is better to generate a list of symbols to export.
16121 always_export_symbols
=yes
16122 if test "$aix_use_runtimelinking" = yes; then
16123 # Warning - without using the other runtime loading flags (-brtl),
16124 # -berok will link without error, but may produce a broken library.
16125 allow_undefined_flag
='-berok'
16126 # Determine the default libpath from the value encoded in an
16127 # empty executable.
16128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16129 /* end confdefs.h. */
16139 if ac_fn_c_try_link
"$LINENO"; then :
16141 lt_aix_libpath_sed
='
16142 /Import File Strings/,/^$/ {
16148 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16149 # Check for a 64-bit object if we didn't find anything.
16150 if test -z "$aix_libpath"; then
16151 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16154 rm -f core conftest.err conftest.
$ac_objext \
16155 conftest
$ac_exeext conftest.
$ac_ext
16156 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16158 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16159 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"
16161 if test "$host_cpu" = ia64
; then
16162 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16163 allow_undefined_flag
="-z nodefs"
16164 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"
16166 # Determine the default libpath from the value encoded in an
16167 # empty executable.
16168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16179 if ac_fn_c_try_link
"$LINENO"; then :
16181 lt_aix_libpath_sed
='
16182 /Import File Strings/,/^$/ {
16188 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16189 # Check for a 64-bit object if we didn't find anything.
16190 if test -z "$aix_libpath"; then
16191 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16194 rm -f core conftest.err conftest.
$ac_objext \
16195 conftest
$ac_exeext conftest.
$ac_ext
16196 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16198 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16199 # Warning - without using the other run time loading flags,
16200 # -berok will link without error, but may produce a broken library.
16201 no_undefined_flag
=' ${wl}-bernotok'
16202 allow_undefined_flag
=' ${wl}-berok'
16203 if test "$with_gnu_ld" = yes; then
16204 # We only use this code for GNU lds that support --whole-archive.
16205 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16207 # Exported symbols can be pulled into shared objects from archives
16208 whole_archive_flag_spec
='$convenience'
16210 archive_cmds_need_lc
=yes
16211 # This is similar to how AIX traditionally builds its shared libraries.
16212 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'
16220 # see comment about AmigaOS4 .so support
16221 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16222 archive_expsym_cmds
=''
16225 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)'
16226 hardcode_libdir_flag_spec
='-L$libdir'
16227 hardcode_minus_L
=yes
16233 export_dynamic_flag_spec
=-rdynamic
16236 cygwin
* | mingw
* | pw32
* | cegcc
*)
16237 # When not using gcc, we currently assume that we are using
16238 # Microsoft Visual C++.
16239 # hardcode_libdir_flag_spec is actually meaningless, as there is
16240 # no search path for DLLs.
16241 hardcode_libdir_flag_spec
=' '
16242 allow_undefined_flag
=unsupported
16243 # Tell ltmain to make .lib files, not .a files.
16245 # Tell ltmain to make .dll files, not .so files.
16247 # FIXME: Setting linknames here is a bad hack.
16248 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16249 # The linker will automatically build a .lib file if we build a DLL.
16250 old_archive_from_new_cmds
='true'
16251 # FIXME: Should let the user specify the lib program.
16252 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16253 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16254 enable_shared_with_static_runtimes
=yes
16257 darwin
* | rhapsody
*)
16260 archive_cmds_need_lc
=no
16262 hardcode_automatic
=yes
16263 hardcode_shlibpath_var
=unsupported
16264 if test "$lt_cv_ld_force_load" = "yes"; then
16265 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\"`'
16267 whole_archive_flag_spec
=''
16269 link_all_deplibs
=yes
16270 allow_undefined_flag
="$_lt_dar_allow_undefined"
16271 case $cc_basename in
16272 ifort
*) _lt_dar_can_shared
=yes ;;
16273 *) _lt_dar_can_shared
=$GCC ;;
16275 if test "$_lt_dar_can_shared" = "yes"; then
16276 output_verbose_link_cmd
=func_echo_all
16277 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16278 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16279 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}"
16280 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}"
16289 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16290 hardcode_libdir_flag_spec
='-L$libdir'
16291 hardcode_shlibpath_var
=no
16294 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16295 # support. Future versions do this automatically, but an explicit c++rt0.o
16296 # does not break anything, and helps significantly (at the cost of a little
16299 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16300 hardcode_libdir_flag_spec
='-R$libdir'
16301 hardcode_direct
=yes
16302 hardcode_shlibpath_var
=no
16305 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16307 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16308 hardcode_direct
=yes
16309 hardcode_minus_L
=yes
16310 hardcode_shlibpath_var
=no
16313 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16314 freebsd
* | dragonfly
*)
16315 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16316 hardcode_libdir_flag_spec
='-R$libdir'
16317 hardcode_direct
=yes
16318 hardcode_shlibpath_var
=no
16322 if test "$GCC" = yes; then
16323 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'
16325 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'
16327 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16328 hardcode_libdir_separator
=:
16329 hardcode_direct
=yes
16331 # hardcode_minus_L: Not really in the search PATH,
16332 # but as the default location of the library.
16333 hardcode_minus_L
=yes
16334 export_dynamic_flag_spec
='${wl}-E'
16338 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16339 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16341 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16343 if test "$with_gnu_ld" = no
; then
16344 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16345 hardcode_libdir_flag_spec_ld
='+b $libdir'
16346 hardcode_libdir_separator
=:
16347 hardcode_direct
=yes
16348 hardcode_direct_absolute
=yes
16349 export_dynamic_flag_spec
='${wl}-E'
16350 # hardcode_minus_L: Not really in the search PATH,
16351 # but as the default location of the library.
16352 hardcode_minus_L
=yes
16357 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16360 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16363 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16366 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16372 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16375 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16379 # Older versions of the 11.00 compiler do not understand -b yet
16380 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16382 $as_echo_n "checking if $CC understands -b... " >&6; }
16383 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16384 $as_echo_n "(cached) " >&6
16386 lt_cv_prog_compiler__b
=no
16387 save_LDFLAGS
="$LDFLAGS"
16388 LDFLAGS
="$LDFLAGS -b"
16389 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16390 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16391 # The linker can only warn and ignore the option if not recognized
16392 # So say no if there are warnings
16393 if test -s conftest.err
; then
16394 # Append any errors to the config.log.
16395 cat conftest.err
1>&5
16396 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16397 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16398 if diff conftest.exp conftest.er2
>/dev
/null
; then
16399 lt_cv_prog_compiler__b
=yes
16402 lt_cv_prog_compiler__b
=yes
16406 LDFLAGS
="$save_LDFLAGS"
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16410 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16412 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16413 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16415 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16421 if test "$with_gnu_ld" = no
; then
16422 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16423 hardcode_libdir_separator
=:
16428 hardcode_shlibpath_var
=no
16431 hardcode_direct
=yes
16432 hardcode_direct_absolute
=yes
16433 export_dynamic_flag_spec
='${wl}-E'
16435 # hardcode_minus_L: Not really in the search PATH,
16436 # but as the default location of the library.
16437 hardcode_minus_L
=yes
16443 irix5
* | irix6
* | nonstopux
*)
16444 if test "$GCC" = yes; then
16445 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'
16446 # Try to use the -exported_symbol ld option, if it does not
16447 # work, assume that -exports_file does not work either and
16448 # implicitly export all symbols.
16449 save_LDFLAGS
="$LDFLAGS"
16450 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h. */
16455 if ac_fn_c_try_link
"$LINENO"; then :
16456 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'
16459 rm -f core conftest.err conftest.
$ac_objext \
16460 conftest
$ac_exeext conftest.
$ac_ext
16461 LDFLAGS
="$save_LDFLAGS"
16463 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'
16464 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'
16466 archive_cmds_need_lc
='no'
16467 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16468 hardcode_libdir_separator
=:
16470 link_all_deplibs
=yes
16474 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16475 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16477 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16479 hardcode_libdir_flag_spec
='-R$libdir'
16480 hardcode_direct
=yes
16481 hardcode_shlibpath_var
=no
16485 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486 hardcode_direct
=yes
16487 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16488 hardcode_libdir_separator
=:
16489 hardcode_shlibpath_var
=no
16496 if test -f /usr
/libexec
/ld.so
; then
16497 hardcode_direct
=yes
16498 hardcode_shlibpath_var
=no
16499 hardcode_direct_absolute
=yes
16500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16501 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16502 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16503 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16504 export_dynamic_flag_spec
='${wl}-E'
16507 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16508 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16509 hardcode_libdir_flag_spec
='-R$libdir'
16512 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16513 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16523 hardcode_libdir_flag_spec
='-L$libdir'
16524 hardcode_minus_L
=yes
16525 allow_undefined_flag
=unsupported
16526 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'
16527 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16531 if test "$GCC" = yes; then
16532 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16533 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'
16535 allow_undefined_flag
=' -expect_unresolved \*'
16536 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'
16538 archive_cmds_need_lc
='no'
16539 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16540 hardcode_libdir_separator
=:
16543 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16544 if test "$GCC" = yes; then
16545 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16546 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'
16547 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16549 allow_undefined_flag
=' -expect_unresolved \*'
16550 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'
16551 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~
16552 $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'
16554 # Both c and cxx compiler support -rpath directly
16555 hardcode_libdir_flag_spec
='-rpath $libdir'
16557 archive_cmds_need_lc
='no'
16558 hardcode_libdir_separator
=:
16562 no_undefined_flag
=' -z defs'
16563 if test "$GCC" = yes; then
16565 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16566 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16567 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16569 case `$CC -V 2>&1` in
16572 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16573 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16574 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16578 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16579 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16580 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16584 hardcode_libdir_flag_spec
='-R$libdir'
16585 hardcode_shlibpath_var
=no
16587 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16589 # The compiler driver will combine and reorder linker options,
16590 # but understands `-z linker_flag'. GCC discards it without `$wl',
16591 # but is careful enough not to reorder.
16592 # Supported since Solaris 2.6 (maybe 2.5.1?)
16593 if test "$GCC" = yes; then
16594 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16596 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16600 link_all_deplibs
=yes
16604 if test "x$host_vendor" = xsequent
; then
16605 # Use $CC to link under sequent, because it throws in some extra .o
16606 # files that make .init and .fini sections work.
16607 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16609 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16611 hardcode_libdir_flag_spec
='-L$libdir'
16612 hardcode_direct
=yes
16613 hardcode_minus_L
=yes
16614 hardcode_shlibpath_var
=no
16618 case $host_vendor in
16620 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16621 hardcode_direct
=yes # is this really true???
16624 ## LD is ld it makes a PLAMLIB
16625 ## CC just makes a GrossModule.
16626 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16627 reload_cmds
='$CC -r -o $output$reload_objs'
16631 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16632 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16635 runpath_var
='LD_RUN_PATH'
16636 hardcode_shlibpath_var
=no
16640 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16641 hardcode_shlibpath_var
=no
16642 export_dynamic_flag_spec
='-Bexport'
16646 if test -d /usr
/nec
; then
16647 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16648 hardcode_shlibpath_var
=no
16649 runpath_var
=LD_RUN_PATH
16650 hardcode_runpath_var
=yes
16655 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16656 no_undefined_flag
='${wl}-z,text'
16657 archive_cmds_need_lc
=no
16658 hardcode_shlibpath_var
=no
16659 runpath_var
='LD_RUN_PATH'
16661 if test "$GCC" = yes; then
16662 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16663 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16665 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16666 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16670 sysv5
* | sco3.2v5
* | sco5v6
*)
16671 # Note: We can NOT use -z defs as we might desire, because we do not
16672 # link with -lc, and that would cause any symbols used from libc to
16673 # always be unresolved, which means just about no library would
16674 # ever link correctly. If we're not using GNU ld we use -z text
16675 # though, which does catch some bad symbols but isn't as heavy-handed
16677 no_undefined_flag
='${wl}-z,text'
16678 allow_undefined_flag
='${wl}-z,nodefs'
16679 archive_cmds_need_lc
=no
16680 hardcode_shlibpath_var
=no
16681 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16682 hardcode_libdir_separator
=':'
16683 link_all_deplibs
=yes
16684 export_dynamic_flag_spec
='${wl}-Bexport'
16685 runpath_var
='LD_RUN_PATH'
16687 if test "$GCC" = yes; then
16688 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16689 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16691 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16692 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16697 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16698 hardcode_libdir_flag_spec
='-L$libdir'
16699 hardcode_shlibpath_var
=no
16707 if test x
$host_vendor = xsni
; then
16709 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16710 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16717 $as_echo "$ld_shlibs" >&6; }
16718 test "$ld_shlibs" = no
&& can_build_shared
=no
16720 with_gnu_ld
=$with_gnu_ld
16737 # Do we need to explicitly link libc?
16739 case "x$archive_cmds_need_lc" in
16741 # Assume -lc should be added
16742 archive_cmds_need_lc
=yes
16744 if test "$enable_shared" = yes && test "$GCC" = yes; then
16745 case $archive_cmds in
16747 # FIXME: we may have to deal with multi-command sequences.
16750 # Test whether the compiler implicitly links with -lc since on some
16751 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16752 # to ld, don't add -lc before -lgcc.
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16754 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16755 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16756 $as_echo_n "(cached) " >&6
16759 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16762 (eval $ac_compile) 2>&5
16764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16765 test $ac_status = 0; } 2>conftest.err
; then
16768 libobjs
=conftest.
$ac_objext
16770 wl
=$lt_prog_compiler_wl
16771 pic_flag
=$lt_prog_compiler_pic
16777 lt_save_allow_undefined_flag
=$allow_undefined_flag
16778 allow_undefined_flag
=
16779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16780 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16783 test $ac_status = 0; }
16785 lt_cv_archive_cmds_need_lc
=no
16787 lt_cv_archive_cmds_need_lc
=yes
16789 allow_undefined_flag
=$lt_save_allow_undefined_flag
16791 cat conftest.err
1>&5
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16797 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16798 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16962 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16964 if test "$GCC" = yes; then
16966 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16967 *) lt_awk_arg
="/^libraries:/" ;;
16970 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16971 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16973 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16974 case $lt_search_path_spec in
16976 # if the path contains ";" then we assume it to be the separator
16977 # otherwise default to the standard path separator (i.e. ":") - it is
16978 # assumed that no part of a normal pathname contains ";" but that should
16979 # okay in the real world where ";" in dirpaths is itself problematic.
16980 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16983 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16986 # Ok, now we have the path, separated by spaces, we can step through it
16987 # and add multilib dir if necessary.
16988 lt_tmp_lt_search_path_spec
=
16989 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16990 for lt_sys_path
in $lt_search_path_spec; do
16991 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16992 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16994 test -d "$lt_sys_path" && \
16995 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16998 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16999 BEGIN {RS=" "; FS="/|\n";} {
17002 for (lt_i = NF; lt_i > 0; lt_i--) {
17003 if ($lt_i != "" && $lt_i != ".") {
17004 if ($lt_i == "..") {
17007 if (lt_count == 0) {
17008 lt_foo="/" $lt_i lt_foo;
17015 if (lt_foo != "") { lt_freq[lt_foo]++; }
17016 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17018 # AWK program above erroneously prepends '/' to C:/dos/paths
17021 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17022 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17024 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17026 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17028 library_names_spec
=
17029 libname_spec
='lib$name'
17033 postuninstall_cmds
=
17037 shlibpath_overrides_runpath
=unknown
17039 dynamic_linker
="$host_os ld.so"
17040 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17041 need_lib_prefix
=unknown
17042 hardcode_into_libs
=no
17044 # when you set need_version to no, make sure it does not cause -set_version
17045 # flags to be left without arguments
17046 need_version
=unknown
17051 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17052 shlibpath_var
=LIBPATH
17054 # AIX 3 has no versioning support, so we append a major version to the name.
17055 soname_spec
='${libname}${release}${shared_ext}$major'
17062 hardcode_into_libs
=yes
17063 if test "$host_cpu" = ia64
; then
17064 # AIX 5 supports IA64
17065 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17066 shlibpath_var
=LD_LIBRARY_PATH
17068 # With GCC up to 2.95.x, collect2 would create an import file
17069 # for dependence libraries. The import file would start with
17070 # the line `#! .'. This would cause the generated library to
17071 # depend on `.', always an invalid library. This was fixed in
17072 # development snapshots of GCC prior to 3.0.
17074 aix4 | aix4.
[01] | aix4.
[01].
*)
17075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17077 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17080 can_build_shared
=no
17084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17085 # soname into executable. Probably we can add versioning support to
17086 # collect2, so additional links can be useful in future.
17087 if test "$aix_use_runtimelinking" = yes; then
17088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17089 # instead of lib<name>.a to let people know that these are not
17090 # typical AIX shared libraries.
17091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093 # We preserve .a as extension for shared libraries through AIX4.2
17094 # and later when we are not doing run time linking.
17095 library_names_spec
='${libname}${release}.a $libname.a'
17096 soname_spec
='${libname}${release}${shared_ext}$major'
17098 shlibpath_var
=LIBPATH
17105 # Since July 2007 AmigaOS4 officially supports .so libraries.
17106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17110 library_names_spec
='$libname.ixlibrary $libname.a'
17111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17112 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'
17118 library_names_spec
='${libname}${shared_ext}'
17119 dynamic_linker
="$host_os ld.so"
17120 shlibpath_var
=LIBRARY_PATH
17126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17127 soname_spec
='${libname}${release}${shared_ext}$major'
17128 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17129 shlibpath_var
=LD_LIBRARY_PATH
17130 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17131 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17132 # the default ld.so.conf also contains /usr/contrib/lib and
17133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17134 # libtool to hard-code these into programs
17137 cygwin
* | mingw
* | pw32
* | cegcc
*)
17138 version_type
=windows
17143 case $GCC,$host_os in
17144 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17145 library_names_spec
='$libname.dll.a'
17146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17147 postinstall_cmds
='base_file=`basename \${file}`~
17148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17149 dldir=$destdir/`dirname \$dlpath`~
17150 test -d \$dldir || mkdir -p \$dldir~
17151 $install_prog $dir/$dlname \$dldir/$dlname~
17152 chmod a+x \$dldir/$dlname~
17153 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17154 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17156 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17157 dlpath=$dir/\$dldll~
17159 shlibpath_overrides_runpath
=yes
17163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17164 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17166 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17169 # MinGW DLLs use traditional 'lib' prefix
17170 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17173 # pw32 DLLs use 'pw' prefix rather than 'lib'
17174 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17180 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17183 dynamic_linker
='Win32 ld.exe'
17184 # FIXME: first we should search . and the directory the executable is in
17188 darwin
* | rhapsody
*)
17189 dynamic_linker
="$host_os dyld"
17190 version_type
=darwin
17193 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17194 soname_spec
='${libname}${release}${major}$shared_ext'
17195 shlibpath_overrides_runpath
=yes
17196 shlibpath_var
=DYLD_LIBRARY_PATH
17197 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17199 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17200 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17207 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17208 soname_spec
='${libname}${release}${shared_ext}$major'
17209 shlibpath_var
=LD_LIBRARY_PATH
17212 freebsd
* | dragonfly
*)
17213 # DragonFly does not have aout. When/if they implement a new
17214 # versioning mechanism, adjust this.
17215 if test -x /usr
/bin
/objformat
; then
17216 objformat
=`/usr/bin/objformat`
17219 freebsd
[123]*) objformat
=aout
;;
17220 *) objformat
=elf
;;
17223 version_type
=freebsd-
$objformat
17224 case $version_type in
17226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17231 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17235 shlibpath_var
=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath
=yes
17240 freebsd3.
[01]* | freebsdelf3.
[01]*)
17241 shlibpath_overrides_runpath
=yes
17242 hardcode_into_libs
=yes
17244 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17245 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17246 shlibpath_overrides_runpath
=no
17247 hardcode_into_libs
=yes
17249 *) # from 4.6 on, and DragonFly
17250 shlibpath_overrides_runpath
=yes
17251 hardcode_into_libs
=yes
17260 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17261 soname_spec
='${libname}${release}${shared_ext}$major'
17262 shlibpath_var
=LD_LIBRARY_PATH
17263 hardcode_into_libs
=yes
17270 dynamic_linker
="$host_os runtime_loader"
17271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17272 soname_spec
='${libname}${release}${shared_ext}$major'
17273 shlibpath_var
=LIBRARY_PATH
17274 shlibpath_overrides_runpath
=yes
17275 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17276 hardcode_into_libs
=yes
17279 hpux9
* | hpux10
* | hpux11
*)
17280 # Give a soname corresponding to the major version so that dld.sl refuses to
17281 # link against other versions.
17288 hardcode_into_libs
=yes
17289 dynamic_linker
="$host_os dld.so"
17290 shlibpath_var
=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17292 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293 soname_spec
='${libname}${release}${shared_ext}$major'
17294 if test "X$HPUX_IA64_MODE" = X32
; then
17295 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17297 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17299 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17303 hardcode_into_libs
=yes
17304 dynamic_linker
="$host_os dld.sl"
17305 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17306 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17307 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17308 soname_spec
='${libname}${release}${shared_ext}$major'
17309 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17310 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17314 dynamic_linker
="$host_os dld.sl"
17315 shlibpath_var
=SHLIB_PATH
17316 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17317 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318 soname_spec
='${libname}${release}${shared_ext}$major'
17321 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17322 postinstall_cmds
='chmod 555 $lib'
17323 # or fails outright, so override atomically:
17324 install_override_mode
=555
17331 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17332 soname_spec
='${libname}${release}${shared_ext}$major'
17333 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17334 shlibpath_var
=LD_LIBRARY_PATH
17335 shlibpath_overrides_runpath
=no
17336 hardcode_into_libs
=yes
17339 irix5
* | irix6
* | nonstopux
*)
17341 nonstopux
*) version_type
=nonstopux
;;
17343 if test "$lt_cv_prog_gnu_ld" = yes; then
17351 soname_spec
='${libname}${release}${shared_ext}$major'
17352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17354 irix5
* | nonstopux
*)
17355 libsuff
= shlibsuff
=
17358 case $LD in # libtool.m4 will add one of these switches to LD
17359 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17360 libsuff
= shlibsuff
= libmagic
=32-bit;;
17361 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17362 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17363 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17364 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17365 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17369 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17370 shlibpath_overrides_runpath
=no
17371 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17372 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17373 hardcode_into_libs
=yes
17376 # No shared lib support for Linux oldld, aout, or coff.
17377 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17381 # This must be Linux ELF.
17382 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17386 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec
='${libname}${release}${shared_ext}$major'
17388 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17389 shlibpath_var
=LD_LIBRARY_PATH
17390 shlibpath_overrides_runpath
=no
17392 # Some binutils ld are patched to set DT_RUNPATH
17393 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17394 $as_echo_n "(cached) " >&6
17396 lt_cv_shlibpath_overrides_runpath
=no
17397 save_LDFLAGS
=$LDFLAGS
17398 save_libdir
=$libdir
17399 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17400 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17402 /* end confdefs.h. */
17412 if ac_fn_c_try_link
"$LINENO"; then :
17413 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17414 lt_cv_shlibpath_overrides_runpath
=yes
17417 rm -f core conftest.err conftest.
$ac_objext \
17418 conftest
$ac_exeext conftest.
$ac_ext
17419 LDFLAGS
=$save_LDFLAGS
17420 libdir
=$save_libdir
17424 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17426 # This implies no fast_install, which is unacceptable.
17427 # Some rework will be needed to allow for fast_install
17428 # before this can be enabled.
17429 hardcode_into_libs
=yes
17431 # Append ld.so.conf contents to the search path
17432 if test -f /etc
/ld.so.conf
; then
17433 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' ' '`
17434 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17437 # We used to test for /lib/ld.so.1 and disable shared libraries on
17438 # powerpc, because MkLinux only supported shared libraries with the
17439 # GNU dynamic linker. Since this was broken with cross compilers,
17440 # most powerpc-linux boxes support dynamic linking these days and
17441 # people can always --disable-shared, the test was removed, and we
17442 # assume the GNU/Linux dynamic linker is in use.
17443 dynamic_linker
='GNU/Linux ld.so'
17450 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17451 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17452 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17453 dynamic_linker
='NetBSD (a.out) ld.so'
17455 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17456 soname_spec
='${libname}${release}${shared_ext}$major'
17457 dynamic_linker
='NetBSD ld.elf_so'
17459 shlibpath_var
=LD_LIBRARY_PATH
17460 shlibpath_overrides_runpath
=yes
17461 hardcode_into_libs
=yes
17466 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17467 shlibpath_var
=LD_LIBRARY_PATH
17468 shlibpath_overrides_runpath
=yes
17475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17476 soname_spec
='${libname}${release}${shared_ext}$major'
17477 shlibpath_var
=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath
=no
17479 hardcode_into_libs
=yes
17480 dynamic_linker
='ldqnx.so'
17485 sys_lib_dlsearch_path_spec
="/usr/lib"
17487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17489 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17490 *) need_version
=no
;;
17492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17493 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17494 shlibpath_var
=LD_LIBRARY_PATH
17495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17497 openbsd2.
[89] | openbsd2.
[89].
*)
17498 shlibpath_overrides_runpath
=no
17501 shlibpath_overrides_runpath
=yes
17505 shlibpath_overrides_runpath
=yes
17510 libname_spec
='$name'
17513 library_names_spec
='$libname${shared_ext} $libname.a'
17514 dynamic_linker
='OS/2 ld.exe'
17515 shlibpath_var
=LIBPATH
17518 osf3
* | osf4
* | osf5
*)
17522 soname_spec
='${libname}${release}${shared_ext}$major'
17523 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17524 shlibpath_var
=LD_LIBRARY_PATH
17525 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17526 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17538 soname_spec
='${libname}${release}${shared_ext}$major'
17539 shlibpath_var
=LD_LIBRARY_PATH
17540 shlibpath_overrides_runpath
=yes
17541 hardcode_into_libs
=yes
17542 # ldd complains unless libraries are executable
17543 postinstall_cmds
='chmod +x $lib'
17548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17549 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17550 shlibpath_var
=LD_LIBRARY_PATH
17551 shlibpath_overrides_runpath
=yes
17552 if test "$with_gnu_ld" = yes; then
17560 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561 soname_spec
='${libname}${release}${shared_ext}$major'
17562 shlibpath_var
=LD_LIBRARY_PATH
17563 case $host_vendor in
17565 shlibpath_overrides_runpath
=no
17567 runpath_var
=LD_RUN_PATH
17575 shlibpath_overrides_runpath
=no
17576 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17582 if test -d /usr
/nec
;then
17584 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17585 soname_spec
='$libname${shared_ext}.$major'
17586 shlibpath_var
=LD_LIBRARY_PATH
17590 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17591 version_type
=freebsd-elf
17594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17595 soname_spec
='${libname}${release}${shared_ext}$major'
17596 shlibpath_var
=LD_LIBRARY_PATH
17597 shlibpath_overrides_runpath
=yes
17598 hardcode_into_libs
=yes
17599 if test "$with_gnu_ld" = yes; then
17600 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17602 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17605 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17609 sys_lib_dlsearch_path_spec
='/usr/lib'
17613 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17617 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17618 shlibpath_var
=LD_LIBRARY_PATH
17619 shlibpath_overrides_runpath
=no
17620 hardcode_into_libs
=yes
17625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17626 soname_spec
='${libname}${release}${shared_ext}$major'
17627 shlibpath_var
=LD_LIBRARY_PATH
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17635 $as_echo "$dynamic_linker" >&6; }
17636 test "$dynamic_linker" = no
&& can_build_shared
=no
17638 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17639 if test "$GCC" = yes; then
17640 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17643 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17644 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17646 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17647 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17742 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17744 if test -n "$hardcode_libdir_flag_spec" ||
17745 test -n "$runpath_var" ||
17746 test "X$hardcode_automatic" = "Xyes" ; then
17748 # We can hardcode non-existent directories.
17749 if test "$hardcode_direct" != no
&&
17750 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17751 # have to relink, otherwise we might link with an installed library
17752 # when we should be linking with a yet-to-be-installed one
17753 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17754 test "$hardcode_minus_L" != no
; then
17755 # Linking always hardcodes the temporary library directory.
17756 hardcode_action
=relink
17758 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17759 hardcode_action
=immediate
17762 # We cannot hardcode anything, or else we can only hardcode existing
17764 hardcode_action
=unsupported
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17767 $as_echo "$hardcode_action" >&6; }
17769 if test "$hardcode_action" = relink ||
17770 test "$inherit_rpath" = yes; then
17771 # Fast installation is not supported
17772 enable_fast_install
=no
17773 elif test "$shlibpath_overrides_runpath" = yes ||
17774 test "$enable_shared" = no
; then
17775 # Fast installation is not necessary
17776 enable_fast_install
=needless
17784 if test "x$enable_dlopen" != xyes
; then
17785 enable_dlopen
=unknown
17786 enable_dlopen_self
=unknown
17787 enable_dlopen_self_static
=unknown
17794 lt_cv_dlopen
="load_add_on"
17796 lt_cv_dlopen_self
=yes
17799 mingw
* | pw32
* | cegcc
*)
17800 lt_cv_dlopen
="LoadLibrary"
17805 lt_cv_dlopen
="dlopen"
17810 # if libdl is installed we need to link against it
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17813 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17814 $as_echo_n "(cached) " >&6
17816 ac_check_lib_save_LIBS
=$LIBS
17818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17819 /* end confdefs.h. */
17821 /* Override any GCC internal prototype to avoid an error.
17822 Use char because int might match the return type of a GCC
17823 builtin and then its argument prototype would still apply. */
17836 if ac_fn_c_try_link
"$LINENO"; then :
17837 ac_cv_lib_dl_dlopen
=yes
17839 ac_cv_lib_dl_dlopen
=no
17841 rm -f core conftest.err conftest.
$ac_objext \
17842 conftest
$ac_exeext conftest.
$ac_ext
17843 LIBS
=$ac_check_lib_save_LIBS
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17847 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17848 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17851 lt_cv_dlopen
="dyld"
17853 lt_cv_dlopen_self
=yes
17860 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17861 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17862 lt_cv_dlopen
="shl_load"
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17865 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17866 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17867 $as_echo_n "(cached) " >&6
17869 ac_check_lib_save_LIBS
=$LIBS
17871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17874 /* Override any GCC internal prototype to avoid an error.
17875 Use char because int might match the return type of a GCC
17876 builtin and then its argument prototype would still apply. */
17884 return shl_load ();
17889 if ac_fn_c_try_link
"$LINENO"; then :
17890 ac_cv_lib_dld_shl_load
=yes
17892 ac_cv_lib_dld_shl_load
=no
17894 rm -f core conftest.err conftest.
$ac_objext \
17895 conftest
$ac_exeext conftest.
$ac_ext
17896 LIBS
=$ac_check_lib_save_LIBS
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17899 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17900 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17901 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17903 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17904 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17905 lt_cv_dlopen
="dlopen"
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17908 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17909 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17910 $as_echo_n "(cached) " >&6
17912 ac_check_lib_save_LIBS
=$LIBS
17914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h. */
17917 /* Override any GCC internal prototype to avoid an error.
17918 Use char because int might match the return type of a GCC
17919 builtin and then its argument prototype would still apply. */
17932 if ac_fn_c_try_link
"$LINENO"; then :
17933 ac_cv_lib_dl_dlopen
=yes
17935 ac_cv_lib_dl_dlopen
=no
17937 rm -f core conftest.err conftest.
$ac_objext \
17938 conftest
$ac_exeext conftest.
$ac_ext
17939 LIBS
=$ac_check_lib_save_LIBS
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17942 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17943 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17944 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17947 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17948 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17949 $as_echo_n "(cached) " >&6
17951 ac_check_lib_save_LIBS
=$LIBS
17952 LIBS
="-lsvld $LIBS"
17953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17954 /* end confdefs.h. */
17956 /* Override any GCC internal prototype to avoid an error.
17957 Use char because int might match the return type of a GCC
17958 builtin and then its argument prototype would still apply. */
17971 if ac_fn_c_try_link
"$LINENO"; then :
17972 ac_cv_lib_svld_dlopen
=yes
17974 ac_cv_lib_svld_dlopen
=no
17976 rm -f core conftest.err conftest.
$ac_objext \
17977 conftest
$ac_exeext conftest.
$ac_ext
17978 LIBS
=$ac_check_lib_save_LIBS
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17981 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17982 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17983 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17986 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17987 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17988 $as_echo_n "(cached) " >&6
17990 ac_check_lib_save_LIBS
=$LIBS
17992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17993 /* end confdefs.h. */
17995 /* Override any GCC internal prototype to avoid an error.
17996 Use char because int might match the return type of a GCC
17997 builtin and then its argument prototype would still apply. */
18005 return dld_link ();
18010 if ac_fn_c_try_link
"$LINENO"; then :
18011 ac_cv_lib_dld_dld_link
=yes
18013 ac_cv_lib_dld_dld_link
=no
18015 rm -f core conftest.err conftest.
$ac_objext \
18016 conftest
$ac_exeext conftest.
$ac_ext
18017 LIBS
=$ac_check_lib_save_LIBS
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18020 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18021 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18022 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18043 if test "x$lt_cv_dlopen" != xno
; then
18049 case $lt_cv_dlopen in
18051 save_CPPFLAGS
="$CPPFLAGS"
18052 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18054 save_LDFLAGS
="$LDFLAGS"
18055 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18058 LIBS
="$lt_cv_dlopen_libs $LIBS"
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18061 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18062 if test "${lt_cv_dlopen_self+set}" = set; then :
18063 $as_echo_n "(cached) " >&6
18065 if test "$cross_compiling" = yes; then :
18066 lt_cv_dlopen_self
=cross
18068 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18069 lt_status
=$lt_dlunknown
18070 cat > conftest.
$ac_ext <<_LT_EOF
18071 #line 18071 "configure"
18072 #include "confdefs.h"
18081 # define LT_DLGLOBAL RTLD_GLOBAL
18084 # define LT_DLGLOBAL DL_GLOBAL
18086 # define LT_DLGLOBAL 0
18090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18091 find out it does not work in some platform. */
18092 #ifndef LT_DLLAZY_OR_NOW
18094 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18097 # define LT_DLLAZY_OR_NOW DL_LAZY
18100 # define LT_DLLAZY_OR_NOW RTLD_NOW
18103 # define LT_DLLAZY_OR_NOW DL_NOW
18105 # define LT_DLLAZY_OR_NOW 0
18112 /* When -fvisbility=hidden is used, assume the code has been annotated
18113 correspondingly for the symbols needed. */
18114 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18115 void fnord () __attribute__((visibility("default")));
18118 void fnord () { int i=42; }
18121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18122 int status = $lt_dlunknown;
18126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18129 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18130 else puts (dlerror ());
18132 /* dlclose (self); */
18140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18141 (eval $ac_link) 2>&5
18143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18144 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18145 (.
/conftest
; exit; ) >&5 2>/dev
/null
18147 case x
$lt_status in
18148 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18149 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18150 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18153 # compilation failed
18154 lt_cv_dlopen_self
=no
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18162 $as_echo "$lt_cv_dlopen_self" >&6; }
18164 if test "x$lt_cv_dlopen_self" = xyes
; then
18165 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18167 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18168 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18169 $as_echo_n "(cached) " >&6
18171 if test "$cross_compiling" = yes; then :
18172 lt_cv_dlopen_self_static
=cross
18174 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18175 lt_status
=$lt_dlunknown
18176 cat > conftest.
$ac_ext <<_LT_EOF
18177 #line 18177 "configure"
18178 #include "confdefs.h"
18187 # define LT_DLGLOBAL RTLD_GLOBAL
18190 # define LT_DLGLOBAL DL_GLOBAL
18192 # define LT_DLGLOBAL 0
18196 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18197 find out it does not work in some platform. */
18198 #ifndef LT_DLLAZY_OR_NOW
18200 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18203 # define LT_DLLAZY_OR_NOW DL_LAZY
18206 # define LT_DLLAZY_OR_NOW RTLD_NOW
18209 # define LT_DLLAZY_OR_NOW DL_NOW
18211 # define LT_DLLAZY_OR_NOW 0
18218 /* When -fvisbility=hidden is used, assume the code has been annotated
18219 correspondingly for the symbols needed. */
18220 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18221 void fnord () __attribute__((visibility("default")));
18224 void fnord () { int i=42; }
18227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18228 int status = $lt_dlunknown;
18232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18235 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18236 else puts (dlerror ());
18238 /* dlclose (self); */
18246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18247 (eval $ac_link) 2>&5
18249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18250 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18251 (.
/conftest
; exit; ) >&5 2>/dev
/null
18253 case x
$lt_status in
18254 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18255 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18256 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18259 # compilation failed
18260 lt_cv_dlopen_self_static
=no
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18268 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18271 CPPFLAGS
="$save_CPPFLAGS"
18272 LDFLAGS
="$save_LDFLAGS"
18277 case $lt_cv_dlopen_self in
18278 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18279 *) enable_dlopen_self
=unknown
;;
18282 case $lt_cv_dlopen_self_static in
18283 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18284 *) enable_dlopen_self_static
=unknown
;;
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18307 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18308 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18309 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18310 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18312 $as_echo "yes" >&6; }
18314 # FIXME - insert some real tests, host_os isn't really good enough
18317 if test -n "$STRIP" ; then
18318 striplib
="$STRIP -x"
18319 old_striplib
="$STRIP -S"
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18321 $as_echo "yes" >&6; }
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18324 $as_echo "no" >&6; }
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18329 $as_echo "no" >&6; }
18345 # Report which library types will actually be built
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18347 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18349 $as_echo "$can_build_shared" >&6; }
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18352 $as_echo_n "checking whether to build shared libraries... " >&6; }
18353 test "$can_build_shared" = "no" && enable_shared
=no
18355 # On AIX, shared libraries and static libraries use the same namespace, and
18356 # are all built from PIC.
18359 test "$enable_shared" = yes && enable_static
=no
18360 if test -n "$RANLIB"; then
18361 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18362 postinstall_cmds
='$RANLIB $lib'
18367 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18368 test "$enable_shared" = yes && enable_static
=no
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18373 $as_echo "$enable_shared" >&6; }
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18376 $as_echo_n "checking whether to build static libraries... " >&6; }
18377 # Make sure either enable_shared or enable_static is yes.
18378 test "$enable_shared" = yes || enable_static
=yes
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18380 $as_echo "$enable_static" >&6; }
18387 ac_cpp
='$CPP $CPPFLAGS'
18388 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18389 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18390 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18394 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18395 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18396 (test "X$CXX" != "Xg++"))) ; then
18398 ac_cpp
='$CXXCPP $CPPFLAGS'
18399 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18400 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18401 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18403 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18404 if test -z "$CXXCPP"; then
18405 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18406 $as_echo_n "(cached) " >&6
18408 # Double quotes because CXXCPP needs to be expanded
18409 for CXXCPP
in "$CXX -E" "/lib/cpp"
18411 ac_preproc_ok
=false
18412 for ac_cxx_preproc_warn_flag
in '' yes
18414 # Use a header file that comes with gcc, so configuring glibc
18415 # with a fresh cross-compiler works.
18416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18417 # <limits.h> exists even on freestanding compilers.
18418 # On the NeXT, cc -E runs the code through the compiler's parser,
18419 # not just through cpp. "Syntax error" is here to catch this case.
18420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h. */
18423 # include <limits.h>
18425 # include <assert.h>
18429 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18432 # Broken: fails on valid input.
18435 rm -f conftest.err conftest.
$ac_ext
18437 # OK, works on sane cases. Now check whether nonexistent headers
18438 # can be detected and how.
18439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18440 /* end confdefs.h. */
18441 #include <ac_nonexistent.h>
18443 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18444 # Broken: success on invalid input.
18447 # Passes both tests.
18451 rm -f conftest.err conftest.
$ac_ext
18454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18455 rm -f conftest.err conftest.
$ac_ext
18456 if $ac_preproc_ok; then :
18461 ac_cv_prog_CXXCPP
=$CXXCPP
18464 CXXCPP
=$ac_cv_prog_CXXCPP
18466 ac_cv_prog_CXXCPP
=$CXXCPP
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18469 $as_echo "$CXXCPP" >&6; }
18470 ac_preproc_ok
=false
18471 for ac_cxx_preproc_warn_flag
in '' yes
18473 # Use a header file that comes with gcc, so configuring glibc
18474 # with a fresh cross-compiler works.
18475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18476 # <limits.h> exists even on freestanding compilers.
18477 # On the NeXT, cc -E runs the code through the compiler's parser,
18478 # not just through cpp. "Syntax error" is here to catch this case.
18479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18480 /* end confdefs.h. */
18482 # include <limits.h>
18484 # include <assert.h>
18488 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18491 # Broken: fails on valid input.
18494 rm -f conftest.err conftest.
$ac_ext
18496 # OK, works on sane cases. Now check whether nonexistent headers
18497 # can be detected and how.
18498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18499 /* end confdefs.h. */
18500 #include <ac_nonexistent.h>
18502 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18503 # Broken: success on invalid input.
18506 # Passes both tests.
18510 rm -f conftest.err conftest.
$ac_ext
18513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18514 rm -f conftest.err conftest.
$ac_ext
18515 if $ac_preproc_ok; then :
18518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18520 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18521 See \`config.log' for more details." "$LINENO" 5; }
18525 ac_cpp
='$CPP $CPPFLAGS'
18526 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18531 _lt_caught_CXX_error
=yes
18535 ac_cpp
='$CXXCPP $CPPFLAGS'
18536 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18537 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18538 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18540 archive_cmds_need_lc_CXX
=no
18541 allow_undefined_flag_CXX
=
18542 always_export_symbols_CXX
=no
18543 archive_expsym_cmds_CXX
=
18544 compiler_needs_object_CXX
=no
18545 export_dynamic_flag_spec_CXX
=
18546 hardcode_direct_CXX
=no
18547 hardcode_direct_absolute_CXX
=no
18548 hardcode_libdir_flag_spec_CXX
=
18549 hardcode_libdir_flag_spec_ld_CXX
=
18550 hardcode_libdir_separator_CXX
=
18551 hardcode_minus_L_CXX
=no
18552 hardcode_shlibpath_var_CXX
=unsupported
18553 hardcode_automatic_CXX
=no
18554 inherit_rpath_CXX
=no
18556 module_expsym_cmds_CXX
=
18557 link_all_deplibs_CXX
=unknown
18558 old_archive_cmds_CXX
=$old_archive_cmds
18559 reload_flag_CXX
=$reload_flag
18560 reload_cmds_CXX
=$reload_cmds
18561 no_undefined_flag_CXX
=
18562 whole_archive_flag_spec_CXX
=
18563 enable_shared_with_static_runtimes_CXX
=no
18565 # Source file extension for C++ test sources.
18568 # Object file extension for compiled C++ test sources.
18572 # No sense in running all these tests if we already determined that
18573 # the CXX compiler isn't working. Some variables (like enable_shared)
18574 # are currently assumed to apply to all compilers on this platform,
18575 # and will be corrupted by setting them based on a non-working compiler.
18576 if test "$_lt_caught_CXX_error" != yes; then
18577 # Code to be used in simple compile tests
18578 lt_simple_compile_test_code
="int some_variable = 0;"
18580 # Code to be used in simple link tests
18581 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18583 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18590 # If no C compiler was specified, use CC.
18593 # If no C compiler flags were specified, use CFLAGS.
18594 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18596 # Allow CC to be a program name with arguments.
18600 # save warnings/boilerplate of simple test code
18601 ac_outfile
=conftest.
$ac_objext
18602 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18603 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18604 _lt_compiler_boilerplate
=`cat conftest.err`
18607 ac_outfile
=conftest.
$ac_objext
18608 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18609 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18610 _lt_linker_boilerplate
=`cat conftest.err`
18614 # Allow CC to be a program name with arguments.
18619 lt_save_with_gnu_ld
=$with_gnu_ld
18620 lt_save_path_LD
=$lt_cv_path_LD
18621 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18622 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18624 $as_unset lt_cv_prog_gnu_ld
18626 if test -n "${lt_cv_path_LDCXX+set}"; then
18627 lt_cv_path_LD
=$lt_cv_path_LDCXX
18629 $as_unset lt_cv_path_LD
18631 test -z "${LDCXX+set}" || LD
=$LDCXX
18635 for cc_temp
in $compiler""; do
18637 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18638 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18643 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18646 if test -n "$compiler"; then
18647 # We don't want -fno-exception when compiling C++ code, so set the
18648 # no_builtin_flag separately
18649 if test "$GXX" = yes; then
18650 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18652 lt_prog_compiler_no_builtin_flag_CXX
=
18655 if test "$GXX" = yes; then
18656 # Set up default GNU C++ configuration
18660 # Check whether --with-gnu-ld was given.
18661 if test "${with_gnu_ld+set}" = set; then :
18662 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18668 if test "$GCC" = yes; then
18669 # Check if gcc -print-prog-name=ld gives a path.
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18671 $as_echo_n "checking for ld used by $CC... " >&6; }
18674 # gcc leaves a trailing carriage return which upsets mingw
18675 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18677 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18680 # Accept absolute paths.
18682 re_direlt
='/[^/][^/]*/\.\./'
18683 # Canonicalize the pathname of ld
18684 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18685 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18686 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18688 test -z "$LD" && LD
="$ac_prog"
18691 # If it fails, then pretend we aren't using GCC.
18695 # If it is relative, then search for the first ld in PATH.
18696 with_gnu_ld
=unknown
18699 elif test "$with_gnu_ld" = yes; then
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18701 $as_echo_n "checking for GNU ld... " >&6; }
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18704 $as_echo_n "checking for non-GNU ld... " >&6; }
18706 if test "${lt_cv_path_LD+set}" = set; then :
18707 $as_echo_n "(cached) " >&6
18709 if test -z "$LD"; then
18710 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18711 for ac_dir
in $PATH; do
18713 test -z "$ac_dir" && ac_dir
=.
18714 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18715 lt_cv_path_LD
="$ac_dir/$ac_prog"
18716 # Check to see if the program is GNU ld. I'd rather use --version,
18717 # but apparently some variants of GNU ld only accept -v.
18718 # Break only if it was the GNU/non-GNU ld that we prefer.
18719 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18720 *GNU
* |
*'with BFD'*)
18721 test "$with_gnu_ld" != no
&& break
18724 test "$with_gnu_ld" != yes && break
18731 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18735 LD
="$lt_cv_path_LD"
18736 if test -n "$LD"; then
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18738 $as_echo "$LD" >&6; }
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18741 $as_echo "no" >&6; }
18743 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18745 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18746 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18747 $as_echo_n "(cached) " >&6
18749 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18750 case `$LD -v 2>&1 </dev/null` in
18751 *GNU
* |
*'with BFD'*)
18752 lt_cv_prog_gnu_ld
=yes
18755 lt_cv_prog_gnu_ld
=no
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18760 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18761 with_gnu_ld
=$lt_cv_prog_gnu_ld
18769 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18770 # archiving commands below assume that GNU ld is being used.
18771 if test "$with_gnu_ld" = yes; then
18772 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18773 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'
18775 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18776 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18778 # If archive_cmds runs LD, not CC, wlarc should be empty
18779 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18780 # investigate it a little bit more. (MM)
18783 # ancient GNU ld didn't support --whole-archive et. al.
18784 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18785 $GREP 'no-whole-archive' > /dev
/null
; then
18786 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18788 whole_archive_flag_spec_CXX
=
18794 # A generic and very simple default shared library creation
18795 # command for GNU C++ for the case where it uses the native
18796 # linker, instead of GNU ld. If possible, this setting should
18797 # overridden to take advantage of the native linker features on
18798 # the platform it is being used on.
18799 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18802 # Commands to make compiler produce verbose output that lists
18803 # what "hidden" libraries, object files and flags are used when
18804 # linking a shared library.
18805 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18813 # PORTME: fill in a description of your system's C++ link characteristics
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18815 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18819 # FIXME: insert proper C++ library support
18823 if test "$host_cpu" = ia64
; then
18824 # On IA64, the linker does run time linking by default, so we don't
18825 # have to do anything special.
18826 aix_use_runtimelinking
=no
18827 exp_sym_flag
='-Bexport'
18830 aix_use_runtimelinking
=no
18832 # Test if we are trying to use run time linking or normal
18833 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18834 # need to do runtime linking.
18835 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18836 for ld_flag
in $LDFLAGS; do
18839 aix_use_runtimelinking
=yes
18847 exp_sym_flag
='-bexport'
18848 no_entry_flag
='-bnoentry'
18851 # When large executables or shared objects are built, AIX ld can
18852 # have problems creating the table of contents. If linking a library
18853 # or program results in "error TOC overflow" add -mminimal-toc to
18854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18857 archive_cmds_CXX
=''
18858 hardcode_direct_CXX
=yes
18859 hardcode_direct_absolute_CXX
=yes
18860 hardcode_libdir_separator_CXX
=':'
18861 link_all_deplibs_CXX
=yes
18862 file_list_spec_CXX
='${wl}-f,'
18864 if test "$GXX" = yes; then
18865 case $host_os in aix4.
[012]|aix4.
[012].
*)
18866 # We only want to do this on AIX 4.2 and lower, the check
18867 # below for broken collect2 doesn't work under 4.3+
18868 collect2name
=`${CC} -print-prog-name=collect2`
18869 if test -f "$collect2name" &&
18870 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18872 # We have reworked collect2
18875 # We have old collect2
18876 hardcode_direct_CXX
=unsupported
18877 # It fails to find uninstalled libraries when the uninstalled
18878 # path is not listed in the libpath. Setting hardcode_minus_L
18879 # to unsupported forces relinking
18880 hardcode_minus_L_CXX
=yes
18881 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18882 hardcode_libdir_separator_CXX
=
18885 shared_flag
='-shared'
18886 if test "$aix_use_runtimelinking" = yes; then
18887 shared_flag
="$shared_flag "'${wl}-G'
18891 if test "$host_cpu" = ia64
; then
18892 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18893 # chokes on -Wl,-G. The following line is correct:
18896 if test "$aix_use_runtimelinking" = yes; then
18897 shared_flag
='${wl}-G'
18899 shared_flag
='${wl}-bM:SRE'
18904 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18905 # It seems that -bexpall does not export symbols beginning with
18906 # underscore (_), so it is better to generate a list of symbols to
18908 always_export_symbols_CXX
=yes
18909 if test "$aix_use_runtimelinking" = yes; then
18910 # Warning - without using the other runtime loading flags (-brtl),
18911 # -berok will link without error, but may produce a broken library.
18912 allow_undefined_flag_CXX
='-berok'
18913 # Determine the default libpath from the value encoded in an empty
18915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h. */
18926 if ac_fn_cxx_try_link
"$LINENO"; then :
18928 lt_aix_libpath_sed
='
18929 /Import File Strings/,/^$/ {
18935 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18936 # Check for a 64-bit object if we didn't find anything.
18937 if test -z "$aix_libpath"; then
18938 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18941 rm -f core conftest.err conftest.
$ac_objext \
18942 conftest
$ac_exeext conftest.
$ac_ext
18943 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18945 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18947 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"
18949 if test "$host_cpu" = ia64
; then
18950 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18951 allow_undefined_flag_CXX
="-z nodefs"
18952 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"
18954 # Determine the default libpath from the value encoded in an
18955 # empty executable.
18956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18957 /* end confdefs.h. */
18967 if ac_fn_cxx_try_link
"$LINENO"; then :
18969 lt_aix_libpath_sed
='
18970 /Import File Strings/,/^$/ {
18976 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18977 # Check for a 64-bit object if we didn't find anything.
18978 if test -z "$aix_libpath"; then
18979 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18982 rm -f core conftest.err conftest.
$ac_objext \
18983 conftest
$ac_exeext conftest.
$ac_ext
18984 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18986 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18987 # Warning - without using the other run time loading flags,
18988 # -berok will link without error, but may produce a broken library.
18989 no_undefined_flag_CXX
=' ${wl}-bernotok'
18990 allow_undefined_flag_CXX
=' ${wl}-berok'
18991 if test "$with_gnu_ld" = yes; then
18992 # We only use this code for GNU lds that support --whole-archive.
18993 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18995 # Exported symbols can be pulled into shared objects from archives
18996 whole_archive_flag_spec_CXX
='$convenience'
18998 archive_cmds_need_lc_CXX
=yes
18999 # This is similar to how AIX traditionally builds its shared
19001 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'
19007 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19008 allow_undefined_flag_CXX
=unsupported
19009 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19010 # support --undefined. This deserves some investigation. FIXME
19011 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19018 case $cc_basename in
19020 # FIXME: insert proper C++ library support
19026 cygwin
* | mingw
* | pw32
* | cegcc
*)
19027 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19028 # as there is no search path for DLLs.
19029 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19030 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19031 allow_undefined_flag_CXX
=unsupported
19032 always_export_symbols_CXX
=no
19033 enable_shared_with_static_runtimes_CXX
=yes
19035 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19036 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'
19037 # If the export-symbols file already is a .def file (1st line
19038 # is EXPORTS), use it as is; otherwise, prepend...
19039 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19040 cp $export_symbols $output_objdir/$soname.def;
19042 echo EXPORTS > $output_objdir/$soname.def;
19043 cat $export_symbols >> $output_objdir/$soname.def;
19045 $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'
19050 darwin
* | rhapsody
*)
19053 archive_cmds_need_lc_CXX
=no
19054 hardcode_direct_CXX
=no
19055 hardcode_automatic_CXX
=yes
19056 hardcode_shlibpath_var_CXX
=unsupported
19057 if test "$lt_cv_ld_force_load" = "yes"; then
19058 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\"`'
19060 whole_archive_flag_spec_CXX
=''
19062 link_all_deplibs_CXX
=yes
19063 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19064 case $cc_basename in
19065 ifort
*) _lt_dar_can_shared
=yes ;;
19066 *) _lt_dar_can_shared
=$GCC ;;
19068 if test "$_lt_dar_can_shared" = "yes"; then
19069 output_verbose_link_cmd
=func_echo_all
19070 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}"
19071 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19072 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}"
19073 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}"
19074 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19075 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}"
19076 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}"
19086 case $cc_basename in
19088 # FIXME: insert proper C++ library support
19092 # Green Hills C++ Compiler
19093 # FIXME: insert proper C++ library support
19097 # FIXME: insert proper C++ library support
19104 # C++ shared libraries reported to be fairly broken before
19110 archive_cmds_need_lc_CXX
=no
19113 freebsd
* | dragonfly
*)
19114 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19123 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19124 link_all_deplibs_CXX
=yes
19128 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19129 hardcode_libdir_separator_CXX
=:
19130 export_dynamic_flag_spec_CXX
='${wl}-E'
19131 hardcode_direct_CXX
=yes
19132 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19133 # but as the default
19134 # location of the library.
19136 case $cc_basename in
19138 # FIXME: insert proper C++ library support
19142 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'
19143 # Commands to make compiler produce verbose output that lists
19144 # what "hidden" libraries, object files and flags are used when
19145 # linking a shared library.
19147 # There doesn't appear to be a way to prevent this compiler from
19148 # explicitly linking system object files so we need to strip them
19149 # from the output so that they don't get included in the library
19151 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"'
19154 if test "$GXX" = yes; then
19155 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'
19157 # FIXME: insert proper C++ library support
19165 if test $with_gnu_ld = no
; then
19166 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19167 hardcode_libdir_separator_CXX
=:
19173 export_dynamic_flag_spec_CXX
='${wl}-E'
19179 hardcode_direct_CXX
=no
19180 hardcode_shlibpath_var_CXX
=no
19183 hardcode_direct_CXX
=yes
19184 hardcode_direct_absolute_CXX
=yes
19185 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19186 # but as the default
19187 # location of the library.
19191 case $cc_basename in
19193 # FIXME: insert proper C++ library support
19199 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19202 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19205 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19208 # Commands to make compiler produce verbose output that lists
19209 # what "hidden" libraries, object files and flags are used when
19210 # linking a shared library.
19212 # There doesn't appear to be a way to prevent this compiler from
19213 # explicitly linking system object files so we need to strip them
19214 # from the output so that they don't get included in the library
19216 output_verbose_link_cmd
='templist=`($CC -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"'
19219 if test "$GXX" = yes; then
19220 if test $with_gnu_ld = no
; then
19223 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19226 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19229 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'
19234 # FIXME: insert proper C++ library support
19242 hardcode_direct_CXX
=no
19243 hardcode_shlibpath_var_CXX
=no
19244 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19245 export_dynamic_flag_spec_CXX
='${wl}-E'
19246 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19247 # Instead, shared libraries are loaded at an image base (0x10000000 by
19248 # default) and relocated if they conflict, which is a slow very memory
19249 # consuming and fragmenting process. To avoid this, we pick a random,
19250 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19251 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19252 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'
19253 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'
19256 case $cc_basename in
19259 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'
19261 # Archives containing C++ object files must be created using
19262 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19263 # necessary to make sure instantiated templates are included
19265 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19268 if test "$GXX" = yes; then
19269 if test "$with_gnu_ld" = no
; then
19270 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'
19272 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'
19275 link_all_deplibs_CXX
=yes
19278 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19279 hardcode_libdir_separator_CXX
=:
19280 inherit_rpath_CXX
=yes
19283 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19284 case $cc_basename in
19286 # Kuck and Associates, Inc. (KAI) C++ Compiler
19288 # KCC will only create a shared library if the output file
19289 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19290 # to its proper name (with version) after linking.
19291 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'
19292 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'
19293 # Commands to make compiler produce verbose output that lists
19294 # what "hidden" libraries, object files and flags are used when
19295 # linking a shared library.
19297 # There doesn't appear to be a way to prevent this compiler from
19298 # explicitly linking system object files so we need to strip them
19299 # from the output so that they don't get included in the library
19301 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"'
19303 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19304 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19306 # Archives containing C++ object files must be created using
19307 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19308 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19313 # version 8.0 and above of icpc choke on multiply defined symbols
19314 # if we add $predep_objects and $postdep_objects, however 7.1 and
19315 # earlier do not add the objects themselves.
19316 case `$CC -V 2>&1` in
19318 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19319 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'
19321 *) # Version 8.0 or newer
19324 ia64
*) tmp_idyn
=' -i_dynamic';;
19326 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19327 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'
19330 archive_cmds_need_lc_CXX
=no
19331 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19332 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19333 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19336 # Portland Group C++ compiler
19338 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19339 prelink_cmds_CXX
='tpldir=Template.dir~
19341 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19342 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19343 old_archive_cmds_CXX
='tpldir=Template.dir~
19345 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19346 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19348 archive_cmds_CXX
='tpldir=Template.dir~
19350 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19351 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19352 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19354 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19355 $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'
19357 *) # Version 6 and above use weak symbols
19358 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19359 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'
19363 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19364 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19365 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'
19369 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19370 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'
19372 runpath_var
=LD_RUN_PATH
19373 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19374 hardcode_libdir_separator_CXX
=:
19376 # Commands to make compiler produce verbose output that lists
19377 # what "hidden" libraries, object files and flags are used when
19378 # linking a shared library.
19380 # There doesn't appear to be a way to prevent this compiler from
19381 # explicitly linking system object files so we need to strip them
19382 # from the output so that they don't get included in the library
19384 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'
19386 xl
* | mpixl
* | bgxl
*)
19387 # IBM XL 8.0 on PPC, with GNU ld
19388 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19389 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19390 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19391 if test "x$supports_anon_versioning" = xyes
; then
19392 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19393 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19394 echo "local: *; };" >> $output_objdir/$libname.ver~
19395 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19399 case `$CC -V 2>&1 | sed 5q` in
19402 no_undefined_flag_CXX
=' -zdefs'
19403 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19404 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'
19405 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19406 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'
19407 compiler_needs_object_CXX
=yes
19409 # Not sure whether something based on
19410 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19412 output_verbose_link_cmd
='func_echo_all'
19414 # Archives containing C++ object files must be created using
19415 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19416 # necessary to make sure instantiated templates are included
19418 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19426 # FIXME: insert proper C++ library support
19431 # FIXME: insert proper C++ library support
19436 case $cc_basename in
19438 # FIXME: insert proper C++ library support
19442 # FIXME: insert proper C++ library support
19449 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19450 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19452 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19453 hardcode_direct_CXX
=yes
19454 hardcode_shlibpath_var_CXX
=no
19456 # Workaround some broken pre-1.5 toolchains
19457 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19465 # C++ shared libraries are fairly broken
19470 if test -f /usr
/libexec
/ld.so
; then
19471 hardcode_direct_CXX
=yes
19472 hardcode_shlibpath_var_CXX
=no
19473 hardcode_direct_absolute_CXX
=yes
19474 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19475 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19477 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19478 export_dynamic_flag_spec_CXX
='${wl}-E'
19479 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19481 output_verbose_link_cmd
=func_echo_all
19487 osf3
* | osf4
* | osf5
*)
19488 case $cc_basename in
19490 # Kuck and Associates, Inc. (KAI) C++ Compiler
19492 # KCC will only create a shared library if the output file
19493 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19494 # to its proper name (with version) after linking.
19495 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'
19497 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19498 hardcode_libdir_separator_CXX
=:
19500 # Archives containing C++ object files must be created using
19501 # the KAI C++ compiler.
19503 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19504 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19508 # Rational C++ 2.4.1
19509 # FIXME: insert proper C++ library support
19515 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19516 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'
19517 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19520 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19521 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'
19522 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19523 echo "-hidden">> $lib.exp~
19524 $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~
19526 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19530 hardcode_libdir_separator_CXX
=:
19532 # Commands to make compiler produce verbose output that lists
19533 # what "hidden" libraries, object files and flags are used when
19534 # linking a shared library.
19536 # There doesn't appear to be a way to prevent this compiler from
19537 # explicitly linking system object files so we need to strip them
19538 # from the output so that they don't get included in the library
19540 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"'
19543 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19544 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19547 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'
19550 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'
19554 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19555 hardcode_libdir_separator_CXX
=:
19557 # Commands to make compiler produce verbose output that lists
19558 # what "hidden" libraries, object files and flags are used when
19559 # linking a shared library.
19560 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19563 # FIXME: insert proper C++ library support
19571 # FIXME: insert proper C++ library support
19576 case $cc_basename in
19579 # FIXME: insert proper C++ library support
19584 # FIXME: insert proper C++ library support
19588 # FIXME: insert proper C++ library support
19595 case $cc_basename in
19597 # Sun C++ 4.2, 5.x and Centerline C++
19598 archive_cmds_need_lc_CXX
=yes
19599 no_undefined_flag_CXX
=' -zdefs'
19600 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19601 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19602 $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'
19604 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19605 hardcode_shlibpath_var_CXX
=no
19607 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19609 # The compiler driver will combine and reorder linker options,
19610 # but understands `-z linker_flag'.
19611 # Supported since Solaris 2.6 (maybe 2.5.1?)
19612 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19615 link_all_deplibs_CXX
=yes
19617 output_verbose_link_cmd
='func_echo_all'
19619 # Archives containing C++ object files must be created using
19620 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19621 # necessary to make sure instantiated templates are included
19623 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19626 # Green Hills C++ Compiler
19627 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19629 # The C++ compiler must be used to create the archive.
19630 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19633 # GNU C++ compiler with Solaris linker
19634 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19635 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19636 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19637 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19638 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19639 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19641 # Commands to make compiler produce verbose output that lists
19642 # what "hidden" libraries, object files and flags are used when
19643 # linking a shared library.
19644 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19646 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19648 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19649 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19650 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19652 # Commands to make compiler produce verbose output that lists
19653 # what "hidden" libraries, object files and flags are used when
19654 # linking a shared library.
19655 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19658 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19660 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19662 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19670 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19671 no_undefined_flag_CXX
='${wl}-z,text'
19672 archive_cmds_need_lc_CXX
=no
19673 hardcode_shlibpath_var_CXX
=no
19674 runpath_var
='LD_RUN_PATH'
19676 case $cc_basename in
19678 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19679 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19682 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19683 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19688 sysv5
* | sco3.2v5
* | sco5v6
*)
19689 # Note: We can NOT use -z defs as we might desire, because we do not
19690 # link with -lc, and that would cause any symbols used from libc to
19691 # always be unresolved, which means just about no library would
19692 # ever link correctly. If we're not using GNU ld we use -z text
19693 # though, which does catch some bad symbols but isn't as heavy-handed
19695 no_undefined_flag_CXX
='${wl}-z,text'
19696 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19697 archive_cmds_need_lc_CXX
=no
19698 hardcode_shlibpath_var_CXX
=no
19699 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19700 hardcode_libdir_separator_CXX
=':'
19701 link_all_deplibs_CXX
=yes
19702 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19703 runpath_var
='LD_RUN_PATH'
19705 case $cc_basename in
19707 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19708 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19709 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19710 '"$old_archive_cmds_CXX"
19711 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19712 '"$reload_cmds_CXX"
19715 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19716 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19722 case $cc_basename in
19724 # NonStop-UX NCC 3.20
19725 # FIXME: insert proper C++ library support
19729 # FIXME: insert proper C++ library support
19736 # FIXME: insert proper C++ library support
19741 # FIXME: insert proper C++ library support
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19747 $as_echo "$ld_shlibs_CXX" >&6; }
19748 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19754 ## There is no encapsulation within the following macros, do not change
19755 ## the running order or otherwise move them around unless you know exactly
19756 ## what you are doing...
19757 # Dependencies to place before and after the object being linked:
19758 predep_objects_CXX
=
19759 postdep_objects_CXX
=
19762 compiler_lib_search_path_CXX
=
19764 cat > conftest.
$ac_ext <<_LT_EOF
19768 Foo (void) { a = 0; }
19774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19775 (eval $ac_compile) 2>&5
19777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19778 test $ac_status = 0; }; then
19779 # Parse the compiler output and extract the necessary
19780 # objects, libraries and library flags.
19782 # Sentinel used to keep track of whether or not we are before
19783 # the conftest object file.
19784 pre_test_object_deps_done
=no
19786 for p
in `eval "$output_verbose_link_cmd"`; do
19790 # Some compilers place space between "-{L,R}" and the path.
19791 # Remove the space.
19792 if test $p = "-L" ||
19793 test $p = "-R"; then
19800 if test "$pre_test_object_deps_done" = no
; then
19803 # Internal compiler library paths should come after those
19804 # provided the user. The postdeps already come after the
19805 # user supplied libs so there is no need to process them.
19806 if test -z "$compiler_lib_search_path_CXX"; then
19807 compiler_lib_search_path_CXX
="${prev}${p}"
19809 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19812 # The "-l" case would never come before the object being
19813 # linked, so don't bother handling this case.
19816 if test -z "$postdeps_CXX"; then
19817 postdeps_CXX
="${prev}${p}"
19819 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19825 # This assumes that the test object file only shows up
19826 # once in the compiler output.
19827 if test "$p" = "conftest.$objext"; then
19828 pre_test_object_deps_done
=yes
19832 if test "$pre_test_object_deps_done" = no
; then
19833 if test -z "$predep_objects_CXX"; then
19834 predep_objects_CXX
="$p"
19836 predep_objects_CXX
="$predep_objects_CXX $p"
19839 if test -z "$postdep_objects_CXX"; then
19840 postdep_objects_CXX
="$p"
19842 postdep_objects_CXX
="$postdep_objects_CXX $p"
19847 *) ;; # Ignore the rest.
19855 echo "libtool.m4: error: problem compiling CXX test program"
19858 $RM -f confest.
$objext
19860 # PORTME: override above test on systems where it is broken
19863 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19864 # hack all around it, let's just trust "g++" to DTRT.
19865 predep_objects_CXX
=
19866 postdep_objects_CXX
=
19871 case `$CC -V 2>&1 | sed 5q` in
19875 # The more standards-conforming stlport4 library is
19876 # incompatible with the Cstd library. Avoid specifying
19877 # it if it's in CXXFLAGS. Ignore libCrun as
19878 # -library=stlport4 depends on it.
19879 case " $CXX $CXXFLAGS " in
19880 *" -library=stlport4 "*)
19881 solaris_use_stlport4
=yes
19885 if test "$solaris_use_stlport4" != yes; then
19886 postdeps_CXX
='-library=Cstd -library=Crun'
19893 case $cc_basename in
19895 # The more standards-conforming stlport4 library is
19896 # incompatible with the Cstd library. Avoid specifying
19897 # it if it's in CXXFLAGS. Ignore libCrun as
19898 # -library=stlport4 depends on it.
19899 case " $CXX $CXXFLAGS " in
19900 *" -library=stlport4 "*)
19901 solaris_use_stlport4
=yes
19905 # Adding this requires a known-good setup of shared libraries for
19906 # Sun compiler versions before 5.6, else PIC objects from an old
19907 # archive will be linked into the output, leading to subtle bugs.
19908 if test "$solaris_use_stlport4" != yes; then
19909 postdeps_CXX
='-library=Cstd -library=Crun'
19917 case " $postdeps_CXX " in
19918 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19920 compiler_lib_search_dirs_CXX
=
19921 if test -n "${compiler_lib_search_path_CXX}"; then
19922 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19955 lt_prog_compiler_wl_CXX
=
19956 lt_prog_compiler_pic_CXX
=
19957 lt_prog_compiler_static_CXX
=
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19960 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19962 # C++ specific cases for pic, static, wl, etc.
19963 if test "$GXX" = yes; then
19964 lt_prog_compiler_wl_CXX
='-Wl,'
19965 lt_prog_compiler_static_CXX
='-static'
19969 # All AIX code is PIC.
19970 if test "$host_cpu" = ia64
; then
19971 # AIX 5 now supports IA64 processor
19972 lt_prog_compiler_static_CXX
='-Bstatic'
19979 # see comment about AmigaOS4 .so support
19980 lt_prog_compiler_pic_CXX
='-fPIC'
19983 # FIXME: we need at least 68020 code to build shared libraries, but
19984 # adding the `-m68020' flag to GCC prevents building anything better,
19986 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19991 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19992 # PIC is the default for these OSes.
19994 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19995 # This hack is so that the source file can tell whether it is being
19996 # built for inclusion in a dll (and should export symbols for example).
19997 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19998 # (--disable-auto-import) libraries
19999 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20001 darwin
* | rhapsody
*)
20002 # PIC is the default on this platform
20003 # Common symbols not allowed in MH_DYLIB files
20004 lt_prog_compiler_pic_CXX
='-fno-common'
20007 # DJGPP does not support shared libraries at all
20008 lt_prog_compiler_pic_CXX
=
20011 # PIC is the default for Haiku.
20012 # The "-static" flag exists, but is broken.
20013 lt_prog_compiler_static_CXX
=
20016 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20017 # Instead, we relocate shared libraries at runtime.
20020 if test -d /usr
/nec
; then
20021 lt_prog_compiler_pic_CXX
=-Kconform_pic
20025 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20026 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20027 # sets the default TLS model and affects inlining.
20032 lt_prog_compiler_pic_CXX
='-fPIC'
20037 # QNX uses GNU C++, but need to define -shared option too, otherwise
20038 # it will coredump.
20039 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20042 lt_prog_compiler_pic_CXX
='-fPIC'
20048 # All AIX code is PIC.
20049 if test "$host_cpu" = ia64
; then
20050 # AIX 5 now supports IA64 processor
20051 lt_prog_compiler_static_CXX
='-Bstatic'
20053 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20057 case $cc_basename in
20059 # Green Hills C++ Compiler
20060 # _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"
20065 case $cc_basename in
20067 lt_prog_compiler_pic_CXX
='-KPIC'
20070 # Green Hills C++ Compiler
20071 lt_prog_compiler_pic_CXX
='-pic'
20077 freebsd
* | dragonfly
*)
20078 # FreeBSD uses GNU C++
20080 hpux9
* | hpux10
* | hpux11
*)
20081 case $cc_basename in
20083 lt_prog_compiler_wl_CXX
='-Wl,'
20084 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20085 if test "$host_cpu" != ia64
; then
20086 lt_prog_compiler_pic_CXX
='+Z'
20090 lt_prog_compiler_wl_CXX
='-Wl,'
20091 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20097 lt_prog_compiler_pic_CXX
='+Z'
20106 # This is c89, which is MS Visual C++ (no shared libs)
20107 # Anyone wants to do a port?
20109 irix5
* | irix6
* | nonstopux
*)
20110 case $cc_basename in
20112 lt_prog_compiler_wl_CXX
='-Wl,'
20113 lt_prog_compiler_static_CXX
='-non_shared'
20114 # CC pic flag -KPIC is the default.
20120 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20121 case $cc_basename in
20124 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20125 lt_prog_compiler_pic_CXX
='-fPIC'
20128 # old Intel C++ for x86_64 which still supported -KPIC.
20129 lt_prog_compiler_wl_CXX
='-Wl,'
20130 lt_prog_compiler_pic_CXX
='-KPIC'
20131 lt_prog_compiler_static_CXX
='-static'
20134 # Intel C++, used to be incompatible with GCC.
20135 # ICC 10 doesn't accept -KPIC any more.
20136 lt_prog_compiler_wl_CXX
='-Wl,'
20137 lt_prog_compiler_pic_CXX
='-fPIC'
20138 lt_prog_compiler_static_CXX
='-static'
20141 # Portland Group C++ compiler
20142 lt_prog_compiler_wl_CXX
='-Wl,'
20143 lt_prog_compiler_pic_CXX
='-fpic'
20144 lt_prog_compiler_static_CXX
='-Bstatic'
20148 # Make sure the PIC flag is empty. It appears that all Alpha
20149 # Linux and Compaq Tru64 Unix objects are PIC.
20150 lt_prog_compiler_pic_CXX
=
20151 lt_prog_compiler_static_CXX
='-non_shared'
20153 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20154 # IBM XL 8.0, 9.0 on PPC and BlueGene
20155 lt_prog_compiler_wl_CXX
='-Wl,'
20156 lt_prog_compiler_pic_CXX
='-qpic'
20157 lt_prog_compiler_static_CXX
='-qstaticlink'
20160 case `$CC -V 2>&1 | sed 5q` in
20163 lt_prog_compiler_pic_CXX
='-KPIC'
20164 lt_prog_compiler_static_CXX
='-Bstatic'
20165 lt_prog_compiler_wl_CXX
='-Qoption ld '
20176 case $cc_basename in
20178 lt_prog_compiler_pic_CXX
='-W c,exportall'
20187 # QNX uses GNU C++, but need to define -shared option too, otherwise
20188 # it will coredump.
20189 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20191 osf3
* | osf4
* | osf5
*)
20192 case $cc_basename in
20194 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20197 # Rational C++ 2.4.1
20198 lt_prog_compiler_pic_CXX
='-pic'
20201 # Digital/Compaq C++
20202 lt_prog_compiler_wl_CXX
='-Wl,'
20203 # Make sure the PIC flag is empty. It appears that all Alpha
20204 # Linux and Compaq Tru64 Unix objects are PIC.
20205 lt_prog_compiler_pic_CXX
=
20206 lt_prog_compiler_static_CXX
='-non_shared'
20215 case $cc_basename in
20217 # Sun C++ 4.2, 5.x and Centerline C++
20218 lt_prog_compiler_pic_CXX
='-KPIC'
20219 lt_prog_compiler_static_CXX
='-Bstatic'
20220 lt_prog_compiler_wl_CXX
='-Qoption ld '
20223 # Green Hills C++ Compiler
20224 lt_prog_compiler_pic_CXX
='-PIC'
20231 case $cc_basename in
20234 lt_prog_compiler_pic_CXX
='-pic'
20235 lt_prog_compiler_static_CXX
='-Bstatic'
20239 lt_prog_compiler_pic_CXX
='-pic'
20245 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20246 case $cc_basename in
20248 lt_prog_compiler_wl_CXX
='-Wl,'
20249 lt_prog_compiler_pic_CXX
='-KPIC'
20250 lt_prog_compiler_static_CXX
='-Bstatic'
20255 case $cc_basename in
20257 # NonStop-UX NCC 3.20
20258 lt_prog_compiler_pic_CXX
='-KPIC'
20267 lt_prog_compiler_can_build_shared_CXX
=no
20273 # For platforms which do not support PIC, -DPIC is meaningless:
20275 lt_prog_compiler_pic_CXX
=
20278 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20282 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20287 # Check to make sure the PIC flag actually works.
20289 if test -n "$lt_prog_compiler_pic_CXX"; then
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20291 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20292 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20293 $as_echo_n "(cached) " >&6
20295 lt_cv_prog_compiler_pic_works_CXX
=no
20296 ac_outfile
=conftest.
$ac_objext
20297 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20298 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20299 # Insert the option either (1) after the last *FLAGS variable, or
20300 # (2) before a word containing "conftest.", or (3) at the end.
20301 # Note that $ac_compile itself does not contain backslashes and begins
20302 # with a dollar sign (not a hyphen), so the echo should work correctly.
20303 # The option is referenced via a variable to avoid confusing sed.
20304 lt_compile
=`echo "$ac_compile" | $SED \
20305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20307 -e 's:$: $lt_compiler_flag:'`
20308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20309 (eval "$lt_compile" 2>conftest.err
)
20311 cat conftest.err
>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 if (exit $ac_status) && test -s "$ac_outfile"; then
20314 # The compiler can only warn and ignore the option if not recognized
20315 # So say no if there are warnings other than the usual output.
20316 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20317 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20318 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20319 lt_cv_prog_compiler_pic_works_CXX
=yes
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20326 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20328 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20329 case $lt_prog_compiler_pic_CXX in
20331 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20334 lt_prog_compiler_pic_CXX
=
20335 lt_prog_compiler_can_build_shared_CXX
=no
20343 # Check to make sure the static flag actually works.
20345 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20347 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20348 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20349 $as_echo_n "(cached) " >&6
20351 lt_cv_prog_compiler_static_works_CXX
=no
20352 save_LDFLAGS
="$LDFLAGS"
20353 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20354 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20355 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20356 # The linker can only warn and ignore the option if not recognized
20357 # So say no if there are warnings
20358 if test -s conftest.err
; then
20359 # Append any errors to the config.log.
20360 cat conftest.err
1>&5
20361 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20362 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20363 if diff conftest.exp conftest.er2
>/dev
/null
; then
20364 lt_cv_prog_compiler_static_works_CXX
=yes
20367 lt_cv_prog_compiler_static_works_CXX
=yes
20371 LDFLAGS
="$save_LDFLAGS"
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20375 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20377 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20380 lt_prog_compiler_static_CXX
=
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20387 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20388 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20389 $as_echo_n "(cached) " >&6
20391 lt_cv_prog_compiler_c_o_CXX
=no
20392 $RM -r conftest
2>/dev
/null
20396 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20398 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20399 # Insert the option either (1) after the last *FLAGS variable, or
20400 # (2) before a word containing "conftest.", or (3) at the end.
20401 # Note that $ac_compile itself does not contain backslashes and begins
20402 # with a dollar sign (not a hyphen), so the echo should work correctly.
20403 lt_compile
=`echo "$ac_compile" | $SED \
20404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20406 -e 's:$: $lt_compiler_flag:'`
20407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20408 (eval "$lt_compile" 2>out
/conftest.err
)
20410 cat out
/conftest.err
>&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20414 # The compiler can only warn and ignore the option if not recognized
20415 # So say no if there are warnings
20416 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20417 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20418 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20419 lt_cv_prog_compiler_c_o_CXX
=yes
20424 # SGI C++ compiler will create directory out/ii_files/ for
20425 # template instantiation
20426 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20427 $RM out
/* && rmdir out
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20434 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20439 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20440 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20441 $as_echo_n "(cached) " >&6
20443 lt_cv_prog_compiler_c_o_CXX
=no
20444 $RM -r conftest
2>/dev
/null
20448 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20450 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20451 # Insert the option either (1) after the last *FLAGS variable, or
20452 # (2) before a word containing "conftest.", or (3) at the end.
20453 # Note that $ac_compile itself does not contain backslashes and begins
20454 # with a dollar sign (not a hyphen), so the echo should work correctly.
20455 lt_compile
=`echo "$ac_compile" | $SED \
20456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20458 -e 's:$: $lt_compiler_flag:'`
20459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20460 (eval "$lt_compile" 2>out
/conftest.err
)
20462 cat out
/conftest.err
>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20466 # The compiler can only warn and ignore the option if not recognized
20467 # So say no if there are warnings
20468 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20469 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20470 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20471 lt_cv_prog_compiler_c_o_CXX
=yes
20476 # SGI C++ compiler will create directory out/ii_files/ for
20477 # template instantiation
20478 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20479 $RM out
/* && rmdir out
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20486 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20491 hard_links
="nottested"
20492 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20493 # do not overwrite the value of need_locks provided by the user
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20495 $as_echo_n "checking if we can lock with hard links... " >&6; }
20498 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20500 ln conftest.a conftest.b
2>&5 || hard_links
=no
20501 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20503 $as_echo "$hard_links" >&6; }
20504 if test "$hard_links" = no
; then
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20506 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20516 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20518 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20521 # If we're using GNU nm, then we don't want the "-C" option.
20522 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20523 # Also, AIX nm treats weak defined symbols like other global defined
20524 # symbols, whereas GNU nm marks them as "W".
20525 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20526 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'
20528 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'
20532 export_symbols_cmds_CXX
="$ltdll_cmds"
20534 cygwin
* | mingw
* | cegcc
*)
20535 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'
20538 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20541 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20544 $as_echo "$ld_shlibs_CXX" >&6; }
20545 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20547 with_gnu_ld_CXX
=$with_gnu_ld
20555 # Do we need to explicitly link libc?
20557 case "x$archive_cmds_need_lc_CXX" in
20559 # Assume -lc should be added
20560 archive_cmds_need_lc_CXX
=yes
20562 if test "$enable_shared" = yes && test "$GCC" = yes; then
20563 case $archive_cmds_CXX in
20565 # FIXME: we may have to deal with multi-command sequences.
20568 # Test whether the compiler implicitly links with -lc since on some
20569 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20570 # to ld, don't add -lc before -lgcc.
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20572 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20573 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20574 $as_echo_n "(cached) " >&6
20577 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20580 (eval $ac_compile) 2>&5
20582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20583 test $ac_status = 0; } 2>conftest.err
; then
20586 libobjs
=conftest.
$ac_objext
20588 wl
=$lt_prog_compiler_wl_CXX
20589 pic_flag
=$lt_prog_compiler_pic_CXX
20595 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20596 allow_undefined_flag_CXX
=
20597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20598 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20601 test $ac_status = 0; }
20603 lt_cv_archive_cmds_need_lc_CXX
=no
20605 lt_cv_archive_cmds_need_lc_CXX
=yes
20607 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20609 cat conftest.err
1>&5
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20615 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20616 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20687 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20689 library_names_spec
=
20690 libname_spec
='lib$name'
20694 postuninstall_cmds
=
20698 shlibpath_overrides_runpath
=unknown
20700 dynamic_linker
="$host_os ld.so"
20701 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20702 need_lib_prefix
=unknown
20703 hardcode_into_libs
=no
20705 # when you set need_version to no, make sure it does not cause -set_version
20706 # flags to be left without arguments
20707 need_version
=unknown
20712 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20713 shlibpath_var
=LIBPATH
20715 # AIX 3 has no versioning support, so we append a major version to the name.
20716 soname_spec
='${libname}${release}${shared_ext}$major'
20723 hardcode_into_libs
=yes
20724 if test "$host_cpu" = ia64
; then
20725 # AIX 5 supports IA64
20726 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20727 shlibpath_var
=LD_LIBRARY_PATH
20729 # With GCC up to 2.95.x, collect2 would create an import file
20730 # for dependence libraries. The import file would start with
20731 # the line `#! .'. This would cause the generated library to
20732 # depend on `.', always an invalid library. This was fixed in
20733 # development snapshots of GCC prior to 3.0.
20735 aix4 | aix4.
[01] | aix4.
[01].
*)
20736 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20738 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20741 can_build_shared
=no
20745 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20746 # soname into executable. Probably we can add versioning support to
20747 # collect2, so additional links can be useful in future.
20748 if test "$aix_use_runtimelinking" = yes; then
20749 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20750 # instead of lib<name>.a to let people know that these are not
20751 # typical AIX shared libraries.
20752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20754 # We preserve .a as extension for shared libraries through AIX4.2
20755 # and later when we are not doing run time linking.
20756 library_names_spec
='${libname}${release}.a $libname.a'
20757 soname_spec
='${libname}${release}${shared_ext}$major'
20759 shlibpath_var
=LIBPATH
20766 # Since July 2007 AmigaOS4 officially supports .so libraries.
20767 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20771 library_names_spec
='$libname.ixlibrary $libname.a'
20772 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20773 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'
20779 library_names_spec
='${libname}${shared_ext}'
20780 dynamic_linker
="$host_os ld.so"
20781 shlibpath_var
=LIBRARY_PATH
20787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20788 soname_spec
='${libname}${release}${shared_ext}$major'
20789 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20790 shlibpath_var
=LD_LIBRARY_PATH
20791 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20792 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20793 # the default ld.so.conf also contains /usr/contrib/lib and
20794 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20795 # libtool to hard-code these into programs
20798 cygwin
* | mingw
* | pw32
* | cegcc
*)
20799 version_type
=windows
20804 case $GCC,$host_os in
20805 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20806 library_names_spec
='$libname.dll.a'
20807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20808 postinstall_cmds
='base_file=`basename \${file}`~
20809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20810 dldir=$destdir/`dirname \$dlpath`~
20811 test -d \$dldir || mkdir -p \$dldir~
20812 $install_prog $dir/$dlname \$dldir/$dlname~
20813 chmod a+x \$dldir/$dlname~
20814 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20815 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20817 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20818 dlpath=$dir/\$dldll~
20820 shlibpath_overrides_runpath
=yes
20824 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20825 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20829 # MinGW DLLs use traditional 'lib' prefix
20830 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20833 # pw32 DLLs use 'pw' prefix rather than 'lib'
20834 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20840 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20843 dynamic_linker
='Win32 ld.exe'
20844 # FIXME: first we should search . and the directory the executable is in
20848 darwin
* | rhapsody
*)
20849 dynamic_linker
="$host_os dyld"
20850 version_type
=darwin
20853 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20854 soname_spec
='${libname}${release}${major}$shared_ext'
20855 shlibpath_overrides_runpath
=yes
20856 shlibpath_var
=DYLD_LIBRARY_PATH
20857 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20859 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20867 soname_spec
='${libname}${release}${shared_ext}$major'
20868 shlibpath_var
=LD_LIBRARY_PATH
20871 freebsd
* | dragonfly
*)
20872 # DragonFly does not have aout. When/if they implement a new
20873 # versioning mechanism, adjust this.
20874 if test -x /usr
/bin
/objformat
; then
20875 objformat
=`/usr/bin/objformat`
20878 freebsd
[123]*) objformat
=aout
;;
20879 *) objformat
=elf
;;
20882 version_type
=freebsd-
$objformat
20883 case $version_type in
20885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20890 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20894 shlibpath_var
=LD_LIBRARY_PATH
20897 shlibpath_overrides_runpath
=yes
20899 freebsd3.
[01]* | freebsdelf3.
[01]*)
20900 shlibpath_overrides_runpath
=yes
20901 hardcode_into_libs
=yes
20903 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20904 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20905 shlibpath_overrides_runpath
=no
20906 hardcode_into_libs
=yes
20908 *) # from 4.6 on, and DragonFly
20909 shlibpath_overrides_runpath
=yes
20910 hardcode_into_libs
=yes
20919 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20920 soname_spec
='${libname}${release}${shared_ext}$major'
20921 shlibpath_var
=LD_LIBRARY_PATH
20922 hardcode_into_libs
=yes
20929 dynamic_linker
="$host_os runtime_loader"
20930 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20931 soname_spec
='${libname}${release}${shared_ext}$major'
20932 shlibpath_var
=LIBRARY_PATH
20933 shlibpath_overrides_runpath
=yes
20934 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20935 hardcode_into_libs
=yes
20938 hpux9
* | hpux10
* | hpux11
*)
20939 # Give a soname corresponding to the major version so that dld.sl refuses to
20940 # link against other versions.
20947 hardcode_into_libs
=yes
20948 dynamic_linker
="$host_os dld.so"
20949 shlibpath_var
=LD_LIBRARY_PATH
20950 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20952 soname_spec
='${libname}${release}${shared_ext}$major'
20953 if test "X$HPUX_IA64_MODE" = X32
; then
20954 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20956 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20958 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20962 hardcode_into_libs
=yes
20963 dynamic_linker
="$host_os dld.sl"
20964 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20965 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20967 soname_spec
='${libname}${release}${shared_ext}$major'
20968 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20969 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20973 dynamic_linker
="$host_os dld.sl"
20974 shlibpath_var
=SHLIB_PATH
20975 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20977 soname_spec
='${libname}${release}${shared_ext}$major'
20980 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20981 postinstall_cmds
='chmod 555 $lib'
20982 # or fails outright, so override atomically:
20983 install_override_mode
=555
20990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20991 soname_spec
='${libname}${release}${shared_ext}$major'
20992 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20993 shlibpath_var
=LD_LIBRARY_PATH
20994 shlibpath_overrides_runpath
=no
20995 hardcode_into_libs
=yes
20998 irix5
* | irix6
* | nonstopux
*)
21000 nonstopux
*) version_type
=nonstopux
;;
21002 if test "$lt_cv_prog_gnu_ld" = yes; then
21010 soname_spec
='${libname}${release}${shared_ext}$major'
21011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21013 irix5
* | nonstopux
*)
21014 libsuff
= shlibsuff
=
21017 case $LD in # libtool.m4 will add one of these switches to LD
21018 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21019 libsuff
= shlibsuff
= libmagic
=32-bit;;
21020 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21021 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21022 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21023 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21024 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21028 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21029 shlibpath_overrides_runpath
=no
21030 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21031 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21032 hardcode_into_libs
=yes
21035 # No shared lib support for Linux oldld, aout, or coff.
21036 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21040 # This must be Linux ELF.
21041 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21046 soname_spec
='${libname}${release}${shared_ext}$major'
21047 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21048 shlibpath_var
=LD_LIBRARY_PATH
21049 shlibpath_overrides_runpath
=no
21051 # Some binutils ld are patched to set DT_RUNPATH
21052 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21053 $as_echo_n "(cached) " >&6
21055 lt_cv_shlibpath_overrides_runpath
=no
21056 save_LDFLAGS
=$LDFLAGS
21057 save_libdir
=$libdir
21058 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21059 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21061 /* end confdefs.h. */
21071 if ac_fn_cxx_try_link
"$LINENO"; then :
21072 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21073 lt_cv_shlibpath_overrides_runpath
=yes
21076 rm -f core conftest.err conftest.
$ac_objext \
21077 conftest
$ac_exeext conftest.
$ac_ext
21078 LDFLAGS
=$save_LDFLAGS
21079 libdir
=$save_libdir
21083 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21085 # This implies no fast_install, which is unacceptable.
21086 # Some rework will be needed to allow for fast_install
21087 # before this can be enabled.
21088 hardcode_into_libs
=yes
21090 # Append ld.so.conf contents to the search path
21091 if test -f /etc
/ld.so.conf
; then
21092 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' ' '`
21093 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21096 # We used to test for /lib/ld.so.1 and disable shared libraries on
21097 # powerpc, because MkLinux only supported shared libraries with the
21098 # GNU dynamic linker. Since this was broken with cross compilers,
21099 # most powerpc-linux boxes support dynamic linking these days and
21100 # people can always --disable-shared, the test was removed, and we
21101 # assume the GNU/Linux dynamic linker is in use.
21102 dynamic_linker
='GNU/Linux ld.so'
21109 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21111 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21112 dynamic_linker
='NetBSD (a.out) ld.so'
21114 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21115 soname_spec
='${libname}${release}${shared_ext}$major'
21116 dynamic_linker
='NetBSD ld.elf_so'
21118 shlibpath_var
=LD_LIBRARY_PATH
21119 shlibpath_overrides_runpath
=yes
21120 hardcode_into_libs
=yes
21125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 shlibpath_var
=LD_LIBRARY_PATH
21127 shlibpath_overrides_runpath
=yes
21134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21135 soname_spec
='${libname}${release}${shared_ext}$major'
21136 shlibpath_var
=LD_LIBRARY_PATH
21137 shlibpath_overrides_runpath
=no
21138 hardcode_into_libs
=yes
21139 dynamic_linker
='ldqnx.so'
21144 sys_lib_dlsearch_path_spec
="/usr/lib"
21146 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21148 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21149 *) need_version
=no
;;
21151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21152 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21153 shlibpath_var
=LD_LIBRARY_PATH
21154 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21156 openbsd2.
[89] | openbsd2.
[89].
*)
21157 shlibpath_overrides_runpath
=no
21160 shlibpath_overrides_runpath
=yes
21164 shlibpath_overrides_runpath
=yes
21169 libname_spec
='$name'
21172 library_names_spec
='$libname${shared_ext} $libname.a'
21173 dynamic_linker
='OS/2 ld.exe'
21174 shlibpath_var
=LIBPATH
21177 osf3
* | osf4
* | osf5
*)
21181 soname_spec
='${libname}${release}${shared_ext}$major'
21182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21183 shlibpath_var
=LD_LIBRARY_PATH
21184 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21185 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21196 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21197 soname_spec
='${libname}${release}${shared_ext}$major'
21198 shlibpath_var
=LD_LIBRARY_PATH
21199 shlibpath_overrides_runpath
=yes
21200 hardcode_into_libs
=yes
21201 # ldd complains unless libraries are executable
21202 postinstall_cmds
='chmod +x $lib'
21207 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21208 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21209 shlibpath_var
=LD_LIBRARY_PATH
21210 shlibpath_overrides_runpath
=yes
21211 if test "$with_gnu_ld" = yes; then
21219 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21220 soname_spec
='${libname}${release}${shared_ext}$major'
21221 shlibpath_var
=LD_LIBRARY_PATH
21222 case $host_vendor in
21224 shlibpath_overrides_runpath
=no
21226 runpath_var
=LD_RUN_PATH
21234 shlibpath_overrides_runpath
=no
21235 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21241 if test -d /usr
/nec
;then
21243 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21244 soname_spec
='$libname${shared_ext}.$major'
21245 shlibpath_var
=LD_LIBRARY_PATH
21249 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21250 version_type
=freebsd-elf
21253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21254 soname_spec
='${libname}${release}${shared_ext}$major'
21255 shlibpath_var
=LD_LIBRARY_PATH
21256 shlibpath_overrides_runpath
=yes
21257 hardcode_into_libs
=yes
21258 if test "$with_gnu_ld" = yes; then
21259 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21261 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21264 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21268 sys_lib_dlsearch_path_spec
='/usr/lib'
21272 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21276 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21277 shlibpath_var
=LD_LIBRARY_PATH
21278 shlibpath_overrides_runpath
=no
21279 hardcode_into_libs
=yes
21284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21285 soname_spec
='${libname}${release}${shared_ext}$major'
21286 shlibpath_var
=LD_LIBRARY_PATH
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21294 $as_echo "$dynamic_linker" >&6; }
21295 test "$dynamic_linker" = no
&& can_build_shared
=no
21297 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21298 if test "$GCC" = yes; then
21299 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21302 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21303 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21305 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21306 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21347 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21348 hardcode_action_CXX
=
21349 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21350 test -n "$runpath_var_CXX" ||
21351 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21353 # We can hardcode non-existent directories.
21354 if test "$hardcode_direct_CXX" != no
&&
21355 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21356 # have to relink, otherwise we might link with an installed library
21357 # when we should be linking with a yet-to-be-installed one
21358 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21359 test "$hardcode_minus_L_CXX" != no
; then
21360 # Linking always hardcodes the temporary library directory.
21361 hardcode_action_CXX
=relink
21363 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21364 hardcode_action_CXX
=immediate
21367 # We cannot hardcode anything, or else we can only hardcode existing
21369 hardcode_action_CXX
=unsupported
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21372 $as_echo "$hardcode_action_CXX" >&6; }
21374 if test "$hardcode_action_CXX" = relink ||
21375 test "$inherit_rpath_CXX" = yes; then
21376 # Fast installation is not supported
21377 enable_fast_install
=no
21378 elif test "$shlibpath_overrides_runpath" = yes ||
21379 test "$enable_shared" = no
; then
21380 # Fast installation is not necessary
21381 enable_fast_install
=needless
21390 fi # test -n "$compiler"
21396 with_gnu_ld
=$lt_save_with_gnu_ld
21397 lt_cv_path_LDCXX
=$lt_cv_path_LD
21398 lt_cv_path_LD
=$lt_save_path_LD
21399 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21400 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21401 fi # test "$_lt_caught_CXX_error" != yes
21404 ac_cpp
='$CPP $CPPFLAGS'
21405 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21406 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21407 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21424 # Only expand once:
21430 # Identify the assembler which will work hand-in-glove with the newly
21431 # built GCC, so that we can examine its features. This is the assembler
21432 # which will be driven by the driver program.
21434 # If build != host, and we aren't building gas in-tree, we identify a
21435 # build->target assembler and hope that it will have the same features
21436 # as the host->target assembler we'll be using.
21437 gcc_cv_gas_major_version
=
21438 gcc_cv_gas_minor_version
=
21439 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21441 if test "${gcc_cv_as+set}" = set; then :
21445 if test -x "$DEFAULT_ASSEMBLER"; then
21446 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21447 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21448 && test -f ..
/gas
/Makefile \
21449 && test x
$build = x
$host; then
21450 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21451 elif test -x as
$build_exeext; then
21452 # Build using assembler in the current directory.
21453 gcc_cv_as
=.
/as
$build_exeext
21454 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21455 gcc_cv_as
="$AS_FOR_TARGET"
21457 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21458 set dummy
$AS_FOR_TARGET; ac_word
=$2
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21460 $as_echo_n "checking for $ac_word... " >&6; }
21461 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21462 $as_echo_n "(cached) " >&6
21466 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21470 for as_dir
in $PATH
21473 test -z "$as_dir" && as_dir
=.
21474 for ac_exec_ext
in '' $ac_executable_extensions; do
21475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21476 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21487 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21488 if test -n "$gcc_cv_as"; then
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21490 $as_echo "$gcc_cv_as" >&6; }
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21493 $as_echo "no" >&6; }
21500 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21502 case "$ORIGINAL_AS_FOR_TARGET" in
21503 .
/as | .
/as
$build_exeext) ;;
21504 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21509 $as_echo_n "checking what assembler to use... " >&6; }
21510 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21511 # Single tree build which includes gas. We want to prefer it
21512 # over whatever linker top-level may have detected, since
21513 # we'll use what we're building after installation anyway.
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21515 $as_echo "newly built gas" >&6; }
21517 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21518 for f
in $gcc_cv_as_bfd_srcdir/configure \
21519 $gcc_cv_as_gas_srcdir/configure \
21520 $gcc_cv_as_gas_srcdir/configure.
in \
21521 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21522 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21523 if test x
$gcc_cv_gas_version != x
; then
21527 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21528 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21529 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21530 case $gcc_cv_gas_patch_version in
21531 "") gcc_cv_gas_patch_version
="0" ;;
21533 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21534 + $gcc_cv_gas_minor_version \) \* 1000 \
21535 + $gcc_cv_gas_patch_version`
21537 in_tree_gas_is_elf
=no
21538 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21539 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21540 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21542 in_tree_gas_is_elf
=yes
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21546 $as_echo "$gcc_cv_as" >&6; }
21550 # Identify the linker which will work hand-in-glove with the newly
21551 # built GCC, so that we can examine its features. This is the linker
21552 # which will be driven by the driver program.
21554 # If build != host, and we aren't building gas in-tree, we identify a
21555 # build->target linker and hope that it will have the same features
21556 # as the host->target linker we'll be using.
21557 gcc_cv_gld_major_version
=
21558 gcc_cv_gld_minor_version
=
21559 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21560 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21562 if test "${gcc_cv_ld+set}" = set; then :
21566 if test -x "$DEFAULT_LINKER"; then
21567 gcc_cv_ld
="$DEFAULT_LINKER"
21568 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21569 && test -f ..
/ld
/Makefile \
21570 && test x
$build = x
$host; then
21571 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21572 elif test -x collect-ld
$build_exeext; then
21573 # Build using linker in the current directory.
21574 gcc_cv_ld
=.
/collect-ld
$build_exeext
21575 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21576 gcc_cv_ld
="$LD_FOR_TARGET"
21578 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21579 set dummy
$LD_FOR_TARGET; ac_word
=$2
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21581 $as_echo_n "checking for $ac_word... " >&6; }
21582 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21583 $as_echo_n "(cached) " >&6
21587 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21591 for as_dir
in $PATH
21594 test -z "$as_dir" && as_dir
=.
21595 for ac_exec_ext
in '' $ac_executable_extensions; do
21596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21597 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21608 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21609 if test -n "$gcc_cv_ld"; then
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21611 $as_echo "$gcc_cv_ld" >&6; }
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21614 $as_echo "no" >&6; }
21621 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21622 PLUGIN_LD
=`basename $gcc_cv_ld`
21624 # Check whether --with-plugin-ld was given.
21625 if test "${with_plugin_ld+set}" = set; then :
21626 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21627 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21628 PLUGIN_LD
="$withval"
21634 cat >>confdefs.h
<<_ACEOF
21635 #define PLUGIN_LD "$PLUGIN_LD"
21639 # Check to see if we are using gold instead of ld
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21641 $as_echo_n "checking whether we are using gold... " >&6; }
21643 if test x
$gcc_cv_ld != x
; then
21644 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21645 |
grep "GNU gold" > /dev
/null
; then
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21650 $as_echo "$ld_is_gold" >&6; }
21652 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21654 case "$ORIGINAL_LD_FOR_TARGET" in
21655 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21656 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21661 $as_echo_n "checking what linker to use... " >&6; }
21662 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21663 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21664 # Single tree build which includes ld. We want to prefer it
21665 # over whatever linker top-level may have detected, since
21666 # we'll use what we're building after installation anyway.
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21668 $as_echo "newly built ld" >&6; }
21670 in_tree_ld_is_elf
=no
21671 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21672 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21673 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21674 in_tree_ld_is_elf
=yes
21675 elif test "$ld_is_gold" = yes; then
21676 in_tree_ld_is_elf
=yes
21678 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
21680 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21681 if test x
$gcc_cv_gld_version != x
; then
21685 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21686 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21689 $as_echo "$gcc_cv_ld" >&6; }
21693 # Figure out what nm we will be using.
21694 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21695 if test "${gcc_cv_nm+set}" = set; then :
21699 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21700 && test -f ..
/binutils
/Makefile \
21701 && test x
$build = x
$host; then
21702 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21703 elif test -x nm
$build_exeext; then
21704 gcc_cv_nm
=.
/nm
$build_exeext
21705 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21706 gcc_cv_nm
="$NM_FOR_TARGET"
21708 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21709 set dummy
$NM_FOR_TARGET; ac_word
=$2
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21711 $as_echo_n "checking for $ac_word... " >&6; }
21712 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21713 $as_echo_n "(cached) " >&6
21717 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21721 for as_dir
in $PATH
21724 test -z "$as_dir" && as_dir
=.
21725 for ac_exec_ext
in '' $ac_executable_extensions; do
21726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21727 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21738 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21739 if test -n "$gcc_cv_nm"; then
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21741 $as_echo "$gcc_cv_nm" >&6; }
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21744 $as_echo "no" >&6; }
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21752 $as_echo_n "checking what nm to use... " >&6; }
21753 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21754 # Single tree build which includes binutils.
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21756 $as_echo "newly built nm" >&6; }
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21760 $as_echo "$gcc_cv_nm" >&6; }
21764 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21766 case "$ORIGINAL_NM_FOR_TARGET" in
21767 .
/nm | .
/nm
$build_exeext) ;;
21768 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21773 # Figure out what objdump we will be using.
21774 if test "${gcc_cv_objdump+set}" = set; then :
21778 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21779 && test -f ..
/binutils
/Makefile \
21780 && test x
$build = x
$host; then
21781 # Single tree build which includes binutils.
21782 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21783 elif test -x objdump
$build_exeext; then
21784 gcc_cv_objdump
=.
/objdump
$build_exeext
21785 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21786 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21788 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21789 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21791 $as_echo_n "checking for $ac_word... " >&6; }
21792 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21793 $as_echo_n "(cached) " >&6
21795 case $gcc_cv_objdump in
21797 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21801 for as_dir
in $PATH
21804 test -z "$as_dir" && as_dir
=.
21805 for ac_exec_ext
in '' $ac_executable_extensions; do
21806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21807 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21818 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21819 if test -n "$gcc_cv_objdump"; then
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21821 $as_echo "$gcc_cv_objdump" >&6; }
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21824 $as_echo "no" >&6; }
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21832 $as_echo_n "checking what objdump to use... " >&6; }
21833 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21834 # Single tree build which includes binutils.
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21836 $as_echo "newly built objdump" >&6; }
21837 elif test x
$gcc_cv_objdump = x
; then
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21839 $as_echo "not found" >&6; }
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21842 $as_echo "$gcc_cv_objdump" >&6; }
21845 # Figure out what readelf we will be using.
21846 if test "${gcc_cv_readelf+set}" = set; then :
21850 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21851 && test -f ..
/binutils
/Makefile \
21852 && test x
$build = x
$host; then
21853 # Single tree build which includes binutils.
21854 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21855 elif test -x readelf
$build_exeext; then
21856 gcc_cv_readelf
=.
/readelf
$build_exeext
21858 # Extract the first word of "readelf", so it can be a program name with args.
21859 set dummy readelf
; ac_word
=$2
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21861 $as_echo_n "checking for $ac_word... " >&6; }
21862 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21865 case $gcc_cv_readelf in
21867 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21871 for as_dir
in $PATH
21874 test -z "$as_dir" && as_dir
=.
21875 for ac_exec_ext
in '' $ac_executable_extensions; do
21876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21877 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21888 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21889 if test -n "$gcc_cv_readelf"; then
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21891 $as_echo "$gcc_cv_readelf" >&6; }
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21894 $as_echo "no" >&6; }
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21902 $as_echo_n "checking what readelf to use... " >&6; }
21903 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21904 # Single tree build which includes binutils.
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21906 $as_echo "newly built readelf" >&6; }
21907 elif test x
$gcc_cv_readelf = x
; then
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21909 $as_echo "not found" >&6; }
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21912 $as_echo "$gcc_cv_readelf" >&6; }
21915 # Figure out what assembler alignment features are present.
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21917 $as_echo_n "checking assembler flags... " >&6; }
21918 if test "${gcc_cv_as_flags+set}" = set; then :
21919 $as_echo_n "(cached) " >&6
21922 i
[34567]86-*-linux*)
21923 gcc_cv_as_flags
="--32"
21925 powerpc
*-*-darwin*)
21926 gcc_cv_as_flags
="-arch ppc"
21929 gcc_cv_as_flags
=" "
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21934 $as_echo "$gcc_cv_as_flags" >&6; }
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21937 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21938 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21939 $as_echo_n "(cached) " >&6
21941 gcc_cv_as_balign_and_p2align
=no
21942 if test $in_tree_gas = yes; then
21943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21944 then gcc_cv_as_balign_and_p2align
=yes
21946 elif test x
$gcc_cv_as != x
; then
21947 $as_echo '.balign 4
21948 .p2align 2' > conftest.s
21949 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21951 (eval $ac_try) 2>&5
21953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21954 test $ac_status = 0; }; }
21956 gcc_cv_as_balign_and_p2align
=yes
21958 echo "configure: failed program was" >&5
21961 rm -f conftest.o conftest.s
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21965 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21966 if test $gcc_cv_as_balign_and_p2align = yes; then
21968 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21973 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21974 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21975 $as_echo_n "(cached) " >&6
21977 gcc_cv_as_max_skip_p2align
=no
21978 if test $in_tree_gas = yes; then
21979 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21980 then gcc_cv_as_max_skip_p2align
=yes
21982 elif test x
$gcc_cv_as != x
; then
21983 $as_echo '.p2align 4,,7' > conftest.s
21984 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21986 (eval $ac_try) 2>&5
21988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21989 test $ac_status = 0; }; }
21991 gcc_cv_as_max_skip_p2align
=yes
21993 echo "configure: failed program was" >&5
21996 rm -f conftest.o conftest.s
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22000 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22001 if test $gcc_cv_as_max_skip_p2align = yes; then
22003 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22008 $as_echo_n "checking assembler for .literal16... " >&6; }
22009 if test "${gcc_cv_as_literal16+set}" = set; then :
22010 $as_echo_n "(cached) " >&6
22012 gcc_cv_as_literal16
=no
22013 if test $in_tree_gas = yes; then
22014 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22015 then gcc_cv_as_literal16
=yes
22017 elif test x
$gcc_cv_as != x
; then
22018 $as_echo '.literal16' > conftest.s
22019 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22021 (eval $ac_try) 2>&5
22023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22024 test $ac_status = 0; }; }
22026 gcc_cv_as_literal16
=yes
22028 echo "configure: failed program was" >&5
22031 rm -f conftest.o conftest.s
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22035 $as_echo "$gcc_cv_as_literal16" >&6; }
22036 if test $gcc_cv_as_literal16 = yes; then
22038 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22043 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22044 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22045 $as_echo_n "(cached) " >&6
22047 gcc_cv_as_subsection_m1
=no
22048 if test $in_tree_gas = yes; then
22049 if test $in_tree_gas_is_elf = yes \
22050 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22051 then gcc_cv_as_subsection_m1
=yes
22053 elif test x
$gcc_cv_as != x
; then
22054 $as_echo 'conftest_label1: .word 0
22056 conftest_label2: .word 0
22057 .previous' > conftest.s
22058 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22060 (eval $ac_try) 2>&5
22062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22063 test $ac_status = 0; }; }
22065 if test x
$gcc_cv_nm != x
; then
22066 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22067 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22068 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22070 else gcc_cv_as_subsection_m1
=yes
22072 rm -f conftest.nm1 conftest.nm2
22075 echo "configure: failed program was" >&5
22078 rm -f conftest.o conftest.s
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22082 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22083 if test $gcc_cv_as_subsection_m1 = yes; then
22085 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22090 $as_echo_n "checking assembler for .weak... " >&6; }
22091 if test "${gcc_cv_as_weak+set}" = set; then :
22092 $as_echo_n "(cached) " >&6
22095 if test $in_tree_gas = yes; then
22096 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22097 then gcc_cv_as_weak
=yes
22099 elif test x
$gcc_cv_as != x
; then
22100 $as_echo ' .weak foobar' > conftest.s
22101 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22103 (eval $ac_try) 2>&5
22105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22106 test $ac_status = 0; }; }
22110 echo "configure: failed program was" >&5
22113 rm -f conftest.o conftest.s
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22117 $as_echo "$gcc_cv_as_weak" >&6; }
22118 if test $gcc_cv_as_weak = yes; then
22120 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22125 $as_echo_n "checking assembler for .weakref... " >&6; }
22126 if test "${gcc_cv_as_weakref+set}" = set; then :
22127 $as_echo_n "(cached) " >&6
22129 gcc_cv_as_weakref
=no
22130 if test $in_tree_gas = yes; then
22131 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22132 then gcc_cv_as_weakref
=yes
22134 elif test x
$gcc_cv_as != x
; then
22135 $as_echo ' .weakref foobar, barfnot' > conftest.s
22136 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22138 (eval $ac_try) 2>&5
22140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22141 test $ac_status = 0; }; }
22143 gcc_cv_as_weakref
=yes
22145 echo "configure: failed program was" >&5
22148 rm -f conftest.o conftest.s
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22152 $as_echo "$gcc_cv_as_weakref" >&6; }
22153 if test $gcc_cv_as_weakref = yes; then
22155 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22160 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22161 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22162 $as_echo_n "(cached) " >&6
22164 gcc_cv_as_nsubspa_comdat
=no
22165 if test $in_tree_gas = yes; then
22166 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22167 then gcc_cv_as_nsubspa_comdat
=yes
22169 elif test x
$gcc_cv_as != x
; then
22170 $as_echo ' .SPACE $TEXT$
22171 .NSUBSPA $CODE$,COMDAT' > conftest.s
22172 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22174 (eval $ac_try) 2>&5
22176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22177 test $ac_status = 0; }; }
22179 gcc_cv_as_nsubspa_comdat
=yes
22181 echo "configure: failed program was" >&5
22184 rm -f conftest.o conftest.s
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22188 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22189 if test $gcc_cv_as_nsubspa_comdat = yes; then
22191 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22195 # .hidden needs to be supported in both the assembler and the linker,
22196 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22197 # This is irritatingly difficult to feature test for; we have to check the
22198 # date string after the version number. If we've got an in-tree
22199 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22201 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22203 $as_echo_n "checking assembler for .hidden... " >&6; }
22204 if test "${gcc_cv_as_hidden+set}" = set; then :
22205 $as_echo_n "(cached) " >&6
22207 gcc_cv_as_hidden
=no
22208 if test $in_tree_gas = yes; then
22209 if test $in_tree_gas_is_elf = yes \
22210 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22211 then gcc_cv_as_hidden
=yes
22213 elif test x
$gcc_cv_as != x
; then
22214 $as_echo ' .hidden foobar
22215 foobar:' > conftest.s
22216 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22218 (eval $ac_try) 2>&5
22220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22221 test $ac_status = 0; }; }
22224 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22225 # STV_HIDDEN, so disable .hidden support if so.
22226 case "${target}" in
22227 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22228 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22229 cat > conftest.s
<<EOF
22234 .set default,hidden
22236 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22237 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22238 grep '\.hidden default' > /dev
/null
; then
22239 gcc_cv_as_hidden
=no
22241 gcc_cv_as_hidden
=yes
22244 # Assume bug is present if objdump is missing.
22245 gcc_cv_as_hidden
=no
22249 gcc_cv_as_hidden
=yes
22253 echo "configure: failed program was" >&5
22256 rm -f conftest.o conftest.s
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22260 $as_echo "$gcc_cv_as_hidden" >&6; }
22262 case "${target}" in
22264 # Darwin as has some visibility support, though with a different syntax.
22265 gcc_cv_as_hidden
=yes
22269 # gnu_indirect_function type is an extension proposed at
22270 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22271 # selection of function implementation
22272 # Check whether --enable-gnu-indirect-function was given.
22273 if test "${enable_gnu_indirect_function+set}" = set; then :
22274 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22276 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22277 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22280 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22283 if test x
$enable_gnu_indirect_function = xyes
; then
22285 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22289 if test $in_tree_ld != yes ; then
22290 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22291 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22292 if test x
"$ld_is_gold" = xyes
; then
22293 # GNU gold --version looks like this:
22295 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22297 # We extract the binutils version which is more familiar and specific
22298 # than the gold version.
22299 ld_vers
=`echo $ld_ver | sed -n \
22300 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22302 # GNU ld --version looks like this:
22304 # GNU ld (GNU Binutils) 2.21.51.20110225
22305 ld_vers
=`echo $ld_ver | sed -n \
22306 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22308 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'`
22309 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22310 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22311 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22313 case "${target}" in
22316 # Solaris 2 ld -V output looks like this for a regular version:
22318 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22320 # but test versions add stuff at the end:
22322 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22324 ld_ver
=`$gcc_cv_ld -V 2>&1`
22325 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22326 ld_vers
=`echo $ld_ver | sed -n \
22327 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22328 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22329 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22337 $as_echo_n "checking linker for .hidden support... " >&6; }
22338 if test "${gcc_cv_ld_hidden+set}" = set; then :
22339 $as_echo_n "(cached) " >&6
22341 if test $in_tree_ld = yes ; then
22342 gcc_cv_ld_hidden
=no
22343 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 \
22344 && test $in_tree_ld_is_elf = yes; then
22345 gcc_cv_ld_hidden
=yes
22348 gcc_cv_ld_hidden
=yes
22349 if test x
"$ld_is_gold" = xyes
; then
22351 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22352 if test 0"$ld_date" -lt 20020404; then
22353 if test -n "$ld_date"; then
22354 # If there was date string, but was earlier than 2002-04-04, fail
22355 gcc_cv_ld_hidden
=no
22356 elif test -z "$ld_vers"; then
22357 # If there was no date string nor ld version number, something is wrong
22358 gcc_cv_ld_hidden
=no
22360 test -z "$ld_vers_patch" && ld_vers_patch
=0
22361 if test "$ld_vers_major" -lt 2; then
22362 gcc_cv_ld_hidden
=no
22363 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22364 gcc_cv_ld_hidden
="no"
22365 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22366 gcc_cv_ld_hidden
=no
22371 case "${target}" in
22373 # Darwin ld has some visibility support.
22374 gcc_cv_ld_hidden
=yes
22376 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22377 gcc_cv_ld_hidden
=yes
22380 # .hidden support was backported to Solaris 8, starting with ld
22382 if test "$ld_vers_minor" -ge 276; then
22383 gcc_cv_ld_hidden
=yes
22385 gcc_cv_ld_hidden
=no
22388 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22389 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22390 # .symbolic was only added in Solaris 9 12/02.
22391 gcc_cv_ld_hidden
=yes
22394 gcc_cv_ld_hidden
=no
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22401 $as_echo "$gcc_cv_ld_hidden" >&6; }
22402 libgcc_visibility
=no
22405 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22406 libgcc_visibility
=yes
22408 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22413 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22414 gcc_cv_ld_ro_rw_mix
=unknown
22415 if test $in_tree_ld = yes ; then
22416 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 \
22417 && test $in_tree_ld_is_elf = yes; then
22418 gcc_cv_ld_ro_rw_mix
=read-write
22420 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22421 echo '.section myfoosect, "a"' > conftest1.s
22422 echo '.section myfoosect, "aw"' > conftest2.s
22423 echo '.byte 1' >> conftest2.s
22424 echo '.section myfoosect, "a"' > conftest3.s
22425 echo '.byte 0' >> conftest3.s
22426 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22427 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22428 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22429 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22430 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22431 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22432 | sed -e '/myfoosect/!d' -e N`
22433 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22434 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22435 gcc_cv_ld_ro_rw_mix
=read-only
22437 gcc_cv_ld_ro_rw_mix
=read-write
22441 rm -f conftest.
* conftest
[123].
*
22443 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22445 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22449 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22451 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22453 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22454 if test "${gcc_cv_as_leb128+set}" = set; then :
22455 $as_echo_n "(cached) " >&6
22457 gcc_cv_as_leb128
=no
22458 if test $in_tree_gas = yes; then
22459 if test $in_tree_gas_is_elf = yes \
22460 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22461 then gcc_cv_as_leb128
=yes
22463 elif test x
$gcc_cv_as != x
; then
22470 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22472 (eval $ac_try) 2>&5
22474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22475 test $ac_status = 0; }; }
22477 # GAS versions before 2.11 do not support uleb128,
22478 # despite appearing to.
22479 # ??? There exists an elf-specific test that will crash
22480 # the assembler. Perhaps it's better to figure out whether
22481 # arbitrary sections are supported and try the test.
22482 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22483 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22484 as_vers
=`echo $as_ver | sed -n \
22485 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22486 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22487 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22488 if test $as_major -eq 2 && test $as_minor -lt 11
22490 else gcc_cv_as_leb128
=yes
22494 echo "configure: failed program was" >&5
22497 rm -f conftest.o conftest.s
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22501 $as_echo "$gcc_cv_as_leb128" >&6; }
22502 if test $gcc_cv_as_leb128 = yes; then
22504 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22508 # Check if we have assembler support for unwind directives.
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22510 $as_echo_n "checking assembler for cfi directives... " >&6; }
22511 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22512 $as_echo_n "(cached) " >&6
22514 gcc_cv_as_cfi_directive
=no
22515 if test x
$gcc_cv_as != x
; then
22521 .cfi_escape 1, 2, 3, 4, 5
22522 .cfi_endproc' > conftest.s
22523 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22525 (eval $ac_try) 2>&5
22527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22528 test $ac_status = 0; }; }
22532 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22533 # read-only and read-write sections, we need to make sure that the
22534 # assembler used emits read-write .eh_frame sections.
22535 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22536 if test "x$gcc_cv_objdump" != x
; then
22537 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22538 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22539 gcc_cv_as_cfi_directive
=no
22542 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22543 # On Solaris/x86, make sure that GCC and gas agree on using
22544 # read-only .eh_frame sections for 64-bit.
22545 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22546 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22547 sed -e /.eh_frame
/!d
-e N | \
22548 grep READONLY
> /dev
/null
; then
22549 gcc_cv_as_cfi_directive
=yes
22551 gcc_cv_as_cfi_directive
=no
22555 gcc_cv_as_cfi_directive
=yes
22560 # no objdump, err on the side of caution
22561 gcc_cv_as_cfi_directive
=no
22564 gcc_cv_as_cfi_directive
=yes
22568 gcc_cv_as_cfi_directive
=yes
22572 echo "configure: failed program was" >&5
22575 rm -f conftest.o conftest.s
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22579 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22581 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22583 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22584 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22585 $as_echo_n "(cached) " >&6
22587 gcc_cv_as_cfi_advance_working
=no
22588 if test x
$gcc_cv_as != x
; then
22591 .cfi_adjust_cfa_offset 64
22593 .cfi_adjust_cfa_offset 128
22594 .cfi_endproc' > conftest.s
22595 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22597 (eval $ac_try) 2>&5
22599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22600 test $ac_status = 0; }; }
22603 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22604 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22605 gcc_cv_as_cfi_advance_working
=yes
22609 echo "configure: failed program was" >&5
22612 rm -f conftest.o conftest.s
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22616 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22619 # no objdump, err on the side of caution
22620 gcc_cv_as_cfi_advance_working
=no
22624 cat >>confdefs.h
<<_ACEOF
22625 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22626 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22632 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22633 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22634 $as_echo_n "(cached) " >&6
22636 gcc_cv_as_cfi_personality_directive
=no
22637 if test x
$gcc_cv_as != x
; then
22640 .cfi_personality 0, symbol
22641 .cfi_endproc' > conftest.s
22642 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22644 (eval $ac_try) 2>&5
22646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22647 test $ac_status = 0; }; }
22649 gcc_cv_as_cfi_personality_directive
=yes
22651 echo "configure: failed program was" >&5
22654 rm -f conftest.o conftest.s
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22658 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22661 cat >>confdefs.h
<<_ACEOF
22662 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22663 then echo 1; else echo 0; fi`
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22668 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22669 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22670 $as_echo_n "(cached) " >&6
22672 gcc_cv_as_cfi_sections_directive
=no
22673 if test x
$gcc_cv_as != x
; then
22675 .cfi_sections .debug_frame, .eh_frame
22677 .cfi_endproc' > conftest.s
22678 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22680 (eval $ac_try) 2>&5
22682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22683 test $ac_status = 0; }; }
22686 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22687 # Need to check that we generated the correct relocation for the
22688 # .debug_frame section. This was fixed for binutils 2.21.
22689 gcc_cv_as_cfi_sections_directive
=no
22690 if test "x$gcc_cv_objdump" != x
; then
22691 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22692 grep secrel
> /dev
/null
; then
22693 gcc_cv_as_cfi_sections_directive
=yes
22698 gcc_cv_as_cfi_sections_directive
=yes
22702 echo "configure: failed program was" >&5
22705 rm -f conftest.o conftest.s
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22709 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22713 cat >>confdefs.h
<<_ACEOF
22714 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22715 then echo 1; else echo 0; fi`
22719 # GAS versions up to and including 2.11.0 may mis-optimize
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22722 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22723 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22724 $as_echo_n "(cached) " >&6
22726 gcc_cv_as_eh_frame
=no
22727 if test $in_tree_gas = yes; then
22728 if test $in_tree_gas_is_elf = yes \
22729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22730 then gcc_cv_as_eh_frame
=yes
22732 elif test x
$gcc_cv_as != x
; then
22739 .section .eh_frame,"aw",@progbits
22741 .4byte .LECIE1-.LSCIE1
22755 .4byte .LEFDE1-.LASFDE1
22757 .4byte .LASFDE1-__FRAME_BEGIN__
22764 .LEFDE1:' > conftest.s
22765 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22767 (eval $ac_try) 2>&5
22769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22770 test $ac_status = 0; }; }
22772 cat > conftest.lit
<<EOF
22773 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22774 0010 01000000 12000000 18000000 00000000 ................
22775 0020 08000000 04080000 0044 .........D
22777 cat > conftest.big
<<EOF
22778 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22779 0010 00000001 00000012 00000018 00000000 ................
22780 0020 00000008 04000000 0844 .........D
22782 # If the assembler didn't choke, and we can objdump,
22783 # and we got the correct data, then succeed.
22784 # The text in the here-document typically retains its unix-style line
22785 # endings, while the output of objdump will use host line endings.
22786 # Therefore, use diff -b for the comparisons.
22787 if test x
$gcc_cv_objdump != x \
22788 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22789 |
tail -3 > conftest.got \
22790 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22791 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22793 gcc_cv_as_eh_frame
=yes
22794 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22796 (eval $ac_try) 2>&5
22798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22799 test $ac_status = 0; }; }; then
22800 gcc_cv_as_eh_frame
=buggy
22802 # Uh oh, what do we do now?
22803 gcc_cv_as_eh_frame
=no
22806 echo "configure: failed program was" >&5
22809 rm -f conftest.o conftest.s
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22813 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22816 if test $gcc_cv_as_eh_frame = buggy
; then
22818 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22823 $as_echo_n "checking assembler for section merging support... " >&6; }
22824 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22825 $as_echo_n "(cached) " >&6
22827 gcc_cv_as_shf_merge
=no
22828 if test $in_tree_gas = yes; then
22829 if test $in_tree_gas_is_elf = yes \
22830 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22831 then gcc_cv_as_shf_merge
=yes
22833 elif test x
$gcc_cv_as != x
; then
22834 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837 (eval $ac_try) 2>&5
22839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840 test $ac_status = 0; }; }
22842 gcc_cv_as_shf_merge
=yes
22844 echo "configure: failed program was" >&5
22847 rm -f conftest.o conftest.s
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22851 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22853 if test $gcc_cv_as_shf_merge = no
; then
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22855 $as_echo_n "checking assembler for section merging support... " >&6; }
22856 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22857 $as_echo_n "(cached) " >&6
22859 gcc_cv_as_shf_merge
=no
22860 if test $in_tree_gas = yes; then
22861 if test $in_tree_gas_is_elf = yes \
22862 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22863 then gcc_cv_as_shf_merge
=yes
22865 elif test x
$gcc_cv_as != x
; then
22866 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22867 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22869 (eval $ac_try) 2>&5
22871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22872 test $ac_status = 0; }; }
22874 gcc_cv_as_shf_merge
=yes
22876 echo "configure: failed program was" >&5
22879 rm -f conftest.o conftest.s
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22883 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22887 cat >>confdefs.h
<<_ACEOF
22888 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22893 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22894 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22895 $as_echo_n "(cached) " >&6
22897 gcc_cv_as_comdat_group
=no
22898 if test $in_tree_gas = yes; then
22899 if test $in_tree_gas_is_elf = yes \
22900 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22901 then gcc_cv_as_comdat_group
=yes
22903 elif test x
$gcc_cv_as != x
; then
22904 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22907 (eval $ac_try) 2>&5
22909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22910 test $ac_status = 0; }; }
22912 gcc_cv_as_comdat_group
=yes
22914 echo "configure: failed program was" >&5
22917 rm -f conftest.o conftest.s
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22921 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22923 if test $gcc_cv_as_comdat_group = yes; then
22924 gcc_cv_as_comdat_group_percent
=no
22925 gcc_cv_as_comdat_group_group
=no
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22928 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22929 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22930 $as_echo_n "(cached) " >&6
22932 gcc_cv_as_comdat_group_percent
=no
22933 if test $in_tree_gas = yes; then
22934 if test $in_tree_gas_is_elf = yes \
22935 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22936 then gcc_cv_as_comdat_group_percent
=yes
22938 elif test x
$gcc_cv_as != x
; then
22939 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22940 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22942 (eval $ac_try) 2>&5
22944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22945 test $ac_status = 0; }; }
22947 gcc_cv_as_comdat_group_percent
=yes
22949 echo "configure: failed program was" >&5
22952 rm -f conftest.o conftest.s
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22956 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22958 if test $gcc_cv_as_comdat_group_percent = yes; then
22959 gcc_cv_as_comdat_group_group
=no
22961 case "${target}" in
22962 # Sun as uses a completely different syntax.
22964 case "${target}" in
22965 sparc
*-*-solaris2*)
22967 .group foo,".text%foo",#comdat
22968 .section ".text%foo", #alloc,#execinstr,#progbits
22973 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22975 .group foo,.text%foo,#comdat
22976 .section .text%foo, "ax", @progbits
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22983 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22984 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22985 $as_echo_n "(cached) " >&6
22987 gcc_cv_as_comdat_group_group
=no
22988 if test x
$gcc_cv_as != x
; then
22989 $as_echo "$conftest_s" > conftest.s
22990 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22992 (eval $ac_try) 2>&5
22994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22995 test $ac_status = 0; }; }
22997 gcc_cv_as_comdat_group_group
=yes
22999 echo "configure: failed program was" >&5
23002 rm -f conftest.o conftest.s
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23006 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23012 if test x
"$ld_is_gold" = xyes
; then
23014 elif test $in_tree_ld = yes ; then
23016 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 \
23017 && test $in_tree_ld_is_elf = yes; then
23020 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23022 if test 0"$ld_date" -lt 20050308; then
23023 if test -n "$ld_date"; then
23024 # If there was date string, but was earlier than 2005-03-08, fail
23026 elif test "$ld_vers_major" -lt 2; then
23028 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23033 case "${target}" in
23034 *-*-solaris2.1
[1-9]*)
23036 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23037 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23040 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23041 # least ld version 1.2267.
23042 if test "$ld_vers_major" -gt 1; then
23044 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23046 elif test "$ld_vers_minor" -ge 2267; then
23051 # Assume linkers other than GNU ld don't support COMDAT group.
23056 # Allow overriding the automatic COMDAT group tests above.
23057 # Check whether --enable-comdat was given.
23058 if test "${enable_comdat+set}" = set; then :
23059 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23062 if test $comdat_group = no
; then
23063 gcc_cv_as_comdat_group
=no
23064 gcc_cv_as_comdat_group_percent
=no
23065 gcc_cv_as_comdat_group_group
=no
23068 cat >>confdefs.h
<<_ACEOF
23069 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23070 || test $gcc_cv_as_comdat_group_percent = yes \
23071 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23076 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23077 if test "${gcc_cv_as_discriminator+set}" = set; then :
23078 $as_echo_n "(cached) " >&6
23080 gcc_cv_as_discriminator
=no
23081 if test $in_tree_gas = yes; then
23082 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23083 then gcc_cv_as_discriminator
=yes
23085 elif test x
$gcc_cv_as != x
; then
23088 .loc 1 1 0 discriminator 1' > conftest.s
23089 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23091 (eval $ac_try) 2>&5
23093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23094 test $ac_status = 0; }; }
23096 gcc_cv_as_discriminator
=yes
23098 echo "configure: failed program was" >&5
23101 rm -f conftest.o conftest.s
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23105 $as_echo "$gcc_cv_as_discriminator" >&6; }
23106 if test $gcc_cv_as_discriminator = yes; then
23108 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23112 # Thread-local storage - the check is heavily parameterized.
23120 .section ".tdata","awT",@progbits
23123 ldq $27,__tls_get_addr($29) !literal!1
23124 lda $16,foo($29) !tlsgd!1
23125 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23126 ldq $27,__tls_get_addr($29) !literal!2
23127 lda $16,foo($29) !tlsldm!2
23128 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23129 ldq $1,foo($29) !gotdtprel
23130 ldah $2,foo($29) !dtprelhi
23131 lda $3,foo($2) !dtprello
23132 lda $4,foo($29) !dtprel
23133 ldq $1,foo($29) !gottprel
23134 ldah $2,foo($29) !tprelhi
23135 lda $3,foo($2) !tprello
23136 lda $4,foo($29) !tprel'
23139 tls_as_opt
=--fatal-warnings
23141 cris-
*-*|crisv32-
*-*)
23143 .section ".tdata","awT",@progbits
23150 tls_as_opt
=--fatal-warnings
23154 .section ".tdata","awT",@progbits
23157 call #gettlsoff(x)'
23166 .section ".tdata","awT",@progbits
23170 addil LT%foo-$tls_gdidx$,gp
23171 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23174 addil LT%foo-$tls_ldidx$,gp
23176 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23177 addil LR%foo-$tls_dtpoff$,%ret0
23178 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23180 addil LT%foo-$tls_ieoff$,gp
23181 ldw RT%foo-$tls_ieoff$(%r1),%t2
23184 addil LR%foo-$tls_leoff$,%t1
23185 ldo RR%foo-$tls_leoff$(%r1),%t2'
23188 tls_as_opt
=--fatal-warnings
23192 .section ".tdata","awT",%progbits
23195 .word foo(gottpoff)
23203 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23205 i
[34567]86-*-solaris2.
*)
23207 tga_func
=___tls_get_addr
23209 x86_64-
*-solaris2.1
[0-9]*)
23211 tga_func
=__tls_get_addr
23217 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23219 .section .tdata,"awt",@progbits'
23223 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23227 .section ".tdata","awT",@progbits'
23230 tls_as_opt
="--fatal-warnings"
23232 conftest_s
="$conftest_s
23236 leal foo@tlsgd(,%ebx,1), %eax
23237 leal foo@tlsldm(%ebx), %eax
23238 leal foo@dtpoff(%eax), %edx
23239 movl foo@gottpoff(%ebx), %eax
23240 subl foo@gottpoff(%ebx), %eax
23241 addl foo@gotntpoff(%ebx), %eax
23242 movl foo@indntpoff, %eax
23243 movl \$foo@tpoff, %eax
23244 subl \$foo@tpoff, %eax
23245 leal foo@ntpoff(%ecx), %eax"
23249 .section ".tdata","awT",@progbits
23253 leaq foo@TLSGD(%rip), %rdi
23254 leaq foo@TLSLD(%rip), %rdi
23255 leaq foo@DTPOFF(%rax), %rdx
23256 movq foo@GOTTPOFF(%rip), %rax
23257 movq $foo@TPOFF, %rax'
23260 tls_as_opt
=--fatal-warnings
23264 .section ".tdata","awT",@progbits
23267 addl r16 = @ltoff(@dtpmod(foo#)), gp
23268 addl r17 = @ltoff(@dtprel(foo#)), gp
23269 addl r18 = @ltoff(@tprel(foo#)), gp
23270 addl r19 = @dtprel(foo#), gp
23271 adds r21 = @dtprel(foo#), r13
23272 movl r23 = @dtprel(foo#)
23273 addl r20 = @tprel(foo#), gp
23274 adds r22 = @tprel(foo#), r13
23275 movl r24 = @tprel(foo#)'
23278 tls_as_opt
=--fatal-warnings
23282 .section .tdata,"awT",@progbits
23286 addiu $4, $28, %tlsgd(x)
23287 addiu $4, $28, %tlsldm(x)
23288 lui $4, %dtprel_hi(x)
23289 addiu $4, $4, %dtprel_lo(x)
23290 lw $4, %gottprel(x)($28)
23291 lui $4, %tprel_hi(x)
23292 addiu $4, $4, %tprel_lo(x)'
23295 tls_as_opt
='-32 --fatal-warnings'
23299 .section .tdata,"awT",@progbits
23304 move.l x@TLSGD(%a5),%a0
23305 move.l x@TLSLDM(%a5),%a0
23306 move.l x@TLSLDO(%a5),%a0
23307 move.l x@TLSIE(%a5),%a0
23308 move.l x@TLSLE(%a5),%a0'
23311 tls_as_opt
='--fatal-warnings'
23315 .section ".tdata","awT",@progbits
23323 addi 3,31,ld0@got@tlsgd
23325 addi 3,31,x1@got@tlsld
23328 addis 9,3,x2@dtprel@ha
23329 addi 9,9,x2@dtprel@l
23330 lwz 9,x3@got@tprel(31)
23333 addis 9,2,x2@tprel@ha
23334 addi 9,9,x2@tprel@l'
23337 tls_as_opt
="-a32 --fatal-warnings"
23341 .section ".tdata","awT",@progbits
23349 addi 3,2,ld0@got@tlsgd
23355 addi 3,2,x1@got@tlsld
23361 addis 9,3,x2@dtprel@ha
23362 addi 9,9,x2@dtprel@l
23365 ld 9,x3@got@dtprel(2)
23371 tls_as_opt
="-a64 --fatal-warnings"
23375 .section ".tdata","awT",@progbits
23382 .long foo@GOTNTPOFF
23383 .long foo@INDNTPOFF
23384 l %r1,foo@GOTNTPOFF(%r12)
23385 l %r1,0(%r1):tls_load:foo
23386 bas %r14,0(%r1,%r13):tls_gdcall:foo
23387 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23390 tls_as_opt
="-m31 --fatal-warnings"
23394 .section ".tdata","awT",@progbits
23401 .quad foo@GOTNTPOFF
23402 lg %r1,foo@GOTNTPOFF(%r12)
23403 larl %r1,foo@INDNTPOFF
23404 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23405 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23408 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23410 sh-
*-* | sh
[34]-*-*)
23412 .section ".tdata","awT",@progbits
23422 tls_as_opt
=--fatal-warnings
23426 sparc
*-sun-solaris2.
*)
23428 tga_func
=__tls_get_addr
23434 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23436 .section ".tdata",#alloc,#write,#tls'
23441 .section ".tdata","awT",@progbits'
23444 tls_as_opt
="-32 --fatal-warnings"
23446 conftest_s
="$conftest_s
23449 sethi %tgd_hi22(foo), %o0
23450 add %o0, %tgd_lo10(foo), %o1
23451 add %l7, %o1, %o0, %tgd_add(foo)
23452 call __tls_get_addr, %tgd_call(foo)
23453 sethi %tldm_hi22(foo), %l1
23454 add %l1, %tldm_lo10(foo), %l2
23455 add %l7, %l2, %o0, %tldm_add(foo)
23456 call __tls_get_addr, %tldm_call(foo)
23457 sethi %tldo_hix22(foo), %l3
23458 xor %l3, %tldo_lox10(foo), %l4
23459 add %o0, %l4, %l5, %tldo_add(foo)
23460 sethi %tie_hi22(foo), %o3
23461 add %o3, %tie_lo10(foo), %o3
23462 ld [%l7 + %o3], %o2, %tie_ld(foo)
23463 add %g7, %o2, %o4, %tie_add(foo)
23464 sethi %tle_hix22(foo), %l1
23465 xor %l1, %tle_lox10(foo), %o5
23466 ld [%g7 + %o5], %o1"
23470 .section ".tdata","awT",@progbits
23473 movi a8, foo@TLSFUNC
23474 movi a10, foo@TLSARG
23475 callx8.tls a8, foo@TLSCALL'
23481 if test "x$enable_tls" = xno
; then
23482 : # TLS explicitly disabled.
23483 elif test "x$enable_tls" = xyes
; then
23484 set_have_as_tls
=yes # TLS explicitly enabled.
23485 elif test -z "$tls_first_major"; then
23486 : # If we don't have a check, assume no support.
23488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23489 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23490 if test "${gcc_cv_as_tls+set}" = set; then :
23491 $as_echo_n "(cached) " >&6
23494 if test $in_tree_gas = yes; then
23495 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23496 then gcc_cv_as_tls
=yes
23498 elif test x
$gcc_cv_as != x
; then
23499 $as_echo "$conftest_s" > conftest.s
23500 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23502 (eval $ac_try) 2>&5
23504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23505 test $ac_status = 0; }; }
23509 echo "configure: failed program was" >&5
23512 rm -f conftest.o conftest.s
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23516 $as_echo "$gcc_cv_as_tls" >&6; }
23517 if test $gcc_cv_as_tls = yes; then
23518 set_have_as_tls
=yes
23523 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23524 # with TLS support are in use, native TLS cannot work.
23528 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23529 # gld with TLS support are in use, native TLS cannot work.
23532 # TLS was introduced in the Solaris 9 FCS release and backported to
23533 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23534 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23535 # ld and GCC don't support any longer.
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23538 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23540 # Check ld and ld.so.1 TLS support.
23541 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23542 # Assume all interesting versions of GNU ld have TLS support.
23543 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23547 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23549 min_tls_ld_vers_minor
=280
23551 # Solaris 8/SPARC ld has TLS support since version 1.272.
23552 sparc
*-*-solaris2.8
)
23553 min_tls_ld_vers_minor
=272
23555 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23557 min_tls_ld_vers_minor
=374
23559 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23560 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23561 min_tls_ld_vers_minor
=343
23564 if test "$ld_vers_major" -gt 1 || \
23565 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23572 $as_echo "$ld_tls_support" >&6; }
23575 save_LDFLAGS
="$LDFLAGS"
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23580 $as_echo_n "checking alternate thread library... " >&6; }
23582 # TLS support was backported to Solaris 8 patches, but only lives in
23583 # the alternate thread library which became the default in Solaris 9.
23584 # We want to always use that, irrespective of TLS support.
23586 # Take multilib subdir into account. There's no spec to handle
23587 # this. The 64 symlink exists since Solaris 8.
23588 lwp_dir
=/usr
/lib
/lwp
23589 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23590 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23597 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23599 cat >>confdefs.h
<<_ACEOF
23600 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23604 $as_echo "$lwp_dir" >&6; }
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23607 $as_echo_n "checking library containing $tga_func... " >&6; }
23608 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23609 # (32-bit x86) only lived in libthread, so check for that. Keep
23610 # set_have_as_tls if found, disable if not.
23611 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23613 $as_echo_n "checking for library containing $tga_func... " >&6; }
23614 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23615 $as_echo_n "(cached) " >&6
23617 ac_func_search_save_LIBS
=$LIBS
23618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23619 /* end confdefs.h. */
23621 /* Override any GCC internal prototype to avoid an error.
23622 Use char because int might match the return type of a GCC
23623 builtin and then its argument prototype would still apply. */
23631 return $tga_func ();
23636 for ac_lib
in '' thread
; do
23637 if test -z "$ac_lib"; then
23638 ac_res
="none required"
23641 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23643 if ac_fn_c_try_link
"$LINENO"; then :
23644 eval "$as_ac_Search=\$ac_res"
23646 rm -f core conftest.err conftest.
$ac_objext \
23648 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23652 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23655 eval "$as_ac_Search=no"
23657 rm conftest.
$ac_ext
23658 LIBS
=$ac_func_search_save_LIBS
23660 eval ac_res
=\$
$as_ac_Search
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23662 $as_echo "$ac_res" >&6; }
23663 eval ac_res
=\$
$as_ac_Search
23664 if test "$ac_res" != no
; then :
23665 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23671 # Clear LIBS if we cannot support TLS.
23672 if test $set_have_as_tls = no
; then
23675 # Always define LIB_TLS_SPEC, even without TLS support.
23677 cat >>confdefs.h
<<_ACEOF
23678 #define LIB_TLS_SPEC "$LIBS"
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23682 $as_echo "$LIBS" >&6; }
23685 LDFLAGS
="$save_LDFLAGS"
23688 if test $set_have_as_tls = yes ; then
23690 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23694 # Target-specific assembler checks.
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23697 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23698 gcc_cv_ld_static_dynamic
=no
23699 gcc_cv_ld_static_option
='-Bstatic'
23700 gcc_cv_ld_dynamic_option
='-Bdynamic'
23701 if test $in_tree_ld = yes ; then
23702 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
23703 gcc_cv_ld_static_dynamic
=yes
23705 elif test x
$gcc_cv_ld != x
; then
23706 # Check if linker supports -Bstatic/-Bdynamic option
23707 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23708 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23709 gcc_cv_ld_static_dynamic
=yes
23712 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23714 gcc_cv_ld_static_dynamic
=yes
23715 gcc_cv_ld_static_option
="-noso"
23716 gcc_cv_ld_dynamic_option
="-so_archive"
23718 # HP-UX ld uses -a flags to select between shared and archive.
23720 if test x
"$gnu_ld" = xno
; then
23721 gcc_cv_ld_static_dynamic
=yes
23722 gcc_cv_ld_static_option
="-aarchive_shared"
23723 gcc_cv_ld_dynamic_option
="-adefault"
23726 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23728 gcc_cv_ld_static_dynamic
=yes
23730 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23732 gcc_cv_ld_static_dynamic
=yes
23737 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23739 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23742 cat >>confdefs.h
<<_ACEOF
23743 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23747 cat >>confdefs.h
<<_ACEOF
23748 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23753 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23755 if test x
"$demangler_in_ld" = xyes
; then
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23757 $as_echo_n "checking linker --demangle support... " >&6; }
23758 gcc_cv_ld_demangle
=no
23759 if test $in_tree_ld = yes; then
23760 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 \
23761 gcc_cv_ld_demangle
=yes
23763 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23764 # Check if the GNU linker supports --demangle option
23765 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23766 gcc_cv_ld_demangle
=yes
23769 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23771 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23775 $as_echo "$gcc_cv_ld_demangle" >&6; }
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23779 $as_echo_n "checking linker plugin support... " >&6; }
23780 gcc_cv_lto_plugin
=0
23781 if test -f liblto_plugin.la
; then
23782 save_ld_ver
="$ld_ver"
23783 save_ld_vers_major
="$ld_vers_major"
23784 save_ld_vers_minor
="$ld_vers_minor"
23785 save_ld_is_gold
="$ld_is_gold"
23789 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23791 # FIXME: ld_is_gold?
23792 ld_vers_major
="$gcc_cv_gld_major_version"
23793 ld_vers_minor
="$gcc_cv_gld_minor_version"
23795 # Determine plugin linker version.
23796 # FIXME: Partial duplicate from above, generalize.
23797 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23798 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23799 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23801 ld_vers
=`echo $ld_ver | sed -n \
23802 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23804 ld_vers
=`echo $ld_ver | sed -n \
23805 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23807 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23808 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23812 # Determine plugin support.
23813 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23814 # Require GNU ld or gold 2.21+ for plugin support by default.
23815 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23816 gcc_cv_lto_plugin
=2
23817 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23818 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23819 gcc_cv_lto_plugin
=1
23823 ld_ver
="$save_ld_ver"
23824 ld_vers_major
="$save_ld_vers_major"
23825 ld_vers_minor
="$save_ld_vers_minor"
23826 ld_is_gold
="$save_ld_is_gold"
23829 cat >>confdefs.h
<<_ACEOF
23830 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23834 $as_echo "$gcc_cv_lto_plugin" >&6; }
23837 # All TARGET_ABI_OSF targets.
23838 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23840 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23841 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23842 $as_echo_n "(cached) " >&6
23844 gcc_cv_as_alpha_explicit_relocs
=no
23845 if test $in_tree_gas = yes; then
23846 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23847 then gcc_cv_as_alpha_explicit_relocs
=yes
23849 elif test x
$gcc_cv_as != x
; then
23850 $as_echo ' .set nomacro
23852 extbl $3, $2, $3 !lituse_bytoff!1
23853 ldq $2, a($29) !literal!1
23854 ldq $4, b($29) !literal!2
23855 ldq_u $3, 0($2) !lituse_base!1
23856 ldq $27, f($29) !literal!5
23857 jsr $26, ($27), f !lituse_jsr!5
23858 ldah $29, 0($26) !gpdisp!3
23859 lda $0, c($29) !gprel
23860 ldah $1, d($29) !gprelhigh
23861 lda $1, d($1) !gprellow
23862 lda $29, 0($29) !gpdisp!3' > conftest.s
23863 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }
23870 gcc_cv_as_alpha_explicit_relocs
=yes
23872 echo "configure: failed program was" >&5
23875 rm -f conftest.o conftest.s
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23879 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23880 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23882 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23886 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23887 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23888 $as_echo_n "(cached) " >&6
23890 gcc_cv_as_alpha_jsrdirect_relocs
=no
23891 if test $in_tree_gas = yes; then
23892 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23893 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23895 elif test x
$gcc_cv_as != x
; then
23896 $as_echo ' .set nomacro
23898 ldq $27, a($29) !literal!1
23899 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23902 (eval $ac_try) 2>&5
23904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23905 test $ac_status = 0; }; }
23907 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23909 echo "configure: failed program was" >&5
23912 rm -f conftest.o conftest.s
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23916 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23917 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23919 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23926 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23927 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23928 $as_echo_n "(cached) " >&6
23930 gcc_cv_as_cris_no_mul_bug
=no
23931 if test $in_tree_gas = yes; then
23932 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23933 then gcc_cv_as_cris_no_mul_bug
=yes
23935 elif test x
$gcc_cv_as != x
; then
23936 $as_echo '.text' > conftest.s
23937 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23939 (eval $ac_try) 2>&5
23941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23942 test $ac_status = 0; }; }
23944 gcc_cv_as_cris_no_mul_bug
=yes
23946 echo "configure: failed program was" >&5
23949 rm -f conftest.o conftest.s
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23953 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23954 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23956 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23963 $as_echo_n "checking assembler for .register... " >&6; }
23964 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23965 $as_echo_n "(cached) " >&6
23967 gcc_cv_as_sparc_register_op
=no
23968 if test x
$gcc_cv_as != x
; then
23969 $as_echo '.register %g2, #scratch' > conftest.s
23970 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23972 (eval $ac_try) 2>&5
23974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23975 test $ac_status = 0; }; }
23977 gcc_cv_as_sparc_register_op
=yes
23979 echo "configure: failed program was" >&5
23982 rm -f conftest.o conftest.s
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23986 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23987 if test $gcc_cv_as_sparc_register_op = yes; then
23989 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23994 $as_echo_n "checking assembler for -relax option... " >&6; }
23995 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23996 $as_echo_n "(cached) " >&6
23998 gcc_cv_as_sparc_relax
=no
23999 if test x
$gcc_cv_as != x
; then
24000 $as_echo '.text' > conftest.s
24001 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24003 (eval $ac_try) 2>&5
24005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24006 test $ac_status = 0; }; }
24008 gcc_cv_as_sparc_relax
=yes
24010 echo "configure: failed program was" >&5
24013 rm -f conftest.o conftest.s
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24017 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24018 if test $gcc_cv_as_sparc_relax = yes; then
24020 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24025 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24026 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24027 $as_echo_n "(cached) " >&6
24029 gcc_cv_as_sparc_gotdata_op
=no
24030 if test x
$gcc_cv_as != x
; then
24036 sethi %gdop_hix22(foo), %g1
24037 xor %g1, %gdop_lox10(foo), %g1
24038 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24039 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24041 (eval $ac_try) 2>&5
24043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24044 test $ac_status = 0; }; }
24046 if test x
$gcc_cv_ld != x \
24047 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24048 if test x
$gcc_cv_objdump != x
; then
24049 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24050 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24051 gcc_cv_as_sparc_gotdata_op
=no
24053 gcc_cv_as_sparc_gotdata_op
=yes
24059 echo "configure: failed program was" >&5
24062 rm -f conftest.o conftest.s
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24066 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24067 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24069 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24074 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24075 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24076 $as_echo_n "(cached) " >&6
24078 gcc_cv_as_sparc_ua_pcrel
=no
24079 if test x
$gcc_cv_as != x
; then
24086 .uaword %r_disp32(foo)' > conftest.s
24087 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24089 (eval $ac_try) 2>&5
24091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24092 test $ac_status = 0; }; }
24094 if test x
$gcc_cv_ld != x \
24095 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24096 gcc_cv_as_sparc_ua_pcrel
=yes
24100 echo "configure: failed program was" >&5
24103 rm -f conftest.o conftest.s
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24107 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24108 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24110 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24114 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24115 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24116 $as_echo_n "(cached) " >&6
24118 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24119 if test x
$gcc_cv_as != x
; then
24123 .uaword %r_disp32(foo)
24124 .byte 0x32, 0x33, 0x34
24128 .skip 4' > conftest.s
24129 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24137 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24138 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24139 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24140 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24141 |
grep 'DISP32' > /dev
/null
2>&1; then
24144 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24149 echo "configure: failed program was" >&5
24152 rm -f conftest.o conftest.s
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24156 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24157 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24159 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24163 fi # unaligned pcrel relocs
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24166 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24167 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24168 $as_echo_n "(cached) " >&6
24170 gcc_cv_as_sparc_offsetable_lo10
=no
24171 if test x
$gcc_cv_as != x
; then
24173 or %g1, %lo(ab) + 12, %g1
24174 or %g1, %lo(ab + 12), %g1' > conftest.s
24175 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24177 (eval $ac_try) 2>&5
24179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24180 test $ac_status = 0; }; }
24182 if test x
$gcc_cv_objdump != x \
24183 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24184 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24185 gcc_cv_as_sparc_offsetable_lo10
=yes
24188 echo "configure: failed program was" >&5
24191 rm -f conftest.o conftest.s
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24195 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24196 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24198 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24203 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24204 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24205 $as_echo_n "(cached) " >&6
24207 gcc_cv_as_sparc_fmaf
=no
24208 if test x
$gcc_cv_as != x
; then
24210 .register %g2, #scratch
24211 .register %g3, #scratch
24213 fmaddd %f0, %f2, %f4, %f6
24214 addxccc %g1, %g2, %g3
24215 fsrl32 %f2, %f4, %f8
24216 fnaddd %f10, %f12, %f14' > conftest.s
24217 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24219 (eval $ac_try) 2>&5
24221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24222 test $ac_status = 0; }; }
24224 gcc_cv_as_sparc_fmaf
=yes
24226 echo "configure: failed program was" >&5
24229 rm -f conftest.o conftest.s
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24233 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24234 if test $gcc_cv_as_sparc_fmaf = yes; then
24236 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24241 i
[34567]86-*-* | x86_64-
*-*)
24244 # Full C++ conformance when using a shared libstdc++-v3 requires some
24245 # support from the Cygwin DLL, which in more recent versions exports
24246 # wrappers to aid in interposing and redirecting operators new, delete,
24247 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24248 # are configuring for a version of Cygwin that exports the wrappers.
24249 if test x
$host = x
$target; then
24250 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24251 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24252 gcc_ac_cygwin_dll_wrappers
=yes
24254 gcc_ac_cygwin_dll_wrappers
=no
24258 # Can't check presence of libc functions during cross-compile, so
24259 # we just have to assume we're building for an up-to-date target.
24260 gcc_ac_cygwin_dll_wrappers
=yes
24263 cat >>confdefs.h
<<_ACEOF
24264 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24269 cygwin
* | pe | mingw32
*)
24270 # Recent binutils allows the three-operand form of ".comm" on PE. This
24271 # definition is used unconditionally to initialise the default state of
24272 # the target option variable that governs usage of the feature.
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24274 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24275 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24276 $as_echo_n "(cached) " >&6
24278 gcc_cv_as_comm_has_align
=no
24279 if test $in_tree_gas = yes; then
24280 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24281 then gcc_cv_as_comm_has_align
=yes
24283 elif test x
$gcc_cv_as != x
; then
24284 $as_echo '.comm foo,1,32' > conftest.s
24285 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24287 (eval $ac_try) 2>&5
24289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24290 test $ac_status = 0; }; }
24292 gcc_cv_as_comm_has_align
=yes
24294 echo "configure: failed program was" >&5
24297 rm -f conftest.o conftest.s
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24301 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24304 cat >>confdefs.h
<<_ACEOF
24305 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24308 # Used for DWARF 2 in PE
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24310 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24311 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24312 $as_echo_n "(cached) " >&6
24314 gcc_cv_as_ix86_pe_secrel32
=no
24315 if test $in_tree_gas = yes; then
24316 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24317 then gcc_cv_as_ix86_pe_secrel32
=yes
24319 elif test x
$gcc_cv_as != x
; then
24323 .secrel32 foo' > conftest.s
24324 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24326 (eval $ac_try) 2>&5
24328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24329 test $ac_status = 0; }; }
24331 if test x
$gcc_cv_ld != x \
24332 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24333 gcc_cv_as_ix86_pe_secrel32
=yes
24337 echo "configure: failed program was" >&5
24340 rm -f conftest.o conftest.s
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24344 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24345 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24347 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24350 # Test if the assembler supports the extended form of the .section
24351 # directive that specifies section alignment. LTO support uses this,
24352 # but normally only after installation, so we warn but don't fail the
24353 # configure if LTO is enabled but the assembler does not support it.
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24355 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24356 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24357 $as_echo_n "(cached) " >&6
24359 gcc_cv_as_section_has_align
=no
24360 if test $in_tree_gas = yes; then
24361 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24362 then gcc_cv_as_section_has_align
=yes
24364 elif test x
$gcc_cv_as != x
; then
24365 $as_echo '.section lto_test,"dr0"' > conftest.s
24366 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24368 (eval $ac_try) 2>&5
24370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24371 test $ac_status = 0; }; }
24373 gcc_cv_as_section_has_align
=yes
24375 echo "configure: failed program was" >&5
24378 rm -f conftest.o conftest.s
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24382 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24384 if test x
$gcc_cv_as_section_has_align != xyes
; then
24385 case ",$enable_languages," in
24387 { $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
24388 $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;}
24392 # Test if the assembler supports the section flag 'e' for specifying
24393 # an excluded section.
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24395 $as_echo_n "checking assembler for .section with e... " >&6; }
24396 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24397 $as_echo_n "(cached) " >&6
24399 gcc_cv_as_section_has_e
=no
24400 if test $in_tree_gas = yes; then
24401 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24402 then gcc_cv_as_section_has_e
=yes
24404 elif test x
$gcc_cv_as != x
; then
24405 $as_echo '.section foo1,"e"
24406 .byte 0,0,0,0' > conftest.s
24407 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24409 (eval $ac_try) 2>&5
24411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24412 test $ac_status = 0; }; }
24414 gcc_cv_as_section_has_e
=yes
24416 echo "configure: failed program was" >&5
24419 rm -f conftest.o conftest.s
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24423 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24426 cat >>confdefs.h
<<_ACEOF
24427 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24434 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24435 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24436 $as_echo_n "(cached) " >&6
24438 gcc_cv_as_ix86_filds
=no
24439 if test x
$gcc_cv_as != x
; then
24440 $as_echo 'filds mem; fists mem' > conftest.s
24441 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24443 (eval $ac_try) 2>&5
24445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24446 test $ac_status = 0; }; }
24448 gcc_cv_as_ix86_filds
=yes
24450 echo "configure: failed program was" >&5
24453 rm -f conftest.o conftest.s
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24457 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24458 if test $gcc_cv_as_ix86_filds = yes; then
24460 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24465 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24466 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24467 $as_echo_n "(cached) " >&6
24469 gcc_cv_as_ix86_fildq
=no
24470 if test x
$gcc_cv_as != x
; then
24471 $as_echo 'fildq mem; fistpq mem' > conftest.s
24472 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24474 (eval $ac_try) 2>&5
24476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24477 test $ac_status = 0; }; }
24479 gcc_cv_as_ix86_fildq
=yes
24481 echo "configure: failed program was" >&5
24484 rm -f conftest.o conftest.s
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24488 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24489 if test $gcc_cv_as_ix86_fildq = yes; then
24491 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24496 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24497 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24498 $as_echo_n "(cached) " >&6
24500 gcc_cv_as_ix86_cmov_sun_syntax
=no
24501 if test x
$gcc_cv_as != x
; then
24502 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24503 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24505 (eval $ac_try) 2>&5
24507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24508 test $ac_status = 0; }; }
24510 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24512 echo "configure: failed program was" >&5
24515 rm -f conftest.o conftest.s
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24519 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24520 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24522 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24527 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24528 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24529 $as_echo_n "(cached) " >&6
24531 gcc_cv_as_ix86_ffreep
=no
24532 if test x
$gcc_cv_as != x
; then
24533 $as_echo 'ffreep %st(1)' > conftest.s
24534 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24536 (eval $ac_try) 2>&5
24538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24539 test $ac_status = 0; }; }
24541 gcc_cv_as_ix86_ffreep
=yes
24543 echo "configure: failed program was" >&5
24546 rm -f conftest.o conftest.s
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24550 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24551 if test $gcc_cv_as_ix86_ffreep = yes; then
24553 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24558 $as_echo_n "checking assembler for .quad directive... " >&6; }
24559 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24560 $as_echo_n "(cached) " >&6
24562 gcc_cv_as_ix86_quad
=no
24563 if test x
$gcc_cv_as != x
; then
24564 $as_echo '.quad 0' > conftest.s
24565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567 (eval $ac_try) 2>&5
24569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570 test $ac_status = 0; }; }
24572 gcc_cv_as_ix86_quad
=yes
24574 echo "configure: failed program was" >&5
24577 rm -f conftest.o conftest.s
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24581 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24582 if test $gcc_cv_as_ix86_quad = yes; then
24584 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24589 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24590 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24591 $as_echo_n "(cached) " >&6
24593 gcc_cv_as_ix86_sahf
=no
24594 if test x
$gcc_cv_as != x
; then
24597 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24599 (eval $ac_try) 2>&5
24601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24602 test $ac_status = 0; }; }
24604 gcc_cv_as_ix86_sahf
=yes
24606 echo "configure: failed program was" >&5
24609 rm -f conftest.o conftest.s
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24613 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24614 if test $gcc_cv_as_ix86_sahf = yes; then
24616 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24621 $as_echo_n "checking assembler for swap suffix... " >&6; }
24622 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24623 $as_echo_n "(cached) " >&6
24625 gcc_cv_as_ix86_swap
=no
24626 if test x
$gcc_cv_as != x
; then
24627 $as_echo 'movl.s %esp, %ebp' > conftest.s
24628 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24630 (eval $ac_try) 2>&5
24632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24633 test $ac_status = 0; }; }
24635 gcc_cv_as_ix86_swap
=yes
24637 echo "configure: failed program was" >&5
24640 rm -f conftest.o conftest.s
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24644 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24645 if test $gcc_cv_as_ix86_swap = yes; then
24647 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24652 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24653 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24654 $as_echo_n "(cached) " >&6
24656 gcc_cv_as_ix86_diff_sect_delta
=no
24657 if test x
$gcc_cv_as != x
; then
24658 $as_echo '.section .rodata
24664 .L2: nop' > conftest.s
24665 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24667 (eval $ac_try) 2>&5
24669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24670 test $ac_status = 0; }; }
24672 gcc_cv_as_ix86_diff_sect_delta
=yes
24674 echo "configure: failed program was" >&5
24677 rm -f conftest.o conftest.s
24680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24681 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24682 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24684 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24688 # These two are used unconditionally by i386.[ch]; it is to be defined
24689 # to 1 if the feature is present, 0 otherwise.
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24691 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24692 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24693 $as_echo_n "(cached) " >&6
24695 gcc_cv_as_ix86_gotoff_in_data
=no
24696 if test $in_tree_gas = yes; then
24697 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24698 then gcc_cv_as_ix86_gotoff_in_data
=yes
24700 elif test x
$gcc_cv_as != x
; then
24705 .long .L0@GOTOFF' > conftest.s
24706 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24708 (eval $ac_try) 2>&5
24710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24711 test $ac_status = 0; }; }
24713 gcc_cv_as_ix86_gotoff_in_data
=yes
24715 echo "configure: failed program was" >&5
24718 rm -f conftest.o conftest.s
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24722 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24725 cat >>confdefs.h
<<_ACEOF
24726 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24731 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24732 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24733 $as_echo_n "(cached) " >&6
24735 gcc_cv_as_ix86_rep_lock_prefix
=no
24736 if test x
$gcc_cv_as != x
; then
24737 $as_echo 'rep movsl
24738 lock addl %edi, (%eax,%esi)
24739 lock orl $0, (%esp)' > conftest.s
24740 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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_ix86_rep_lock_prefix
=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_ix86_rep_lock_prefix" >&5
24756 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24757 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24759 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24764 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24765 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24766 $as_echo_n "(cached) " >&6
24768 gcc_cv_as_ix86_tlsgdplt
=no
24769 if test x
$gcc_cv_as != x
; then
24770 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24771 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24773 (eval $ac_try) 2>&5
24775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24776 test $ac_status = 0; }; }
24778 gcc_cv_as_ix86_tlsgdplt
=yes
24780 echo "configure: failed program was" >&5
24783 rm -f conftest.o conftest.s
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24787 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24788 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24790 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24795 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24796 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24797 $as_echo_n "(cached) " >&6
24799 gcc_cv_as_ix86_tlsldmplt
=no
24800 if test x
$gcc_cv_as != x
; then
24801 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24804 (eval $ac_try) 2>&5
24806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24807 test $ac_status = 0; }; }
24809 gcc_cv_as_ix86_tlsldmplt
=yes
24811 echo "configure: failed program was" >&5
24814 rm -f conftest.o conftest.s
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24818 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24819 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24821 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24829 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24830 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24831 $as_echo_n "(cached) " >&6
24833 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24834 if test $in_tree_gas = yes; then
24835 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24836 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24838 elif test x
$gcc_cv_as != x
; then
24840 addl r15 = @ltoffx(x#), gp
24842 ld8.mov r16 = [r15], x#' > conftest.s
24843 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24845 (eval $ac_try) 2>&5
24847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24848 test $ac_status = 0; }; }
24850 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24852 echo "configure: failed program was" >&5
24855 rm -f conftest.o conftest.s
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24859 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24860 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24862 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24870 *-*-aix*) conftest_s
=' .machine "pwr5"
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24875 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24876 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24877 $as_echo_n "(cached) " >&6
24879 gcc_cv_as_machine_directive
=no
24880 if test x
$gcc_cv_as != x
; then
24881 $as_echo ' .machine ppc7400' > conftest.s
24882 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24884 (eval $ac_try) 2>&5
24886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24887 test $ac_status = 0; }; }
24889 gcc_cv_as_machine_directive
=yes
24891 echo "configure: failed program was" >&5
24894 rm -f conftest.o conftest.s
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24898 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24900 if test x
$gcc_cv_as_machine_directive != xyes
; then
24901 echo "*** This target requires an assembler supporting \".machine\"" >&2
24902 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24903 test x
$build = x
$target && exit 1
24907 *) conftest_s
=' .machine power4
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24913 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24914 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24915 $as_echo_n "(cached) " >&6
24917 gcc_cv_as_powerpc_mfcrf
=no
24918 if test $in_tree_gas = yes; then
24919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24920 then gcc_cv_as_powerpc_mfcrf
=yes
24922 elif test x
$gcc_cv_as != x
; then
24923 $as_echo "$conftest_s" > conftest.s
24924 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24926 (eval $ac_try) 2>&5
24928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24929 test $ac_status = 0; }; }
24931 gcc_cv_as_powerpc_mfcrf
=yes
24933 echo "configure: failed program was" >&5
24936 rm -f conftest.o conftest.s
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24940 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24941 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24943 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24948 *-*-aix*) conftest_s
=' .machine "pwr5"
24951 *) conftest_s
=' .machine power5
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24957 $as_echo_n "checking assembler for popcntb support... " >&6; }
24958 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24959 $as_echo_n "(cached) " >&6
24961 gcc_cv_as_powerpc_popcntb
=no
24962 if test $in_tree_gas = yes; then
24963 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24964 then gcc_cv_as_powerpc_popcntb
=yes
24966 elif test x
$gcc_cv_as != x
; then
24967 $as_echo "$conftest_s" > conftest.s
24968 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24970 (eval $ac_try) 2>&5
24972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24973 test $ac_status = 0; }; }
24975 gcc_cv_as_powerpc_popcntb
=yes
24977 echo "configure: failed program was" >&5
24980 rm -f conftest.o conftest.s
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24984 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24985 if test $gcc_cv_as_powerpc_popcntb = yes; then
24987 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24992 *-*-aix*) conftest_s
=' .machine "pwr5x"
24995 *) conftest_s
=' .machine power5
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25001 $as_echo_n "checking assembler for fp round support... " >&6; }
25002 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25003 $as_echo_n "(cached) " >&6
25005 gcc_cv_as_powerpc_fprnd
=no
25006 if test $in_tree_gas = yes; then
25007 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25008 then gcc_cv_as_powerpc_fprnd
=yes
25010 elif test x
$gcc_cv_as != x
; then
25011 $as_echo "$conftest_s" > conftest.s
25012 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25014 (eval $ac_try) 2>&5
25016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25017 test $ac_status = 0; }; }
25019 gcc_cv_as_powerpc_fprnd
=yes
25021 echo "configure: failed program was" >&5
25024 rm -f conftest.o conftest.s
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25028 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25029 if test $gcc_cv_as_powerpc_fprnd = yes; then
25031 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25036 *-*-aix*) conftest_s
=' .machine "pwr6"
25039 *) conftest_s
=' .machine power6
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25045 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25046 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25047 $as_echo_n "(cached) " >&6
25049 gcc_cv_as_powerpc_mfpgpr
=no
25050 if test $in_tree_gas = yes; then
25051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25052 then gcc_cv_as_powerpc_mfpgpr
=yes
25054 elif test x
$gcc_cv_as != x
; then
25055 $as_echo "$conftest_s" > conftest.s
25056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25058 (eval $ac_try) 2>&5
25060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25061 test $ac_status = 0; }; }
25063 gcc_cv_as_powerpc_mfpgpr
=yes
25065 echo "configure: failed program was" >&5
25068 rm -f conftest.o conftest.s
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25072 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25073 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25075 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25080 *-*-aix*) conftest_s
=' .csect .text[PR]
25082 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25086 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25087 *) conftest_s
=' .text
25089 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25093 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25094 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25095 $as_echo_n "(cached) " >&6
25097 gcc_cv_as_powerpc_rel16
=no
25098 if test $in_tree_gas = yes; then
25099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25100 then gcc_cv_as_powerpc_rel16
=yes
25102 elif test x
$gcc_cv_as != x
; then
25103 $as_echo "$conftest_s" > conftest.s
25104 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_rel16
=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_powerpc_rel16" >&5
25120 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25121 if test $gcc_cv_as_powerpc_rel16 = yes; then
25123 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25128 *-*-aix*) conftest_s
=' .machine "pwr6"
25131 *) conftest_s
=' .machine power6
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25137 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25138 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25139 $as_echo_n "(cached) " >&6
25141 gcc_cv_as_powerpc_cmpb
=no
25142 if test $in_tree_gas = yes; then
25143 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25144 then gcc_cv_as_powerpc_cmpb
=yes
25146 elif test x
$gcc_cv_as != x
; then
25147 $as_echo "$conftest_s" > conftest.s
25148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25150 (eval $ac_try) 2>&5
25152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25153 test $ac_status = 0; }; }
25155 gcc_cv_as_powerpc_cmpb
=yes
25157 echo "configure: failed program was" >&5
25160 rm -f conftest.o conftest.s
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25164 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25165 if test $gcc_cv_as_powerpc_cmpb = yes; then
25167 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25172 *-*-aix*) conftest_s
=' .machine "pwr6"
25175 *) conftest_s
=' .machine power6
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25181 $as_echo_n "checking assembler for decimal float support... " >&6; }
25182 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25183 $as_echo_n "(cached) " >&6
25185 gcc_cv_as_powerpc_dfp
=no
25186 if test $in_tree_gas = yes; then
25187 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25188 then gcc_cv_as_powerpc_dfp
=yes
25190 elif test x
$gcc_cv_as != x
; then
25191 $as_echo "$conftest_s" > conftest.s
25192 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25194 (eval $ac_try) 2>&5
25196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25197 test $ac_status = 0; }; }
25199 gcc_cv_as_powerpc_dfp
=yes
25201 echo "configure: failed program was" >&5
25204 rm -f conftest.o conftest.s
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25208 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25209 if test $gcc_cv_as_powerpc_dfp = yes; then
25211 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25216 *-*-aix*) conftest_s
=' .machine "pwr7"
25219 *) conftest_s
=' .machine power7
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25225 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25226 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25227 $as_echo_n "(cached) " >&6
25229 gcc_cv_as_powerpc_vsx
=no
25230 if test $in_tree_gas = yes; then
25231 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25232 then gcc_cv_as_powerpc_vsx
=yes
25234 elif test x
$gcc_cv_as != x
; then
25235 $as_echo "$conftest_s" > conftest.s
25236 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25238 (eval $ac_try) 2>&5
25240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25241 test $ac_status = 0; }; }
25243 gcc_cv_as_powerpc_vsx
=yes
25245 echo "configure: failed program was" >&5
25248 rm -f conftest.o conftest.s
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25252 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25253 if test $gcc_cv_as_powerpc_vsx = yes; then
25255 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25260 *-*-aix*) conftest_s
=' .machine "pwr7"
25263 *) conftest_s
=' .machine power7
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25269 $as_echo_n "checking assembler for popcntd support... " >&6; }
25270 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25271 $as_echo_n "(cached) " >&6
25273 gcc_cv_as_powerpc_popcntd
=no
25274 if test $in_tree_gas = yes; then
25275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25276 then gcc_cv_as_powerpc_popcntd
=yes
25278 elif test x
$gcc_cv_as != x
; then
25279 $as_echo "$conftest_s" > conftest.s
25280 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25282 (eval $ac_try) 2>&5
25284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25285 test $ac_status = 0; }; }
25287 gcc_cv_as_powerpc_popcntd
=yes
25289 echo "configure: failed program was" >&5
25292 rm -f conftest.o conftest.s
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25296 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25297 if test $gcc_cv_as_powerpc_popcntd = yes; then
25299 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25304 *-*-aix*) conftest_s
=' .csect .text[PR]
25306 *) conftest_s
=' .text
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25311 $as_echo_n "checking assembler for lwsync support... " >&6; }
25312 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25313 $as_echo_n "(cached) " >&6
25315 gcc_cv_as_powerpc_lwsync
=no
25316 if test $in_tree_gas = yes; then
25317 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25318 then gcc_cv_as_powerpc_lwsync
=yes
25320 elif test x
$gcc_cv_as != x
; then
25321 $as_echo "$conftest_s" > conftest.s
25322 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }
25329 gcc_cv_as_powerpc_lwsync
=yes
25331 echo "configure: failed program was" >&5
25334 rm -f conftest.o conftest.s
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25338 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25339 if test $gcc_cv_as_powerpc_lwsync = yes; then
25341 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25346 *-*-aix*) conftest_s
=' .machine "476"
25349 *) conftest_s
=' .machine "476"
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25355 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25356 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25357 $as_echo_n "(cached) " >&6
25359 gcc_cv_as_powerpc_dci
=no
25360 if test $in_tree_gas = yes; then
25361 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25362 then gcc_cv_as_powerpc_dci
=yes
25364 elif test x
$gcc_cv_as != x
; then
25365 $as_echo "$conftest_s" > conftest.s
25366 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25368 (eval $ac_try) 2>&5
25370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25371 test $ac_status = 0; }; }
25373 gcc_cv_as_powerpc_dci
=yes
25375 echo "configure: failed program was" >&5
25378 rm -f conftest.o conftest.s
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25382 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25383 if test $gcc_cv_as_powerpc_dci = yes; then
25385 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25390 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25391 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25392 $as_echo_n "(cached) " >&6
25394 gcc_cv_as_powerpc_gnu_attribute
=no
25395 if test $in_tree_gas = yes; then
25396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25397 then gcc_cv_as_powerpc_gnu_attribute
=yes
25399 elif test x
$gcc_cv_as != x
; then
25400 $as_echo '.gnu_attribute 4,1' > conftest.s
25401 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25403 (eval $ac_try) 2>&5
25405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }; }
25408 gcc_cv_as_powerpc_gnu_attribute
=yes
25410 echo "configure: failed program was" >&5
25413 rm -f conftest.o conftest.s
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25417 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25418 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25420 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25425 $as_echo_n "checking assembler for tls marker support... " >&6; }
25426 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25427 $as_echo_n "(cached) " >&6
25429 gcc_cv_as_powerpc_tls_markers
=no
25430 if test $in_tree_gas = yes; then
25431 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25432 then gcc_cv_as_powerpc_tls_markers
=yes
25434 elif test x
$gcc_cv_as != x
; then
25435 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25436 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25438 (eval $ac_try) 2>&5
25440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25441 test $ac_status = 0; }; }
25443 gcc_cv_as_powerpc_tls_markers
=yes
25445 echo "configure: failed program was" >&5
25448 rm -f conftest.o conftest.s
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25452 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25453 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25455 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25462 $as_echo_n "checking assembler for .ref support... " >&6; }
25463 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25464 $as_echo_n "(cached) " >&6
25466 gcc_cv_as_aix_ref
=no
25467 if test $in_tree_gas = yes; then
25468 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25471 elif test x
$gcc_cv_as != x
; then
25472 $as_echo ' .csect stuff[rw]
25478 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25480 (eval $ac_try) 2>&5
25482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25483 test $ac_status = 0; }; }
25485 gcc_cv_as_aix_ref
=yes
25487 echo "configure: failed program was" >&5
25490 rm -f conftest.o conftest.s
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25494 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25495 if test $gcc_cv_as_aix_ref = yes; then
25497 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25506 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25507 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25508 $as_echo_n "(cached) " >&6
25510 gcc_cv_as_mips_explicit_relocs
=no
25511 if test $in_tree_gas = yes; then
25512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25513 then gcc_cv_as_mips_explicit_relocs
=yes
25515 elif test x
$gcc_cv_as != x
; then
25516 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25517 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25519 (eval $ac_try) 2>&5
25521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25522 test $ac_status = 0; }; }
25524 gcc_cv_as_mips_explicit_relocs
=yes
25526 echo "configure: failed program was" >&5
25529 rm -f conftest.o conftest.s
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25533 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25534 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25535 if test x
$target_cpu_default = x
25536 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25537 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25541 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25542 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25543 $as_echo_n "(cached) " >&6
25545 gcc_cv_as_mips_no_shared
=no
25546 if test $in_tree_gas = yes; then
25547 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25548 then gcc_cv_as_mips_no_shared
=yes
25550 elif test x
$gcc_cv_as != x
; then
25551 $as_echo 'nop' > conftest.s
25552 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25554 (eval $ac_try) 2>&5
25556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25557 test $ac_status = 0; }; }
25559 gcc_cv_as_mips_no_shared
=yes
25561 echo "configure: failed program was" >&5
25564 rm -f conftest.o conftest.s
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25568 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25569 if test $gcc_cv_as_mips_no_shared = yes; then
25571 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25576 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25577 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25578 $as_echo_n "(cached) " >&6
25580 gcc_cv_as_mips_gnu_attribute
=no
25581 if test $in_tree_gas = yes; then
25582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25583 then gcc_cv_as_mips_gnu_attribute
=yes
25585 elif test x
$gcc_cv_as != x
; then
25586 $as_echo '.gnu_attribute 4,1' > conftest.s
25587 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25589 (eval $ac_try) 2>&5
25591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592 test $ac_status = 0; }; }
25594 gcc_cv_as_mips_gnu_attribute
=yes
25596 echo "configure: failed program was" >&5
25599 rm -f conftest.o conftest.s
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25603 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25604 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25606 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25611 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25612 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25613 $as_echo_n "(cached) " >&6
25615 gcc_cv_as_mips_dtprelword
=no
25616 if test $in_tree_gas = yes; then
25617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25618 then gcc_cv_as_mips_dtprelword
=yes
25620 elif test x
$gcc_cv_as != x
; then
25621 $as_echo '.section .tdata,"awT",@progbits
25625 .dtprelword x+0x8000' > conftest.s
25626 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25628 (eval $ac_try) 2>&5
25630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25631 test $ac_status = 0; }; }
25633 gcc_cv_as_mips_dtprelword
=yes
25635 echo "configure: failed program was" >&5
25638 rm -f conftest.o conftest.s
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25642 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25643 if test $gcc_cv_as_mips_dtprelword = yes; then
25645 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25650 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25651 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25652 $as_echo_n "(cached) " >&6
25654 gcc_cv_as_mips_dspr1_mult
=no
25655 if test x
$gcc_cv_as != x
; then
25656 $as_echo ' .set mips32r2
25664 multu $ac3,$4,$5' > conftest.s
25665 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25667 (eval $ac_try) 2>&5
25669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25670 test $ac_status = 0; }; }
25672 gcc_cv_as_mips_dspr1_mult
=yes
25674 echo "configure: failed program was" >&5
25677 rm -f conftest.o conftest.s
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25681 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25682 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25684 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25689 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25690 gcc_cv_as_ld_jalr_reloc
=no
25691 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25692 if test $in_tree_ld = yes ; then
25693 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 \
25694 && test $in_tree_ld_is_elf = yes; then
25695 gcc_cv_as_ld_jalr_reloc
=yes
25697 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25698 echo ' .ent x' > conftest.s
25699 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25700 echo ' ld $25,%call16(y)($28)' >> conftest.s
25701 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25702 echo '1: jalr $25' >> conftest.s
25703 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25704 echo '1: jalr $25' >> conftest.s
25705 echo ' .end x' >> conftest.s
25706 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25707 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25708 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25709 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25710 gcc_cv_as_ld_jalr_reloc
=yes
25716 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25717 if test x
$target_cpu_default = x
; then
25718 target_cpu_default
=MASK_RELAX_PIC_CALLS
25720 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25724 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25727 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25728 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25729 $as_echo_n "(cached) " >&6
25731 gcc_cv_ld_mips_personality_relaxation
=no
25732 if test $in_tree_ld = yes ; then
25733 if test "$gcc_cv_gld_major_version" -eq 2 \
25734 -a "$gcc_cv_gld_minor_version" -ge 21 \
25735 -o "$gcc_cv_gld_major_version" -gt 2; then
25736 gcc_cv_ld_mips_personality_relaxation
=yes
25738 elif test x
$gcc_cv_as != x \
25739 -a x
$gcc_cv_ld != x \
25740 -a x
$gcc_cv_readelf != x
; then
25741 cat > conftest.s
<<EOF
25743 .cfi_personality 0x80,indirect_ptr
25750 .section .data,"aw",@progbits
25754 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25755 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25756 if $gcc_cv_readelf -d conftest
2>&1 \
25757 |
grep TEXTREL
> /dev
/null
2>&1; then
25759 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25760 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25763 gcc_cv_ld_mips_personality_relaxation
=yes
25767 rm -f conftest.s conftest.o conftest
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25770 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25771 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25773 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25779 # Mips and HP-UX need the GNU assembler.
25780 # Linux on IA64 might be able to use the Intel assembler.
25783 mips
*-*-* |
*-*-hpux* )
25784 if test x
$gas_flag = xyes \
25785 ||
test x
"$host" != x
"$build" \
25786 ||
test ! -x "$gcc_cv_as" \
25787 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25790 echo "*** This configuration requires the GNU assembler" >&2
25796 # ??? Not all targets support dwarf2 debug_line, even within a version
25797 # of gas. Moreover, we need to emit a valid instruction to trigger any
25798 # info to the output file. So, as supported targets are added to gas 2.11,
25799 # add some instruction here to (also) show we expect this might work.
25800 # ??? Once 2.11 is released, probably need to add first known working
25801 # version to the per-target configury.
25802 case "$cpu_type" in
25803 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25804 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa
)
25814 if test x
"$insn" != x
; then
25816 .file 1 \"conftest.s\"
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25820 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25821 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25822 $as_echo_n "(cached) " >&6
25824 gcc_cv_as_dwarf2_debug_line
=no
25825 if test $in_tree_gas = yes; then
25826 if test $in_tree_gas_is_elf = yes \
25827 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25828 then gcc_cv_as_dwarf2_debug_line
=yes
25830 elif test x
$gcc_cv_as != x
; then
25831 $as_echo "$conftest_s" > conftest.s
25832 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25834 (eval $ac_try) 2>&5
25836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25837 test $ac_status = 0; }; }
25839 if test x
$gcc_cv_objdump != x \
25840 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25841 |
grep debug_line
> /dev
/null
2>&1; then
25842 gcc_cv_as_dwarf2_debug_line
=yes
25845 echo "configure: failed program was" >&5
25848 rm -f conftest.o conftest.s
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25852 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25855 # The .debug_line file table must be in the exact order that
25856 # we specified the files, since these indices are also used
25857 # by DW_AT_decl_file. Approximate this test by testing if
25858 # the assembler bitches if the same index is assigned twice.
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25860 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25861 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25862 $as_echo_n "(cached) " >&6
25864 gcc_cv_as_dwarf2_file_buggy
=no
25865 if test x
$gcc_cv_as != x
; then
25866 $as_echo ' .file 1 "foo.s"
25867 .file 1 "bar.s"' > conftest.s
25868 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25870 (eval $ac_try) 2>&5
25872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25873 test $ac_status = 0; }; }
25875 gcc_cv_as_dwarf2_file_buggy
=yes
25877 echo "configure: failed program was" >&5
25880 rm -f conftest.o conftest.s
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25884 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25887 if test $gcc_cv_as_dwarf2_debug_line = yes \
25888 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25890 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25895 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25896 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25897 $as_echo_n "(cached) " >&6
25899 gcc_cv_as_gdwarf2_flag
=no
25900 if test $in_tree_gas = yes; then
25901 if test $in_tree_gas_is_elf = yes \
25902 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25903 then gcc_cv_as_gdwarf2_flag
=yes
25905 elif test x
$gcc_cv_as != x
; then
25906 $as_echo "$insn" > conftest.s
25907 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25909 (eval $ac_try) 2>&5
25911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25912 test $ac_status = 0; }; }
25914 gcc_cv_as_gdwarf2_flag
=yes
25916 echo "configure: failed program was" >&5
25919 rm -f conftest.o conftest.s
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25923 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25924 if test $gcc_cv_as_gdwarf2_flag = yes; then
25926 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25931 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25932 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25933 $as_echo_n "(cached) " >&6
25935 gcc_cv_as_gstabs_flag
=no
25936 if test $in_tree_gas = yes; then
25937 if test $in_tree_gas_is_elf = yes \
25938 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25939 then gcc_cv_as_gstabs_flag
=yes
25941 elif test x
$gcc_cv_as != x
; then
25942 $as_echo "$insn" > conftest.s
25943 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25945 (eval $ac_try) 2>&5
25947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25948 test $ac_status = 0; }; }
25950 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25951 # and warns about it, but still exits successfully. So check for
25953 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25955 (eval $ac_try) 2>&5
25957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25958 test $ac_status = 0; }; }
25960 else gcc_cv_as_gstabs_flag
=yes
25963 echo "configure: failed program was" >&5
25966 rm -f conftest.o conftest.s
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25970 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25971 if test $gcc_cv_as_gstabs_flag = yes; then
25973 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25978 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25979 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25980 $as_echo_n "(cached) " >&6
25982 gcc_cv_as_debug_prefix_map_flag
=no
25983 if test $in_tree_gas = yes; then
25984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25985 then gcc_cv_as_debug_prefix_map_flag
=yes
25987 elif test x
$gcc_cv_as != x
; then
25988 $as_echo "$insn" > conftest.s
25989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25991 (eval $ac_try) 2>&5
25993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25994 test $ac_status = 0; }; }
25996 gcc_cv_as_debug_prefix_map_flag
=yes
25998 echo "configure: failed program was" >&5
26001 rm -f conftest.o conftest.s
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26005 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26006 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26008 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26014 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26015 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26016 $as_echo_n "(cached) " >&6
26018 gcc_cv_as_lcomm_with_alignment
=no
26019 if test x
$gcc_cv_as != x
; then
26020 $as_echo '.lcomm bar,4,16' > conftest.s
26021 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26023 (eval $ac_try) 2>&5
26025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26026 test $ac_status = 0; }; }
26028 gcc_cv_as_lcomm_with_alignment
=yes
26030 echo "configure: failed program was" >&5
26033 rm -f conftest.o conftest.s
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26037 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26038 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26040 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26044 # Check whether --enable-gnu-unique-object was given.
26045 if test "${enable_gnu_unique_object+set}" = set; then :
26046 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26048 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26049 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26053 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26054 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26055 $as_echo_n "(cached) " >&6
26057 gcc_cv_as_gnu_unique_object
=no
26058 if test $in_tree_gas = yes; then
26059 if test $in_tree_gas_is_elf = yes \
26060 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26061 then gcc_cv_as_gnu_unique_object
=yes
26063 elif test x
$gcc_cv_as != x
; then
26064 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26065 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26067 (eval $ac_try) 2>&5
26069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26070 test $ac_status = 0; }; }
26072 gcc_cv_as_gnu_unique_object
=yes
26074 echo "configure: failed program was" >&5
26077 rm -f conftest.o conftest.s
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26081 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26082 if test $gcc_cv_as_gnu_unique_object = yes; then
26083 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26084 if test x
$host = x
$build -a x
$host = x
$target &&
26085 ldd
--version 2>/dev
/null
&&
26086 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26087 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26088 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26089 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26090 if test "$glibcnum" -ge 2011 ; then
26091 enable_gnu_unique_object
=yes
26097 if test x
$enable_gnu_unique_object = xyes
; then
26099 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26104 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26105 if test "${gcc_cv_as_line_zero+set}" = set; then :
26106 $as_echo_n "(cached) " >&6
26108 gcc_cv_as_line_zero
=no
26109 if test $in_tree_gas = yes; then
26110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26111 then gcc_cv_as_line_zero
=yes
26113 elif test "x$gcc_cv_as" != x
; then
26114 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26115 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26117 (eval $ac_try) 2>&5
26119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26120 test $ac_status = 0; }; } &&
26121 test "x`cat conftest.out`" = x
26123 gcc_cv_as_line_zero
=yes
26125 echo "configure: failed program was" >&5
26127 echo "configure: error output was" >&5
26128 cat conftest.out
>&5
26130 rm -f conftest.o conftest.s conftest.out
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26134 $as_echo "$gcc_cv_as_line_zero" >&6; }
26135 if test "x$gcc_cv_as_line_zero" = xyes
; then
26137 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26142 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26143 gcc_cv_ld_eh_frame_hdr
=no
26144 if test $in_tree_ld = yes ; then
26145 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 \
26146 && test $in_tree_ld_is_elf = yes; then
26147 gcc_cv_ld_eh_frame_hdr
=yes
26149 elif test x
$gcc_cv_ld != x
; then
26150 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26151 # Check if linker supports --eh-frame-hdr option
26152 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26153 gcc_cv_ld_eh_frame_hdr
=yes
26158 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26159 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26160 gcc_cv_ld_eh_frame_hdr
=yes
26167 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26169 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26173 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26176 $as_echo_n "checking linker position independent executable support... " >&6; }
26178 if test $in_tree_ld = yes ; then
26179 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 \
26180 && test $in_tree_ld_is_elf = yes; then
26183 elif test x
$gcc_cv_ld != x
; then
26184 # Check if linker supports -pie option
26185 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26189 if test x
"$gcc_cv_ld_pie" = xyes
; then
26191 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26195 $as_echo "$gcc_cv_ld_pie" >&6; }
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26198 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26199 gcc_cv_ld_eh_gc_sections
=no
26200 if test $in_tree_ld = yes ; then
26201 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 \
26202 && test $in_tree_ld_is_elf = yes; then
26203 gcc_cv_ld_eh_gc_sections
=yes
26205 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26206 cat > conftest.s
<<EOF
26209 .type _start, @function
26212 .size _start, .-_start
26213 .section .text.foo,"ax",@progbits
26214 .type foo, @function
26218 .section .gcc_except_table.foo,"a",@progbits
26221 .section .eh_frame,"a",@progbits
26224 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26225 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26226 |
grep "gc-sections option ignored" > /dev
/null
; then
26227 gcc_cv_ld_eh_gc_sections
=no
26228 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26229 |
grep gcc_except_table
> /dev
/null
; then
26230 gcc_cv_ld_eh_gc_sections
=yes
26231 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26232 if test x
$gcc_cv_as_comdat_group != xyes
; then
26233 gcc_cv_ld_eh_gc_sections
=no
26234 cat > conftest.s
<<EOF
26237 .type _start, @function
26240 .size _start, .-_start
26241 .section .gnu.linkonce.t.foo,"ax",@progbits
26242 .type foo, @function
26246 .section .gcc_except_table.foo,"a",@progbits
26249 .section .eh_frame,"a",@progbits
26252 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26253 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26254 |
grep "gc-sections option ignored" > /dev
/null
; then
26255 gcc_cv_ld_eh_gc_sections
=no
26256 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26257 |
grep gcc_except_table
> /dev
/null
; then
26258 gcc_cv_ld_eh_gc_sections
=yes
26264 rm -f conftest.s conftest.o conftest
26268 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26269 gcc_cv_ld_eh_gc_sections
=no
26272 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26274 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26278 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26281 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26282 gcc_cv_ld_eh_gc_sections_bug
=no
26283 if test $in_tree_ld = yes ; then
26284 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 \
26285 && test $in_tree_ld_is_elf = yes; then
26286 gcc_cv_ld_eh_gc_sections_bug
=yes
26288 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
26289 gcc_cv_ld_eh_gc_sections_bug
=yes
26290 cat > conftest.s
<<EOF
26293 .type _start, @function
26296 .size _start, .-_start
26297 .section .text.startup.foo,"ax",@progbits
26298 .type foo, @function
26302 .section .gcc_except_table.foo,"a",@progbits
26305 .section .eh_frame,"a",@progbits
26308 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26309 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26310 |
grep "gc-sections option ignored" > /dev
/null
; then
26312 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26313 |
grep gcc_except_table
> /dev
/null
; then
26314 gcc_cv_ld_eh_gc_sections_bug
=no
26317 rm -f conftest.s conftest.o conftest
26319 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26321 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26325 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26332 $as_echo_n "checking linker --as-needed support... " >&6; }
26333 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26334 $as_echo_n "(cached) " >&6
26336 gcc_cv_ld_as_needed
=no
26337 if test $in_tree_ld = yes ; then
26338 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 \
26339 && test $in_tree_ld_is_elf = yes; then
26340 gcc_cv_ld_as_needed
=yes
26342 elif test x
$gcc_cv_ld != x
; then
26343 # Check if linker supports --as-needed and --no-as-needed options
26344 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26345 gcc_cv_ld_as_needed
=yes
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26351 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26352 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26354 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26358 case "$target:$tm_file" in
26359 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26361 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26362 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26363 $as_echo_n "(cached) " >&6
26365 gcc_cv_ld_no_dot_syms
=no
26366 if test $in_tree_ld = yes ; then
26367 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
26368 gcc_cv_ld_no_dot_syms
=yes
26370 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26371 cat > conftest1.s
<<EOF
26375 cat > conftest2.s
<<EOF
26376 .section ".opd","aw"
26379 .type foo,@function
26381 .quad .LEfoo,.TOC.@tocbase,0
26387 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26388 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26389 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26390 gcc_cv_ld_no_dot_syms
=yes
26392 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26397 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26398 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26400 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26405 $as_echo_n "checking linker large toc support... " >&6; }
26406 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26407 $as_echo_n "(cached) " >&6
26409 gcc_cv_ld_large_toc
=no
26410 if test $in_tree_ld = yes ; then
26411 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
26412 gcc_cv_ld_large_toc
=yes
26414 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26415 cat > conftest.s
<<EOF
26416 .section ".tbss","awT",@nobits
26422 addis 9,13,ie0@got@tprel@ha
26423 ld 9,ie0@got@tprel@l(9)
26425 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26426 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26427 gcc_cv_ld_large_toc
=yes
26429 rm -f conftest conftest.o conftest.s
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26434 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26435 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26437 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26444 $as_echo_n "checking linker --build-id support... " >&6; }
26445 if test "${gcc_cv_ld_buildid+set}" = set; then :
26446 $as_echo_n "(cached) " >&6
26448 gcc_cv_ld_buildid
=no
26449 if test $in_tree_ld = yes ; then
26450 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26451 "$gcc_cv_gld_minor_version" -ge 18 -o \
26452 "$gcc_cv_gld_major_version" -gt 2 \
26453 && test $in_tree_ld_is_elf = yes; then
26454 gcc_cv_ld_buildid
=yes
26456 elif test x
$gcc_cv_ld != x
; then
26457 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26458 gcc_cv_ld_buildid
=yes
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26463 $as_echo "$gcc_cv_ld_buildid" >&6; }
26464 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26466 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26470 # Check whether --enable-linker-build-id was given.
26471 if test "${enable_linker_build_id+set}" = set; then :
26472 enableval
=$enable_linker_build_id;
26474 enable_linker_build_id
=no
26478 if test x
"$enable_linker_build_id" = xyes
; then
26479 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26481 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26485 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26489 # In binutils 2.21, GNU ld gained support for new emulations fully
26490 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26492 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26493 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26494 $as_echo_n "(cached) " >&6
26496 gcc_cv_ld_sol2_emulation
=no
26497 if test $in_tree_ld = yes ; then
26498 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26499 "$gcc_cv_gld_minor_version" -ge 21 -o \
26500 "$gcc_cv_gld_major_version" -gt 2 \
26501 && test $in_tree_ld_is_elf = yes; then
26502 gcc_cv_ld_sol2_emulation
=yes
26504 elif test x
$gcc_cv_ld != x
; then
26505 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26506 grep _sol2
> /dev
/null
; then
26507 gcc_cv_ld_sol2_emulation
=yes
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26512 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26513 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26515 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26520 $as_echo_n "checking linker --sysroot support... " >&6; }
26521 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26522 $as_echo_n "(cached) " >&6
26524 gcc_cv_ld_sysroot
=no
26525 if test $in_tree_ld = yes ; then
26526 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
26527 gcc_cv_ld_sysroot
=yes
26529 elif test x
$gcc_cv_ld != x
; then
26530 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26531 gcc_cv_ld_sysroot
=yes
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26536 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26537 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26539 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26543 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26544 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26545 && test "$prefix" != "NONE"; then
26547 cat >>confdefs.h
<<_ACEOF
26548 #define PREFIX_INCLUDE_DIR "$prefix/include"
26553 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26554 if test "x$with_headers" != x
; then
26555 target_header_dir
=$with_headers
26556 elif test "x$with_sysroot" = x
; then
26557 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
26558 elif test "x$with_build_sysroot" != "x"; then
26559 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26560 elif test "x$with_sysroot" = xyes
; then
26561 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26563 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26566 target_header_dir
=${native_system_header_dir}
26569 # Test for stack protector support in target C library.
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26571 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26572 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26573 $as_echo_n "(cached) " >&6
26575 gcc_cv_libc_provides_ssp
=no
26577 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26578 # glibc 2.4 and later provides __stack_chk_fail and
26579 # either __stack_chk_guard, or TLS access to stack guard canary.
26580 if test -f $target_header_dir/features.h \
26581 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26582 $target_header_dir/features.h
> /dev
/null
; then
26583 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26584 $target_header_dir/features.h
> /dev
/null
; then
26585 gcc_cv_libc_provides_ssp
=yes
26586 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26587 $target_header_dir/features.h
> /dev
/null \
26588 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26589 $target_header_dir/features.h
> /dev
/null
; then
26590 gcc_cv_libc_provides_ssp
=yes
26591 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26592 $target_header_dir/features.h
> /dev
/null
&& \
26593 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26594 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26595 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26596 gcc_cv_libc_provides_ssp
=yes
26601 # Avoid complicated tests (see
26602 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26603 # simply assert that glibc does provide this, which is true for all
26604 # realistically usable GNU/Hurd configurations.
26605 gcc_cv_libc_provides_ssp
=yes;;
26606 *-*-darwin* |
*-*-freebsd*)
26607 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26608 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26609 gcc_cv_libc_provides_ssp
=yes
26611 echo "no __stack_chk_fail on this target"
26615 *) gcc_cv_libc_provides_ssp
=no
;;
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26619 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26621 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26623 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26627 # Test for <sys/sdt.h> on the target.
26629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26630 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26632 if test -f $target_header_dir/sys
/sdt.h
; then
26635 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26639 $as_echo "$have_sys_sdt_h" >&6; }
26641 # Check if TFmode long double should be used by default or not.
26642 # Some glibc targets used DFmode long double, but with glibc 2.4
26643 # and later they can use TFmode.
26645 powerpc
*-*-linux* | \
26646 sparc
*-*-linux* | \
26650 # Check whether --with-long-double-128 was given.
26651 if test "${with_long_double_128+set}" = set; then :
26652 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26654 gcc_cv_target_ldbl128
=no
26655 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26656 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26657 && gcc_cv_target_ldbl128
=yes
26663 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26665 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26670 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26671 gcc_cv_target_dl_iterate_phdr
=unknown
26674 # <link.h> needs both a dl_iterate_phdr declaration and support for
26675 # compilation with largefile support.
26676 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26677 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26678 gcc_cv_target_dl_iterate_phdr
=yes
26680 gcc_cv_target_dl_iterate_phdr
=no
26685 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26687 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26691 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26693 # Find out what GC implementation we want, or may, use.
26695 # Check whether --with-gc was given.
26696 if test "${with_gc+set}" = set; then :
26697 withval
=$with_gc; case "$withval" in
26704 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26708 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26716 echo "Using $GGC for garbage collection."
26718 # Libraries to use on the host. This will normally be set by the top
26719 # level Makefile. Here we simply capture the value for our Makefile.
26720 if test -z "${HOST_LIBS+set}"; then
26725 # Use the system's zlib library.
26727 zlibinc
="-I\$(srcdir)/../zlib"
26729 # Check whether --with-system-zlib was given.
26730 if test "${with_system_zlib+set}" = set; then :
26731 withval
=$with_system_zlib; zlibdir
=
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26741 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26742 # Check whether --enable-maintainer-mode was given.
26743 if test "${enable_maintainer_mode+set}" = set; then :
26744 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26751 $as_echo "$maintainer_mode" >&6; }
26753 if test "$maintainer_mode" = "yes"; then
26763 # Make empty files to contain the specs and options for each language.
26764 # Then add #include lines to for a compiler that has specs and/or options.
26770 # These (without "all_") are set in each config-lang.in.
26771 # `language' must be a single word so is spelled singularly.
26774 all_outputs
='Makefile'
26775 # List of language makefile fragments.
26776 all_lang_makefrags
=
26777 # Additional files for gengtype
26778 all_gtfiles
="$target_gtfiles"
26780 # These are the languages that are set in --enable-languages,
26781 # and are available in the GCC tree.
26782 all_selected_languages
=
26784 # Add the language fragments.
26785 # Languages are added via two mechanisms. Some information must be
26786 # recorded in makefile variables, these are defined in config-lang.in.
26787 # We accumulate them and plug them into the main Makefile.
26788 # The other mechanism is a set of hooks for each of the main targets
26789 # like `clean', `install', etc.
26791 language_hooks
="Make-hooks"
26793 for lang
in ${srcdir}/*/config-lang.
in
26795 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26797 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26798 if test "x$lang_alias" = x
26800 echo "$lang doesn't set \$language." 1>&2
26803 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26804 subdirs
="$subdirs $subdir"
26806 # $gcc_subdir is where the gcc integration files are to be found
26807 # for a language, both for internal compiler purposes (compiler
26808 # sources implementing front-end to GCC tree converters), and for
26809 # build infrastructure purposes (Make-lang.in, etc.)
26811 # This will be <subdir> (relative to $srcdir) if a line like
26812 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26813 # is found in <langdir>/config-lang.in, and will remain <langdir>
26816 # Except for the language alias (fetched above), the regular
26817 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26818 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26819 # only this and the language alias.
26821 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26822 if [ "$gcc_subdir" = "" ]; then
26823 gcc_subdir
="$subdir"
26826 case ",$enable_languages," in
26828 all_selected_languages
="$all_selected_languages $lang_alias"
26829 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26830 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26841 .
${srcdir}/$gcc_subdir/config-lang.
in
26842 if test "x$language" = x
26844 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26849 case ",$enable_languages," in
26850 *,$lang_alias,*) ;;
26852 for i
in $subdir_requires; do
26853 test -f "${srcdir}/$i/config-lang.in" && continue
26861 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26862 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26863 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26864 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26866 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26867 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26869 all_languages
="$all_languages $language"
26870 all_compilers
="$all_compilers $compilers"
26871 all_outputs
="$all_outputs $outputs"
26872 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26873 case ",$enable_languages," in
26876 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26885 # Pick up gtfiles for c
26887 .
${srcdir}/c-config-lang.
in
26888 all_gtfiles
="$all_gtfiles [c] $gtfiles"
26891 for language
in $all_selected_languages
26893 check_languages
="$check_languages check-$language"
26896 # We link each language in with a set of hooks, reached indirectly via
26897 # lang.${target}. Only do so for selected languages.
26901 target_list
="all.cross start.encap rest.encap tags \
26902 install-common install-man install-info install-pdf install-html dvi \
26903 pdf html uninstall info man srcextra srcman srcinfo \
26904 mostlyclean clean distclean maintainer-clean install-plugin"
26906 for t
in $target_list
26909 for lang
in $all_selected_languages
26913 echo "lang.$t: $x" >> Make-hooks
26917 # Option include files
26920 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26921 option_includes
="option-includes.mk"
26930 echo "dir ." > .gdbinit
26931 echo "dir ${srcdir}" >> .gdbinit
26932 if test x
$gdb_needs_out_file_path = xyes
26934 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26936 if test "x$subdirs" != x
; then
26939 echo "dir ${srcdir}/$s" >> .gdbinit
26942 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26944 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26948 # Find a directory in which to install a shared libgcc.
26950 # Check whether --enable-version-specific-runtime-libs was given.
26951 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26952 enableval
=$enable_version_specific_runtime_libs;
26956 # Substitute configuration variables
27023 if test x
${build} = x
${host} ; then
27024 if test x
${host} = x
${target} ; then
27025 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27027 echo "Links are now set up to build a cross-compiler" 1>&2
27028 echo " from ${host} to ${target}." 1>&2
27031 if test x
${host} = x
${target} ; then
27032 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27033 echo " for ${target}." 1>&2
27035 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27036 echo " from ${host} to ${target}." 1>&2
27048 if test "x${CLOOGLIBS}" != "x" ; then
27050 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27054 # Check for plugin support
27055 # Check whether --enable-plugin was given.
27056 if test "${enable_plugin+set}" = set; then :
27057 enableval
=$enable_plugin; enable_plugin
=$enableval
27059 enable_plugin
=yes; default_plugin
=yes
27067 if test x
$build = x
$host; then
27068 export_sym_check
="nm${exeext} -g"
27069 elif test x
$host = x
$target; then
27070 export_sym_check
="$gcc_cv_nm -g"
27076 if test x
$build = x
$host; then
27077 export_sym_check
="objdump${exeext} -T"
27078 elif test x
$host = x
$target; then
27079 export_sym_check
="$gcc_cv_objdump -T"
27086 if test x
"$enable_plugin" = x
"yes"; then
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27089 $as_echo_n "checking for exported symbols... " >&6; }
27090 if test "x$export_sym_check" != x
; then
27091 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27092 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27093 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27094 : # No need to use a flag
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27096 $as_echo "yes" >&6; }
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27099 $as_echo "yes" >&6; }
27100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27101 $as_echo_n "checking for -rdynamic... " >&6; }
27102 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27103 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27104 plugin_rdynamic
=yes
27105 pluginlibs
="-rdynamic"
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27111 $as_echo "$plugin_rdynamic" >&6; }
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27115 $as_echo "unable to check" >&6; }
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27121 $as_echo_n "checking for library containing dlopen... " >&6; }
27122 if test "${ac_cv_search_dlopen+set}" = set; then :
27123 $as_echo_n "(cached) " >&6
27125 ac_func_search_save_LIBS
=$LIBS
27126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27127 /* end confdefs.h. */
27129 /* Override any GCC internal prototype to avoid an error.
27130 Use char because int might match the return type of a GCC
27131 builtin and then its argument prototype would still apply. */
27144 for ac_lib
in '' dl
; do
27145 if test -z "$ac_lib"; then
27146 ac_res
="none required"
27149 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27151 if ac_fn_c_try_link
"$LINENO"; then :
27152 ac_cv_search_dlopen
=$ac_res
27154 rm -f core conftest.err conftest.
$ac_objext \
27156 if test "${ac_cv_search_dlopen+set}" = set; then :
27160 if test "${ac_cv_search_dlopen+set}" = set; then :
27163 ac_cv_search_dlopen
=no
27165 rm conftest.
$ac_ext
27166 LIBS
=$ac_func_search_save_LIBS
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27169 $as_echo "$ac_cv_search_dlopen" >&6; }
27170 ac_res
=$ac_cv_search_dlopen
27171 if test "$ac_res" != no
; then :
27172 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27176 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27177 pluginlibs
="$pluginlibs -ldl"
27181 # Check that we can build shared objects with -fPIC -shared
27182 saved_LDFLAGS
="$LDFLAGS"
27183 saved_CFLAGS
="$CFLAGS"
27186 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27187 CFLAGS
="$CFLAGS -fPIC"
27188 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27191 CFLAGS
="$CFLAGS -fPIC"
27192 LDFLAGS
="$LDFLAGS -fPIC -shared"
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27196 $as_echo_n "checking for -fPIC -shared... " >&6; }
27197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27198 /* end confdefs.h. */
27208 if ac_fn_c_try_link
"$LINENO"; then :
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27210 $as_echo "yes" >&6; }; have_pic_shared
=yes
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27213 $as_echo "no" >&6; }; have_pic_shared
=no
27215 rm -f core conftest.err conftest.
$ac_objext \
27216 conftest
$ac_exeext conftest.
$ac_ext
27217 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27221 LDFLAGS
="$saved_LDFLAGS"
27222 CFLAGS
="$saved_CFLAGS"
27224 # If plugin support had been requested but not available, fail.
27225 if test x
"$enable_plugin" = x
"no" ; then
27226 if test x
"$default_plugin" != x
"yes"; then
27228 Building GCC with plugin support requires a host that supports
27229 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27236 if test x
"$enable_plugin" = x
"yes"; then
27238 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27243 # Check whether --enable-libquadmath-support was given.
27244 if test "${enable_libquadmath_support+set}" = set; then :
27245 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27247 ENABLE_LIBQUADMATH_SUPPORT
=yes
27250 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27252 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27257 # Specify what hash style to use by default.
27259 # Check whether --with-linker-hash-style was given.
27260 if test "${with_linker_hash_style+set}" = set; then :
27261 withval
=$with_linker_hash_style; case x
"$withval" in
27263 LINKER_HASH_STYLE
=sysv
27266 LINKER_HASH_STYLE
=gnu
27269 LINKER_HASH_STYLE
=both
27272 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27276 LINKER_HASH_STYLE
=''
27279 if test x
"${LINKER_HASH_STYLE}" != x
; then
27281 cat >>confdefs.h
<<_ACEOF
27282 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27287 # Configure the subdirectories
27288 # AC_CONFIG_SUBDIRS($subdirs)
27290 # Create the Makefile
27291 # and configure language subdirectories
27292 ac_config_files
="$ac_config_files $all_outputs"
27295 ac_config_commands
="$ac_config_commands default"
27297 cat >confcache
<<\_ACEOF
27298 # This file is a shell script that caches the results of configure
27299 # tests run on this system so they can be shared between configure
27300 # scripts and configure runs, see configure's option --config-cache.
27301 # It is not useful on other systems. If it contains results you don't
27302 # want to keep, you may remove or edit it.
27304 # config.status only pays attention to the cache file if you give it
27305 # the --recheck option to rerun configure.
27307 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27308 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27309 # following values.
27313 # The following way of writing the cache mishandles newlines in values,
27314 # but we know of no workaround that is simple, portable, and efficient.
27315 # So, we kill variables containing newlines.
27316 # Ultrix sh set writes to stderr and can't be redirected directly,
27317 # and sets the high bit in the cache file unless we assign to the vars.
27319 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27320 eval ac_val
=\$
$ac_var
27324 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27325 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27328 _ | IFS | as_nl
) ;; #(
27329 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27330 *) { eval $ac_var=; unset $ac_var;} ;;
27336 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27337 *${as_nl}ac_space
=\
*)
27338 # `set' does not quote correctly, so add quotes: double-quote
27339 # substitution turns \\\\ into \\, and sed turns \\ into \.
27342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27345 # `set' quotes correctly as required by POSIX, so do not add quotes.
27346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27355 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27357 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27359 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27360 if test -w "$cache_file"; then
27361 test "x$cache_file" != "x/dev/null" &&
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27363 $as_echo "$as_me: updating cache $cache_file" >&6;}
27364 cat confcache
>$cache_file
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27367 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27372 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27373 # Let make expand exec_prefix.
27374 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27376 DEFS
=-DHAVE_CONFIG_H
27380 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27381 # 1. Remove the extension, and $U if already installed.
27382 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27383 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27384 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27385 # will be set to the directory where LIBOBJS objects are built.
27386 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27387 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27389 LIBOBJS
=$ac_libobjs
27391 LTLIBOBJS
=$ac_ltlibobjs
27396 : ${CONFIG_STATUS=./config.status}
27398 ac_clean_files_save
=$ac_clean_files
27399 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27401 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27403 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27405 # Generated by $as_me.
27406 # Run this file to recreate the current configuration.
27407 # Compiler output produced by configure, useful for debugging
27408 # configure, is in config.log if it exists.
27411 ac_cs_recheck=false
27414 SHELL=\${CONFIG_SHELL-$SHELL}
27417 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27418 ## -------------------- ##
27419 ## M4sh Initialization. ##
27420 ## -------------------- ##
27422 # Be more Bourne compatible
27423 DUALCASE
=1; export DUALCASE
# for MKS sh
27424 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27427 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27428 # is contrary to our usage. Disable this feature.
27429 alias -g '${1+"$@"}'='"$@"'
27430 setopt NO_GLOB_SUBST
27432 case `(set -o) 2>/dev/null` in #(
27444 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27445 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27446 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27447 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27448 # Prefer a ksh shell builtin over an external printf program on Solaris,
27449 # but without wasting forks for bash or zsh.
27450 if test -z "$BASH_VERSION$ZSH_VERSION" \
27451 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27452 as_echo='print
-r --'
27453 as_echo_n='print
-rn --'
27454 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27455 as_echo='printf %s
\n'
27456 as_echo_n='printf %s
'
27458 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27459 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27460 as_echo_n='/usr
/ucb
/echo -n'
27462 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27463 as_echo_n_body='eval
27467 expr "X$arg" : "X\\(.*\\)$as_nl";
27468 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27470 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27472 export as_echo_n_body
27473 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27475 export as_echo_body
27476 as_echo='sh
-c $as_echo_body as_echo
'
27479 # The user is always right.
27480 if test "${PATH_SEPARATOR+set}" != set; then
27482 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27483 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27490 # We need space, tab and new line, in precisely that order. Quoting is
27491 # there to prevent editors from complaining about space-tab.
27492 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27493 # splitting by setting IFS to empty value.)
27496 # Find who we are. Look in the path if we contain no directory separator.
27498 *[\\/]* ) as_myself=$0 ;;
27499 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27500 for as_dir in $PATH
27503 test -z "$as_dir" && as_dir=.
27504 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27510 # We did not find ourselves, most probably we were run as `sh COMMAND'
27511 # in which case we are not to be found in the path.
27512 if test "x$as_myself" = x
; then
27515 if test ! -f "$as_myself"; then
27516 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27520 # Unset variables that we do not need and which cause bugs (e.g. in
27521 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27522 # suppresses any "Segmentation fault" message there. '((' could
27523 # trigger a bug in pdksh 5.2.14.
27524 for as_var
in BASH_ENV ENV MAIL MAILPATH
27525 do eval test x\
${$as_var+set} = xset \
27526 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27539 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27542 # as_fn_error ERROR [LINENO LOG_FD]
27543 # ---------------------------------
27544 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27545 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27546 # script with status $?, using 1 if that was 0.
27549 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27551 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27552 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27554 $as_echo "$as_me: error: $1" >&2
27555 as_fn_exit
$as_status
27559 # as_fn_set_status STATUS
27560 # -----------------------
27561 # Set $? to STATUS, without forking.
27562 as_fn_set_status
()
27565 } # as_fn_set_status
27567 # as_fn_exit STATUS
27568 # -----------------
27569 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27573 as_fn_set_status
$1
27579 # Portably unset VAR.
27582 { eval $1=; unset $1;}
27584 as_unset
=as_fn_unset
27585 # as_fn_append VAR VALUE
27586 # ----------------------
27587 # Append the text in VALUE to the end of the definition contained in VAR. Take
27588 # advantage of any shell optimizations that allow amortized linear growth over
27589 # repeated appends, instead of the typical quadratic growth present in naive
27591 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27592 eval 'as_fn_append ()
27603 # as_fn_arith ARG...
27604 # ------------------
27605 # Perform arithmetic evaluation on the ARGs, and store the result in the
27606 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27607 # must be portable across $(()) and expr.
27608 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27609 eval 'as_fn_arith ()
27616 as_val
=`expr "$@" || test $? -eq 1`
27621 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27622 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27628 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27629 as_basename
=basename
27634 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27640 as_me
=`$as_basename -- "$0" ||
27641 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27642 X"$0" : 'X\(//\)$' \| \
27643 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27645 sed '/^.*\/\([^/][^/]*\)\/*$/{
27659 # Avoid depending upon Character Ranges.
27660 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27661 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27662 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27663 as_cr_digits
='0123456789'
27664 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27666 ECHO_C
= ECHO_N
= ECHO_T
=
27667 case `echo -n x` in #(((((
27669 case `echo 'xy\c'` in
27670 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27672 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27679 rm -f conf$$ conf$$.exe conf$$.
file
27680 if test -d conf$$.dir
; then
27681 rm -f conf$$.dir
/conf$$.
file
27684 mkdir conf$$.dir
2>/dev
/null
27686 if (echo >conf$$.
file) 2>/dev
/null
; then
27687 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27689 # ... but there are two gotchas:
27690 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27691 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27692 # In both cases, we have to default to `cp -p'.
27693 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27695 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27703 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27704 rmdir conf$$.dir
2>/dev
/null
27709 # Create "$as_dir" as a directory, including parents if necessary.
27714 -*) as_dir
=.
/$as_dir;;
27716 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27720 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27721 *) as_qdir
=$as_dir;;
27723 as_dirs
="'$as_qdir' $as_dirs"
27724 as_dir
=`$as_dirname -- "$as_dir" ||
27725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27726 X"$as_dir" : 'X\(//\)[^/]' \| \
27727 X"$as_dir" : 'X\(//\)$' \| \
27728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27729 $as_echo X"$as_dir" |
27730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27734 /^X\(\/\/\)[^/].*/{
27747 test -d "$as_dir" && break
27749 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27750 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27754 if mkdir
-p .
2>/dev
/null
; then
27755 as_mkdir_p
='mkdir -p "$as_dir"'
27757 test -d .
/-p && rmdir .
/-p
27761 if test -x / >/dev
/null
2>&1; then
27762 as_test_x
='test -x'
27764 if ls -dL / >/dev
/null
2>&1; then
27771 if test -d "$1"; then
27777 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27778 ???[sx]*):;;*)false;;esac;fi
27782 as_executable_p
=$as_test_x
27784 # Sed expression to map a string onto a valid CPP name.
27785 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27787 # Sed expression to map a string onto a valid variable name.
27788 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27792 ## ----------------------------------- ##
27793 ## Main body of $CONFIG_STATUS script. ##
27794 ## ----------------------------------- ##
27796 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27799 # Save the log message, to keep $0 and so on meaningful, and to
27800 # report actual input values of CONFIG_FILES etc. instead of their
27801 # values after options handling.
27803 This file was extended by $as_me, which was
27804 generated by GNU Autoconf 2.64. Invocation command line was
27806 CONFIG_FILES = $CONFIG_FILES
27807 CONFIG_HEADERS = $CONFIG_HEADERS
27808 CONFIG_LINKS = $CONFIG_LINKS
27809 CONFIG_COMMANDS = $CONFIG_COMMANDS
27812 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27817 case $ac_config_files in *"
27818 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27821 case $ac_config_headers in *"
27822 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27827 # Files that config.status was made for.
27828 config_files="$ac_config_files"
27829 config_headers="$ac_config_headers"
27830 config_commands="$ac_config_commands"
27834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27836 \`$as_me' instantiates files and other configuration actions
27837 from templates according to the current configuration. Unless the files
27838 and actions are specified as TAGs, all are instantiated by default.
27840 Usage: $0 [OPTION]... [TAG]...
27842 -h, --help print this help, then exit
27843 -V, --version print version number and configuration settings, then exit
27844 -q, --quiet, --silent
27845 do not print progress messages
27846 -d, --debug don't remove temporary files
27847 --recheck update $as_me by reconfiguring in the same conditions
27848 --file=FILE[:TEMPLATE]
27849 instantiate the configuration file FILE
27850 --header=FILE[:TEMPLATE]
27851 instantiate the configuration header FILE
27853 Configuration files:
27856 Configuration headers:
27859 Configuration commands:
27862 Report bugs to the package provider."
27865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27868 configured by $0, generated by GNU Autoconf 2.64,
27869 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27871 Copyright (C) 2009 Free Software Foundation, Inc.
27872 This config.status script is free software; the Free Software Foundation
27873 gives unlimited permission to copy, distribute and modify it."
27878 test -n "\$AWK" || AWK=awk
27881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27882 # The default lists apply if the user does not specify any file.
27888 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27889 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27900 # Handling of the options.
27901 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27903 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27904 $as_echo "$ac_cs_version"; exit ;;
27905 --debug |
--debu |
--deb |
--de |
--d |
-d )
27907 --file |
--fil |
--fi |
--f )
27910 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27912 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27913 ac_need_defaults
=false
;;
27914 --header |
--heade |
--head |
--hea )
27917 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27919 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27920 ac_need_defaults
=false
;;
27922 # Conflict between --help and --header
27923 as_fn_error
"ambiguous option: \`$1'
27924 Try \`$0 --help' for more information.";;
27925 --help |
--hel |
-h )
27926 $as_echo "$ac_cs_usage"; exit ;;
27927 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27928 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27931 # This is an error.
27932 -*) as_fn_error
"unrecognized option: \`$1'
27933 Try \`$0 --help' for more information." ;;
27935 *) as_fn_append ac_config_targets
" $1"
27936 ac_need_defaults
=false
;;
27942 ac_configure_extra_args
=
27944 if $ac_cs_silent; then
27946 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27951 if \$ac_cs_recheck; then
27952 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27954 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27955 CONFIG_SHELL='$SHELL'
27956 export CONFIG_SHELL
27961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27965 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27966 ## Running $as_me. ##
27972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27982 # Handling of arguments.
27983 for ac_config_target
in $ac_config_targets
27985 case $ac_config_target in
27986 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
27987 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
27988 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27989 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
27990 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
27991 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27993 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27998 # If the user did not use the arguments to specify the items to instantiate,
27999 # then the envvar interface is used. Set only those that are not.
28000 # We use the long form for the default assignment because of an extremely
28001 # bizarre bug on SunOS 4.1.3.
28002 if $ac_need_defaults; then
28003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28004 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28005 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28008 # Have a temporary directory for convenience. Make it in the build tree
28009 # simply because there is no reason against having it here, and in addition,
28010 # creating and moving files from /tmp can sometimes cause problems.
28011 # Hook for its removal unless debugging.
28012 # Note that there is a small window in which the directory will not be cleaned:
28013 # after its creation but before its name has been assigned to `$tmp'.
28017 trap 'exit_status=$?
28018 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28020 trap 'as_fn_exit 1' 1 2 13 15
28022 # Create a (secure) tmp directory for tmp files.
28025 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28026 test -n "$tmp" && test -d "$tmp"
28029 tmp
=.
/conf$$
-$RANDOM
28030 (umask 077 && mkdir
"$tmp")
28031 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28033 # Set up the scripts for CONFIG_FILES section.
28034 # No need to generate them if there are no CONFIG_FILES.
28035 # This happens for instance with `./config.status config.h'.
28036 if test -n "$CONFIG_FILES"; then
28038 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28039 ac_cs_awk_getline
=:
28040 ac_cs_awk_pipe_init
=
28041 ac_cs_awk_read_file
='
28042 while ((getline aline < (F[key])) > 0)
28045 ac_cs_awk_pipe_fini
=
28047 ac_cs_awk_getline
=false
28048 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28049 ac_cs_awk_read_file
='
28051 print "cat " F[key] " &&"
28052 '$ac_cs_awk_pipe_init
28053 # The final `:' finishes the AND list.
28054 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28056 ac_cr
=`echo X | tr X '\015'`
28057 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28058 # But we know of no other shell where ac_cr would be empty at this
28059 # point, so we can use a bashism as a fallback.
28060 if test "x$ac_cr" = x
; then
28061 eval ac_cr
=\$
\'\\r
\'
28063 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28064 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28067 ac_cs_awk_cr
=$ac_cr
28070 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28073 # Create commands to substitute file output variables.
28075 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28076 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28077 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28080 } >conf$
$files.sh
&&
28081 . .
/conf$
$files.sh ||
28082 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28083 rm -f conf$
$files.sh
28086 echo "cat >conf$$subs.awk <<_ACEOF" &&
28087 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28089 } >conf$$subs.sh ||
28090 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28091 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28093 for ac_last_try in false false false false false :; do
28094 . ./conf$$subs.sh ||
28095 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28097 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28098 if test $ac_delim_n = $ac_delim_num; then
28100 elif $ac_last_try; then
28101 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28103 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28106 rm -f conf$$subs.sh
28108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28109 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28113 s/^/S["/; s
/!.
*/"]=/
28123 s/\(.\{148\}\).*/\1/
28125 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28130 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28137 s/\(.\{148\}\).*/\1/
28139 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28143 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28148 ' <conf$$subs.awk | sed '
28153 ' >>$CONFIG_STATUS || ac_write_fail=1
28154 rm -f conf$$subs.awk
28155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28157 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28158 for (key in S) S_is_set[key] = 1
28160 \$ac_cs_awk_pipe_init
28164 nfields = split(line, field, "@
")
28166 len = length(field[1])
28167 for (i = 2; i < nfields; i++) {
28169 keylen = length(key)
28170 if (S_is_set[key]) {
28172 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28173 len += length(value) + length(field[++i])
28178 if (nfields == 3 && !substed) {
28180 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28181 \$ac_cs_awk_read_file
28187 \$ac_cs_awk_pipe_fini
28190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28191 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28192 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28195 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28196 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28199 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28200 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28201 # trailing colons and then remove the whole line if VPATH becomes empty
28202 # (actually we leave an empty line to preserve line numbers).
28203 if test "x
$srcdir" = x.; then
28204 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28205 s/:*\$(srcdir):*/:/
28206 s/:*\${srcdir}:*/:/
28208 s/^\([^=]*=[ ]*\):*/\1/
28214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28215 fi # test -n "$CONFIG_FILES"
28217 # Set up the scripts for CONFIG_HEADERS section.
28218 # No need to generate them if there are no CONFIG_HEADERS.
28219 # This happens for instance with `./config.status Makefile'.
28220 if test -n "$CONFIG_HEADERS"; then
28221 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28225 # Transform confdefs.h into an awk script `defines.awk', embedded as
28226 # here-document in config.status, that substitutes the proper values into
28227 # config.h.in to produce config.h.
28229 # Create a delimiter string that does not exist in confdefs.h, to ease
28230 # handling of long lines.
28232 for ac_last_try in false false :; do
28233 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28234 if test -z "$ac_t"; then
28236 elif $ac_last_try; then
28237 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28239 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28243 # For the awk script, D is an array of macro values keyed by name,
28244 # likewise P contains macro parameters if any. Preserve backslash
28245 # newline sequences.
28247 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28249 s/.\{148\}/&'"$ac_delim"'/g
28252 s/^[ ]*#[ ]*define[ ][ ]*/ /
28259 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28261 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28265 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28266 D["\
1"]=" \
3\\\\\\n
"\\/p
28268 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28273 s/.\{148\}/&'"$ac_delim"'/g
28278 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28281 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28283 ' <confdefs.h | sed '
28284 s/'"$ac_delim"'/"\\\
28285 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28288 for (key in D) D_is_set[key] = 1
28291 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28293 split(line, arg, " ")
28294 if (arg[1] == "#") {
28298 defundef
= substr
(arg
[1], 2)
28301 split(mac1
, mac2
, "(") #)
28303 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28304 if (D_is_set
[macro
]) {
28305 # Preserve the white space surrounding the "#".
28306 print prefix
"define", macro P
[macro
] D
[macro
]
28309 # Replace #undef with comments. This is necessary, for example,
28310 # in the case of _POSIX_SOURCE, which is predefined and required
28311 # on some systems where configure will not decide to define it.
28312 if (defundef
== "undef") {
28313 print
"/*", prefix defundef
, macro
, "*/"
28321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28322 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28323 fi # test -n "$CONFIG_HEADERS"
28326 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28331 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28333 case $ac_mode$ac_tag in
28335 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28336 :[FH
]-) ac_tag
=-:-;;
28337 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28354 -) ac_f
="$tmp/stdin";;
28355 *) # Look for the file first in the build tree, then in the source tree
28356 # (if the path is not absolute). The absolute path cannot be DOS-style,
28357 # because $ac_f cannot contain `:'.
28361 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28363 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28365 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28366 as_fn_append ac_file_inputs
" '$ac_f'"
28369 # Let's still pretend it is `configure' which instantiates (i.e., don't
28370 # use $as_me), people would be surprised to read:
28371 # /* config.h. Generated by config.status. */
28372 configure_input
='Generated from '`
28373 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28375 if test x
"$ac_file" != x-
; then
28376 configure_input
="$ac_file. $configure_input"
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28378 $as_echo "$as_me: creating $ac_file" >&6;}
28380 # Neutralize special characters interpreted by sed in replacement strings.
28381 case $configure_input in #(
28382 *\
&* |
*\|
* |
*\\* )
28383 ac_sed_conf_input
=`$as_echo "$configure_input" |
28384 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28385 *) ac_sed_conf_input
=$configure_input;;
28389 *:-:* |
*:-) cat >"$tmp/stdin" \
28390 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28395 ac_dir
=`$as_dirname -- "$ac_file" ||
28396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28397 X"$ac_file" : 'X\(//\)[^/]' \| \
28398 X"$ac_file" : 'X\(//\)$' \| \
28399 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28400 $as_echo X"$ac_file" |
28401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28405 /^X\(\/\/\)[^/].*/{
28418 as_dir
="$ac_dir"; as_fn_mkdir_p
28422 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28424 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28425 # A ".." for each directory in $ac_dir_suffix.
28426 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28427 case $ac_top_builddir_sub in
28428 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28429 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28432 ac_abs_top_builddir
=$ac_pwd
28433 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28434 # for backward compatibility:
28435 ac_top_builddir
=$ac_top_build_prefix
28438 .
) # We are building in place.
28440 ac_top_srcdir
=$ac_top_builddir_sub
28441 ac_abs_top_srcdir
=$ac_pwd ;;
28442 [\\/]* | ?
:[\\/]* ) # Absolute name.
28443 ac_srcdir
=$srcdir$ac_dir_suffix;
28444 ac_top_srcdir
=$srcdir
28445 ac_abs_top_srcdir
=$srcdir ;;
28446 *) # Relative name.
28447 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28448 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28449 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28451 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28463 # If the template does not know about datarootdir, expand it.
28464 # FIXME: This hack should be removed a few years after 2.60.
28465 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28476 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28477 *datarootdir
*) ac_datarootdir_seen
=yes;;
28478 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28480 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28483 ac_datarootdir_hack='
28484 s&@datadir@&$datadir&g
28485 s&@docdir@&$docdir&g
28486 s&@infodir@&$infodir&g
28487 s&@localedir@&$localedir&g
28488 s&@mandir@&$mandir&g
28489 s&\\\${datarootdir}&$datarootdir&g' ;;
28493 # Neutralize VPATH when `$srcdir' = `.'.
28494 # Shell code in configure.ac might set extrasub.
28495 # FIXME: do we really want to maintain this feature?
28496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28497 ac_sed_extra="$ac_vpsub
28500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28502 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28503 s|@configure_input@|
$ac_sed_conf_input|
;t t
28504 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28505 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28506 s
&@srcdir@
&$ac_srcdir&;t t
28507 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28508 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28509 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28510 s
&@builddir@
&$ac_builddir&;t t
28511 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28512 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28513 $ac_datarootdir_hack
28515 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28516 if $ac_cs_awk_getline; then
28517 $AWK -f "$tmp/subs.
awk"
28519 $AWK -f "$tmp/subs.
awk" | $SHELL
28521 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28523 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28524 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28525 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28527 which seems to be undefined. Please make sure it is defined." >&5
28528 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28529 which seems to be undefined. Please make sure it is defined." >&2;}
28533 -) cat "$tmp/out" && rm -f "$tmp/out";;
28534 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28536 || as_fn_error "could not create $ac_file" "$LINENO" 5
28542 if test x"$ac_file" != x-; then
28544 $as_echo "/* $configure_input */" \
28545 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28546 } >"$tmp/config.h" \
28547 || as_fn_error "could not create $ac_file" "$LINENO" 5
28548 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28549 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28550 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28553 mv "$tmp/config.h" "$ac_file" \
28554 || as_fn_error "could not create $ac_file" "$LINENO" 5
28557 $as_echo "/* $configure_input */" \
28558 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28559 || as_fn_error "could not create -" "$LINENO" 5
28563 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28564 $as_echo "$as_me: executing $ac_file commands" >&6;}
28569 case $ac_file$ac_mode in
28570 "as":F) chmod +x as ;;
28571 "collect-ld":F) chmod +x collect-ld ;;
28572 "nm":F) chmod +x nm ;;
28574 case ${CONFIG_HEADERS} in
28575 *auto-host.h:config.in*)
28578 # Make sure all the subdirs exist.
28579 for d in $subdirs doc build common c-family
28581 test -d $d || mkdir $d
28591 ac_clean_files=$ac_clean_files_save
28593 test $ac_write_fail = 0 ||
28594 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28597 # configure is writing to config.log, and then calls config.status.
28598 # config.status does its own redirection, appending to config.log.
28599 # Unfortunately, on DOS this fails, as config.log is still kept open
28600 # by configure, so config.status won't be able to
write to it
; its
28601 # output is simply discarded. So we exec the FD to /dev/null,
28602 # effectively closing config.log, so it can be properly (re)opened and
28603 # appended to by config.status. When coming back to configure, we
28604 # need to make the FD available again.
28605 if test "$no_create" != yes; then
28607 ac_config_status_args
=
28608 test "$silent" = yes &&
28609 ac_config_status_args
="$ac_config_status_args --quiet"
28611 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28613 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28614 # would make configure fail if this is the last instruction.
28615 $ac_cs_success || as_fn_exit $?
28617 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28619 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}